What's new

FlexQoS FlexQoS 1.0 - 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!

After upgrading to V384.18 Final Merlin FW on my RT-AX88U, and reading FreshJr QOS thread since the beginning, and partaking in early trials and test of it, I decided to hop on the FlexQOS train, and looking good so far @dave14305 .

I ran the script in the beginning, and the upgrade appeared to run flawlessly, smoothly, removing FreshJR QOS and replacing with FlexQOS, while retaining my settings.

The only thing I noticed was that when logging in with Putty, at the prompt I typed "flexqos -update", just as a test to see if it would test for an update, and I got the "-sh: flexqos: not found", so I went to the addon directory where it was located, and tried running it, and it still did not work.

I do know that I changed the flexqos directory and the "flexqos.sh" rights to be:

flexqos directory - rwxrwxrwx (unfortunately I forgot to write down what they were previously)
flexqos.sh - rwxf-xr-x (again unfortunately forgot to write down the rights here as well)

After doing this, I was able to run "flexqos -update" or just "flexqos" for the menu from any directory.

Might be something you want to check your install script on what the rights are on those directories and what they should be setup for, in order to run the script for any directory.
 
After upgrading to V384.18 Final Merlin FW on my RT-AX88U, and reading FreshJr QOS thread since the beginning, and partaking in early trials and test of it, I decided to hop on the FlexQOS train, and looking good so far @dave14305 .

I ran the script in the beginning, and the upgrade appeared to run flawlessly, smoothly, removing FreshJR QOS and replacing with FlexQOS, while retaining my settings.

The only thing I noticed was that when logging in with Putty, at the prompt I typed "flexqos -update", just as a test to see if it would test for an update, and I got the "-sh: flexqos: not found", so I went to the addon directory where it was located, and tried running it, and it still did not work.

I do know that I changed the flexqos directory and the "flexqos.sh" rights to be:

flexqos directory - rwxrwxrwx (unfortunately I forgot to write down what they were previously)
flexqos.sh - rwxf-xr-x (again unfortunately forgot to write down the rights here as well)

After doing this, I was able to run "flexqos -update" or just "flexqos" for the menu from any directory.

Might be something you want to check your install script on what the rights are on those directories and what they should be setup for, in order to run the script for any directory.
The longhand is always the failsafe method:
Code:
sh /jffs/addons/flexqos/flexqos.sh -update
If Entware is installed, I add a "flexqos" shortcut to /opt/bin which allows the use of flexqos without the .sh or the path.

If Entware is not installed, I add an alias for "flexqos" to /jffs/configs/profile.add, but I don't think it is active until you login again. I suppose I haven't tested that myself since I always have Entware installed.

The script is installed with 755 permissions, but "flexqos" will only work if the Entware link or the alias are installed. Otherwise, it's flexqos.sh. Probably not the clearest implementation, but I personally like a shell script name to end in .sh.
 
What do you mean by "ping loaded up"? I'm trying to see how i can impact my stability as ive had quite a bit of issue with online FPS latencies. Im looking at bufferbloats under multiple scenarios: PC -> Ethernet plugged into: ISP's gateway (modem + router), Bridged gateway straight into PC, Bridged gateway into AC68u router without QoS, then finally AC68u running FlexQoS with different settings (SFQ, default codel, fq_codel) and varying degrees of cap on my 100/10mbit connection. No other devices are connected, but the results feel inconsistent and random. Are these kind of results to be expected?





Your stats look good actually.. but looks like you have a 68U it might be cpu bottleneck maybe or getting close depending on what else your running. 90/9 looks reasonable with fq_codel for the gaming id suggest. fq_codel has a way of pushing thru small gaming/voip packets at a higher priority which is good.

The game syour having issues with are you able to tell what category theyre falling into and whats the priority setup you have?
 
is the flexqos better for gaming than the old FreshJr Script or is there not really any differenz. Also an other question i have an vdsl2 vectoring pppoe connection 110/20 schould i set the preset paket wan overhead for vdsl pppoe or are there any other settings ?
 
@Phil Outram

