What's new

FlexQoS FlexQoS issues with 388.4 HND5.04 models

  • 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!

You haven’t manually set the QoS Bandwidth Setting. Instead you have it set to Automatic. 1% of unlimited is still unlimited. What is your ISP speed?
Shouldn't automatic QoS bandwidth tuning automatically detect my internet speed? In any case, if I set my speed manually, the result is the same, the Other category still uses more than 1% of the bandwidth, despite the configured limit in FlexQoS.
 
Sorry for the late reply, but I have not been home for some days. Updated now to 1.4.1 and now I can delete all the iptable rules and now "auto" disables flow cache, probably only because it was previously on.

Though I have to say, I do not fully understand the reason here. When there are no iptable rules present, shouldn't it rather be on, even if speeds are on the lower side?
Can you run these commands over ssh and post the output?
Code:
uname -r
nvram show | grep -E "^qos_[io]bw=|fc_disable"
grep flexqos /jffs/addons/custom_settings.txt
 
Shouldn't automatic QoS bandwidth tuning automatically detect my internet speed?
No, it just assumes your internet bandwidth is very high (1895 Mbit) and doesn’t do very much.
if I set my speed manually, the result is the same, the Other category still uses more than 1% of the bandwidth, despite the configured limit in FlexQoS.
It would be nice to see the same screenshots again now that the bandwidth is set manually. If you want to spend the effort.
 
Here we go:

Flow Cache Control Off (= Flow Chache Enabled)
xxx@AX86U:/tmp/home/root# uname -r
4.19.183
xxx@AX86U:/tmp/home/root# nvram show | grep -E "^qos_[io]bw=|fc_disable"
fc_disable=0
qos_ibw=291840
qos_obw=49152
size: 79917 bytes (116691 left)
xxx@AX86U:/tmp/home/root# grep flexqos /jffs/addons/custom_settings.txt
flexqos_appdb <000000>6<0D0086>5<0D00A0>5<12003F>4<130054>5<040050>2<040097>2<13****>4<14****>4
flexqos_bwrates <5>15>25>15>15>5>15>5<10>100>100>90>90>100>100>100<5>20>10>25>15>5>15>5<10>100>90>90>90>90>90>100
flexqos_outputcls 6
flexqos_iptables 0
flexqos_ver 1.4.1

Flow Cache Control Auto (= Flow Cache Disabled)
xxx@AX86U:/tmp/home/root# uname -r
4.19.183
xxx@AX86U:/tmp/home/root# nvram show | grep -E "^qos_[io]bw=|fc_disable"
fc_disable=0
qos_ibw=291840
qos_obw=49152
size: 79938 bytes (116670 left)
xxx@AX86U:/tmp/home/root# grep flexqos /jffs/addons/custom_settings.txt
flexqos_appdb <000000>6<0D0086>5<0D00A0>5<12003F>4<130054>5<040050>2<040097>2<13****>4<14****>4
flexqos_bwrates <5>15>25>15>15>5>15>5<10>100>100>90>90>100>100>100<5>20>10>25>15>5>15>5<10>100>90>90>90>90>90>100
flexqos_outputcls 6
flexqos_iptables 0
flexqos_ver 1.4.1
flexqos_fccontrol 2
 
Here the output, currently only with Flow Cache "off". In between the 2 posts I played a bit with Cake instead of FlexQoS, but it seems that I am not able to get proper values on downloads, no matter what settings I choose.

xxx@AX86U:/tmp/home/root# fcctl status
Flow Timer Interval = 10000 millisecs
Pkt-HW Activate Deferral rate = 1
Pkt-HW Idle Deactivate = 0
Pkt-SW Activate Deferral count = 0
Flow Low Pkt Rate = 10
Acceleration Mode: <L2 & L3>
MCast Acceleration IPv4<Enabled> IPv6<Enabled>
IPv6 Learning <Enabled>
L2TP Learning <Enabled>
GRE Learning <Enabled>
4o6 Fragmentation <Enabled>
TCP Ack Prioritization <Enabled>
ToS Multi Flow <Enabled>
Notify Processing Mode <Hybrid>
OVS Flow Learning <Disabled>
HW Acceleration <Enabled>
Flow Ucast Learning Enabled : Max<16383>, Active<51>, Cumulative [ 2005 - 1954 ]
Flow Mcast Learning Enabled : Max<1152>, Active<0>, Cumulative [ 0 - 0 ]

