From: Rudi Starcevic <tech@wildcash.com>
To: lartc@vger.kernel.org
Subject: [LARTC] TC not rate limiting for me
Date: Wed, 02 Nov 2005 13:43:22 +0000 [thread overview]
Message-ID: <4368C27A.4030206@wildcash.com> (raw)
Hi,
I've have my IP and TC scripts working OK but my rate limiting
does not seem to be being appiled.
My available download speed is around 150kbps.
I'd like to limit this box and the machines it forwards for
to 10kbps each, a total of 20kbps. Thus leaving 130kbps unused.
The classes I've created are simple and the stats show they
are moving bytes OK, however; the entire 150kbps is
always used.
Is this odd? Have I missed something in my simple
classes below?
tc qdisc add dev eth1 root handle 1: htb default 12
tc class add dev eth1 parent 1: classid 1:1 htb rate 20kbps ceil 20kbps
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 10kbps ceil 20kbps
tc class add dev eth1 parent 1:1 classid 1:12 htb rate 10kbps ceil 20kbps
tc filter add dev eth1 parent 1:0 prio 0 protocol ip handle 22 fw flowid
1:10
iptables -t mangle -A PREROUTING -p tcp -s 192.168.3.110 -j MARK
--set-mark 22
[stats]
class htb 1:1 root rate 160000bit ceil 160000bit burst 1799b/8 mpu 0b
overhead 0b cburst 1799b/8 mpu 0b overhead 0b level 7
Sent 1957552 bytes 28162 pkts (dropped 0, overlimits 0)
rate 3672bit 7pps
lended: 0 borrowed: 0 giants: 0
tokens: 89703 ctokens: 89703
class htb 1:10 parent 1:1 leaf 20: prio 0 quantum 1000 rate 80000bit
ceil 160000bit burst 1699b/8 mpu 0b overhead 0b cburst 1799b/8 mpu 0b
overhead 0b level 0
Sent 668860 bytes 9984 pkts (dropped 0, overlimits 0)
lended: 9984 borrowed: 0 giants: 0
tokens: 167527 ctokens: 88884
class htb 1:12 parent 1:1 leaf 30: prio 0 quantum 1000 rate 80000bit
ceil 160000bit burst 1699b/8 mpu 0b overhead 0b cburst 1799b/8 mpu 0b
overhead 0b level 0
Sent 1288692 bytes 18178 pkts (dropped 0, overlimits 0)
rate 3672bit 7pps
lended: 18178 borrowed: 0 giants: 0
tokens: 169165 ctokens: 89703
Thanks.
Regards,
Rudi.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
reply other threads:[~2005-11-02 13:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4368C27A.4030206@wildcash.com \
--to=tech@wildcash.com \
--cc=lartc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.