[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 1125] Re: Equal bandwidth distribution among hosts in a subnet using ALTQ
On Wed, Oct 24, 2001 at 12:45:36AM +0900, Kenjiro Cho wrote:
> Syazwan Hisyam bin Mohamed Ridzwan wrote:
> > anyone can help me regarding the subject I stated above. I would like to
> > shape the traffic in the campus so that no single user can monopolize the
> > internet connection (e.g: by opening multiple connections).
...
> > However, it is not a good idea to use Dummynet since that some extra
> > available bandwidth will not be utilized.
as kenjiro suggested, the right approach is to use WFQ, which is
available both in altq and dummynet -- for the latter,
you should use something like
ipfw pipe 1 config bw 4Mbit/s
ipfw queue 2 config pipe 1 mask src-ip 0xffffffff
ipfw add queue 2 ip from ${my-net} to any out
and each of your user will share evenly the aggregate bandwidth
that you define for the pipe (4Mbit in the above example).
Yes i should update the documentation...
cheers
luigi
----------------------------------+-----------------------------------------
Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa)
http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704
Phone: (510) 666 2927
----------------------------------+-----------------------------------------