Page 1 of 1

Realtime QoS based on ADSL sync Speed

Posted: Sun Feb 28, 2016 3:25 pm
by Smashing
I have really a bad DSL connection, my download speed oscillate between 2.8-4.2 mbit, upload is fine. So my network always collapses with 500ms ping whenever someone is downloading at full speed.

I can get sync speed through telnet on my ISP modem, so before wasting anytime, is possible to set a QoS based on my ADSL sync speed?

Re: Realtime QoS based on ADSL sync Speed

Posted: Sun Feb 28, 2016 3:31 pm
by Lantis
You would need to write a script to do so. But it is very doable. Not complex. The script would:

initiate telnet to modem
Authenticate
run stats command
parse this data for the sync speed and store it
uci get current QOS speed and compare
uci set uci commit firewall restart if required.

I'd suggest that you would only want this running every hour?
This is because every time it changes you'll need to restart the firewall which will drop connection.
Also when doing a comparison you'd probably look for something like a 5-10% difference otherwise make no chsnge?
Just throwing ideas around.

Re: Realtime QoS based on ADSL sync Speed

Posted: Sun Feb 28, 2016 4:02 pm
by Smashing
I don't remember how much it takes to restart firewall, but I could monitor through telnet if connection is UP, when it drops wait until the sync speed shows in telnet (or web statsadsl.html).

I just have to check how to set QoS but seems easy. I just want to set Download speed at the rate that my ping does not goes to the roof.

My old WD1043ND I think can handle that lightweight script.

Re: Realtime QoS based on ADSL sync Speed

Posted: Sun Feb 28, 2016 4:47 pm
by Lantis
I think you'll find it will be quite easy and will work reasonably well.

If it does, you might like to write a brief tutorial. Someone will find it useful. :)

Re: Realtime QoS based on ADSL sync Speed

Posted: Mon Feb 29, 2016 11:15 am
by Smashing
I think this could be useful for anyone with Broadcom DSL Routers.