Per IP maximal speed limit inside HTB class

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

 



Hi there,

I already have HTB class tree which makes channel division between
client groups.
One of those groups now has to have clients with limited maximal speed
to implement "unlimited" traffic billing.

So the question is: is there any queueing discipline which can limit
maximal speed for any source/destination IP with one rule so that I
would not have to insert clases for each new IP?

For example it would be perfect if I could make something like this:

+ HTB class with from 5 Mbit/s to 5 Mbit/s
  | HTB class with from 1 Mbit/s to 5 Mbit/s prio 2 (for clients without
unlimited traffic)
  | HTB class with from 4 Mbit/s to 5 Mbit/s prio 1 (for clients with
unlimited traffic)
    + {some limit qdisc}
      | max speed limit 128 KBit/s (for 128K unlimited traffic) prio 1
      | max speed limit 256 KBit/s (for 128K unlimited traffic) prio 2
      | max speed limit 512 KBit/s (for 128K unlimited traffic) prio 3

Any hints?

-- 
Покотиленко Костик <casper@xxxxxxxxxxxx>

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

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux