Hey @Lynx , i set up your script and everything felt more responsive so great work but there are still wrong marks on the pppoe-wan site the marking on br-lan works.
03:43:24.251710 IP6 (flowlabel 0xaeed1, hlim 63, next-header UDP (17) payload length: 1238) 2001:a62:1437:6a00:450c:5482:3703:2fe6.53651 > fra24s22-in-x0a.1e100.net.443: [udp sum ok] UDP, length 1230
03:43:24.260754 IP6 (class 0x80, hlim 62, next-header UDP (17) payload length: 1238) fra15s29-in-x03.1e100.net.443 > 2001:a62:1437:6a00:450c:5482:3703:2fe6.59385: [udp sum ok] UDP, length 1230
03:43:24.262903 IP6 (flowlabel 0x47470, hlim 63, next-header UDP (17) payload length: 1238) 2001:a62:1437:6a00:450c:5482:3703:2fe6.59385 > fra15s29-in-x03.1e100.net.443: [udp sum ok] UDP, length 1230
03:43:24.331769 IP6 (class 0x80, hlim 62, next-header UDP (17) payload length: 1234) fra24s22-in-x0a.1e100.net.443 > 2001:a62:1437:6a00:450c:5482:3703:2fe6.53651: [udp sum ok] UDP, length 1226
03:43:24.332379 IP6 (class 0x80, hlim 62, next-header UDP (17) payload length: 1238) fra24s22-in-x0a.1e100.net.443 > 2001:a62:1437:6a00:450c:5482:3703:2fe6.53651: [udp sum ok] UDP, length 1230
03:43:24.332379 IP6 (class 0x80, hlim 62, next-header UDP (17) payload length: 1238) fra24s22-in-x0a.1e100.net.443 > 2001:a62:1437:6a00:450c:5482:3703:2fe6.53651: [udp sum ok] UDP, length 1230
03:43:24.332809 IP6 (flowlabel 0xaeed1, hlim 63, next-header UDP (17) payload length: 43) 2001:a62:1437:6a00:450c:5482:3703:2fe6.53651 > fra24s22-in-x0a.1e100.net.443: [udp sum ok] UDP, length 35
03:43:24.333126 IP6 (class 0x80, hlim 62, next-header UDP (17) payload length: 1238) fra24s22-in-x0a.1e100.net.443 > 2001:a62:1437:6a00:450c:5482:3703:2fe6.53651: [udp sum ok] UDP, length 1230
i set everything to cs0 but there is still traffic in the wrong tins
vi /usr/share/nftables.d/ruleset-post/cake-qos-simple.nft
# designate packet for cake tin: bulk
chain dscp_set_bulk {
ip dscp set cs0
}
# designate packet for cake tin: besteffort
chain dscp_set_besteffort {
ip dscp set cs0
}
# designate packet for cake tin: video
chain dscp_set_video {
ip dscp set cs0
}
# designate packet for cake tin: voice
chain dscp_set_voice {
ip dscp set cs0
}
chain store-dscp-in-conntrack {
ip version 4 ct mark set (@nh,8,8 & 252) >> 2
ip6 version 6 ct mark set (@nh,0,16 & 4032) >> 6
ct mark set ct mark or 128
}
After 1 session:
root@OpenWrt:~# tc -s qdisc show dev pppoe-wan
qdisc cake 1: root refcnt 2 bandwidth 6Mbit diffserv4 triple-isolate nat wash ack-filter split-gso rtt 100ms noatm overhead 34 mpu 68
Sent 41666862 bytes 227798 pkt (dropped 58, overlimits 19823 requeues 0)
backlog 0b 0p requeues 0
memory used: 25856b of 4Mb
capacity estimate: 6Mbit
min/max network layer size: 30 / 1492
min/max overhead-adjusted size: 68 / 1526
average network hdr offset: 0
Bulk Best Effort Video Voice
thresh 375Kbit 6Mbit 3Mbit 1500Kbit
target 48.4ms 5ms 6.05ms 12.1ms
interval 143ms 100ms 101ms 107ms
pk_delay 0us 4.97ms 33us 244us
av_delay 0us 602us 2us 25us
sp_delay 0us 13us 2us 12us
backlog 0b 0b 0b 0b
pkts 0 38806 24 189026
bytes 0 6073169 1824 35599175
way_inds 0 262 0 0
way_miss 0 2529 24 93
way_cols 0 0 0 0
drops 0 3 0 0
marks 0 0 0 0
ack_drop 0 55 0 0
sp_flows 0 2 1 0
bk_flows 0 1 0 0
un_flows 0 0 0 0
max_len 0 14920 76 1328
quantum 300 300 300 300
qdisc ingress ffff: parent ffff:fff1 ----------------
Sent 124818347 bytes 283363 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
root@OpenWrt:~#
root@OpenWrt:~# tc -s qdisc show dev ifb-pppoe-wan
qdisc cake 1: root refcnt 2 bandwidth 22Mbit diffserv4 triple-isolate nat nowash ingress no-ack-filter split-gso rtt 100ms noatm overhead 34 mpu 68
Sent 123615828 bytes 282635 pkt (dropped 825, overlimits 95324 requeues 0)
backlog 0b 0p requeues 0
memory used: 254592b of 4Mb
capacity estimate: 22Mbit
min/max network layer size: 28 / 1492
min/max overhead-adjusted size: 68 / 1526
average network hdr offset: 0
Bulk Best Effort Video Voice
thresh 1375Kbit 22Mbit 11Mbit 5500Kbit
target 13.2ms 5ms 5ms 5ms
interval 108ms 100ms 100ms 100ms
pk_delay 15us 576us 47us 168us
av_delay 0us 119us 4us 24us
sp_delay 0us 17us 4us 15us
backlog 0b 0b 0b 0b
pkts 5 58078 50 225327
bytes 260 64171798 2252 60661547
way_inds 0 216 0 0
way_miss 3 2828 48 66
way_cols 0 0 0 0
drops 0 825 0 0
marks 0 0 0 0
ack_drop 0 0 0 0
sp_flows 0 1 0 0
bk_flows 0 2 0 0
un_flows 0 0 0 0
max_len 60 1492 60 1328
quantum 300 671 335 300
root@OpenWrt:~#
Can i experiment with the cake keywords or does that brake something? For example nonat or delete the ingress keyword or add dual-dsthost/dual-srchost, mpu
vi /etc/init.d/cake-qos-simple
# cake-qos-simple configuration options:
ul_if=pppoe-wan # upload interface
dl_if="" # download interface override (normally left blank and IFB derived for $ul_if ingress)
cake_ul_rate_Mbps=6 # cake upload rate in Mbit/s
cake_dl_rate_Mbps=22 # cake download rate in Mbit/s
cake_ul_options="diffserv4 triple-isolate nat wash ack-filter noatm overhead 34 mpu 68"
cake_dl_options="diffserv4 triple-isolate nat nowash ingress no-ack-filter noatm overhead 34 mpu 68"
overwrite_ecn_val_ul=0 # overwrite existing ecn bits with decimal value (e.g. 0, 1, 2, 3), else "" to disable
overwrite_ecn_val_dl=0 # overwrite existing ecn bits with decimal value (e.g. 0, 1, 2, 3), else "" to disable
# end of cake-qos-simple configuration options
And what does that do? It looks like my windows marking works without it.
Setting DSCPs in Microsoft Windows Based LAN Clients
If using Microsoft Windows, DSCPs can be set at the application level by creating the registry key 'QoS' (it not present) as in:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\QoS\
And then creating the string "Do not use NLA" inside the QoS key with value "1"