What's new

[Release] FreshJR Adaptive QOS (Improvements / Custom Rules / and Inner workings)

  • 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.
The VPN fix included in the newest RM firmware is the implementation of the same iptable rule mentioned in this thread (well only the download portion of the fix to be exact) .

I wasn't going to write that you can ignore this rule if you are running RM fw388.8 or higher to keep things simple (cut down on questions).

Now I think might include the ignore statement after all since the VPN rule is in the advanced section of the post after all.

As to your question, nothing will break with the same rule applied twice, sans some more cpu usuage.
 
Last edited:
Hi Im new user of R7000 using 384.7 Asus-Merlin & Xwrt-Vortex, I'm trying to install this script but this is the error I am getting

ASUSWRT-Merlin R7000 384.7-0 Mon Oct 8 08:42:25 UTC 2018
admin@R7000-A0CA:/tmp/home/root# curl "https://raw.githubusercontent.com/FreshPr
/FreshJR_QOS/master/FreshJR_QOS.sh" -o /jffs/scripts/FreshJR_QOS --create-dirs &
& sh /jffs/scripts/FreshJR_QOS -install

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 43105 100 43105 0 0 37450 0 0:00:01 0:00:01 --:--:-- 37450
Non-RMerlin Firmware Detected
Is this installation for (Stock / Default / Unmodified) Asus firmware? [1=Yes 2=No]? Invalid Option
ABORTING INSTALLATION
 
Hi Im new user of R7000 using 384.7 Asus-Merlin & Xwrt-Vortex, I'm trying to install this script but this is the error I am getting

ASUSWRT-Merlin R7000 384.7-0 Mon Oct 8 08:42:25 UTC 2018
admin@R7000-A0CA:/tmp/home/root# curl "https://raw.githubusercontent.com/FreshPr
/FreshJR_QOS/master/FreshJR_QOS.sh" -o /jffs/scripts/FreshJR_QOS --create-dirs &
& sh /jffs/scripts/FreshJR_QOS -install

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 43105 100 43105 0 0 37450 0 0:00:01 0:00:01 --:--:-- 37450
Non-RMerlin Firmware Detected
Is this installation for (Stock / Default / Unmodified) Asus firmware? [1=Yes 2=No]? Invalid Option
ABORTING INSTALLATION
Putting Asuswrt-merlin on your router would be illegal sorry. Not going to happen re-read first few threads please.
 
It won't let me choose option 2, it automatically aborts the installation I'll try talk to Xwrt-Vortex to see if his firmware has anything to do with it.
It does that's is an illegal firmware version, net gear for not run Asus firmware that's why it won't work,
I highly suggest that you return to stock Netgear firmware or flash ddwrt instead incase vortex is data mining you, because only God knows what changes he's made.
 
It does that's is an illegal firmware version, net gear for not run Asus firmware that's why it won't work,
I highly suggest that you return to stock Netgear firmware or flash ddwrt instead incase vortex is data mining you, because only God knows what changes he's made.

Ok I'll flash my r7000 with dd-wrt kong.
 
Anybody had any speed issues with their Adaptive QOS setups, with the latest V384.8 Final of Merlin's (AC3100), along with or without using FreshJR's script? I now have 300DL/15UL speeds available (It used to be 150DL/15UL), but the only way to use them is to turn QOS off altogether, otherwise if I turn it on, I have tested with both just using Adaptive QOS, and using Adaptive QOS with FreshJr's script, and my speeds for Download max out at 210-227Mbps, when I have the Download limit set for 300Mbps, and without QOS, I can get a Download speedtest of up to 320Mbps?

Edit:

Is there any command lines to completely clear the QOS settings, to establish a baseline, and then test turning back on QOS first, test, then other parts of QOS like Adaptive QOS, and then finally add FreshJR QOS Script, in order to determine where the issue may be?

Just did a cold reboot, and ran the following command, and grabbed info from system log......