xxx@AX86U:/tmp/home/root# flexqos restart
Restarting QoS and firewall...

Done.

xxx@AX86U:/tmp/home/root# grep FlexQoS /jffs/syslog.log | tail -10
May 18 15:02:46 AX86U FlexQoS: [*] 3140 xxx 3460 S sh /jffs/addons/flexqos/flexqos.sh -start
May 18 15:02:46 AX86U FlexQoS: TC Modification Delayed Start
May 18 15:04:29 AX86U FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=10481) called in unattended mode with 1 args: -start
May 18 15:04:29 AX86U FlexQoS: [*] Killing Delayed Process (pid=8044)
May 18 15:04:29 AX86U FlexQoS: [*] 8044 xxx 3460 S sh /jffs/addons/flexqos/flexqos.sh -start
May 18 15:04:31 AX86U FlexQoS: Applying AppDB rules and TC rates
May 18 15:09:00 AX86U FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=26830) called in unattended mode with 1 args: -check
May 18 15:09:00 AX86U FlexQoS: No TC modifications necessary
May 18 15:13:47 AX86U FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=5449) called in unattended mode with 1 args: -start
May 18 15:13:49 AX86U FlexQoS: Applying AppDB rules and TC rates

xxx@AX86U:/tmp/home/root# fcctl status
Flow Timer Interval = 10000 millisecs
Pkt-HW Activate Deferral rate = 1
Pkt-HW Idle Deactivate = 0
Pkt-SW Activate Deferral count = 0
Flow Low Pkt Rate = 10
Acceleration Mode: <L2 & L3>
MCast Acceleration IPv4<Enabled> IPv6<Enabled>
IPv6 Learning <Enabled>
L2TP Learning <Enabled>
GRE Learning <Enabled>
4o6 Fragmentation <Enabled>
TCP Ack Prioritization <Enabled>
ToS Multi Flow <Enabled>
Notify Processing Mode <Hybrid>
OVS Flow Learning <Disabled>
HW Acceleration <Enabled>
Flow Ucast Learning Enabled : Max<16383>, Active<22>, Cumulative [ 2255 - 2233 ]
Flow Mcast Learning Enabled : Max<1152>, Active<0>, Cumulative [ 0 - 0 ]
 
Here the output, currently only with Flow Cache "off". In between the 2 posts I played a bit with Cake instead of FlexQoS, but it seems that I am not able to get proper values on downloads, no matter what settings I choose.
Ok, Cake will disable fc itself, but your logs above look normal to me. FlexQoS did not disable flow cache during startup.
 
Last edited:
Ok, Cake will disable fc itself, but your logs above look normal to me. FlexQoS did not disable flow cache during startup.
The logs above have been with flow cache off in the FlexQoS settings, so I guess then it should not be disabled. Here the logs again with the "auto" setting, where it seems to disable flow cache during startup.

xxx@AX86U:/tmp/home/root# fcctl status
Flow Timer Interval = 10000 millisecs
Pkt-HW Activate Deferral rate = 1
Pkt-HW Idle Deactivate = 0
Pkt-SW Activate Deferral count = 0
Flow Low Pkt Rate = 10
Acceleration Mode: <L2 & L3>
MCast Acceleration IPv4<Enabled> IPv6<Enabled>
IPv6 Learning <Enabled>
L2TP Learning <Enabled>
GRE Learning <Enabled>
4o6 Fragmentation <Enabled>
TCP Ack Prioritization <Enabled>
ToS Multi Flow <Enabled>
Notify Processing Mode <Hybrid>
OVS Flow Learning <Disabled>
HW Acceleration <Enabled>
Flow Ucast Learning Disabled : Max<16383>, Active<0>, Cumulative [ 10279 - 10279 ]
Flow Mcast Learning Disabled : Max<1152>, Active<0>, Cumulative [ 0 - 0 ]
xxx@AX86U:/tmp/home/root# flexqos restart
Restarting QoS and firewall...

Done.
xxx@AX86U:/tmp/home/root# sleep 30
xxx@AX86U:/tmp/home/root# grep FlexQoS /jffs/syslog.log | tail -10
May 18 15:13:47 AX86U FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=5449) called in unattended mode with 1 args: -start
May 18 15:13:49 AX86U FlexQoS: Applying AppDB rules and TC rates
May 18 15:18:00 AX86U FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=10350) called in unattended mode with 1 args: -check
May 18 15:18:00 AX86U FlexQoS: No TC modifications necessary
May 18 17:50:08 AX86U FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=4525) called in unattended mode with 1 args: -start
May 18 17:50:08 AX86U FlexQoS: Auto-disabling flowcache
May 18 17:50:09 AX86U FlexQoS: Applying AppDB rules and TC rates
May 18 17:51:41 AX86U FlexQoS: /jffs/addons/flexqos/flexqos.sh (pid=9340) called in unattended mode with 1 args: -start
May 18 17:51:41 AX86U FlexQoS: Auto-disabling flowcache
May 18 17:51:43 AX86U FlexQoS: Applying AppDB rules and TC rates
 
Are there any known issues with FlexQoS when using WAN aggregation? My upload graphs are empty and undefined both on the FlexQoS tab as well as the Classification tab. I've tried reinstalling FlexQoS, switching to ASUS QoS mode, and ctrl+F5 on the pages to force new cache.

Code:
FlexQoS v1.4.1 released 2024-05-13