I just looked at the bottom of my AX88U, and I have Hardware V A1. Which is the older of the two. There's a "A1.1" version. I would be interested in what the bottom of your AX88U shows. I have had my AX88U for a while now.

Mine is the same version, I've had mine for quite some time now as well. I've not reset my router to factory for many many months either as everything has pretty much worked fine without the need to do so. Think the last time I reset it was around 384.13.
 
Your stats look good actually.. but looks like you have a 68U it might be cpu bottleneck maybe or getting close depending on what else your running. 90/9 looks reasonable with fq_codel for the gaming id suggest. fq_codel has a way of pushing thru small gaming/voip packets at a higher priority which is good.

The game syour having issues with are you able to tell what category theyre falling into and whats the priority setup you have?

Thanks for taking a look! The AC68U isnt really running anything, only thing ive manually installed is FlexQOS, apart from that I've disabled most functions, even the 5ghz wireless band. And for context: i wasnt even using QoS until a few days ago when i got a new gateway from my ISP.

Games are recognized and categorized correctly in Flex (at max prio after net control, followd by voip) but I havent had time to test much. But previously i used to have very random spurs of issues where some days were perfectly fine (like most of my test in previous post), then others where id suddenly be getting weird latency issues for anywhere between 5-60 seconds. Symptoms would be laggy voip (discord) and banding or teleporting enemies in games - or in games where available ping statistics would suddenly show red lines indicating packet loss and +100 increase in ms before setling back to 40-50 ish standards. This would occur even when i was the only connected device online. Also during the dslreports.com tests i had quite a few of them spike the bufferbloat gauge to a red 500+ ms just for a split second then return to a green value, but my final grades turned out decent non the less..

Though, i do often have a lot of traffic on the wireless, both cellphones and a laptop that the missus uses for streaming. Am i correct in understanding previous comments here that these devices wont be throttled correctly by the QoS? If so are there any other suggestions on how to prioritize traffic from a specific device? or de-prioiritize ALL wireless traffic vs. ethernet connected traffic? (afaik the device priority stuff under "Bandwidth Monitor" doesnt work)
 
Last edited:
is the flexqos better for gaming than the old Fresh Jr. Script or is there not really any difference. Also an other question i have an vdsl2 vectoring pppoe connection 110/20 should i set the preset paket wan overhead for vdsl pppoe or are there any other settings ?
i think you didn't bother to read much :p
FlexQOS is going ahead version of Fresh Jr. , credits for base work done by JR., Flex deals with already found glitches in Fresh Jr. scripting like 433 instead of 443 for gaming etc, Plus all credits to @dave14305 for taking up the project, he has designed a new web-page in router GUI and created options for more than 4 entries etc and its improving everyday.

To your question, yes its better than old Fresh Jr. considering credits to the JR. :D
 
i think you didn't bother to read much :p
FlexQOS is going ahead version of Fresh Jr. , credits for base work done by JR., Flex deals with already found glitches in Fresh Jr. scripting like 433 instead of 443 for gaming etc, Plus all credits to @dave14305 for taking up the project, he has designed a new web-page in router GUI and created options for more than 4 entries etc and its improving everyday.

To your question, yes its better than old Fresh Jr. considering credits to the JR. :D
I appreciate the support. Theoretically, this script should be no better than the original FreshJR script, *if and only if* you already had suitable rules in place for your gaming traffic. Underneath, it's all still the firmware QoS doing the prioritizing. If the 433 port typo in FreshJR was causing a negative gaming experience, then perhaps this script will give you better performance for the gaming rule. Otherwise, it should be similar.
 
is the flexqos better for gaming than the old FreshJr Script or is there not really any differenz. Also an other question i have an vdsl2 vectoring pppoe connection 110/20 schould i set the preset paket wan overhead for vdsl pppoe or are there any other settings ?
Use the VDSL2 ppoe overhead and this is more advanced than the old script.
 
@dave14305

