From owner-freebsd-net@FreeBSD.ORG Mon Aug 9 21:36:45 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 411A416A4D1 for ; Mon, 9 Aug 2004 21:36:45 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2645F43D1F for ; Mon, 9 Aug 2004 21:36:45 +0000 (GMT) (envelope-from galaxy.ranger@gmail.com) Received: by mproxy.gmail.com with SMTP id x71so28368cwb for ; Mon, 09 Aug 2004 14:36:41 -0700 (PDT) Received: by 10.11.100.8 with SMTP id x8mr75422cwb; Mon, 09 Aug 2004 14:36:40 -0700 (PDT) Message-ID: <4a1299a4040809143632033f90@mail.gmail.com> Date: Mon, 9 Aug 2004 14:36:40 -0700 From: Fargo Holiday To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Dummynet and limiting packets/upstream useage X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Aug 2004 21:36:45 -0000 Hello everyone, I'm still sort of new to FreeBSD, and totally new to any sort of advanced networking, so bear with me please. Here's the situation: Everything was running off of a D-Link 614 wireless router, but it was getting crushed despite very little actual bandwidth being used. My buddy and I set up the FreeBSD machine (5.2) as to act as a router, to serve the two cabled machines and D-Link. This has improved the overall responsiveness of the internet connection, but something about the D-Link is still slowing everything down. I disable the wireless and ping times drop from around 400-800ms to between 10 and 40ms. We're using WEP and MAC filtering, and use NetStumbler to check for parasites, so I don't believe it is unknown machines dragging me down. The one thing I can think of is that the two laptops used here, both are using Bit Torrent and Shareaza, and may be eating up the upstream bandwidth and/or generating some massive quantity of packets. With that in mind I've been looking into dummynet for some traffic control. I set it up and it seems to be functioning ok, but it dosen't seem to be helping. Here are my ipfw statements: ipfw add pipe 1 ip from 10.0.0.8 to any ipfw pipe 1 config bw 80Kbit/s queue 20pps delay 150ms ipfw add pipe 2 ip from any to 10.0.0.8 ipfw pipe 2 config bw 180Kbit/s queue 20pps delay 150ms ipfw add deny icmp from 10.0.0.8 to any ipfw add deny icmp from 192.168.0.0/24 to any I'm not sure if the pps is valid, but I've tried using the queue number plain and denoting Kb, so I thought I'd give packets per second a shot. The wired network is the 10.x range, while the wireless clients are under the 192 net, with 10.0.0.8 being the D-Link "WAN" interface. So far, only the icmp rule has helped, and the effect is so marginal that it could very well be some other factor. I tossed in the 192 rule while I was tired, I don't think the BSD router has any awareness of the D-Link's internal ip scheme, so correct me if I'm wrong. Any thoughts on what else I can try? Am I using the right tool for the job? Thanks in advance, Fargo