What's new

FlexQoS FlexQoS 1.3.2 - Flexible QoS Enhancement Script for Adaptive QoS

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Status
Not open for further replies.
Having issues on TUFAX5400.
Gnuton Firmware

Jul 25 08:04:21 custom_script: Running /jffs/scripts/service-event-end (args: restart qos)
Jul 25 08:04:21 custom_script: Running /jffs/scripts/firewall-start (args: eth4)
Jul 25 08:04:21 custom_script: Running /jffs/scripts/service-event-end (args: restart firewall)
Jul 25 08:04:22 FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=1883) called in unattended mode with 1 args: -start
Jul 25 08:04:22 FlexQoS: Applying iptables static rules
Jul 25 08:04:22 FlexQoS: Applying iptables custom rules
Jul 25 08:04:23 FlexQoS: Flushing conntrack table
Jul 25 08:04:25 FlexQoS: Applying AppDB rules and TC rates
 
Hello guys, maybe someone can clarify the following issue for me. So , on my AC86U, last firmware 386.7_2 (ignore the sig, need to update it), If I do not use the FlexQos (or any Qos at all) my speedtest speed are almost with my advertised connection 1000 Mb down / 1000 Mb up.

1658772569237.png


But then I face this strange issue, when I start some games if I have some youtube running in the background the image freezes while the sound still goes on, like the game is using all the bandwidth. Annoying ... at least, so I tried FlexQos and after some fiddling with the bandwidth this annoying issue went away. This is my current config

1658772481978.png


But now when I do a speedtest now it shows only around 80 Mb .

1658772694715.png


Plus as you can see from the above pic with only youtube 4k and a twitch video running all traffic falls under gaming and other instead of Video and streaming as I would expected. Not sure what am I doing wrong. Are my expectations unrealistic?

Thank you for your feedback
 
I believe that this is the same on all ASUS AX routers. It certainly applies to my RT-AX56U and RT-AX68U.

With Flow Cache enabled, I can have some linux distro uploads going, but FlexQOS has no clue how much bandwidth is going through the router. There's ping spikes galore... a few nights ago I got roughly 280 alerts from connmon. I dropped the limits in QOS, but it had no effect, because a lot of data seems to bypass QOS entirely.
View attachment 41528

View attachment 41529

Then I checked, reapplied fc disable, and all the symptoms go away. Plus the graph shows properly again and the numbers add up.

That should be a recommended/required step, mentioned while installing. It's frustrating for novices to figure out, and seems to apply to enough router models that it warrants mentioning. Perhaps even automatically enabling it, if speeds are under 100mbit or so.

With fc disable web responsiveness with torrents going has significantly improved.

THANK YOU - disabling fc finally fixed my download being throttled. Given this is so long-standing, i'm 1/2 wondering about trying this against fq_codel vs sqm, as i would have expected someone to complain to ASUS if it similarly broke in stock? (Not that releases have been higher quality for a while now...)
 
Hello, I installed FlexQoS on my newly purchased Tuf-AX5400 but I can't see the FlexQoS tab in the QoS section of the GUI, any ideas ? Thank you in advance.
 
Welcome to the forums @cypr919.

Did you try a reboot and then waiting a few minutes for the router to settle before logging in?
 
I tried that and I still can't see it in the menu.

firefox_JOLV3w0aIr.png



Edit: I did a hard reset on the router, re-installed the script, and I still can't see it.

FlexQoS v1.3.1 released 2022-03-15

