Re: [LARTC] fair traffic allocation for 100 Users, is HTB the solution?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 24 March 2003 16:54, Matthias Weingart wrote:
> Hi,
>
> Sorry to bother you with a question, that is often ask here (i guess) :-).
>
> I want to balance (shape) the traffic that  100 Users do over a
> 2MBit sDSL connection. Each user (IP or IP group) should get the same
> bandwidth regardless of how much connections are running. If one user
> ist active he gets 100%, 2 users both get 50% of the 2MBit and so on.
>
> I tried cbq in the past, but it did not work as expected:
> Each user had its own class with 20kbits guaranteed and borrowing
> enabled. But if one user makes traffic only, he does not get the full
> speed.
>  I know the wondershaper and WRR, but that tools are not doing it
> in the way I want it (they are working globally to keep the latency
> low, but it is not true fair in view to the users).
>  What do you think, is HTB able to handle 100 classes with borrowing?
> Is a 1GHz CPU with 512MB RAM enough to handle it? (I also want to monitor
> the traffic of the 100 classes at the same machine).
It's even overkill.

> Or are there any another ways to do it?
>
> The HTB stuff is not easy, if somebody here has a similar configuration
> and can send me his scripts I would be very happy :-).
It's easy if you understand it :)   In your case rate = 20kbit, ceil = 2mbit.  
And you need 100 classes of these connected to a class with ceil = rate = 
2mbit and you are done.

I have some basic scripts on www.docum.org.  Or you can try my configurator at 
http://home.docum.org/qos/ to get an idea about how you can create a htb 
script.

Maybe you can try ESFQ.  It's an enhanced SFQ.  It will create for each flow 
it sees a new band.  A flow can be determined by a combination src/dst 
port/ip.  I have more info on the faq page on www.doucm.org.  Each flow has 
the same opportunity to send something.

Stef

-- 

stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux