Re: Strategy for about 200 part-time users

Linux Advanced Routing and Traffic Control

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

 



Jan Wilson wrote:

* Ed Wildgoose <lists@xxxxxxxxxxxxxx> [040518 08:57]:


What is your goal? Why isn't 2 buckets, one for P2P and the everything else bucket (with an SFQ on each) enough for what you want (ie what's your target?) What's wrong with the current setup (apart from wanting to switch to MAC access)?



Well, as I see it (which could easily be wrong), the problem is with
setting up over 200 buckets, even though only 60 to 90, maybe, are
active at any one time. With the limited bandwidth we have available
(it is very expensive here), it makes rather tiny buckets.



Yeah, but the buckets have a guaranteed bandwidth, and also get to share the remaining bandwidth between them. So if you have 600 buckets, and only two are active, then those two buckets should get half the bandwidth each (if you set it up that way). Perhaps that's really obvious, but just wanted to be sure


Also, I think you can do your accounting with firewall rules as well as tc rules. It may be more flexible to seperate accounting from throttling - perhaps it will give you more options to set this up.

For example, you could setup the rules with the class of traffic at the top and the users underneath, eg top level is "P2P", "bulk", "interactive", and under each is a user class (or SFQ, etc). Now you could limit the P2P to be only 1/3 of total bandwidth, which is then fought over by the users (each will get a fraction depending on how many others are using it, not how many classes you have). Perhaps for the other classes even SFQ will be enough?

The howto mentions some examples of using hashing which may allow you a concise way to setup these rules by IP for example (even though you won't be accounting that way).

You then need to look to iptables to see if you can do some standard rules to account for your traffic. Perhaps someone here could suggest a neat way?

Good luck. Would be interested to hear your final solution

Ed W
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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