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.
Hello everyone,
I receive an IPTV service on port 7651, can you help me in the configuration?
Thank you.

Code:
iptables -D POSTROUTING -t mangle -o br0 -d 192.168.1.2/31 -m mark --mark 0x80000000/0x8000ffff -p tcp --sport 7651  -j MARK --set-mark ${Streaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
iptables -A POSTROUTING -t mangle -o br0 -d 192.168.1.2/31 -m mark --mark 0x80000000/0x8000ffff -p tcp --sport 7651  -j MARK --set-mark ${Streaming_mark_down}

Code:
iptables -D POSTROUTING -t mangle -o $wan -s 192.168.1.2/31 -m mark --mark 0x40000000/0x4000ffff -p tcp --dport 7651 -j MARK --set-mark ${Streaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
iptables -A POSTROUTING -t mangle -o $wan -s 192.168.1.2/31 -m mark --mark 0x40000000/0x4000ffff -p tcp --dport 7651 -j MARK --set-mark ${Streaming_mark_up}

What other rules can I add?
 
Hello everyone,
I receive an IPTV service on port 7651, can you help me in the configuration?
Thank you.

Code:
iptables -D POSTROUTING -t mangle -o br0 -d 192.168.1.2/31 -m mark --mark 0x80000000/0x8000ffff -p tcp --sport 7651  -j MARK --set-mark ${Streaming_mark_down} &> /dev/null        #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", for LAN clients specified
iptables -A POSTROUTING -t mangle -o br0 -d 192.168.1.2/31 -m mark --mark 0x80000000/0x8000ffff -p tcp --sport 7651  -j MARK --set-mark ${Streaming_mark_down}

Code:
iptables -D POSTROUTING -t mangle -o $wan -s 192.168.1.2/31 -m mark --mark 0x40000000/0x4000ffff -p tcp --dport 7651 -j MARK --set-mark ${Streaming_mark_up} &> /dev/null     #Gaming (3/3) - Routes Unidentified Traffic into "Gaming", instead of "Others", from specified LAN devices in rule (line 1/2)
iptables -A POSTROUTING -t mangle -o $wan -s 192.168.1.2/31 -m mark --mark 0x40000000/0x4000ffff -p tcp --dport 7651 -j MARK --set-mark ${Streaming_mark_up}

What other rules can I add?

If its not working, its probably because you have too many filtering elements.

Eg.

1) Has to be headed to devices 192.168.1.2 - 192.168.1.3
2) Has to be unidentified
3) Has to be coming from server port 7651
4) Has to be tcp protocol

--

It could simply be not hitting one of your requirements.
 
Hi,

Trying to set up FreshJR script on my ac68u running Merlin FW. When i try to debug the first line i get is a missing qosd.conf in /temp/bwdpi/. What is that? And why is missing?

admin@DSL-AC68U-C848:/tmp/home/root# sh /jffs/scripts/FreshJR_QOS -debug

cat: can't open '/tmp/bwdpi/qosd.conf': No such file or directory

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

adaptive QOS: Undf Prio:

adaptive QOS: Undf FlowID:

adaptive QOS: Classes Present: 1

adaptive QOS: Down Band: 64512

adaptive QOS: Up Band : 15360

adaptive QOS: ***********

adaptive QOS: Net = 1:10

adaptive QOS: VOIP =

adaptive QOS: Gaming =

adaptive QOS: Others =

adaptive QOS: Web =

adaptive QOS: Streaming =

adaptive QOS: Downloads =

adaptive QOS: Defaults = 1:17

adaptive QOS: ***********

adaptive QOS: Downrates -- 3225, , , , , , , 3225

adaptive QOS: Downbursts -- , , , , , , ,

adaptive QOS: DownCbursts -- , , , , , , ,

adaptive QOS: ***********

adaptive QOS: Uprates -- 768, , , , , , , 768

adaptive QOS: Upbursts -- , , , , , , ,

adaptive QOS: UpCbursts -- , , , , , , ,
 
Last edited:
Hi,

Trying to set up FreshJR script on my ac68u running Merlin FW. When i try to debug the first line i get is a missing qosd.conf in /temp/bwdpi/. What is that? And why is missing?

admin@DSL-AC68U-C848:/tmp/home/root# sh /jffs/scripts/FreshJR_QOS -debug

cat: can't open '/tmp/bwdpi/qosd.conf': No such file or directory

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

expr: non-numeric argument

adaptive QOS: Undf Prio:

adaptive QOS: Undf FlowID:

adaptive QOS: Classes Present: 1

adaptive QOS: Down Band: 64512

adaptive QOS: Up Band : 15360

adaptive QOS: ***********

adaptive QOS: Net = 1:10

adaptive QOS: VOIP =

adaptive QOS: Gaming =

adaptive QOS: Others =

adaptive QOS: Web =

adaptive QOS: Streaming =

adaptive QOS: Downloads =

adaptive QOS: Defaults = 1:17

adaptive QOS: ***********

adaptive QOS: Downrates -- 3225, , , , , , , 3225

adaptive QOS: Downbursts -- , , , , , , ,

adaptive QOS: DownCbursts -- , , , , , , ,

adaptive QOS: ***********

adaptive QOS: Uprates -- 768, , , , , , , 768

adaptive QOS: Upbursts -- , , , , , , ,

adaptive QOS: UpCbursts -- , , , , , , ,

Do you have adaptiveQOS turned on in the webUI?
 
Already restarted several times. I'm running Merlin 384.7 and FreshJR_QOS_v7 released 08/03/2018.

Can you post your qosd.conf?

qosd.conf is automatically generated when Asus adaptiveQOS starts.

Try updating the your "Signature Version" under Administration -> Firmware Update.

After it updates, turn off QOS, then turn it back on. (Wait like 1-2min after completion of each of these three steps, the WebUI says stuff is finished before it actually is). If it still doesn't work perform another reboot. Something is glitched with your adaptiveQOS.


My file will do you no good. That file is like a stats file of your current settings. If it is not being generated then QOS is not functioning at all, let alone any modifications on top of it.
 
qosd.conf is automatically generated when Asus adaptiveQOS starts.

Try updating the your "Signature Version" under Administration -> Firmware Update.

After it updates, turn off QOS, then turn it back on. (Wait like 1-2min after completion of each of these three steps, the WebUI says stuff is finished before it actually is). If it still doesn't work perform another reboot. Something is glitched with your adaptiveQOS.


My file will do you no good. That file is like a stats file of your current settings. If it is not being generated then QOS is not functioning at all, let alone any modifications on top of it.


Signature is up to date :(

2.092 Updated : 2018/10/14 18:53
 
Signature is up to date :(

2.092 Updated : 2018/10/14 18:53

Turn on adptiveQOS. Give it like 5 minutes to settle so it is turned on completely and send me the output of.

Code:
tc class show dev br0
tc filter show dev br0

this will show me if default QOS is actually functioning at all, even if the file isn't being generated.
 
Turn on adptiveQOS. Give it like 5 minutes to settle so it is turned on completely and send me the output of.

Code:
tc class show dev br0
tc filter show dev br0

this will show me if default QOS is actually functioning at all, even if the file isn't being generated.

no output at all

admin@DSL-AC68U-C848:/tmp/bwdpi# tc class show dev br0

admin@DSL-AC68U-C848:/tmp/bwdpi# tc filter show dev br0

admin@DSL-AC68U-C848:/tmp/bwdpi#
 
I thought that would be the case. Something is wrong with your firmware.

The only thing left to try is to reinitialize your firmware. This will clear all your confgurations & data.

Do you mean restoring to factory defaults or reinstalling the firmware?
 
I did the initialisation but nothing. When i start QOS i see it creates all the files excepts the qosd.conf

You have to figure out how to get QOS running first. Don't worry about getting the script to work at this point.

AdaptiveQOS is NOT running on your router contrary to what is shown in the webUI. There are no commands being issued to create a TC qos structure since when we tried to view the existing structure it was blank.

Go look at system log for clues.

Since an initialization did not work, you can try reinstalling the current firmware or downgrading to one version prior.
 
You have to figure out how to get QOS running first. Don't worry about getting the script to work at this point.

AdaptiveQOS is NOT running on your router contrary to what is shown in the webUI. There are no commands being issued to create a TC qos structure since when we tried to view the existing structure it was blank.

Go look at system log for clues.

Since an initialization did not work, you can try reinstalling the current firmware or downgrading to one version prior.


Reverted back to stock asus firmware and qos was functioning. I copied the qosd.conf and qos_rul files to my pc. Then re-installed Merlin and QOS isn't working anymore. Copied the files back and now debug is ok but still blank output with "tc class show dev br0". It's a Merlin bug i think.

admin@DSL-AC68U-C848:/tmp/bwdpi# /jffs/scripts/FreshJR_QOS -debug

adaptive QOS: Undf Prio:

adaptive QOS: Undf FlowID:

adaptive QOS: Classes Present: 1

adaptive QOS: Down Band: 66560

adaptive QOS: Up Band : 15360

adaptive QOS: ***********

adaptive QOS: Net = 1:10

adaptive QOS: VOIP = 1:12

adaptive QOS: Gaming = 1:13

adaptive QOS: Others = 1:16

adaptive QOS: Web = 1:14

adaptive QOS: Streaming = 1:11

adaptive QOS: Downloads = 1:15

adaptive QOS: Defaults = 1:17

adaptive QOS: ***********

adaptive QOS: Downrates -- 3328, 19968, 13312, 9984, 6656, 3328, 6656, 3328

adaptive QOS: Downbursts -- , , , , , , ,

adaptive QOS: DownCbursts -- , , , , , , ,

adaptive QOS: ***********

adaptive QOS: Uprates -- 768, 1536, 3072, 2304, 1536, 768, 4608, 768

adaptive QOS: Upbursts -- , , , , , , ,

adaptive QOS: UpCbursts -- , , , , , , ,

Oct 18 23:12:41 adaptive QOS: Delayed Start Canceled
Oct 18 23:12:41 adaptive QOS: Applying - Iptable Down Rules
Oct 18 23:12:41 adaptive QOS: Applying - Iptable Up Rules (ppp0)
Oct 18 23:12:41 adaptive QOS: TC Modification Delayed Start (5min)
Oct 18 23:13:09 rc_service: watchdog 280:notify_rc start_cfgsync
Oct 18 23:13:13 adaptive QOS: Undf Prio:
Oct 18 23:13:13 adaptive QOS: Undf FlowID:
Oct 18 23:13:13 adaptive QOS: Classes Present: 1
Oct 18 23:13:13 adaptive QOS: Down Band: 66560
Oct 18 23:13:13 adaptive QOS: Up Band : 15360
Oct 18 23:13:13 adaptive QOS: ***********
Oct 18 23:13:13 adaptive QOS: Net = 1:10
Oct 18 23:13:13 adaptive QOS: VOIP = 1:12
Oct 18 23:13:13 adaptive QOS: Gaming = 1:13
Oct 18 23:13:13 adaptive QOS: Others = 1:16
Oct 18 23:13:13 adaptive QOS: Web = 1:14
Oct 18 23:13:13 adaptive QOS: Streaming = 1:11
Oct 18 23:13:13 adaptive QOS: Downloads = 1:15
Oct 18 23:13:13 adaptive QOS: Defaults = 1:17
Oct 18 23:13:13 adaptive QOS: ***********
Oct 18 23:13:13 adaptive QOS: Downrates -- 3328, 19968, 13312, 9984, 6656, 3328, 6656, 3328
Oct 18 23:13:13 adaptive QOS: Downbursts -- , , , , , , ,
Oct 18 23:13:13 adaptive QOS: DownCbursts -- , , , , , , ,
Oct 18 23:13:13 adaptive QOS: ***********
Oct 18 23:13:13 adaptive QOS: Uprates -- 768, 1536, 3072, 2304, 1536, 768, 4608, 768
Oct 18 23:13:13 adaptive QOS: Upbursts -- , , , , , , ,
Oct 18 23:13:13 adaptive QOS: UpCbursts -- , , , , , , ,
 
Reverted back to stock asus firmware and qos was functioning. I copied the qosd.conf and qos_rul files to my pc. Then re-installed Merlin and QOS isn't working anymore. Copied the files back and now debug is ok but still blank output with "tc class show dev br0". It's a Merlin bug i think.
Or because the DSL variant is not supported
 
Curious what is the value of the default burst in comparison to the 1600 value?
 
Curious what is the value of the default burst in comparison to the 1600 value?
I did sum digging on this. Burst more or less allows a leaf class like gaming or others for example go above the "rate". It earns this capability by like an allowance for not being at burst. But i still havent quite figured out if its of any use with our qos. Since we can already go wel over rate if its needed and available. The burst feature may be more tied into the driver though and less cpu hog but not sure. Im quite happy with our current setup but am interested in increasing efficiency so qos and vpn can achieve closer to the 1gbps.
 
Status
Not open for further replies.

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