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.
Today I was very frustrated with your script / Adaptive QOS in genera, here is what happened:

1. I was downloading games from my PC
2. Video streaming on my shield device was stuttering
3. Although I have the Shield TV device priority to highest, I also set my PC priority to lowest.
4. tThe traffic is correctly identified as Game Downloads, it was set in the Download section 5% - 100% / I changed that to 5% - 30%

I expected it would lower down the game downloads rate, but it didn't, what am I doing wrong heree?
 
Today I was very frustrated with your script / Adaptive QOS in genera, here is what happened:

1. I was downloading games from my PC
2. Video streaming on my shield device was stuttering
3. Although I have the Shield TV device priority to highest, I also set my PC priority to lowest.
4. tThe traffic is correctly identified as Game Downloads, it was set in the Download section 5% - 100% / I changed that to 5% - 30%

I expected it would lower down the game downloads rate, but it didn't, what am I doing wrong heree?
Do not use device priorities
 
Also another thing, I tried to Clock internet access for that device from my iOS app...it does nothing, the device did not get blocked.

Is that a bug?
 
Today I was very frustrated with your script / Adaptive QOS in genera, here is what happened:

1. I was downloading games from my PC
2. Video streaming on my shield device was stuttering
3. Although I have the Shield TV device priority to highest, I also set my PC priority to lowest.
4. tThe traffic is correctly identified as Game Downloads, it was set in the Download section 5% - 100% / I changed that to 5% - 30%

I expected it would lower down the game downloads rate, but it didn't, what am I doing wrong heree?

@FreshJR

Can you please ensure with me that all settings are fine:


FreshJR QOS v8.8
Debug:

adaptive QOS: Undf Prio: 2
adaptive QOS: Undf FlowID: 1:17
adaptive QOS: Classes Present: 8
adaptive QOS: Down Band: 9216
adaptive QOS: Up Band : 973
adaptive QOS: ***********
adaptive QOS: Net = 1:10
adaptive QOS: VOIP = 1:13
adaptive QOS: Gaming = 1:15
adaptive QOS: Others = 1:16
adaptive QOS: Web = 1:11
adaptive QOS: Streaming = 1:12
adaptive QOS: Downloads = 1:14
adaptive QOS: Defaults = 1:17
adaptive QOS: ***********
adaptive QOS: Downrates -- 460, 921, 2764, 1843, 460, 1382, 921, 460
adaptive QOS: Downceils -- 9216, 9216, 9216, 9216, 2764, 9216, 9216, 2764
adaptive QOS: Downbursts -- 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b
adaptive QOS: DownCbursts -- 11198b, 11198b, 11198b, 11198b, 11198b, 11198b, 11198b, 11198b
adaptive QOS: ***********
adaptive QOS: Uprates -- 48, 97, 97, 194, 48, 145, 291, 48
adaptive QOS: Upciels -- 973, 973, 973, 973, 291, 973, 973, 291
adaptive QOS: Upbursts -- 3199b, 3199b, 3199b, 3199b, 3200b, 3199b, 3200b, 3200b
adaptive QOS: UpCbursts -- 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b
fearz@RT-AC5300-7DC0:/tmp/home/root#


I don't want ANY thing affect Video Streaming, no matter which device or category.
 
@FreshJR

Can you please ensure with me that all settings are fine:


FreshJR QOS v8.8
Debug:

adaptive QOS: Undf Prio: 2
adaptive QOS: Undf FlowID: 1:17
adaptive QOS: Classes Present: 8
adaptive QOS: Down Band: 9216
adaptive QOS: Up Band : 973
adaptive QOS: ***********
adaptive QOS: Net = 1:10
adaptive QOS: VOIP = 1:13
adaptive QOS: Gaming = 1:15
adaptive QOS: Others = 1:16
adaptive QOS: Web = 1:11
adaptive QOS: Streaming = 1:12
adaptive QOS: Downloads = 1:14
adaptive QOS: Defaults = 1:17
adaptive QOS: ***********
adaptive QOS: Downrates -- 460, 921, 2764, 1843, 460, 1382, 921, 460
adaptive QOS: Downceils -- 9216, 9216, 9216, 9216, 2764, 9216, 9216, 2764
adaptive QOS: Downbursts -- 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b
adaptive QOS: DownCbursts -- 11198b, 11198b, 11198b, 11198b, 11198b, 11198b, 11198b, 11198b
adaptive QOS: ***********
adaptive QOS: Uprates -- 48, 97, 97, 194, 48, 145, 291, 48
adaptive QOS: Upciels -- 973, 973, 973, 973, 291, 973, 973, 291
adaptive QOS: Upbursts -- 3199b, 3199b, 3199b, 3199b, 3200b, 3199b, 3200b, 3200b
adaptive QOS: UpCbursts -- 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b, 3199b
fearz@RT-AC5300-7DC0:/tmp/home/root#


