From: "Покотиленко Костик" <casper@meteor.dp.ua>
To: netfilter@vger.kernel.org
Subject: Per IP maximal speed limit inside HTB class
Date: Wed, 16 Jan 2008 13:30:46 +0200 [thread overview]
Message-ID: <1200483046.5107.17.camel@casper2.meteor.dp.ua> (raw)
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@meteor.dp.ua>
next reply other threads:[~2008-01-16 11:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-16 11:30 Покотиленко Костик [this message]
2008-01-16 16:04 ` Per IP maximal speed limit inside HTB class Dzianis Kahanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1200483046.5107.17.camel@casper2.meteor.dp.ua \
--to=casper@meteor.dp.ua \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox