Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2000 08:44:36 -0500 (EST)
From:      Steve Hovey <shovey@buffnet.net>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Limiting bandwidth
Message-ID:  <Pine.BSF.4.05.10002040840340.2455-100000@buffnet11.buffnet.net>
In-Reply-To: <20000203153519.A32993@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

One last question then on a point that isnt clear in my head.

The traffic I want to limit is gatewayed  ed0 <--> fxp0

Do the statements/setup below only apply to packets destined for that
interface (to be gated or for it specifically), ignoring all other packets
on that ethernet? (I think all adapters see all packets, but only accept,
deal with those corresponding to their IP or to be routed no?)

Just seems like I should be saying something line in fxp0 out ed0 to
designate the packet path. (but then I could just be needin more coffee
today)

On Thu, 3 Feb 2000, Dan Nelson wrote:

> 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?Pine.BSF.4.05.10002040840340.2455-100000>