I don't want ANY thing affect Video Streaming, no matter which device or category.


The Undf FlowID should not reflect 1:17....it seems the script is not enabled. Plz try uninstalling and reinstalling the script and try the debug mode again.
 
The Undf FlowID should not reflect 1:17....it seems the script is not enabled. Plz try uninstalling and reinstalling the script and try the debug mode again.
Right, my Undf FlowID is pointing to Others rather than Defaults
Code:
FreshJR QOS v8.8
Debug:

adaptive QOS: Undf Prio: 2
adaptive QOS: Undf FlowID: 1:16
adaptive QOS: Classes Present: 8
adaptive QOS: Down Band: 442368
adaptive QOS: Up Band  : 11059
adaptive QOS: ***********
adaptive QOS: Net = 1:10
adaptive QOS: VOIP = 1:13
adaptive QOS: Gaming = 1:11
adaptive QOS: Others = 1:16
adaptive QOS: Web = 1:14
adaptive QOS: Streaming = 1:12
adaptive QOS: Downloads = 1:15
adaptive QOS: Defaults = 1:17
adaptive QOS: ***********
adaptive QOS: Downrates -- 22118, 66355, 132710, 88473, 44236, 22118, 44236, 22118
adaptive QOS: Downceils -- 442368, 442368, 442368, 442368, 442368, 442368, 442368, 442368
adaptive QOS: Downbursts -- 27194b, 110364b, 54361b, 27183b, 20790b, 15994b, 9588b, 4794b
adaptive QOS: DownCbursts -- 551798b, 551798b, 551798b, 551798b, 551798b, 551798b, 551798b, 551798b
adaptive QOS: ***********
adaptive QOS: Uprates -- 552, 1658, 1105, 2211, 1105, 552, 3317, 552
adaptive QOS: Upciels -- 11059, 11059, 11059, 11059, 11059, 11059, 11059, 11059
adaptive QOS: Upbursts -- 3198b, 3198b, 3198b, 3198b, 3198b, 3198b, 3198b, 3198b
adaptive QOS: UpCbursts -- 12795b, 12795b, 12795b, 12795b, 12795b, 12795b, 12795b, 12795b
 
I uninstalled and re-installed and now its like that:


FreshJR QOS v8.8
Debug:

adaptive QOS: Undf Prio:
adaptive QOS: Undf FlowID:
adaptive QOS: Classes Present: 1
adaptive QOS: Down Band: 9216
adaptive QOS: Up Band : 973
adaptive QOS: ***********
adaptive QOS: Net = 1:10
adaptive QOS: VOIP = 1:13
adaptive QOS: Gaming = 1:15
adaptive QOS: Others = 1:16
adaptive QOS: Web = 1:11
adaptive QOS: Streaming = 1:12
adaptive QOS: Downloads = 1:14
adaptive QOS: Defaults = 1:17
adaptive QOS: ***********
adaptive QOS: Downrates -- 460, 921, 2764, 1843, 460, 1382, 921, 460
adaptive QOS: Downceils -- 9216, 9216, 9216, 9216, 9216, 9216, 9216, 9216
adaptive QOS: Downbursts -- , , , , , , ,
adaptive QOS: DownCbursts -- , , , , , , ,
adaptive QOS: ***********
adaptive QOS: Uprates -- 48, 97, 97, 194, 48, 145, 291, 48
adaptive QOS: Upciels -- 973, 973, 973, 973, 973, 973, 973, 973
adaptive QOS: Upbursts -- , , , , , , ,
adaptive QOS: UpCbursts -- , , , , , , ,


