Hi, I''m not sure if this question already came up in this list, but I seem to be unable to find an answer for it. I have a server and a few thousand of clients that can access the server. I would like to setup a traffic shaping such a way that each particulat client is given a particular bandwith. Let''s say each client (clients differentiated by ip address) is allowed to use no more than 100kbit of download bandwith. So it is my understanding that traffic should be differentiated by flows and each flow should be given a particular bandwith with any queueing discipline available. The question is how to do it. I can''t figure out a way to accomplish it except writing thousands of filtering rules for each ip and also thousands classes for them. I probably can use hashing filters but it wouldn''t eliminate thousands of classes each with the same shaping rate. So once again the question is whether it''s possible to shape each flow from a particular ip range to the particular rate? Thanks everybody. Michael _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tuesday 13 May 2003 18:47, Michael Ulitskiy wrote:> Hi, > > I''m not sure if this question already came up in this list, but > I seem to be unable to find an answer for it. > I have a server and a few thousand of clients that can access > the server. I would like to setup a traffic shaping such a way > that each particulat client is given a particular bandwith. > Let''s say each client (clients differentiated by ip address) is > allowed to use no more than 100kbit of download bandwith. > So it is my understanding that traffic should be differentiated > by flows and each flow should be given a particular bandwith > with any queueing discipline available. The question is how to > do it. > I can''t figure out a way to accomplish it except writing thousands > of filtering rules for each ip and also thousands classes for them. > I probably can use hashing filters but it wouldn''t eliminate > thousands of classes each with the same shaping rate. > So once again the question is whether it''s possible to shape each > flow from a particular ip range to the particular rate?Not without creating a lot of classes. You can try the wrr qdisc : http://wipl-wrr.sourceforge.net/ It creates 1 class for each ip-addres (or mac-address) it sees. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> > So once again the question is whether it''s possible to shape each > > flow from a particular ip range to the particular rate? > Not without creating a lot of classes. You can try the wrr qdisc : > http://wipl-wrr.sourceforge.net/ > It creates 1 class for each ip-addres (or mac-address) it sees. > > StefThanks. I''m not quite clear whether wrr creates classes automatically or $MAX_CLASSES classes created at startup and then wrr just choose wich one to use according to its internal classification? Looks like the latter according to example script. If so, is this really the best option available? If wrr does create classes automatically, I don''t seem to be able to figure out how to specify which queue discipline should be attached to created classes. Thanks again for your help. Michael _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hey I''m developing a script which can set up rules for the clients by cbq and htb. Which create all the rules and such. Write back if you want to be notified when i have a working version Regards Matias Bjorling ----- Original Message ----- From: "Michael Ulitskiy" <mdu113@acedsl.com> To: <lartc@mailman.ds9a.nl> Sent: Tuesday, May 13, 2003 8:28 PM Subject: Re: [LARTC] Shaping traffic by flows> > > So once again the question is whether it''s possible to shape each > > > flow from a particular ip range to the particular rate? > > Not without creating a lot of classes. You can try the wrr qdisc : > > http://wipl-wrr.sourceforge.net/ > > It creates 1 class for each ip-addres (or mac-address) it sees. > > > > Stef > > Thanks. > I''m not quite clear whether wrr creates classes automatically or > $MAX_CLASSES classes created at startup and then wrr just choose > wich one to use according to its internal classification? > Looks like the latter according to example script. If so, is this reallythe> best option available? > If wrr does create classes automatically, I don''t seem to be able tofigure out> how to specify which queue discipline should be attached to createdclasses.> Thanks again for your help. > > Michael > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/