Skip to contentSkip to conversation

Shaping traffic by flows

LARTC Michael Ulitskiy 3 participants 4 messages May 13, 2003

lore
Share & tools
lore
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 11 lines · Michael Ulitskiy

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

Quoted 8 lines

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

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/
#2 lore raw
In reply to Michael Ulitskiy
Quoted 7 lines
Quoted 2 lines

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 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Michael Ulitskiy

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" <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 13, 2003 8:28 PM
Subject: Re: [LARTC] Shaping traffic by flows

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

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.

Quoted 7 lines
Quoted 1 line

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 really

the

Quoted 2 lines

best option available?
If wrr does create classes automatically, I don't seem to be able to

figure out

Quoted 1 line

how to specify which queue discipline should be attached to created

classes.

Quoted 6 lines

Thanks again for your help.

Michael
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/