Is that correct?
 
Today I was very frustrated with your script / Adaptive QOS in genera, here is what happened:

1. I was downloading games from my PC
2. Video streaming on my shield device was stuttering
3. Although I have the Shield TV device priority to highest, I also set my PC priority to lowest.
4. tThe traffic is correctly identified as Game Downloads, it was set in the Download section 5% - 100% / I changed that to 5% - 30%

I expected it would lower down the game downloads rate, but it didn't, what am I doing wrong heree?

Maybe both your game downloads and video stream were both detected as WebSurfing and were lumped into the same category.
You should double check with what the rates next to the pie charts reflect to confirm where traffic is going.

If both device traffic was going to the same category AND you had device priority defined, one device is guarenteed to get chocked out. (it might even be the device set to highest priority getting chocked since device priority is VERY broken). Seriously, don't use it.

As for your debug values, you have to wait 5 minutes or more after restarting QoS before running debug so it could parse accurate values.

I'm not sure this method will work.
I created a rule to redirect all torrent traffic to 'File Transfer'. However, around 50% of this traffic is redirected to 'Other'.

My torrent client is using the port assigned to it as well as numerous other ports.

If the information in the thread linked below is correct (and I understood it correctly), the torrent client will use the assigned port to establish new connections. Then it will be handed over to dynamically assigned ports.
https://forum.transmissionbt.com/viewtopic.php?t=15275&p=66506

There should be a setting for it not to use dynamic/ephemeral ports.

@FreshJR Any chance you can merge the classification page filter changes @RMerlin did in your version of classification page?

Sure thing

How do we know there's an update to this amazing script? At the same, how do we update it? Thanks :)

Run the install command from the first post

OR

Code:
/jffs/scripts/FreshJR_QOS -update

Yeah but that appears to be an interactive updater. I was hoping for a non-blocking update...

Next update will wipe user defined rules. I don't want to write a rule format conversion function to parse old rules into the new internal format.

I would be forced to maintain extra compatibility if support non-blocking updates to support carry over old settings while introducing new features.

Since updates are very sparse, I wouldn't worry about checking for updates often. (If its working, just check back once a year) With manual updates, if you find an update, gander over the QoS page to see if anything requires attention.
 
Last edited:
Here is what it looks now:

reshJR QOS v8.8
Debug:

adaptive QOS: Undf Prio: 2
adaptive QOS: Undf FlowID: 1:16
adaptive QOS: Classes Present: 8
adaptive QOS: Down Band: 9216
adaptive QOS: Up Band : 973
adaptive QOS: ***********
adaptive QOS: Net = 1:10
adaptive QOS: VOIP = 1:13
adaptive QOS: Gaming = 1:15
adaptive QOS: Others = 1:16
adaptive QOS: Web = 1:11
adaptive QOS: Streaming = 1:12
adaptive QOS: Downloads = 1:14
adaptive QOS: Defaults = 1:17
adaptive QOS: ***********
adaptive QOS: Downrates -- 460, 921, 2764, 1843, 460, 1382, 921, 460
adaptive QOS: Downceils -- 9216, 9216, 9216, 9216, 9216, 9216, 9216, 9216
adaptive QOS: Downbursts -- 3198b, 3198b, 3198b, 3198b, 3198b, 3198b, 3198b, 3198b
adaptive QOS: DownCbursts -- 11197b, 11197b, 11197b, 11197b, 11197b, 11197b, 11197b, 11197b
adaptive QOS: ***********
adaptive QOS: Uprates -- 48, 97, 97, 194, 48, 145, 291, 48
adaptive QOS: Upciels -- 973, 973, 973, 973, 973, 973, 973, 973
adaptive QOS: Upbursts -- 3198b, 3198b, 3198b, 3198b, 3199b, 3198b, 3199b, 3199b
adaptive QOS: UpCbursts -- 3198b, 3198b, 3


Maybe both your game downloads and video stream were both detected as WebSurfing and were lumped into the same category.
You should double check with what the rates next to the pie charts reflect to confirm where traffic is going.

