Re: [LARTC] CBQ question

Linux Advanced Routing and Traffic Control

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

 



> It seems that configuration like
>       qdisc(CBQ)
>        |
>      class
>    | |
>  class1   class2
>  bounded  bounded
>
> doesn't work perfect.The more stable ( accurate ) configuration would be
>     qdisc(cbq) 1:0
> |
>     class 1:1
> |
>     qdisc(cbq) 2:0
>     |          |
>   class 2:1  class 2:2
>     |
>   qdisc(tbf) 3:0
> Now when class 2:1 have rate 10Mbit and class 2:2 = 70Mbit
> i can have 9.05 and 72.774
>

I want to do it and make a config

----------------------------------------------------------------------------
--------------------
BANDWIDTH="bandwidth 10Mbit"
RATE="rate 2Mbit"
DEV="dev eth1"
AVP="avpkt 1000"

tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP

tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
bounded

tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP

tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
bounded


tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
$IP flowid 20:1
----------------------------------------------------------------------------
--------------------
but it's not active....the bandwidth is still 10Mbit....
Is my config's error?????




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