[LARTC] Problems with tc filter (getting packets into a CBQ)

Linux Advanced Routing and Traffic Control

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

 



Hi,

I'm having trouble getting traffic into the desired CBQ..

Here is my simple configuration:

tc qdisc del dev eth0 root 2> /dev/null
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 10Mbit \
	avpkt 1200 cell 8

tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit \
	rate 2Mbit weight 0.2Mbit prio 8 allot 1514 cell 8 \
	maxburst 20 avpkt 1200

tc class add dev eth0 parent 1:1 classid 1:100 cbq bandwidth 2Mbit \
	rate 130Kbit weight 13Kbit prio 8 allot 1514 cell 8 \
	maxburst 20 avpkt 1200

tc qdisc add dev eth0 parent 1:100 tbf rate 128Kbit buffer 10Kb/8 \
	limit 15Kb mtu 1500

tc filter add dev eth0 parent 1:0 protocol ip prio 1 \
	u32 match ip sport 119 0xffff flowid 1:100 \


But no traffic shows up.... (A simple telnet news.giganews.com 119 to
test):

lum:/home/edwin# tc -s qdisc
qdisc tbf 8036: dev eth0 rate 128Kbit burst 10Kb lat 381.5ms 
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 

qdisc cbq 1: dev eth0 rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 913009 bytes 12538 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 749 undertime 0

qdisc tbf 8016: dev eth0 rate 128Kbit burst 10Kb lat 381.5ms 
 Sent 14954 bytes 202 pkts (dropped 0, overlimits 0) 

lum:/home/edwin# tc -s class show dev eth0
class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 428 bytes 7 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 749 undertime 0
class cbq 1:100 parent 1:1 leaf 8038: rate 130Kbit prio no-transmit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 1.57035e+06 undertime 0
class cbq 1:1 parent 1: rate 2Mbit prio no-transmit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 85149 undertime 0


I've also tried marking packets in iptables and using tc to filter those
packets into both flowid and classid 1:100 to no avail.

Thanks in advance.

-- 
Edwin Chiu                                   | ICBM: 43.39N 79.23W
edwin@xxxxxxxxxxxxxx                         | PGP:  1024D/0x16B55226



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