Debug date : 2022-07-29 18:41:57+0300
Router Model : TUF-AX5400
Firmware Ver : 386.5_2-gnuton0
DPI/Sig Ver : 2.0.1 / 2.066
WAN iface : eth4
tc WAN iface : eth4
IPv6 : disabled
Undf Prio : 2
Down Band : 409600
Up Band : 81920
**************
Net Control : 1:10
Work-From-Home: 1:12
Gaming : 1:11
Others : 1:17
Web Surfing : 1:13
Streaming : 1:15
File Transfers: 1:16
Learn-From-Home: 1:14
**************
Downrates : 20480, 61440, 81920, 40960, 20480, 122880, 20480, 40960
Downceils : 409600, 409600, 409600, 409600, 409600, 409600, 409600, 409600
Uprates : 4096, 12288, 16384, 8192, 4096, 8192, 4096, 24576
Upceils : 81920, 81920, 81920, 81920, 81920, 81920, 81920, 81920
**************
iptables settings: Defaults
-o br0 -p udp -m multiport --sports 500,4500 -j MARK --set-mark 0x8006ffff/0xc03fffff
-o eth4 -p udp -m multiport --dports 500,4500 -j MARK --set-mark 0x4006ffff/0xc03fffff
-o br0 -p udp -m multiport --dports 16384:16415 -j MARK --set-mark 0x8006ffff/0xc03fffff
-o eth4 -p udp -m multiport --sports 16384:16415 -j MARK --set-mark 0x4006ffff/0xc03fffff
-o br0 -p tcp -m multiport --sports 119,563 -j MARK --set-mark 0x8003ffff/0xc03fffff
-o eth4 -p tcp -m multiport --dports 119,563 -j MARK --set-mark 0x4003ffff/0xc03fffff
-o br0 -p tcp -m multiport --sports 80,443 -m mark --mark 0x80080000/0xc03f0000 -j MARK --set-mark 0x8003ffff/0xc03fffff
-o eth4 -p tcp -m multiport --dports 80,443 -m mark --mark 0x40080000/0xc03f0000 -j MARK --set-mark 0x4003ffff/0xc03fffff
**************
appdb rules: Defaults
filter add dev br0 protocol all prio 2 u32 match mark 0x80000000 0xc000ffff flowid 1:17
filter add dev eth4 protocol all prio 2 u32 match mark 0x40000000 0xc000ffff flowid 1:17
filter add dev br0 protocol all prio 2 u32 match mark 0x8000006B 0xc03fffff flowid 1:17
filter add dev eth4 protocol all prio 2 u32 match mark 0x4000006B 0xc03fffff flowid 1:17
filter add dev br0 protocol all prio 15 u32 match mark 0x800D0007 0xc03fffff flowid 1:16
filter add dev eth4 protocol all prio 15 u32 match mark 0x400D0007 0xc03fffff flowid 1:16
filter add dev br0 protocol all prio 15 u32 match mark 0x800D0086 0xc03fffff flowid 1:16
filter add dev eth4 protocol all prio 15 u32 match mark 0x400D0086 0xc03fffff flowid 1:16
filter add dev br0 protocol all prio 15 u32 match mark 0x800D00A0 0xc03fffff flowid 1:16
filter add dev eth4 protocol all prio 15 u32 match mark 0x400D00A0 0xc03fffff flowid 1:16
filter add dev br0 protocol all prio 20 u32 match mark 0x8012003F 0xc03fffff flowid 1:13
filter add dev eth4 protocol all prio 20 u32 match mark 0x4012003F 0xc03fffff flowid 1:13
filter change dev br0 prio 22 protocol all handle 802::800 u32 flowid 1:13
filter change dev eth4 prio 22 protocol all handle 802::800 u32 flowid 1:13
filter change dev br0 prio 23 protocol all handle 804::800 u32 flowid 1:13
filter change dev eth4 prio 23 protocol all handle 804::800 u32 flowid 1:13
class change dev br0 parent 1:1 classid 1:10 htb prio 0 rate 20480Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 256000
class change dev eth4 parent 1:1 classid 1:10 htb prio 0 rate 4096Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 51200
class change dev br0 parent 1:1 classid 1:11 htb prio 1 rate 61440Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 768000
class change dev eth4 parent 1:1 classid 1:11 htb prio 1 rate 12288Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 153600
class change dev br0 parent 1:1 classid 1:12 htb prio 2 rate 81920Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 1024000
class change dev eth4 parent 1:1 classid 1:12 htb prio 2 rate 16384Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 204800
class change dev br0 parent 1:1 classid 1:13 htb prio 3 rate 40960Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 512000
class change dev eth4 parent 1:1 classid 1:13 htb prio 3 rate 8192Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 102400
class change dev br0 parent 1:1 classid 1:14 htb prio 4 rate 20480Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 256000
class change dev eth4 parent 1:1 classid 1:14 htb prio 4 rate 4096Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 51200
class change dev br0 parent 1:1 classid 1:15 htb prio 5 rate 122880Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 1536000
class change dev eth4 parent 1:1 classid 1:15 htb prio 5 rate 8192Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 102400
class change dev br0 parent 1:1 classid 1:16 htb prio 6 rate 20480Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 256000
class change dev eth4 parent 1:1 classid 1:16 htb prio 6 rate 4096Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 51200
class change dev br0 parent 1:1 classid 1:17 htb prio 7 rate 40960Kbit ceil 409600Kbit burst 51200b cburst 512000b quantum 512000
class change dev eth4 parent 1:1 classid 1:17 htb prio 7 rate 24576Kbit ceil 81920Kbit burst 10240b cburst 102400b quantum 307200
qdisc replace dev br0 parent 1:2 handle 102: fq_codel limit 1000 noecn
qdisc replace dev eth4 parent 1:2 handle 102: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:10 handle 110: fq_codel limit 1000
qdisc replace dev eth4 parent 1:10 handle 110: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:11 handle 111: fq_codel limit 1000
qdisc replace dev eth4 parent 1:11 handle 111: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:12 handle 112: fq_codel limit 1000
qdisc replace dev eth4 parent 1:12 handle 112: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:13 handle 113: fq_codel limit 1000
qdisc replace dev eth4 parent 1:13 handle 113: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:14 handle 114: fq_codel limit 1000
qdisc replace dev eth4 parent 1:14 handle 114: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:15 handle 115: fq_codel limit 1000
qdisc replace dev eth4 parent 1:15 handle 115: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:16 handle 116: fq_codel limit 1000
qdisc replace dev eth4 parent 1:16 handle 116: fq_codel limit 1000 noecn
qdisc replace dev br0 parent 1:17 handle 117: fq_codel limit 1000
qdisc replace dev eth4 parent 1:17 handle 117: fq_codel limit 1000 noecn
 
