From owner-freebsd-net@FreeBSD.ORG Tue Nov 28 10:07:37 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9865716A417 for ; Tue, 28 Nov 2006 10:07:37 +0000 (UTC) (envelope-from weiwu@sdf.lonestar.org) Received: from bossdog.realss.com (bossdog.realss.com [211.157.108.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id D82D043E6B for ; Tue, 28 Nov 2006 10:05:45 +0000 (GMT) (envelope-from weiwu@sdf.lonestar.org) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id 0EB2D1C00A0 for ; Tue, 28 Nov 2006 18:05:46 +0800 (CST) Received: from bossdog.realss.com ([127.0.0.1]) by localhost (bossdog.realss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32389-02 for ; Tue, 28 Nov 2006 18:05:45 +0800 (CST) Received: from [192.168.0.17] (sappho.realss.com [218.85.101.243]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by bossdog.realss.com (Postfix) with ESMTP id 72BC71C0093 for ; Tue, 28 Nov 2006 18:05:44 +0800 (CST) From: =?UTF-8?Q?=E5=BC=A0=E9=9F=A1=E6=AD=A6?= To: freebsd-net@freebsd.org Content-Type: text/plain Date: Tue, 28 Nov 2006 18:05:13 +0800 Message-Id: <1164708313.11743.19.camel@joe.realss> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at bossdog.realss.com Subject: wired PPP problem: ppp connection fail, slow down on FreeBSD but fine on Windows X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 10:07:37 -0000 The FreeBSD gateway machine has one end connect to ADSL modem through pppoe, the other connects to LAN and act as NAT gateway. PPP connection can be established correctly, then after 5 hour or 10 hour, connection speed become very slow or (more frequently) simply cannot connect (a.k.a. browsing web pages time out). Then, ping from LAN client hosts to external network would simply timeout, ping from NAT gateway to 10.10.10.5 (that's the other end of the PPPOE connection) keep getting this message: ping: send to: No buffer space available At the same time, top(1) shows 80~95 CPU resource is taken by 'interrupt'. stop ppp by "/etc/rc.d/ppp stop" and re-start this process usually will not get re-connected (/var/log/ppp.log is like 'carrier -> stop -> redial', that is we don't reach the step of login). Reboot computer usually also do not help. After fighting the problem for an hour or so, suddenly it (pppoe) become working again. Sometimes, connection become very slow, ping from NAT gateway to 10.10.10.5 gets half of packets dropped (lost) and the other half has a ping delay of 500ms (usually it should be less then 50 ms). This problem is no longer observed after we installed Windows 2000 Professional on the gateway as second OS and use it for PPP/NAT. This problem has troubled me for two weeks and really exhausted me. In the begining we had a Linux network gateway machine, a Pentium-MMX box that has been running fine for almost a year. At 3 weeks ago it become very unstable, have similar behaviour as described above (only that a process called "events" take up 80~95 CPU resource rather then "interrupt"). We replaced it with a Pentium II (300MHz) machine with FreeBSD and got the behaviour described above. When we replace OS from Linux to FreeBSD, we actually replaced the gateway with another machine (including its network cards), so I think chance of network card problem / gateway hardware problem should be very small. Can you provide some suggestions on how to further find out and fix this problem?