fair traffic allocation for 100 Users, is HTB the solution?
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).
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 :-).
thx
Matthias
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 9 lines · Matthias Weingart
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.
Quoted 10 lines
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.
Quoted 4 lines
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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Thx for your reply and the short description; HTB seems really simple, worth
a try.
Matthias
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 2 lines · Matthias Weingart
Thx for your reply and the short description; HTB seems really simple, worth a try.
Good luck.
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/