[LARTC] CBQ seems not to be working...

Linux Advanced Routing and Traffic Control

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

 



Hello,

     Could someone help me on this? I have the following configuration on
on gateway:

900Kbit/s for fw mark 2 (all traffic, except...) bounded
1100Kbit/s for fw mark 1 (mail and dns) bounded

     But I can see the I have almost no traffic on fw mark 2, even though
the traffic on the output wan link is getting almost to 2Mbit/s.

     This is the configuration:

/usr/local/sbin/tc qdisc add dev eth0 root handle 10: cbq bandwidth 2Mbit
avpkt 1000
/usr/local/sbin/tc class add dev eth0 parent 10:0 classid 10:1 cbq
bandwidth 2Mbit rate 2Mbit allot 1518 weight 50Kbit prio 8 maxburst 20
avpkt 1000
/usr/local/sbin/tc class add dev eth0 parent 10:1 classid 10:100 cbq
bandwidth 2Mbit rate 1100Kbit allot 1518 weight 50Kbit prio 5 maxburst 20
avpkt 1000 bounded
/usr/local/sbin/tc class add dev eth0 parent 10:1 classid 10:10 cbq
bandwidth 2Mbit rate 900Kbit allot 1518 weight 50Kbit prio 5 maxburst 20
avpkt 1000  bounded
/usr/local/sbin/tc filter add dev eth0 protocol ip parent 10:0 prio 100
handle 1 fw flowid 10:100
/usr/local/sbin/tc filter add dev eth0 protocol ip parent 10:0 prio 10
handle 2 fw flowid 10:10

Am I missing something here?

I would appreciate any help. Thanks!

Forster




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