If both device traffic was going to the same category AND you had device priority defined, one device is guarenteed to get chocked out. (it might even be the device set to highest priority getting chocked since device priority is VERY broken). Seriously, don't use it.

As for your debug values, you have to wait 5 minutes or more after restarting QoS before running debug so it could parse accurate values.



There should be a setting for it not to use dynamic/ephemeral ports.



Sure thing



Run the install command from the first post

OR

Code:
/jffs/scripts/FreshJR_QOS -update
 
Looks fine, as long as all the values are populated and "Undf FlowID" is not "1:17" then its working, as stated in first post.
does the script have to have the category arrangement of
Code:
VoIP
Gaming
Others
Web Surfing
Video and Audio Streaming
File Transfers
or will it run fine with the default category arrangement? I noticed the HTTPS traffic gets moved to web traffic. most of my devices rely heavily on the https traffic though and i am noticing hiccups in connections is this associated to that being now at a lower category v.s. being top priority of network control packet?

I have over half a page of unproperly defined traffic that falls into web traffic category
upload_2019-5-24_22-13-0.png
upload_2019-5-24_22-14-32.png
upload_2019-5-24_22-16-13.png

I also have half a page of HTTPS traffic and that is most of my network....
upload_2019-5-24_22-17-25.png
upload_2019-5-24_22-18-42.png

this is some other traffic I have alot of...
I am trying to figure out, if i install this script, knowing all of this different traffics that are on my network, what may be the optimal arrangement of the categories for me?
 
Last edited:
Every category has guaranteed bandwidth so the order just really decides who gets excess bandwidth from categories not using all of their guaranteed rates.

The post was just a recommendation that works well.
 
Every category has guaranteed bandwidth so the order just really decides who gets excess bandwidth from categories not using all of their guaranteed rates.

The post was just a recommendation that works well.
okay just seeking best advice as I am a little bit of a novice at this.

thank you for your explanation.
 
Every category has guaranteed bandwidth so the order just really decides who gets excess bandwidth from categories not using all of their guaranteed rates.

The post was just a recommendation that works well.
upload_2019-5-24_22-55-2.png

this is what everything looks like with out the script yet...
 
View attachment 17771
this is what everything looks like with out the script yet...

Results are as expected (same as they were before I made the script)

Without the script:

-net control will have https transfers and will choke everything beneath it

-default will contain unifentified traffic but it will be choked since file transfer && video streaming are bulk bandwidth categories who have bandwidth priority over unidenfied such as game protocols && misc transfers

-voip can use a boost for classifying WiFi calling && facetime

-guaranteed rates can use tweaking so nothing gets choked completely even with a saturated network

So yup, modifications from the script are still recommended.
 
Last edited:
Results are as expected (same as they were before I made the script)

-net control will have https transfers and will choke everything beneath it

-default will contain some traffic but it will be chocked since file transfer && video streaming are bulk bandwidth users who have bandwidth priority

-voip can use a boost for WiFi calling && facetime

-guaranteed rates can use tweaking so nothing gets chocked completely

So yup, modifications are still recommended.

yea i also use a voip dedicated phone line as well which appears not to be identified at all in my traffic.
but here is my dsl reports without the script
upload_2019-5-24_23-3-23.png
 
yea i also use a voip dedicated phone line as well which appears not to be identified at all in my traffic.
but here is my dsl reports without the script
View attachment 17772

Script doesn’t really tweak the resulting grades.

Instead it tweaks what is choked and what isn’t, and to what extent traffic should be choked.

You can have great grades, but bad logic will stall groups of traffic.

Edit: since the script depriorizes https away from net control (like dslteports) you may score a worse grade if testing on a busy network BUT the overall internet expirence will be better since dslreports should of never been given top priority in the first place. (That’s why it’s recommened to initially test for rates when the network is NOT busy)
 
Last edited:
Script doesn’t really tweak the resulting grades.

Instead it tweaks what is chocked and what isn’t.

You can have great grades, but bad logic will stall groups of traffic.
especially if the traffic is not properly identified like you said.
 
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