Hello,
I'm trying to build some basic traffic shaper here, and I want to classify tcp packets with ACK flag set. I'm reading LARTC and I see that example there:
Code:
# tc filter add dev ppp14 parent 1:0 prio 10 u32 \
match ip protocol 6 0xff \
match u8 0x10 0xff at nexthdr+13 \
flowid 1:3
Well, here is the filter I'm using and it won't assign any traffic to class 1:212:
Code:
tc filter add dev eth0 protocol ip parent 1: u32 \
match ip protocol 6 0xff \
match u8 0x10 0xff at nexthdr+13 \
classid 1:212
Flowid and classid are the same thing, right?
I'm watching the queues and I never see any traffic in 1:212.
Code:
# tc -s class show dev eth0
class hfsc 1: root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
period 0 level 2
class hfsc 1:212 parent 1:21 sc m1 0bit d 0us m2 3000Kbit ul m1 0bit d 0us m2 8000Kbit
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
period 0 level 0
class hfsc 1:211 parent 1:21 sc m1 0bit d 0us m2 3000Kbit ul m1 0bit d 0us m2 8000Kbit
Sent 6583839 bytes 5738 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 2p requeues 0
period 3274 work 6580811 bytes rtwork 3542314 bytes level 0
class hfsc 1:30 parent 1: sc m1 10000Kbit d 1.0s m2 1000Kbit ul m1 0bit d 0us m2 1000Kbit
Sent 7570 bytes 5 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
period 4 work 7570 bytes rtwork 7570 bytes level 0
class hfsc 1:21 parent 1: sc m1 0bit d 0us m2 8000Kbit
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
period 3274 work 6580811 bytes level 1
Also I'm seeing in Wireshark there are ACK packets passing trough me.
What could I be doing wrong?