Skip to contentSkip to conversation

rate precision of CBQ

LARTC Franck BALAZOT 2 participants 2 messages Jul 17, 2001

lore
Share & tools
lore
#0 lore raw

Hi all,

I have managed some CBQ class like :

tc class add dev eth0 parent 10:1 classid 10:100 cbq bandwidth 1920KBit rate 784 KBit allot 1514 weight 1 Kbit prio 8 maxburst 20 avpkt 1000 bounded

It works fine, but I noticed that the rate precision is not very good (despite the bounded parameter) :

784 kBit => 96 KBytes/s (theoric) but 130-140 KBytes/s in reality 512 kBit => 64 KBytes/s (theoric) but 80-90 KBytes/s in reality 256 kBit => 32 KBytes/s (theoric) but 33-34 KBytes/s in reality

At low rate (< 256k), it seems good but not at higher rate.

Is this problem coming from my parameters (weight, prio, ...) or is it a known problem with CBQ ?

regards,
------------------------------------------------
Franck BALAZOT ([email protected])
AETA.COM
361, Avenue du Général De Gaulle
92140 CLAMART
FRANCE
Tél:01.41.36.12.93
------------------------------------------------

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

#1 lore raw
Quoted 15 lines · Franck BALAZOT

Hi all,

I have managed some CBQ class like :

tc class add dev eth0 parent 10:1 classid 10:100 cbq bandwidth 1920KBit rate 784 KBit allot 1514 weight 1 Kbit prio 8 maxburst 20 avpkt 1000 bounded

It works fine, but I noticed that the rate precision is not very good (despite the bounded parameter) :

784 kBit => 96 KBytes/s (theoric) but 130-140 KBytes/s in reality 512 kBit => 64 KBytes/s (theoric) but 80-90 KBytes/s in reality 256 kBit => 32 KBytes/s (theoric) but 33-34 KBytes/s in reality

Quoted 6 lines

At low rate (< 256k), it seems good but not at higher rate.

Is this problem coming from my parameters (weight, prio, ...) or is it a known problem with CBQ ?

Try using tbf or something as a leaf qdisc.

Marian Jancar

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