What's new

AutoBW: Automatically set QoS bandwidth using spdMerlin

  • 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!

Ok, did some additonal testing and this works for me. Anyone using a VPN-config should try it, too, to verify it works with VPN as well.
Code:
#Location of upload/download stats
if [ -z "$Use_VPN" ]; then
  upload_stats="/jffs/addons/spdmerlin.d/csv/Uploaddaily_WAN.htm"
  download_stats="/jffs/addons/spdmerlin.d/csv/Downloaddaily_WAN.htm"
else
  upload_stats="/jffs/addons/spdmerlin.d/csv/Uploaddaily_VPNC$Use_VPN.htm"
  download_stats="/jffs/addons/spdmerlin.d/csv/Downloaddaily_VPNC$Use_VPN.htm"
fi
You're absolutely correct sir.
 
The fix for version 1.5 is:


Code:
nano /jffs/scripts/AutoBW

Find the line:
Code:
if [ Use_VPN -eq 0 ]; then
and change to:
Code:
if [ $Use_VPN -eq 0 ]; then
Then press ctrl+x then y then press enter

until 1.5.1 i am guessing
 
The fix for version 1.5 is:


Code:
nano /jffs/scripts/AutoBW

Find the line:
Code:
if [ Use_VPN -eq 0 ]; then
and change to:
Code:
if [ $Use_VPN -eq 0 ]; then
Then press ctrl+x then y then press enter

until 1.5.1 i am guessing
Working again
Thanks
 
Any reason speedtest and not dslreports?
I believe it goes off what spdmerlin uses..speedtest

Not something to get overly critical about: from what I gather, they're all flawed in one way or another; some less so than others.
It's nice to have some verification that we're getting close to what we pay for, isn't it?
 
Code:
#Test Mode (run and calculate but do not make any changes)
# meaning no "nvram commit" or "tc class change" commands
# will be executed
# 1 = test mode (no changes), 0 = make permenant changes
test_mode=1
Thanks!
 
Last edited:
How is this script working for everyone?
I noticed I was getting "better speeds" when I had my QoS set to auto (my network felt "snappier"), so if this returns that functionality (or fine-tunes it), I'll get it happening.
Chime in, please, users. I want the good AND the bad.
 
I don't get it. I followed perfectly these and it still says: TEST MODE: No changes were made???
Did you edit the code to change :
Code:
#Test Mode (run and calculate but do not make any changes)
# meaning no "nvram commit" or "tc class change" commands
# will be executed
# 1 = test mode (no changes), 0 = make permenant changes
test_mode=0
 
How is this script working for everyone?
I noticed I was getting "better speeds" when I had my QoS set to auto (my network felt "snappier"), so if this returns that functionality (or fine-tunes it), I'll get it happening.
Chime in, please, users. I want the good AND the bad.

I can not speak for everybody and I have worked on the code but...

I have not implemented it!!

AS OF VERSION 1.5
The code takes the measured values from a spdMerlin and uses those values to calculate QOS values and Traffic Control Values(called tc).

I am not familiar with "Traffic Control" and what the code does to help with internet speeds. I am hoping to learn more over time.

I can tell you there are some issues with the theory behind the script.
1) Using the a speed test to get the Max Down/Up Load values:
I have 1Gbps internet. I can get 900Mbps when I hook up my PC directly to the Cable Modem
I can only get 450Mpbs through the the router. With this problem the script would set a "bad" value in my router for QOS and improperly limit the Traffic Control stuff, I believe!!
 
Did you edit the code to change :
Code:
#Test Mode (run and calculate but do not make any changes)
# meaning no "nvram commit" or "tc class change" commands
# will be executed
# 1 = test mode (no changes), 0 = make permenant changes
test_mode=0
Got it!
 
I can not speak for everybody and I have worked on the code but...

I have not implemented it!!

AS OF VERSION 1.5
The code takes the measured values from a spdMerlin and uses those values to calculate QOS values and Traffic Control Values(called tc).

I am not familiar with "Traffic Control" and what the code does to help with internet speeds. I am hoping to learn more over time.

I can tell you there are some issues with the theory behind the script.
1) Using the a speed test to get the Max Down/Up Load values:
I have 1Gbps internet. I can get 900Mbps when I hook up my PC directly to the Cable Modem
I can only get 450Mpbs through the the router. With this problem the script would set a "bad" value in my router for QOS and improperly limit the Traffic Control stuff, I believe!!

Ok, this is good info: maybe someone who does know about these things will let us know how to “fix” Traffic Control reporting or calculation. Or- perhaps Asus will come up with something in their QoS code that will help; it may be that this will offer some insight into what’s going on on their side that we don’t have access to.
Thank you for your thoughtful response.


Sent from my iPhone using Tapatalk
 
Ok, this is good info: maybe someone who does know about these things will let us know how to “fix” Traffic Control reporting or calculation. Or- perhaps Asus will come up with something in their QoS code that will help; it may be that this will offer some insight into what’s going on on their side that we don’t have access to.
Thank you for your thoughtful response.


Sent from my iPhone using Tapatalk
I am not saying they are wrong!! I am saying I dont know enough about them
They may be great!!

and Im pretty sure the changes are lost after reboot... unless the TC settings are in the NVRAM.

I know the QOS will stay
 
What are you seeing??

Is the router faster or slower??
What are the values??

Some general info here
https://www.snbforums.com/threads/a...idth-using-spdmerlin.63067/page-5#post-567791

well when ever I run spdmerlin my speed test results from the router are significantly less than speed test run by the client. My question is how is this script helpful to QoS bandwidth measurements, if the speed test are significantly smaller than ones conducted from clients? since this script relies on measurements produced by spdmerlin.
 
for example here is a list of speed test conducted by spdmerlin
upload_2020-4-7_21-8-38.png

here is an example speed test done on ookla from a client,
upload_2020-4-7_21-13-13.png
 
I am not saying they are wrong!! I am saying I dont know enough about them
They may be great!!

and Im pretty sure the changes are lost after reboot... unless the TC settings are in the NVRAM.

I know the QOS will stay

How is this script working for everyone?
I noticed I was getting "better speeds" when I had my QoS set to auto (my network felt "snappier"), so if this returns that functionality (or fine-tunes it), I'll get it happening.
Chime in, please, users. I want the good AND the bad.


Follow up to testing...

The only settings that stay after reboot are the QOS settings.

They can be put back in the WebUI
 

Sign Up For SNBForums Daily Digest

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