Last edited:
I tried that and I still can't see it in the menu.
FlexQoS expects to find the Classification tab (QoS_Stats.asp) from Merlin in the menu tabs, then insert its own tab right before it.

Since you don’t have that tab, you could try to update flexqos.sh to replace QoS_Stats.asp with AdaptiveQoS_WebHistory.asp on this line:

 
this works. can see menu,
download stats ok. upload stats not working
1659131607840.png
 

Attachments

  • 1659131437961.png
    1659131437961.png
    392.1 KB · Views: 73
FlexQoS expects to find the Classification tab (QoS_Stats.asp) from Merlin in the menu tabs, then insert its own tab right before it.

Since you don’t have that tab, you could try to update flexqos.sh to replace QoS_Stats.asp with AdaptiveQoS_WebHistory.asp on this line:

Thank you for taking the time to respond to me, this helped and I can see it in the interface now.
 
Hello @dave14305 have you had any users complain about a massive speed loss in the last few weeks? For some reason when I start running FlexQoS, my speeds can barely get above about 150-200Mbps, as soon as I uninstall FlexQoS with just regular Adaptive QoS Enabled, it will get back up to 850Mbps range. I've tried disabling flow cache as well and that didn't seem to have an effect either.
 
Hello @dave14305 have you had any users complain about a massive speed loss in the last few weeks? For some reason when I start running FlexQoS, my speeds can barely get above about 150-200Mbps, as soon as I uninstall FlexQoS with just regular Adaptive QoS Enabled, it will get back up to 850Mbps range. I've tried disabling flow cache as well and that didn't seem to have an effect either.
Yes, a few. See posts 202 and 203. I don’t have too many ideas on that since I’m no longer eating my own dog food.
 
Yes, a few. See posts 202 and 203. I don’t have too many ideas on that since I’m no longer eating my own dog food.
I can see what I can figure out for you and report back, I'm thinking something strange with a mangle rule maybe?
 
@dave14305 I have a minor update, I had these custom rules created for Speedtest, with them created my tests were terrible. After deleting the rules my Speedtests are back to normal. I had them set as Net Control, it's almost as if the speeds are being limited by the minimum % set instead of the maximum.
Code:
186K  167M MARK       tcp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d00de/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
294K  284M MARK       tcp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d00de/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
    0     0 MARK       udp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d00de/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
    0     0 MARK       udp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d00de/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
    0     0 MARK       tcp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d0007/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
    0     0 MARK       tcp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d0007/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
    0     0 MARK       udp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d0007/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
    0     0 MARK       udp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d0007/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
 
@dave14305 I have a minor update, I had these custom rules created for Speedtest, with them created my tests were terrible. After deleting the rules my Speedtests are back to normal. I had them set as Net Control, it's almost as if the speeds are being limited by the minimum % set instead of the maximum.
Code:
186K  167M MARK       tcp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d00de/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
294K  284M MARK       tcp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d00de/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
    0     0 MARK       udp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d00de/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
    0     0 MARK       udp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d00de/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
    0     0 MARK       tcp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d0007/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
    0     0 MARK       tcp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d0007/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
    0     0 MARK       udp  --  *      br0     0.0.0.0/0            0.0.0.0/0            multiport sports 443,8080 mark match 0x800d0007/0xc03fffff MARK xset 0x8008ffff/0xc03fffff
    0     0 MARK       udp  --  *      eth0    0.0.0.0/0            0.0.0.0/0            multiport dports 443,8080 mark match 0x400d0007/0xc03fffff MARK xset 0x4008ffff/0xc03fffff
Those rules are putting the traffic in the Gaming class, not Net Control. Probably doesn’t matter, but let’s be sure we understand your config.

Is this on an AX86U? I don’t find any hint as to your router model.

As a test, delete this rule and add an AppDB rule for 0d00de and see if it changes the outcome.
 
Those rules are putting the traffic in the Gaming class, not Net Control. Probably doesn’t matter, but let’s be sure we understand your config.

Is this on an AX86U? I don’t find any hint as to your router model.

As a test, delete this rule and add an AppDB rule for 0d00de and see if it changes the outcome.
AX-11000 and I can do this later this evening.
 
Those rules are putting the traffic in the Gaming class, not Net Control. Probably doesn’t matter, but let’s be sure we understand your config.

Is this on an AX86U? I don’t find any hint as to your router model.

As a test, delete this rule and add an AppDB rule for 0d00de and see if it changes the outcome.
I added that rule and it capped my Speedtest back down to ~300Mbps again. Removed that rule, ran another Speedtest and to the same AT&T Server (I have AT&T Fiber) it was back to ~750-800Mbps average.
 
I added that rule and it capped my Speedtest back down to ~300Mbps again. Removed that rule, ran another Speedtest and to the same AT&T Server (I have AT&T Fiber) it was back to ~750-800Mbps average.
That surprises me since no iptables should have been involved. Maybe test changing the QoS Mode from fq_codel to ASUS (sfq).
 
do i have to do anything other thand press the add gaming rule in the script to have my pc as a gaming device with highest priority ?
 
Status
Not open for further replies.

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top