[LARTC] CBQ Traffic control not working

Linux Advanced Routing and Traffic Control

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

 



Hi everybody,

I'm new to this list, so I appologize if a similar case has been covered already...
I have the configuration attached below...
The problem is that my traffic control doesn't work at all...
Clients from any of the private networks manage to download even with
256Kbits from the Internet...
The case is stranger because if I reboot the linux box, for a few minutes
the traffic shapping seems to work... I mean from a machine in subnet 192.168.1.8/29
I download with 16-20Kbits... but not always (most often I get at least 128Kbps).

A second question would be who has a higher priority:
a PC from a prio 8 class filtered by a prio 3 filter, or
a PC from a prio 3 class filtered by a prio 8 filter?

I'm open for further details if neccessary...

Thank you in advance,
MT


################################################
# MY ARCHITECTURE
################################################

INTERNET <--> eth0 (1.2.3.4)--SuSE 7.1 (kernel 2.2)--eth1 (192.168.0.0/16) <--> hub


################################################
# MY FIREWALL (extras)
################################################
#marking packets for traffic control
ipchains -A output -p all -s 192.168.1.0/30 -m 1
ipchains -A output -p all -s 192.168.1.8/29 -m 2
ipchains -A output -p all -s 192.168.2.0/27 -m 3
 ... other several subnetworks here ... marks -m 4 5 6


################################################
# MY TRAFFIC CONTROL POLICIES
################################################
# root qdisc and class
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 1000 mpu 64
tc class add dev eth0 parent 1: classid 1:1 cbq bandwidth 10Mbit rate 72Kbit weight
7.2Kbit prio 8 allot 1514 maxburst 20 avpkt 1000 bounded

# class for mark 1
tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 14Kbit allot
1514 cell 8 weight 1.4Kbit prio 8 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 8 handle 1 fw classid 1:2

# class for mark 2
tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit rate 44Kbit allot
1514 cell 8 weight 4.4Kbit prio 3 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 2 fw classid 1:3

# class for mark 3
tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth 10Mbit rate 44Kbit allot
1514 cell 8 weight 4.4Kbit prio 8 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 8 handle 3 fw classid 1:4

# class for marks 4, 5, 6
tc class add dev eth0 parent 1:1 classid 1:6 cbq bandwidth 10Mbit rate 28.8Kbit allot
1514 cell 8 weight 2.88Kbit prio 3 maxburst 20 avpkt 1000 split 1:0 bounded
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 4 fw classid 1:6
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 5 fw classid 1:6
tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 6 fw classid 1:6






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