Debug date      : 2024-05-18 08:52:14-0700
Router Model    : RT-AX86U_Pro
Firmware Ver    : 388.7_0
DPI/Sig Ver     : 2.0.3 / 2.400
WAN iface       : bond1
tc WAN iface    : bond1
IPv6            : disabled
Undf Prio       : 2
Down Band       : 1167360
Up Band         : 38912
*****************
Net Control     : 1:10
Work-From-Home  : 1:13
Gaming          : 1:11
Others          : 1:16
Web Surfing     : 1:14
Streaming       : 1:12
File Transfers  : 1:15
Learn-From-Home : 1:17
*****************
Downrates       :   58368,  175104,  350208,  233472,  116736,   58368,  116736,   58368
Downceils       : 1167360, 1167360, 1167360, 1167360, 1167360, 1167360, 1167360, 1167360
Uprates         :    1945,    5836,    3891,    7782,    3891,    1945,   11673,    1945
Upceils         :   38912,   38912,   38912,   38912,   38912,   38912,   38912,   38912
*****************
iptables settings: Defaults
-A FlexQoS_down -p udp -m multiport --sports 500,4500 -j MARK --set-mark 0x8006ffff/0xc03fffff
-A FlexQoS_up -p udp -m multiport --dports 500,4500 -j MARK --set-mark 0x4006ffff/0xc03fffff
-A FlexQoS_down -p udp -m multiport --dports 16384:16415 -j MARK --set-mark 0x8006ffff/0xc03fffff
-A FlexQoS_up -p udp -m multiport --sports 16384:16415 -j MARK --set-mark 0x4006ffff/0xc03fffff
-A FlexQoS_down -p tcp -m multiport --sports 119,563 -j MARK --set-mark 0x8003ffff/0xc03fffff
-A FlexQoS_up -p tcp -m multiport --dports 119,563 -j MARK --set-mark 0x4003ffff/0xc03fffff
-A FlexQoS_down -p tcp -m multiport --sports 80,443 -m mark --mark 0x80080000/0xc03f0000 -j MARK --set-mark 0x8003ffff/0xc03fffff
-A FlexQoS_up -p tcp -m multiport --dports 80,443 -m mark --mark 0x40080000/0xc03f0000 -j MARK --set-mark 0x4003ffff/0xc03fffff
*****************
appdb rules: <000000>6<00006B>6<0D0007>5<0D0086>5<0D00A0>5<12003F>4<030015>5<1400BA>5<0D0078>5<13****>4<14****>4
filter change dev br0 prio 2 protocol all handle 828::800 u32 flowid 1:16
filter change dev bond1 prio 2 protocol all handle 828::800 u32 flowid 1:16
filter add dev br0 protocol all prio 2 u32 match mark 0x8000006B 0xc03fffff flowid 1:16
filter add dev bond1 protocol all prio 2 u32 match mark 0x4000006B 0xc03fffff flowid 1:16
filter add dev br0 protocol all prio 15 u32 match mark 0x800D0007 0xc03fffff flowid 1:15
filter add dev bond1 protocol all prio 15 u32 match mark 0x400D0007 0xc03fffff flowid 1:15
filter add dev br0 protocol all prio 15 u32 match mark 0x800D0086 0xc03fffff flowid 1:15
filter add dev bond1 protocol all prio 15 u32 match mark 0x400D0086 0xc03fffff flowid 1:15
filter add dev br0 protocol all prio 15 u32 match mark 0x800D00A0 0xc03fffff flowid 1:15
filter add dev bond1 protocol all prio 15 u32 match mark 0x400D00A0 0xc03fffff flowid 1:15
filter add dev br0 protocol all prio 20 u32 match mark 0x8012003F 0xc03fffff flowid 1:14
filter add dev bond1 protocol all prio 20 u32 match mark 0x4012003F 0xc03fffff flowid 1:14
filter add dev br0 protocol all prio 5 u32 match mark 0x80030015 0xc03fffff flowid 1:15
filter add dev bond1 protocol all prio 5 u32 match mark 0x40030015 0xc03fffff flowid 1:15
filter add dev br0 protocol all prio 22 u32 match mark 0x801400BA 0xc03fffff flowid 1:15
filter add dev bond1 protocol all prio 22 u32 match mark 0x401400BA 0xc03fffff flowid 1:15
filter add dev br0 protocol all prio 15 u32 match mark 0x800D0078 0xc03fffff flowid 1:15
filter add dev bond1 protocol all prio 15 u32 match mark 0x400D0078 0xc03fffff flowid 1:15
filter change dev br0 prio 22 protocol all handle 802::800 u32 flowid 1:14
filter change dev bond1 prio 22 protocol all handle 802::800 u32 flowid 1:14
filter change dev br0 prio 23 protocol all handle 804::800 u32 flowid 1:14
filter change dev bond1 prio 23 protocol all handle 804::800 u32 flowid 1:14
class change dev br0 parent 1:1 classid 1:10 htb overhead 18 linklayer ethernet prio 0 rate 58368Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 729600
class change dev bond1 parent 1:1 classid 1:10 htb overhead 18 linklayer ethernet prio 0 rate 1945Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 24312
class change dev br0 parent 1:1 classid 1:11 htb overhead 18 linklayer ethernet prio 1 rate 175104Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 2188800
class change dev bond1 parent 1:1 classid 1:11 htb overhead 18 linklayer ethernet prio 1 rate 5836Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 72950
class change dev br0 parent 1:1 classid 1:12 htb overhead 18 linklayer ethernet prio 2 rate 350208Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 4377600
class change dev bond1 parent 1:1 classid 1:12 htb overhead 18 linklayer ethernet prio 2 rate 3891Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 48637
class change dev br0 parent 1:1 classid 1:13 htb overhead 18 linklayer ethernet prio 3 rate 233472Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 2918400
class change dev bond1 parent 1:1 classid 1:13 htb overhead 18 linklayer ethernet prio 3 rate 7782Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 97275
class change dev br0 parent 1:1 classid 1:14 htb overhead 18 linklayer ethernet prio 4 rate 116736Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 1459200
class change dev bond1 parent 1:1 classid 1:14 htb overhead 18 linklayer ethernet prio 4 rate 3891Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 48637
class change dev br0 parent 1:1 classid 1:15 htb overhead 18 linklayer ethernet prio 5 rate 58368Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 729600
class change dev bond1 parent 1:1 classid 1:15 htb overhead 18 linklayer ethernet prio 5 rate 1945Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 24312
class change dev br0 parent 1:1 classid 1:16 htb overhead 18 linklayer ethernet prio 6 rate 116736Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 1459200
class change dev bond1 parent 1:1 classid 1:16 htb overhead 18 linklayer ethernet prio 6 rate 11673Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 145912
class change dev br0 parent 1:1 classid 1:17 htb overhead 18 linklayer ethernet prio 7 rate 58368Kbit ceil 1167360Kbit burst 145920b cburst 1459200b quantum 729600
class change dev bond1 parent 1:1 classid 1:17 htb overhead 18 linklayer ethernet prio 7 rate 1945Kbit ceil 38912Kbit burst 4864b cburst 48000b quantum 24312
 
