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.
Those are real time speeds of network traffic.

If you are using the internet and the real time traffic shows ZERO, that means something is broken.

If you are just viewing the stats and no one is using the internet, then you have no internet traffic actively on-going.

I have many users on my network, so there is rarely a time the real-time traffic is ZERO.
@FreshJR is there a way i can troubleshoot if something is broken, i can honestly say were using the internet and the real time traffic reflects zero....
 
@FreshJR is there a way i can troubleshoot if something is broken, i can honestly say were using the internet and the real time traffic reflects zero....

You can run

Code:
/jffs/scripts/FreshJR_QOS -debug

and post the results..

If the results are not expected, I would recommend uninstalling the script and seeing if default QOS is working prior to any modification.

This script is just a minor modification applied on top of the regular QOS setup. If regular QOS is not working, then this script has no chance of working.
 
This all sounds good (not sure if I actually had an issue before installing however, but you never know).

I have it installed in its base format, enabled the gaming bits for the xboxes in the house, and added some stuff for the roku stremers and my mani downloading device - But I really dont understand all the mark stuff for the gaming ? wouldn't I just have all traffic for those IP's ogf the xboxes hardcoded to Gaming, much the same as i have dne for the below Streaming ?

realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.33/32 match mark 0x80000000 0x80000fff flowid ${Gaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.34/32 match mark 0x80000000 0x80000fff flowid ${Gaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.35/32 match mark 0x80000000 0x80000fff flowid ${Gaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.36/32 match mark 0x80000000 0x80000fff flowid ${Gaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.37/32 match mark 0x80000000 0x80000fff flowid ${Gaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.38/32 match mark 0x80000000 0x80000fff flowid ${Gaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.39/32 match mark 0x80000000 0x80000fff flowid ${Gaming}

I added the below for the roku devices in the house :

realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.24/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.25/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.26/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.27/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.28/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.29/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.30/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.31/32 flowid ${Streaming}
realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.32/32 flowid ${Streaming}

and added this for my main PC that does downloads etc :

realtc filter add dev br0 protocol all prio $1 u32 match ip dst 192.168.1.10/32 flowid ${Downloads}

I activated the gaming up roles also.

And for the iptables, for gaming I did this :

iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.1.33/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark} &> /dev/null
iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.1.33/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark}
iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.1.34/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark} &> /dev/null
iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.1.34/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark}
iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.1.35/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark} &> /dev/null
iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.1.35/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark}
iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.1.36/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark} &> /dev/null
iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.1.36/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark}
iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.1.37/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark} &> /dev/null
iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.1.37/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark}
iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.1.38/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark} &> /dev/null
iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.1.38/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark}
iptables -D POSTROUTING -t mangle -o eth0 -s 192.168.1.39/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark} &> /dev/null
iptables -A POSTROUTING -t mangle -o eth0 -s 192.168.1.39/32 -m mark --mark 0x40000000/0x4000ffff -j MARK --set-mark ${Gaming_mark}

Finally, I have two other sets of things at my house - three IP camera's and 2 google home devices. All have fixed IP's. What should I do with those ?

The rest are just Iphones which I guess I do nothing with ?

Thanks.
 
So shift the range of IP’s or use two cidr rules.

You are wasting a lot of cpu and adding delays as a result.

24-31 ip range is available, but that would be 2 devices short, so you can expand and 16-31 OR two CIDR rules

32-39 is completely available but you have 7 Xboxs ?!?

Is easily possible to achieve less rules
 
Last edited:
OK, modded the IP's to suit, lowered the xbox's to just the xbox one's, and just three roku's - likely the only ones streaming from the UK :
192.168.1.37/30
192.168.1.24/30

3 xbox1's and 4 xbox 360's yes.
 
One other question, I can see you can do source and destination ports in the examples. I am a bit confused as to the port for something.
I host a streaming service on port 8920, so others connect to that port on my router (and it forwards to my server).
Is this correct in the uploads section :
realtc filter add dev eth0 protocol all prio $1 u32 match ip sport 8920 0xffff flowid ${Streaming}
 
So shift the range of IP’s or use two cidr rules.

You are wasting a lot of cpu and adding delays as a result.

24-31 which is 2 devices short so use (16-31)
32-39 (You have 7 Xboxs ?!?)

Is easily possible
maybe he's running a lan café :p
 
One other question, I can see you can do source and destination ports in the examples. I am a bit confused as to the port for something.
I host a streaming service on port 8920, so others connect to that port on my router (and it forwards to my server).
Is this correct in the uploads section :
realtc filter add dev eth0 protocol all prio $1 u32 match ip sport 8920 0xffff flowid ${Streaming}

It might not make a difference since the game is most likely hosted and played on the same ports. Aka traffic originates from 8920 and goes towards 8920 so you can’t really mess it up.

I will post examples on the first post since a lot of people are getting confused apparently.

I would make it eth0 dport tho since you know for sure that the server is hosted 8920 but the consoles might be played on ports 8921, 8922 depending how the game itself is setup.

Upload Traffic (eth0) that is destined to (dport) port 8920 on the remote server.
 
maybe he's running a lan café :p

