[LARTC] cbq and htb working together...

Linux Advanced Routing and Traffic Control

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

 



On Thu, Feb 13, 2003 at 11:33:33PM +0100, Stef Coene wrote:
> On Thursday 13 February 2003 22:55, Michal Kustosik wrote:
> > Is it possible to use cbq and htb together on one dev?
> >
> > something like this:
> >
> > [...]
> > $TC qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000
> >
> > $TC class add dev eth0 parent 1:0 classid 1:10 cbq bandwidth 100Mbit \
> >     rate 100Mbit weight 10Mbit prio 8 allot 1514 cell 8 maxburst 5 avpkt
> > 1000 bounded $TC qdisc add dev eth0 parent 1:10 htb default 100
> >
> > $TC class add dev eth0 parent 1:10 classid 1:100 htb rate 128kbit ceil
> > 128kbit prio 3 $TC class add dev eth0 parent 1:10 classid 1:200 htb rate
> > 128kbit ceil 128kbit prio 2 $TC class add dev eth0 parent 1:10 classid
> > 1:300 htb rate 128kbit ceil 128kbit prio 1 [...]
> >
> > but it does't work :(
> What's not working?
> And why the hell would you try that ?  :)
> 

it's working... 

[...]
$TC qdisc add dev eth0 root handle 1: cbq bandwidth 100Mbit avpkt 1000

$TC class add dev eth0 parent 1: classid 1:1 cbq bandwidth 100Mbit \
    rate 128kbit weight 12.8kbit prio 5 allot 1514 cell 8 maxburst 5 avpkt 1000 bounded

$TC qdisc add dev eth0 parent 1:1 handle 100: htb
$TC class add dev eth0 parent 100: classid 100:1 htb rate 100kbit 
$TC class add dev eth0 parent 100:1 classid 100:10 htb rate 50kbit ceil 100kbit prio 1
$TC class add dev eth0 parent 100:1 classid 100:20 htb rate 50kbit ceil 100kbit prio 1
[...]

so... I just test diferent combination :))

-- 
/kustosz


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