Re: [LARTC] Shaping traffic by flows

Linux Advanced Routing and Traffic Control

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

 



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@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