Re: traffic shaping on per-host base

Linux Advanced Routing and Traffic Control

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

 



On Wed, 2012-06-20 at 16:10 +0200, Rudolph Bott wrote:
> Using a (e.g.) 100Mbit connection, I would like to limit a set of hosts 
> to a certain bandwidth (e.g. 1Mbit per host) - but EACH host should be 
> able to use 1 Mbit/s (rather than sharing 1 Mbit with other hosts). 
> Would that be possible with tc? Do I have to create one queue per host 
> with a limit of 1MBit/s and a match filter for the client's ip address? 

Yes, I'm pretty sure you'll have to create a separate leaf class for
each IP address.

> If that is a the case, how many queues can I create? Would it impose a 
> problem for a system to handle e.g. 500 or even 10.000 queues at the 
> same time?

It depends how you're doing the matching. If you've got that many queues
then you'll probably need to use tc hash matching. There was a lengthy
thread on the netfilter mailing list that touched on this a while ago:

http://marc.info/?l=netfilter&m=129669999112670&w=2

You will probably find the replies from Marek Kierdelewicz the most
useful.

Andy


--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux