I finally found a time slot that allowed me to swap routers. I can confirm, that my qos integration in webif works for both pppoe and regular wan. I need to adopt the script in order to correctly set the interface, in case someone selects pppoe as wan interface in qos. Qos results are ok for now, but there is room for improvement.
Wifi offloading still needs to be figured out. If offloads a small bit. NSS is successfully offloading SQM & wired routing (940mbps is now possible).
Regarding the NSS firewall - the iptables commands deletes the default bridge to the physical device and inserts a new bridge to the physical device with the parameter 1 (....don’t know what the 1 signifies, somehow is connecting the virtual NSS interface with the physical device?)
I’ve been trying the performance governor to see what my temps look like with max frequency NSS + main CPU.
The L2 issues have been fixed so you can delete the sleep 1 line. The default is ondemand so you can delete those lines as well.
This is my /etc/rc.local file:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
# Ondemand Governor Tweaks
# echo 800000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
# echo 800000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
# echo 20 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
# echo 60 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
# echo 1000000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
# Performance Governor
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo performance > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
# NSS Firewall Tweaks
iptables -D FORWARD -m physdev --physdev-is-bridged -j ACCEPT
iptables -I FORWARD 1 -m physdev --physdev-is-bridged -j ACCEPT
# Shape ingress traffic to 500 Mbit with chained NSSFQ_CODEL
# tc qdisc add dev nssifb root handle 1: nsstbl rate 500Mbit burst 1Mb
# tc qdisc add dev nssifb parent 1: handle 10: nssfq_codel limit 10240 flows 1024 quantum 1514 target 5ms interval 100ms set_default
# Shape egress traffic to 34 Mbit with chained NSSFQ_CODEL
tc qdisc add dev eth0 root handle 1: nsstbl rate 34Mbit burst 1Mb
tc qdisc add dev eth0 parent 1: handle 10: nssfq_codel limit 10240 flows 1024 quantum 1514 target 5ms interval 100ms set_default
Yep - I have FQ Codel offloaded to the NSS if I choose. Currently I have some bufferbloat issues on the upload for my asymmetric 940/35 internet. Setting the egress to 34 works well. Download fq codel is turned off and getting full line rate
My wan is ~120/12 mbit (pppoe), I am getting full speeds over ethernet, but only 10/12 on wifi (both 2.4/5ghz, different devices - win10 laptops). I was getting full speeds also on wifi on the stock firmware before.
Things I did after I flashed openwrt (factory with tftp, so no old settings carried over):
added some static dhcp leases + forwarded 5 ports,
set wan pppoe login/pwd and dns to 220.127.116.11 i 18.104.22.168 (only on wan interface, not sure if that's the proper place if I want all the clients to use these dns)
then I set identical ssid for 2.4 i 5ghz, with the same password, security "WPA2-PSK/WPA3 SAE Mixed Mode", channel "auto", ("40 mhz" width on 2.4ghz) and checked the "802.11r Fast Transition" checkbox (I've read somewhere it might help with automatic switching between 2.4 & 5 depending on the signal strength)
added additional "guest" ssid on 2.4 ghz with different name and security set to "WPA2-PSK" and checked "Advanced Settings -> Isolate Clients"
...and that's it, I didn't touch other settings (e.g. firewall or qos)
I thought, maybe WPA3 is slowing things down? So then I set the security to "WPA2-PSK" for all ssids, then I turned off "802.11r", then I turned off all ssids except the main 2.4ghz (5ghz also turned off), manually set channel 6 on 2.4ghz, 20mhz width... but none of these steps helped anything.
Download speed is still ~10mbps
Also: wifi<->lan transfers are just as slow (wifi to a NAS on ethernet) - so WAN connection is out of the equation. Measured 10mbps download / 25mbps upload.
What could be wrong? Should I try flashing the latest stable release instead?
The NSS build has similar wifi performance to master.
I’d have a separate SSID for 2.4ghz and 5ghz. 2.4 ghz has tons of interference problems, a narrow bandwidth, and is less than desirable for anything beyond simple IoT connections. If you are looking for optimal performance- I’d eliminate the guest virtual wifi interface.
Virtual wifi interfaces have been causing big performance issues.
@ACwifidude it indeed goes full speed when only 5ghz is enabled.
Something in my case is force limiting the speed of 2.4ghz, even if it's the only ssid enabled (guest ssid removed, 5ghz disabled) and capping the speed down to ~10 mbps. Very weird.
Like I said it was going full speed on 2.4 on the stock r7800 firmware and also on my previous tp-wr1043nd v2 router on old openwrt/gargoyle v1.10... so the environmental interference could not go that bad all of sudden I hope it's "only" a matter of some (unknown to me) config toggle.
Well, I still can try flashing another build (e.g. kong, release) and I will report back.
OEM wifi is NSS accelerated so it’ll get a little more performance. I’d make your ondemand settings more aggressive or run the performance governor to have your main CPU at max performance for testing.
Below are my 2.4ghz settings. Performance Specifics- have it to 20mhz channel (few devices support 40mhz in the 2.4ghz spectrum), have it set to the channel with the least interference (pick - 1,6,11), turned legacy rates off, and running psk2+Forced AES.