Dummynet cascade of pipes

Luigi Rizzo rizzo at icir.org
Sat Mar 3 13:40:37 UTC 2007


On Sat, Mar 03, 2007 at 08:16:37PM +0800, John Mok wrote:
...
> Without hierarchical control, would it be possible to make a dummynet 
> model for the example situation to work? If separate pipes are used to 
> set the bandwidth limit :-
> 
> ipfw pipe 110 config bw 16 Kbps
> ipfw pipe 120 config bw 256 Kbps
> ipfw pipe 130 config bw 2048 Kbps
> ipfw queue 130 config weight 384 pipe 130 ....
> ipfw queue 140 config weight 224 pipe 130 ....
> 
> and when the traffic is fully loaded, then the traffic 2320 Kbps (16 + 
> 256+ 2048) will exceed the available bandwidth 2 Mbps and would result 
> in uncontrollable packet drop due to queue overflow.

i am not sure about what you want to achieve (because pipes 110 and 120
are unused in your example).
Anyways with WFQ when the total exceeds the available bandwidth,
queueing will only occur for those flows exceeding their share,
others will keep going with their reserved share.

If e.g. you have three flows and want to give them at least 16,
256, 1024 kbps (respectively), you can set a pipe with
(16+256+1024)=1296kbps and set three queues with weight 1, 16 and 64
(the weight can be in the range 1..100 i think).

cheers
luigi


More information about the freebsd-ipfw mailing list