From owner-freebsd-questions Thu Feb 3 13:35:22 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by builder.freebsd.org (Postfix) with ESMTP id 9F46B4312 for ; Thu, 3 Feb 2000 13:35:19 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id PAA33328; Thu, 3 Feb 2000 15:35:19 -0600 (CST) (envelope-from dan) Date: Thu, 3 Feb 2000 15:35:19 -0600 From: Dan Nelson To: Steve Hovey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Limiting bandwidth Message-ID: <20000203153519.A32993@dan.emsphone.com> References: <20000203094040.B60799@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from "Steve Hovey" on Thu Feb 3 15:21:30 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Feb 03), Steve Hovey said: > > ipfw pipe 1 config bw 100kbytes/sec > > ipfw add 100 pipe 1 ip from any to any out via fxp0 > > ipfw pipe 2 config bw 100kbytes/sec > > ipfw add 101 pipe 2 ip from any to any in via fxp0 > > I did this - checked the man pages - and soon as I do it, at > 512kbits, a ping out that port drops 80% of packets, and reports > enourmous ping times on the packets that do get thru. Am I missing > something I need to do (like set buffers) or is this just a symptom > that the end user NEEDs to be throttled! (ie they are piggin up the > wire) You might need to add a buffer to the pipe config; I don't know if the default pipe setup has an infinite buffer or not. Try adding "queue 100 packets" to each pipe config line. You can see how much data is going into the pipe with "ipfw show". take two samples, 10 seconds apart, to see how much traffic is trying to get through. "ipfw pipe show" will list each pipe, plus how many packets are queued up, and how many packets were dropped. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message