/jffs/scripts/FreshJR_QOS -debug
Code:
Dec  4 11:34:19 adaptive QOS: Undf Prio: 2
Dec  4 11:34:19 adaptive QOS: Undf FlowID: 1:13
Dec  4 11:34:19 adaptive QOS: Classes Present: 8
Dec  4 11:34:19 adaptive QOS: Down Band: 307200
Dec  4 11:34:19 adaptive QOS: Up Band  : 15360
Dec  4 11:34:19 adaptive QOS: ***********
Dec  4 11:34:19 adaptive QOS: Net = 1:10
Dec  4 11:34:20 adaptive QOS: VOIP = 1:11
Dec  4 11:34:20 adaptive QOS: Gaming = 1:12
Dec  4 11:34:20 adaptive QOS: Others = 1:13
Dec  4 11:34:20 adaptive QOS: Web = 1:14
Dec  4 11:34:20 adaptive QOS: Streaming = 1:15
Dec  4 11:34:20 adaptive QOS: Downloads = 1:16
Dec  4 11:34:20 adaptive QOS: Defaults = 1:17
Dec  4 11:34:20 adaptive QOS: ***********
Dec  4 11:34:20 adaptive QOS: Downrates -- 15360, 61440, 46080, 30720, 30720, 92160, 15360, 15360
Dec  4 11:34:20 adaptive QOS: Downbursts -- 19200b, 75Kb, 38390b, 19200b, 14392b, 11185b, 6395b, 3196b
Dec  4 11:34:20 adaptive QOS: DownCbursts -- 375Kb, 375Kb, 375Kb, 375Kb, 375Kb, 375Kb, 375Kb, 375Kb
Dec  4 11:34:20 adaptive QOS: ***********
Dec  4 11:34:20 adaptive QOS: Uprates -- 768, 3072, 2304, 4608, 1536, 1536, 768, 768
Dec  4 11:34:20 adaptive QOS: Upbursts -- 3198b, 3198b, 3198b, 3197b, 3198b, 3198b, 3198b, 3198b
Dec  4 11:34:20 adaptive QOS: UpCbursts -- 19200b, 19200b, 19200b, 19200b, 19200b, 19200b, 19200b, 19200b

System Log: QOS and FreshJR Script being applied

Code:
Dec  4 11:09:36 admin: /jffs/scripts/firewall-start: Configuring wl0.1
Dec  4 11:09:37 adaptive QOS: Applying - Iptable Down Rules
Dec  4 11:09:38 adaptive QOS: Applying - Iptable Up   Rules (eth0)
Dec  4 11:09:38 adaptive QOS: TC Modification Delayed Start (5min)
Dec  4 11:14:40 adaptive QOS: Applying  TC Down Rules
Dec  4 11:14:40 adaptive QOS: Applying  TC Up   Rules
Dec  4 11:14:40 adaptive QOS: Modifying TC Class Rates
Dec  4 11:14:40 kernel: HTB: quantum of class 10011 is big. Consider r2q change.
Dec  4 11:14:40 kernel: HTB: quantum of class 10012 is big. Consider r2q change.
Dec  4 11:14:40 kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Dec  4 11:14:41 kernel: HTB: quantum of class 10014 is big. Consider r2q change.
Dec  4 11:14:41 kernel: HTB: quantum of class 10015 is big. Consider r2q change.

Speedtest to ISP Directly:
upload_2018-12-4_12-9-10.png
 
Last edited:
Anybody had any speed issues with their Adaptive QOS setups, with the latest V384.8 Final of Merlin's (AC3100), along with or without using FreshJR's script? I now have 300DL/15UL speeds available (It used to be 150DL/15UL), but the only way to use them is to turn QOS off altogether, otherwise if I turn it on, I have tested with both just using Adaptive QOS, and using Adaptive QOS with FreshJr's script, and my speeds for Download max out at 210-227Mbps, when I have the Download limit set for 300Mbps, and without QOS, I can get a Download speedtest of up to 320Mbps?

Edit:

Is there any command lines to completely clear the QOS settings, to establish a baseline, and then test turning back on QOS first, test, then other parts of QOS like Adaptive QOS, and then finally add FreshJR QOS Script, in order to determine where the issue may be?

Just did a cold reboot, and ran the following command, and grabbed info from system log......

