* [LARTC] 2 subclasses use more bandwidth then the rootclass has been allocated
@ 2002-06-17 12:23 Arne Van Theemsche
2002-06-17 14:38 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Arne Van Theemsche @ 2002-06-17 12:23 UTC (permalink / raw)
To: lartc
Hi
I have the rootdevice allocated 512k bandwidth (with the htb qdisc), then
I have 2 subclasses each 384k (1 ceiled to 384k, 1 burstable to 512k).
both work fine, but the problem is, that when they both start a download,
they both get 384k, together more then 512k (the rate of the root-class)
this is my setup
./tc qdisc add dev eth1 root handle 1: htb default 30
./tc class add dev eth1 parent 1: classid 1:1 htb rate 512kbit ceil 512kbit burst 15k
./tc class add dev eth1 parent 1:1 classid 1:10 htb rate 384kbit ceil 512kbit burst 15k
./tc class add dev eth1 parent 1:1 classid 1:20 htb rate 384kbit ceil 384kbit burst 15k
./tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
./tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10
./tc filter add dev eth1 parent 1: protocol ip prio 1 handle 1 fw classid 1:10
./tc filter add dev eth1 parent 1: protocol ip prio 1 handle 2 fw classid 1:20
I mark my packets with iptables (which works just fine, limitting both
classes to the amount given)
I tried a similar setup with cbq, resulting in the same effect
I use 2.4.18 (self-compiled), with the htb (v2) module attached to it, on
a redhat 7.2, the tc-binarie is htb-aware, but i don't think this is the
problem, since when i use the cbq-class, i use the original tc binarie
included in redhat 7.2
does anybody has a clue?
thx
Arne
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-17 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-17 12:23 [LARTC] 2 subclasses use more bandwidth then the rootclass has been allocated Arne Van Theemsche
2002-06-17 14:38 ` Stef Coene
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.