Matthias Weingart
2003-Mar-24 15:54 UTC
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 / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
Stef Coene
2003-Mar-24 16:05 UTC
Re: fair traffic allocation for 100 Users, is HTB the solution?
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 docum.org. Or you can try my configurator at 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 doucm.org. Each flow has the same opportunity to send something. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" docum.org #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
Matthias Weingart
2003-Mar-25 15:48 UTC
Re: fair traffic allocation for 100 Users, is HTB the solution?
Thx for your reply and the short description; HTB seems really simple, worth a try. Matthias _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org
Stef Coene
2003-Mar-25 17:18 UTC
Re: fair traffic allocation for 100 Users, is HTB the solution?
On Tuesday 25 March 2003 16:48, Matthias Weingart wrote:> Thx for your reply and the short description; HTB seems really simple, > worth a try.Good luck. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" docum.org #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: lartc.org