/jffs/scripts/FreshJR_QOS -debug
Code:
Dec  4 11:34:19 adaptive QOS: Undf Prio: 2
Dec  4 11:34:19 adaptive QOS: Undf FlowID: 1:13
Dec  4 11:34:19 adaptive QOS: Classes Present: 8
Dec  4 11:34:19 adaptive QOS: Down Band: 307200
Dec  4 11:34:19 adaptive QOS: Up Band  : 15360
Dec  4 11:34:19 adaptive QOS: ***********
Dec  4 11:34:19 adaptive QOS: Net = 1:10
Dec  4 11:34:20 adaptive QOS: VOIP = 1:11
Dec  4 11:34:20 adaptive QOS: Gaming = 1:12
Dec  4 11:34:20 adaptive QOS: Others = 1:13
Dec  4 11:34:20 adaptive QOS: Web = 1:14
Dec  4 11:34:20 adaptive QOS: Streaming = 1:15
Dec  4 11:34:20 adaptive QOS: Downloads = 1:16
Dec  4 11:34:20 adaptive QOS: Defaults = 1:17
Dec  4 11:34:20 adaptive QOS: ***********
Dec  4 11:34:20 adaptive QOS: Downrates -- 15360, 61440, 46080, 30720, 30720, 92160, 15360, 15360
Dec  4 11:34:20 adaptive QOS: Downbursts -- 19200b, 75Kb, 38390b, 19200b, 14392b, 11185b, 6395b, 3196b
Dec  4 11:34:20 adaptive QOS: DownCbursts -- 375Kb, 375Kb, 375Kb, 375Kb, 375Kb, 375Kb, 375Kb, 375Kb
Dec  4 11:34:20 adaptive QOS: ***********
Dec  4 11:34:20 adaptive QOS: Uprates -- 768, 3072, 2304, 4608, 1536, 1536, 768, 768
Dec  4 11:34:20 adaptive QOS: Upbursts -- 3198b, 3198b, 3198b, 3197b, 3198b, 3198b, 3198b, 3198b
Dec  4 11:34:20 adaptive QOS: UpCbursts -- 19200b, 19200b, 19200b, 19200b, 19200b, 19200b, 19200b, 19200b

System Log: QOS and FreshJR Script being applied

Code:
Dec  4 11:09:36 admin: /jffs/scripts/firewall-start: Configuring wl0.1
Dec  4 11:09:37 adaptive QOS: Applying - Iptable Down Rules
Dec  4 11:09:38 adaptive QOS: Applying - Iptable Up   Rules (eth0)
Dec  4 11:09:38 adaptive QOS: TC Modification Delayed Start (5min)
Dec  4 11:14:40 adaptive QOS: Applying  TC Down Rules
Dec  4 11:14:40 adaptive QOS: Applying  TC Up   Rules
Dec  4 11:14:40 adaptive QOS: Modifying TC Class Rates
Dec  4 11:14:40 kernel: HTB: quantum of class 10011 is big. Consider r2q change.
Dec  4 11:14:40 kernel: HTB: quantum of class 10012 is big. Consider r2q change.
Dec  4 11:14:40 kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Dec  4 11:14:41 kernel: HTB: quantum of class 10014 is big. Consider r2q change.
Dec  4 11:14:41 kernel: HTB: quantum of class 10015 is big. Consider r2q change.

Speedtest to ISP Directly:
View attachment 15353
I noticed with latest new firmware, I started getting lagged out in a few xbox one games that was never an issue before....any ideas what changes were made that might have altered adsotada QoS?
 
@JohnSmith it’s not a mis-configuration issue that is limiting your speed. It simply is most likely that you are cpu limited.

It takes work to identify and sort traffic. The processor simply cannot keep up with the work to reach your desired limits.

The only thing to check would be to check under Tools -> Hardware Acceleration.

It should say “Enabled (CTF only)” instead of disabled. I’m willing to be it is enabled since hitting your current 200mbps without HW Accerleration is most likely unattainable.

@Kingp1n sorry to hear that. I haven’t updated to the latest firmware.

I will take a look as to what is available on my end when I get updated. I don’t like updating firmware when there are no security fixes. I try not to fix what isn’t broken.
 
I was under the impression that it's not need for connections under 200mb which is qurous since I disabled it on my connection to test something I was trying to fix and I found a few downloads to be slower oddly thought it might just be my connection.
 
@JohnSmith it’s not a mis-configuration issue that is limiting your speed. It simply is most likely that you are cpu limited.

It takes work to identify and sort traffic. The processor simply cannot keep up with the work to reach your desired limits.

The only thing to check would be to check under Tools -> Hardware Acceleration.

It should say “Enabled (CTF only)” instead of disabled. I’m willing to be it is enabled since hitting your current 200mbps without HW Accerleration is most likely unattainable.

Here is the testing I did after upgrading my AC3100 to V384.8_2 (latest firmware of Merlin):


Tested with and without the following:

LAN | Switch Control:

- Enable Jumbo Frames - ENABLE or DISABLE (currently Enabled, was DISABLE in testing)
- Spanning-Tree Protocol - ENABLE or DISABLE (currently Enabled, was DISABLE in testing)

