Dynamic Bandwidth Allocation Using Dummynet

Michael Sierchio kudzu at tenebras.com
Wed Jul 9 06:22:38 PDT 2003


zam wrote:


That's very silly.  Just state the goal or requirements clearly,
and not in terms of your ad hoc solution.

> Group A - 700KBps
> Group B - 1500KBps
> Group C - 800KBps
> 
> Let say Group A using 70% of the bandwidth, and at the
> same time, Group C utilize 100% of the bandwidth, is
> there any ways to make sure that the balance of group
> A (30%) will be given to Group C?

Your math is a little odd -- Group A using 70% of the bandwidth,
and at the same time, Group C utilize 100% --  that adds up
to 170%.  Are they sharing bandwidth or not?  If so, all of
everything must add up to 100% (1.0).

With dummynet, you can fairly allocate bandwidth based on IP
or net or type of traffic, and guarantee that the
remainder will go to whomever you wish.  At the same
time, when there is no contention for bandwidth, any users
may use up to 100%.

Have you read the man page for ipfw?

          queue   A queue is an abstraction used to implement the WF2Q+ (Worst-
                  case Fair Weighted Fair Queueing) policy, which is an effi-
                  cient variant of the WFQ policy.
                  The queue associates a weight and a reference pipe to each
                  flow, and then all backlogged (i.e., with packets queued)
                  flows linked to the same pipe share the pipe's bandwidth pro-
                  portionally to their weights.

read this?

	http://info.iet.unipi.it/~luigi/ip_dummynet/



More information about the freebsd-ipfw mailing list