Article 4XECT TC / QoS issue

TC / QoS issue

by
infinisean
from LinuxQuestions.org on (#4XECT)
Hello all,

I am trying to get QoS working on my home, linux router/firewall but I hitting a brick wall.
I started with a single rule that is attempting to put all traffic from a specific source IP (my voip phone) into the highest priority queue / class.
The issue is, while the iptables "mark" rule is incrementing as expected, the corresponding tc class is not incrementing its sent packet count as I would expect.

Please take a look at these info below and point me in the right direction.
My tc experience is ok (not great but not terrible) and it looks to me like this should be working as it is, but I am clearly missing something (probably something painfully obvious).

IPTables:

(NOTE: this is automatic placement by the "clearos" bandwidth an QoS manager but I also tried putting the target rule in the "prerouting" chain and the result was the same)

Chain POSTROUTING (policy ACCEPT 157K packets, 275M bytes)
pkts bytes target prot opt in out source destination
98314 6348K BWQOS_UP_enp1s0 all -- * enp1s0 0.0.0.0/0 0.0.0.0/0

Chain BWQOS_UP_enp1s0 (1 references)
pkts bytes target prot opt in out source destination
101 23655 MARK all -- * * 192.168.111.10 0.0.0.0/0 MARK set 0xa

101 packets have hit the rule so they should be marked with 0xa...

tc filters:

[root@gateway ~]# tc filter show dev enp1s0
filter parent 1: protocol all pref 49145 u32 chain 0
filter parent 1: protocol all pref 49145 u32 chain 0 fh 800: ht divisor 1
filter parent 1: protocol all pref 49145 u32 chain 0 fh 800::800 order 2048 key ht 800 bkt 0 terminal flowid ??? not_in_hw
match 00000000/00000000 at 0
action order 1: mirred (Egress Redirect to device ifb0) stolen
index 1 ref 1 bind 1

filter parent 1: protocol ip pref 49146 fw chain 0
filter parent 1: protocol ip pref 49146 fw chain 0 handle 0x10 classid 1:16
filter parent 1: protocol ip pref 49147 fw chain 0
filter parent 1: protocol ip pref 49147 fw chain 0 handle 0xf classid 1:15
filter parent 1: protocol ip pref 49148 fw chain 0
filter parent 1: protocol ip pref 49148 fw chain 0 handle 0xe classid 1:14
filter parent 1: protocol ip pref 49149 fw chain 0
filter parent 1: protocol ip pref 49149 fw chain 0 handle 0xd classid 1:13
filter parent 1: protocol ip pref 49150 fw chain 0
filter parent 1: protocol ip pref 49150 fw chain 0 handle 0xc classid 1:12
filter parent 1: protocol ip pref 49151 fw chain 0
filter parent 1: protocol ip pref 49151 fw chain 0 handle 0xb classid 1:11
filter parent 1: protocol ip pref 49152 fw chain 0
filter parent 1: protocol ip pref 49152 fw chain 0 handle 0xa classid 1:10 (0xa = 1:10)

tc classes

[root@gateway ~]# tc -s -g class show dev enp1s0
+---(1:1) htb rate 6Mbit ceil 6Mbit burst 1599b cburst 1599b
| Sent 3603838 bytes 46262 pkt (dropped 0, overlimits 0 requeues 0)
| backlog 0b 0p requeues 0
|
+---(1:11) htb prio 1 rate 900Kbit ceil 6Mbit burst 1599b cburst 1599b
| Sent 48468 bytes 730 pkt (dropped 0, overlimits 0 requeues 0)
| backlog 0b 0p requeues 0
|
+---(1:10) htb prio 0 rate 900Kbit ceil 6Mbit burst 1599b cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| backlog 0b 0p requeues 0
|
+---(1:13) htb prio 3 rate 840Kbit ceil 6Mbit burst 1599b cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| backlog 0b 0p requeues 0
|
+---(1:12) htb prio 2 rate 840Kbit ceil 6Mbit burst 1599b cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| backlog 0b 0p requeues 0
|
+---(1:15) htb prio 5 rate 840Kbit ceil 6Mbit burst 1599b cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| backlog 0b 0p requeues 0
|
+---(1:14) htb prio 4 rate 840Kbit ceil 6Mbit burst 1599b cburst 1599b
| Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
| backlog 0b 0p requeues 0
|
+---(1:16) htb prio 6 rate 840Kbit ceil 6Mbit burst 1599b cburst 1599b
Sent 3555370 bytes 45532 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0

All traffic is defaulting to 1:16 and nothing is hitting 1:10, which is what I expect it should be doing.

Any assistance will be greatly appreciated.

Thanks!latest?d=yIl2AUoC8zA latest?i=29oUqGV6DpU:l_SSChyldlw:F7zBnMy latest?i=29oUqGV6DpU:l_SSChyldlw:V_sGLiP latest?d=qj6IDK7rITs latest?i=29oUqGV6DpU:l_SSChyldlw:gIN9vFw29oUqGV6DpU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments