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.
wow impressed so far.. cleanest install and 1st enable ive ever seen :)

Mar 6 22:41:38 dropbear[20232]: Password auth succeeded for 'admin' from 192.168.10.120:56424
Mar 6 22:41:55 dropbear[20241]: Password auth succeeded for 'admin' from 192.168.10.120:56431
Mar 6 22:42:10 dropbear[20245]: Password auth succeeded for 'admin' from 192.168.10.120:56437
Mar 6 22:44:03 adaptive QOS: FreshJR FakeTC Installed
Mar 6 22:44:03 adaptive QOS: Parsing User QOS Rates -> (Updating)
Mar 6 22:44:59 adaptive QOS: FreshJR FakeTC Installed
Mar 6 22:44:59 adaptive QOS: Parsing User QOS Rates -> (No Changes)
Mar 6 22:45:55 adaptive QOS: Warming Up
Mar 6 22:46:07 adaptive QOS: Warming Up
Mar 6 22:46:08 adaptive QOS: Warming Up
Mar 6 22:46:17 adaptive QOS: Applying Custom Upload Rules
Mar 6 22:46:18 adaptive QOS: Applying Custom Download Rules
Mar 6 22:47:30 adaptive QOS: Parsing User QOS Rates -> (Updating)
Mar 6 22:47:49 adaptive QOS: Applying Iptables Rules
Mar 6 22:47:49 adaptive QOS: Adaptive QOS: Changing 1:10 class rate
Mar 6 22:47:50 adaptive QOS: Adaptive QOS: Changing 1:11 class rate
Mar 6 22:47:51 adaptive QOS: Adaptive QOS: Changing 1:12 class rate
Mar 6 22:47:52 adaptive QOS: Adaptive QOS: Changing 1:13 class rate
Mar 6 22:47:54 adaptive QOS: Adaptive QOS: Changing 1:14 class rate
Mar 6 22:47:56 adaptive QOS: Adaptive QOS: Changing 1:15 class rate
Mar 6 22:47:57 adaptive QOS: Adaptive QOS: Changing 1:16 class rate
Mar 6 22:47:58 adaptive QOS: Adaptive QOS: Changing 1:17 class rate
 
And now I see that logger says adaptive QOS twice .....

will not be pushing an update for this minor change. (The echo command on line 287 needs to be fixed if someone has OCD)
where you seeing it twice? the log I posted.. the ones before the warming up were from the install from putty.

whats the line need to be changed to?

**correction** I think I can see from the few lines below I'm guessing needs to be commented out? trying that and testing
 
where you seeing it twice?

When it says changing class rates, it prints "adaptive QOS: Adaptive QOS:"

Code:
Mar 6 22:47:50 adaptive QOS: Adaptive QOS: Changing 1:11 class rate

The echo line just needs Adaptive QOS: removed from within the quotes.

Do not comment out the entire line, or remove the quotes.
 
Last edited:
In Command prompt I keep getting fatal: Network error: Connection timed out. What I’m doing wrong? Please help.
 
In Command prompt I keep getting fatal: Network error: Connection timed out. What I’m doing wrong? Please help.

Does the ip address in the command match your routers ip address.

Some stuff like that is present in the script as well. Try to actually read the stuff for context clues even if you don't fully understand everything.
 
Mar 7 02:23:38 adaptive QOS: Start Error - FreshJR FakeTC NOT running
Mar 7 02:23:39 adaptive QOS: Error Installing FreshJR QOS
adaptive QOS: FreshJR QOS Uninstalled
adaptive QOS: FreshJR fakeTC Disabled
 
Mar 7 02:23:38 adaptive QOS: Start Error - FreshJR FakeTC NOT running
Mar 7 02:23:39 adaptive QOS: Error Installing FreshJR QOS
adaptive QOS: FreshJR QOS Uninstalled
adaptive QOS: FreshJR fakeTC Disabled

Did you upload both files.

The script cannot install fakeTC if you never uploaded fakeTC to the router.

Slow down, and read the instructions more carefully.

--

Also all the filenames and commands you sent were CASE SENSITIVE.

If you uploaded the files, but the case did not match, it's like it isn't there.
 
Last edited:
Ok, everyone, here is BETA8.

The bugs found by users soon after BETA7 release have been squashed.

It is now fine tuned running like a rickety wagon pulled by an ageing horse.

Test it out, good luck, and Enjoy!
Maybe one day we can leave beta.

Prerequisites:

You will need putty and pscp, as well as the script. Also you need to be on fw 382+

http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

You do not have to install these executables, they are portable. Move them, and the script, into a new folder called Putty on your C:\ drive.

It should look like this:
  • C:\Putty\putty.exe
  • C:\Putty\pscp.exe
  • C:\Putty\FreshJR_QOS_beta8.txt
  • C:\Putty\FreshJR_QOS_fakeTC_beta8.txt


Install/Update Guide:

1) turn OFF qos
2) In command prompt
Code:
cd C:\putty\
pscp -scp C:\Putty\FreshJR_QOS_beta8.txt admin@192.168.1.1:/jffs/scripts/FreshJR_QOS
pscp -scp C:\Putty\FreshJR_QOS_fakeTC_beta8.txt admin@192.168.1.1:/jffs/scripts/FreshJR_QOS_fakeTC

3) In putty
Code:
dos2unix /jffs/scripts/FreshJR_QOS
dos2unix /jffs/scripts/FreshJR_QOS_fakeTC
chmod 0755 /jffs/scripts/FreshJR_QOS
chmod 0755 /jffs/scripts/FreshJR_QOS_fakeTC
sed -i '/FreshJR_QOS/d' /jffs/scripts/firewall-start
/jffs/scripts/FreshJR_QOS install
4) turn ON qos


I don't know if the download counts are accurate. You need BOTH files for this update!

<< CURRENT VERSION FOR FW v382+ >>

Hi FreshJR,
I couldn’t get sed -i '/FreshJR_QOS/d' /jffs/scripts/firewall-start this running on putty
It said no such file or directory.

Could you help?

Thanks.


Sent from my iPad using Tapatalk
 
Hi FreshJR,
I couldn’t get sed -i '/FreshJR_QOS/d' /jffs/scripts/firewall-start this running on putty
It said no such file or directory.

No worries. You can ignore the message and prodceed to the next command.

That command just removed the old version of the script. You are getting that message since you probably never had an old version installed.

I forgot the reason why I even have the command currently listed as part of the install procedure since it will be executed automatically if an old version gets detected. (It may have been to trigger a pre-emtive rate query and calculation, but this is probably not necessary anymore )

I will have to double check with the code if it's safe to remove from the steps for users that are upgrading from old installations. Of course all new installations will be fine.
 
Last edited:
Thanks FreshJR.
my log shows below
Mar 7 20:23:43 adaptive QOS: Warming Up
Mar 7 20:23:45 rc_service: httpd 368:notify_rc restart_qos;restart_firewall
Mar 7 20:23:46 adaptive QOS: Warming Up
Mar 7 20:23:59 kernel: ERR[qos_start:3356] qos_ops is not registered!
Mar 7 20:23:59 kernel: ioctl_iqos_op_switch(1) fail!
Mar 7 20:25:20 adaptive QOS: Parsing User QOS Rates -> (No Changes)
Mar 7 20:25:20 miniupnpd[6128]: shutting down MiniUPnPd
Mar 7 20:25:20 nat: apply nat rules (/tmp/nat_rules_eth0_eth0)
Mar 7 20:25:20 custom_script: Found firewall-start, but custom script execution is disabled!

it said custom script execution disabled.

any reason why?

Also on Adaptive QOS - do i go with auto setting or manual setting?

Kindly advise.
 
That has to be enabled under administration in the web interface. You will know which one it is once you see it.

Use manual bandwidth with 90-95% of your achievable.
 
Ok, everyone, here is BETA8.

The bugs found by users soon after BETA7 release have been squashed.

It is now fine tuned running like a rickety wagon pulled by an ageing horse.

Test it out, good luck, and Enjoy!
Maybe one day we can leave beta.

Prerequisites:

You will need putty and pscp, as well as the script. Also you need to be on fw 382+

http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

You do not have to install these executables, they are portable. Move them, and the script, into a new folder called Putty on your C:\ drive.

It should look like this:
  • C:\Putty\putty.exe
  • C:\Putty\pscp.exe
  • C:\Putty\FreshJR_QOS_beta8.txt
  • C:\Putty\FreshJR_QOS_fakeTC_beta8.txt


Install/Update Guide:

1) turn OFF qos
2) In command prompt
Code:
cd C:\putty\
pscp -scp C:\Putty\FreshJR_QOS_beta8.txt admin@192.168.1.1:/jffs/scripts/FreshJR_QOS
pscp -scp C:\Putty\FreshJR_QOS_fakeTC_beta8.txt admin@192.168.1.1:/jffs/scripts/FreshJR_QOS_fakeTC

3) In putty
Code:
dos2unix /jffs/scripts/FreshJR_QOS
dos2unix /jffs/scripts/FreshJR_QOS_fakeTC
chmod 0755 /jffs/scripts/FreshJR_QOS
chmod 0755 /jffs/scripts/FreshJR_QOS_fakeTC
sed -i '/FreshJR_QOS/d' /jffs/scripts/firewall-start
/jffs/scripts/FreshJR_QOS install
4) turn ON qos


I don't know if the download counts are accurate. You need BOTH files for this update!

<< CURRENT VERSION FOR FW v382+ >>


It works very well in my connection, thanks
 
Hi fellas is this line in the logs a concern and if so how do I address it? Thanks again for this cool script.
Code:
Mar  7 09:13:32 kernel: HTB: quantum of class 10011 is big. Consider r2q change.
 
Hi fellas is this line in the logs a concern and if so how do I address it? Thanks again for this cool script.
Code:
Mar  7 09:13:32 kernel: HTB: quantum of class 10011 is big. Consider r2q change.
https://www.snbforums.com/threads/r...-and-inner-workings.36836/page-46#post-386500

I think it's fine
Changes to quantum have been made, so for some users, this little guy is back.
Code:
 kernel: HTB: quantum of class 10016 is big. Consider r2q change.
He is harmless, ignore him. That just means quantum is at its maxed value since you have high guaranteed bandwidth (He pops out at guaranteed rates of 16mbps+)
 
I also had a problem after installing beta8. When I install and reboot, the drive I have never seems to mount by itself again. Thus entware doesn't start and skynet fails, ab-solution doesn't start. The drive finally in the end mounts but far to late for entware and skynet and ab-solution. If I stay to the earlier version 1.92 everything works fine. My system reboots ok again.
 
Version 1.92 works very well.
 
Status
Not open for further replies.

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