I haven't tested any of this, but from what I understand...

On Saturday, Jun 28, 2003, at 00:23 US/Pacific, jared r r spiegel wrote:

does this imply that with hfsc, bandwith must be distributed among all
child queues such that the total bandwidth among them at that level of the
tree cannot exceed 100%?

The sum of the children's service curves cannot exceed the parent's SC.


i know that sounds like stupid easy math, but then what manner of linkshare/realtime/
upperlimit options could i impose upon those child queues such that if
queues q2, q3 and q4 were not receiving packets, q1 could receive up to 100% of
the interface bandwidth? as in, on a four client lan, the queues are assigned to
machines 192.168.1.1 - 192.168.1.4 ; let's say the machine running pf is 192.168.1.100...


if 192.168.1.1 is downloading from 192.168.1.100, and the other hosts on the
lan are inactive, can hfsc be setup to allow 192.168.1.1 to receive all of
the 100Mb bandwidth of the altq declaration; but if all four hosts are downloading
equally from the 192.168.1.100, the bandwidth would be split fairly among them?

Setting the bandwidth on each queue to 25% should do that. HFSC isn't documented real well, but the bandwidth option is used to set the linkshare curve. That curve is used as a "weight" for bandwidth distribution, not as a hard limit. So a 25% linkshare for each should distribute available bandwidth equally among those wanting it.

The hfsc(upperlimit) option would do hard bandwidth limiting.



Reply via email to