The logs above have been with flow cache off in the FlexQoS settings, so I guess then it should not be disabled. Here the logs again with the "auto" setting, where it seems to disable flow cache during startup.
Ah, I found my bug. I pushed version 1.4.2 which should address the problem when no iptables rules are present. Thanks for not believing me when I said it looked fine. ;)
 
Are there any known issues with FlexQoS when using WAN aggregation? My upload graphs are empty and undefined both on the FlexQoS tab as well as the Classification tab. I've tried reinstalling FlexQoS, switching to ASUS QoS mode, and ctrl+F5 on the pages to force new cache.
What’s the output of:
Code:
nvram get wan_ifname
 
@dave14305

I did a quick update check ('u' command) thru AMTM for my installed scripts and noticed the "no MD5" comment after the update check. However, FlexQoS is running smoothly.

Code:
ASUS GT-AX11000_Pro HW: aarch64 Kernel: 4.19.183
 FW: 3004.388.7 IP address: 192.168.x.x
 Operation Mode: Wireless router
 Sat May 18 16:54:53 DST 2024

 amtm - the Asuswrt-Merlin Terminal Menu                                                                                                              
 /mnt/Diversion Size 28.7G Used 10.2G (38%)                                                                                                          
 1  open     Diversion                  5.1.3                                                                                                          
 2  open     Skynet                     7.5.9
 3  open     FlexQoS       No MD5       1.4.2                                                                                                        
 j7 open     YazDHCP                    1.0.6                                                                                                        
 ep manage   Entware packages          no upd                                                                                                        
awm Asuswrt-Merlin firmware           388.7.0                                                                                                        
 m  menu     amtm   uu  force update      4.7                                                                                                          _____________________________________________
 Everything's up to date (May 18 2024 16:55)
 
I did a quick update check ('u' command) thru AMTM for my installed scripts and noticed the "no MD5" comment after the update check.
Yes, I implemented an amtm method to avoid detecting minor updates or hot fixes. Only version bumps will trigger amtm updates for FlexQoS now.
 
No, it just assumes your internet bandwidth is very high (1895 Mbit) and doesn’t do very much.

It would be nice to see the same screenshots again now that the bandwidth is set manually. If you want to spend the effort.
Here are screenshots, speedtest still shows almost the speeds that my provider gives.
1716224045789.png
Here are screenshots, speedteststill shows almost the speeds that my provider gives.
However, now I have noticed according to the schedules that the speedtesttraffic is classified as “Video and Audio Streaming”, not “Others”, although I no longer touched these settings.
1716223997204.png
I have now tried to reset the settings "Appdb Redirection Rules" and "Bandwidth", then configure them again, but does not help. Anyway, speedtesttraffic is classified as "Video and Audio Streaming".
1716224533875.png
 
However, now I have noticed according to the schedules that the speedtesttraffic is classified as “Video and Audio Streaming”, not “Others”, although I no longer touched these settings.
Different speedtest.net servers might be detected differently by the Trend Micro engine. Try to make an iptables rule setting all TCP remote port 8080 traffic to Others, then test again.
 
Currentyl trying FlexQoS with default settings

Anything I should change?

VDSL2 40/15
It looks good! If you decide to change anything it will boil down to personal preference at this point. It is time for you to get your feet wet. Right now you are barely testing the waters. Wait till your network is saturated by connections, try performing downloads, and streaming videos. Test how everything performs.
 

Similar threads

Latest threads

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