I just wanted to say I appreciate the work you're doing on this script. However I think I might try running CakeQoS again for a while. As currently you're aware of the upstream wifi issue I am dealing with on my AX88U. Which overall is bad, as it allows any wifi device connecting to my AX88U, to be able to max out my upstream. Causing latency issues at times.

I forgot to look, but I am also curious with AdaptiveQoS, and FlexQoS. HW Acceleration isn't fully disabled correct? I know currently with CakeQoS running, both Runner, and Flow Cache are disabled. My wifi upstream traffic is limited with CakeQoS. So if HW Acceleration isn't fully disabled with AdaptiveQoS, and FlexQoS, is there a way to disable both Runner/Flow Cache via running a command? As I would be curious to try it, and see if it helps, or not.
 
@dave14305

I just wanted to say I appreciate the work you're doing on this script. However I think I might try running CakeQoS again for a while. As currently you're aware of the upstream wifi issue I am dealing with on my AX88U. Which overall is bad, as it allows any wifi device connecting to my AX88U, to be able to max out my upstream. Causing latency issues at times.

I forgot to look, but I am also curious with AdaptiveQoS, and FlexQoS. HW Acceleration isn't fully disabled correct? I know currently with CakeQoS running, both Runner, and Flow Cache are disabled. My wifi upstream traffic is limited with CakeQoS. So if HW Acceleration isn't fully disabled with AdaptiveQoS, and FlexQoS, is there a way to disable both Runner/Flow Cache via running a command? As I would be curious to try it, and see if it helps, or not.

fc [enable|disable]
runner [enable|disable]

in my experience Cake needed both off to work...
 
Version 0.8.0
  • NEW: Backported Merlin connection table filters (kept FreshJR local device filter dropdown)
  • NEW: Added connection table counts (total and shown/unfiltered)
  • NEW: Backported Merlin QoS class tooltip on Application name
  • FIXED: personalized URL after install/update/help (@maghuro)
  • FIXED: cleanup extra html tags
  • FIXED: Device Filter menu spacing
Code:
sh /jffs/addons/flexqos/flexqos.sh update
 
I have an 110/20 connection should i enable both FC and runner on my Asus RT-AC5300?
 
I have an 110/20 connection should i enable both FC and runner on my Asus RT-AC5300?
Does an RT-AC5300 have FC and Runner? I would think it has CTF and FA instead.

I think you should leave NAT Acceleration on Auto in the LAN / Switch Control tab in the GUI. The router will disable whatever it finds incompatible with Adaptive QoS.
 
Ok thank you for the answer i think i will try out your script but i am still not sure how i set up my bandwith Limit, i want to have 90-95% rule. But its to hard for me to Set it with the manual Mode (Rates) because sometimes i have about 108 down and so sometimes about 101. So what i had done is to set the lowest value that i get in speed test while qos is disabled and Set the value in the manual bandwith setting and hardcoded the 95% rule into the script
 
Ok thank you for the answer i think i will try out your script but i am still not sure how i set up my bandwith Limit, i want to have 90-95% rule. But its to hard for me to Set it with the manual Mode (Rates) because sometimes i have about 108 down and so sometimes about 101. So what i had done is to set the lowest value that i get in speed test while qos is disabled and Set the value in the manual bandwith setting and hardcoded the 95% rule into the script
I would use your lowest speedtest and apply the 95% to that value. If you still see bad bloat reduce it to 90%. Keep reducing the bandwidth until you get good results (however you like to measure it).
 
Is there not a way to say lets get a 95% rule of the actual speed that is avaiable right now so it always depends?
 
And also you script need a few seconds to start, do i read it right?
 
wouldn't selecting the "automatic bandwidth" option work, in this case?
 
Is there not a way to say lets get a 95% rule of the actual speed that is avaiable right now so it always depends?
You can try the AutoBW script: https://www.snbforums.com/threads/autobw-automatically-set-qos-bandwidth-using-spdmerlin.63067/
And also you script need a few seconds to start, do i read it right?
Only if it determines that the firmware is not yet done setting up the QoS rules. For me, there is usually no delay at all, but I'm not convinced it works correctly in all cases yet. Testing will help confirm it.
 

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