Skip to contentSkip to conversation

cbq parameters

LARTC Leandro Stasi 3 participants 4 messages May 30, 2002 – May 31, 2002

lore
Share & tools
lore
#0 lore raw

If I create a cbq qdisc as a leaf of a cbq class, the bandwith rate is the same of the root cbq qdisc or the rate of the cbq class?

Does exist the parameter rate on the "tc qdisc add" for cbq command?

tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10mbit avpkt 1000 cell 8

tc class add dev eth0 parent 1:0 classid 1:3 cbq bandwidth 10mbit rate 50kbit allot 1514 cell 8 maxburst 20 avpkt 1000 isolated bounded

tc qdisc add dev eth0 parent 1:3 handle 3:0 cbq bandwidth 10mbit rate 50kbit avpkt 1000 cell 8

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 2 lines · Leandro Stasi

If I create a cbq qdisc as a leaf of a cbq class, the bandwith rate is the same of the root cbq qdisc or the rate of the cbq class?

It's not recommended to add a cbq qdisc on a cbq class. It's better to bound the first class and add the class to the bounded class in stead of adding a second qdisc. Cbq (and htb) are not made (designed) to be attached on a leaf class.

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Leandro Stasi

only note, as of HTB 3.6 it detects non-work conserving discipline as leaf and should work ok (only will eat more cpu). devik

Quoted 12 lines · Stef Coene
Quoted 2 lines · Leandro Stasi

If I create a cbq qdisc as a leaf of a cbq class, the bandwith rate is the same of the root cbq qdisc or the rate of the cbq class?

It's not recommended to add a cbq qdisc on a cbq class. It's better to bound the first class and add the class to the bounded class in stead of adding a second qdisc. Cbq (and htb) are not made (designed) to be attached on a leaf class.

Stef

--

Quoted 9 lines

[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/