This is a media delivery service for my family, not gaming. I noted last night the streaming out was on others - which I am happy with as it is different to 'streaming' which we use to watch stuff ourselves so no conflict. Im happy with that as is.

Re the xboxes - Just have three teenagers, a lounge room, a media room. 7 xboxes does not seem excessive between them all does it ? They dont get rid of the xbox360 once they get the one's as not all games play - 3 of those xbox360's are jtagged, one is used for old game live play.
 
You can run

Code:
/jffs/scripts/FreshJR_QOS -debug

and post the results..

If the results are not expected, I would recommend uninstalling the script and seeing if default QOS is working prior to any modification.

This script is just a minor modification applied on top of the regular QOS setup. If regular QOS is not working, then this script has no chance of working.
@FreshJR below is what I received from the debug command:

May 24 16:04:03 kernel: br0: received packet on eth2 with own address as source address
May 24 16:05:56 dropbear[11018]: Child connection from 192.168.1.201:53577
May 24 16:06:03 dropbear[11018]: Password auth succeeded for 'admin' from 192.168.1.201:53577
May 24 16:06:09 adaptive QOS: Classes Present: 8
May 24 16:06:09 adaptive QOS: Undf Prio: 2
May 24 16:06:09 adaptive QOS: Undf FlowID: 1:12
May 24 16:06:09 adaptive QOS: ***********
May 24 16:06:09 adaptive QOS: Down Band -- 143360
May 24 16:06:09 adaptive QOS: Downrates -- 7168,21504,21504,14336,14336,43008,7168,14336
May 24 16:06:09 adaptive QOS: ***********
May 24 16:06:09 adaptive QOS: Up Band -- 5120
May 24 16:06:09 adaptive QOS: Uprates -- 256,768,1536,512,512,512,256,768
May 24 16:06:09 adaptive QOS: ***********
May 24 16:06:09 adaptive QOS: Net = 1:10
May 24 16:06:09 adaptive QOS: VOIP = 1:13
May 24 16:06:09 adaptive QOS: Gaming = 1:11
May 24 16:06:09 adaptive QOS: Others = 1:12
May 24 16:06:09 adaptive QOS: Web = 1:14
May 24 16:06:09 adaptive QOS: Streaming = 1:15
May 24 16:06:09 adaptive QOS: Downloads = 1:16
May 24 16:06:09 adaptive QOS: Defaults = 1:17
May 24 16:06:09 adaptive QOS: ***********
May 24 16:06:09 adaptive QOS: FreshJR fakeTC is enabled
May 24 16:06:09 adaptive QOS: (Adaptive QOS is turned ON in router UI)
 
Hi all


To install the script on lan : 10.20.30.1

I will have to change all 192.168.1.1 values for these others 10.20.30.1 ??

With notepad in the script?

In putty parameters and entrys too??

Thanks
 
This is a media delivery service for my family, not gaming. I noted last night the streaming out was on others - which I am happy with as it is different to 'streaming' which we use to watch stuff ourselves so no conflict. Im happy with that as is.

Re the xboxes - Just have three teenagers, a lounge room, a media room. 7 xboxes does not seem excessive between them all does it ? They dont get rid of the xbox360 once they get the one's as not all games play - 3 of those xbox360's are jtagged, one is used for old game live play.
Hey if I could have four pcs and Xbox ones I would, so their lucky, I have three Xboxes one original Xbox, Xbox 360, and an Xbox one also two pcs.
 
Was gonna give it a tryfor the fast version
uploaded through WinSCP disabled QOS and disable FRESHJR

but after uploading the new version and chmod + FreshQOS
i get:

-sh: /jffs/scripts/FreshJR_QOS: Permission denied
fearz@RT-AC5300-81F0:/jffs/scripts# /jffs/scripts/FreshJR_QOS -enable
-sh: /jffs/scripts/FreshJR_QOS: Permission denied
fearz@RT-AC5300-81F0:/jffs/scripts#


Any help
 
Was gonna give it a tryfor the fast version
uploaded through WinSCP disabled QOS and disable FRESHJR

but after uploading the new version and chmod + FreshQOS
i get:

-sh: /jffs/scripts/FreshJR_QOS: Permission denied
fearz@RT-AC5300-81F0:/jffs/scripts# /jffs/scripts/FreshJR_QOS -enable
-sh: /jffs/scripts/FreshJR_QOS: Permission denied
fearz@RT-AC5300-81F0:/jffs/scripts#


Any help

Any clues please
 
Was gonna give it a tryfor the fast version
uploaded through WinSCP disabled QOS and disable FRESHJR

but after uploading the new version and chmod + FreshQOS
i get:

-sh: /jffs/scripts/FreshJR_QOS: Permission denied
fearz@RT-AC5300-81F0:/jffs/scripts# /jffs/scripts/FreshJR_QOS -enable
-sh: /jffs/scripts/FreshJR_QOS: Permission denied
fearz@RT-AC5300-81F0:/jffs/scripts#


Any help
You can set the permission via winscp, it's the same as a chmod
 
For which file? Can you explain more please? I didnt have that issue with the compatible version.
Code:
chmod a+rx /jffs/scripts/FreshJR_QOS
at a command prompt in ssh.
 
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