Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Feb 2000 15:35:19 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Steve Hovey <shovey@buffnet.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Limiting bandwidth
Message-ID:  <20000203153519.A32993@dan.emsphone.com>
In-Reply-To: <Pine.BSF.4.05.10002031518540.29318-100000@buffnet11.buffnet.net>; from "Steve Hovey" on Thu Feb  3 15:21:30 GMT 2000
References:  <20000203094040.B60799@dan.emsphone.com> <Pine.BSF.4.05.10002031518540.29318-100000@buffnet11.buffnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000203153519.A32993>