before I save/install new change.. is the prio 2 correct for this rule? that also a little unclear for me as I notice half of them you have in there are prio 15 particularly the other google/apple rules you've added made me curious.
Ahh you noticed!
So what happens is that every packet gets checked against the rule list in TC from top to bottom3
So it goes
Pref1) Is this LAN
Pref2) Is this Unidentified
Pref3) Is it VOIP <--- this is an exception, but idea is to immediately identify this traffic
Pref4) Is it P2P
Pref6) Is it Web Downloads
Pref7) Is it Streaming
The idea is the sort traffic with the least ammount of questions, as each question uses CPU power and takes a finite amount of time. The most efficient way to ask the question to ask them by most commonly to least common statistically observed traffic.
For custom rules, its better most ideal to make the prio (1) less than the original rule.
The original rules are available by
"tc filter show dev br0 | grep "flowid" -A1"
Here's an unmolested copy free from custom rules.
Code:
filter parent 1: protocol all pref 1 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:2
mark 0x0000 0xc0000000
--
filter parent 1: protocol all pref 2 u32 fh 825::804 order 2052 key ht 825 bkt 0 flowid 1:17
mark 0x80000000 0x8000ffff
--
filter parent 1: protocol all pref 3 u32 fh 803::800 order 2048 key ht 803 bkt 0 flowid 1:11
mark 0x80000000 0xc03f0000
--
filter parent 1: protocol all pref 4 u32 fh 822::800 order 2048 key ht 822 bkt 0 flowid 1:16
mark 0x80010000 0xc03f0000
--
filter parent 1: protocol all pref 6 u32 fh 823::800 order 2048 key ht 823 bkt 0 flowid 1:16
mark 0x80030000 0xc03f0000
--
filter parent 1: protocol all pref 7 u32 fh 821::800 order 2048 key ht 821 bkt 0 flowid 1:15
mark 0x80040000 0xc03f0000
--
filter parent 1: protocol all pref 8 u32 fh 804::800 order 2048 key ht 804 bkt 0 flowid 1:11
mark 0x80050000 0xc03f0000
--
filter parent 1: protocol all pref 9 u32 fh 805::800 order 2048 key ht 805 bkt 0 flowid 1:11
mark 0x80060000 0xc03f0000
--
filter parent 1: protocol all pref 10 u32 fh 809::800 order 2048 key ht 809 bkt 0 flowid 1:13
mark 0x80070000 0xc03f0000
--
filter parent 1: protocol all pref 11 u32 fh 808::800 order 2048 key ht 808 bkt 0 flowid 1:12
mark 0x80080000 0xc03f0000
--
filter parent 1: protocol all pref 12 u32 fh 802::800 order 2048 key ht 802 bkt 0 flowid 1:10
mark 0x80090000 0xc03f0000
--
filter parent 1: protocol all pref 13 u32 fh 80a::800 order 2048 key ht 80a bkt 0 flowid 1:13
mark 0x800a0000 0xc03f0000
--
filter parent 1: protocol all pref 14 u32 fh 80b::800 order 2048 key ht 80b bkt 0 flowid 1:13
mark 0x800b0000 0xc03f0000
--
filter parent 1: protocol all pref 15 u32 fh 820::800 order 2048 key ht 820 bkt 0 flowid 1:15
mark 0x800c0000 0xc03f0000
--
filter parent 1: protocol all pref 16 u32 fh 81e::800 order 2048 key ht 81e bkt 0 flowid 1:14
mark 0x800d0000 0xc03f0000
--
filter parent 1: protocol all pref 17 u32 fh 824::800 order 2048 key ht 824 bkt 0 flowid 1:16
mark 0x800e0000 0xc03f0000
--
filter parent 1: protocol all pref 18 u32 fh 806::800 order 2048 key ht 806 bkt 0 flowid 1:11
mark 0x800f0000 0xc03f0000
--
filter parent 1: protocol all pref 20 u32 fh 807::800 order 2048 key ht 807 bkt 0 flowid 1:11
mark 0x80110000 0xc03f0000
--
filter parent 1: protocol all pref 21 u32 fh 801::800 order 2048 key ht 801 bkt 0 flowid 1:10
mark 0x80120000 0xc03f0000
--
filter parent 1: protocol all pref 22 u32 fh 826::800 order 2048 key ht 826 bkt 0 flowid 1:14
mark 0x80130000 0xc03f0000
--
filter parent 1: protocol all pref 23 u32 fh 827::800 order 2048 key ht 827 bkt 0 flowid 1:14
mark 0x80140000 0xc03f0000
--
filter parent 1: protocol all pref 24 u32 fh 80c::800 order 2048 key ht 80c bkt 0 flowid 1:13
mark 0x80150000 0xc03f0000
--
filter parent 1: protocol all pref 26 u32 fh 80d::800 order 2048 key ht 80d bkt 0 flowid 1:13
mark 0x80170000 0xc03f0000
--
filter parent 1: protocol all pref 27 u32 fh 81f::800 order 2048 key ht 81f bkt 0 flowid 1:14
mark 0x80180000 0xc03f0000
--
I was thinking of compiling a table for most optimal prio depending on where it came from the DB but I didn't know if anyone would be making custom rules.
Technically all custom rules as prio2 will work, but why be wasteful.
When I was redirecting "Speedtest/GooglePlay/AppStore" they were originally 0x800D.
0x800D is a PREF16 question.
Since I wanted to ask my question before, I inserted by question at PREF15.