(With both of these DISABLED, it shows that CTF is enabled in the yellow word explanation as well as through command "nvram show | grep ctf" it would show "ctf_disable=0)

This was to test RMerlin's information about testing he had done in 2014 with Adaptive QOS and ONLY CTF Enabled that could achieve in theory up to 500Mbps...

https://www.snbforums.com/threads/qos-download-bandwidth-capped-at-100mb.21132/#post-153090


Settings | Other Settings:

- Enable IP Traffic (Per IP Monitoring) - YES or NO (currently YES, was NO in testing) tested as per RMerlin

https://www.snbforums.com/threads/enabling-iptraffic-per-ip-monitoring-problem.45855/#post-396243


The only way to get 300DL/15UL, was to Disable QOS altogether, which wouldn't work on my network, as I have a couple gaming/streamers who need low latency/low jitter, and priority packets, while Downloads/Netflix/Steam/YouTube, etc. can go on in the background without effecting them, that's why QOS is required.
 
I have a few questions please. But first my setup

We are on CenturyLink VDSL+ 40/5 service about 26 miles outside Albuquerque NM (best option we have for an ISP here in the country). Speed tests show a minimum of 39.7-40.0 dl, and 4.7-4.9 up average. Using the DSLreports test I get a score of A overall, Bufferbloat of C and A+ for Quality with QoS disabled. I tried 35 Mb/s and 5.0 Mb/s with no change at all in the scores. Only the dl test changed of course. However, setting it to 33.7 Mb/s (85%) and 4.5 Mb/s gave me an A+ overall, A for BB, and A+ for Quality.

My main question is why would I want to limit the upload? Or should I be setting that to the service tier we have of 5.0 Mb/s for the upload limit? The reason I ask is because my Brother (a few miles away) accesses my Plex server via a share I assigned to him. My upload stinks for this server sharing but he does get a solid 3 Mb/s 720p from me without issues. But should I be using 85-90% limit on my upload bandwidth, or just max it out to 5.0 Mb/s? Please share any tips. Thank you

Best Regards
Rod
 
I was under the impression that it's not need for connections under 200mb which is qurous since I disabled it on my connection to test something I was trying to fix and I found a few downloads to be slower oddly thought it might just be my connection.
its always best to have the bottleneck on your router.. the only case where its a tougher decision is on 1gbs connects where the router cant come close to that speed with qos enabled and your severly gimping your connection by using it.. it will still do its job tho at 2-300mbs but your losing a lot of speed.
 
FreshJR

i would like to know if my set up was correct i attached some screenshots here
 

Attachments

  • 902F90A4-FB8F-4CF5-A05F-A9E16B05FCB4.png
    902F90A4-FB8F-4CF5-A05F-A9E16B05FCB4.png
    244.8 KB · Views: 480
My main question is why would I want to limit the upload? Or should I be setting that to the service tier we have of 5.0 Mb/s for the upload limit?

Saturating the upload will also cause bufferbloat for the entire connection (both up and down) so you would want to limit the upload speeds to avoid this bufferbloat.

To find how much you have limit upload you will have to experiment to find the best settings.

Don’t pay attention to the grade too much. If there’s only short spurt of bufferbloat when you have defined QOS limits closer to connection limits then feel make a trade off of getting a few intermittent ms of bloat when the connection is initially becoming saturated to gain more speed.

The important thing is that there isn’t bloat occurring when the network is in the constant saturated state (using full 100% allotted speeds)
 
I have a few questions please. But first my setup

We are on CenturyLink VDSL+ 40/5 service about 26 miles outside Albuquerque NM (best option we have for an ISP here in the country). Speed tests show a minimum of 39.7-40.0 dl, and 4.7-4.9 up average. Using the DSLreports test I get a score of A overall, Bufferbloat of C and A+ for Quality with QoS disabled. I tried 35 Mb/s and 5.0 Mb/s with no change at all in the scores. Only the dl test changed of course. However, setting it to 33.7 Mb/s (85%) and 4.5 Mb/s gave me an A+ overall, A for BB, and A+ for Quality.

My main question is why would I want to limit the upload? Or should I be setting that to the service tier we have of 5.0 Mb/s for the upload limit? The reason I ask is because my Brother (a few miles away) accesses my Plex server via a share I assigned to him. My upload stinks for this server sharing but he does get a solid 3 Mb/s 720p from me without issues. But should I be using 85-90% limit on my upload bandwidth, or just max it out to 5.0 Mb/s? Please share any tips. Thank you

Best Regards
Rod
Test with 95% first of both up and down values.
 
This may be dumb question but i dont recall seeing it anywhere. With script running if i were to ssh a modified custom config line just for testing would it work and take effect right away?
 
didn't mean to stump everyone on such a tough question.. let me simplify... will this work from a prompt in SSH while adaptive qos and freshJR script are running?

${tc} filter add dev br0 protocol all prio 6 u32 match mark 0x8004000A 0xc03fffff flowid ${Downloads}
 
Status
Not open for further replies.

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

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