[LARTC] CBQ inaccuracy

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have found CBQ to be very inaccurate (as others on the list)

I have created a structure as follow

  Root  (10mbit)
   |
  CBQ class (bandwidth=1mbit, rate=10mbit)
   |
  CBQ qdisc (bandwidth=1mbit)

Now when i send excess data to the tune of 1.3mbit, cbq lets it thru.
If i increase it beyond that, CBQ suddenly wakes up and throttles it down 
to about 0.8Mbit!

Are there any explanations? If i am sending fixed size packets, should i 
set the 'avpkt' to that size?

I havent even able to use HTB correctly since a small burst size kills my 
thruput.

Any ideas about CBQ/HTB or anything which will throttle my bandwidth to 
1Mbit accurate *and* allow me to create qdiscs within. (Hence TBF is ruled 
out). My HTB script is given below i am no clue why it doesnt work.
 
-----------------------------------------------------------------------
BANDWIDTH="bandwidth 10Mbit"
LIMITBW="1Mbit"

$TC qdisc add $DEVICE root handle 1: htb

# This HTB class rate limits everyting to 1Mbit
$TC class add $DEVICE parent 1: classid 1:1 htb rate $LIMITBW ceil 
$LIMITBW burst 2k
----------------------------------------------------------------------
-- 
The statement below is true.
The statement above is false.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
         University of Kansas @ Lawrence
   (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux