Community discussions

 
User avatar
sebastia
Forum Guru
Forum Guru
Topic Author
Posts: 1480
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Script implementing Active Congestion Control

Tue Nov 13, 2018 2:22 pm

Hey Frank, just for mutual understanding, how do you know that it works when run from terminal?
 
User avatar
frank333
Member Candidate
Member Candidate
Posts: 117
Joined: Mon Dec 18, 2017 12:17 pm
Location: italy Router model: RB3011UiAS-RM

Re: Script implementing Active Congestion Control

Tue Nov 13, 2018 8:24 pm

if I run the script from the terminal ( /system script run ACC ) after I turn on the router, works everything.
I hope I made myself clear, so tell me what I can do.
 
User avatar
sebastia
Forum Guru
Forum Guru
Topic Author
Posts: 1480
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Script implementing Active Congestion Control

Tue Nov 13, 2018 8:29 pm

So if you run from terminal, the script changes settings on your queues and/or you see some log messages?
You said it didn't work via scheduler? What makes you conclude that?
 
User avatar
frank333
Member Candidate
Member Candidate
Posts: 117
Joined: Mon Dec 18, 2017 12:17 pm
Location: italy Router model: RB3011UiAS-RM

Re: Script implementing Active Congestion Control

Tue Nov 13, 2018 8:33 pm

if I don't run the script manually, the ACC script is not executed ; even if the sheduler counter marks the activation every 15 seconds.
Does not vary the the max limit in short, in queue list.
 
User avatar
sebastia
Forum Guru
Forum Guru
Topic Author
Posts: 1480
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Script implementing Active Congestion Control

Fri Nov 16, 2018 11:01 pm

Hi Frank

Assumption: ACC scripting functions are defined in ACC script under /system script.

/system script print brief
Flags: I - invalid 
 #   NAME                         OWNER                        LAST-STARTED          RUN-COUNT
 0   e-mail-backup                frank                        nov/13/2018 00:00:00          8
 1   ACC                          frank                        nov/13/2018 11:25:38      22469		<= here?

Below assumes this is the case.

In the /system scheduler I see a periodic trigger for ACC update (applyACC...), but I don't see any trigger to load the functions themselves => call to "ACC" script above.
The functions seem to be loaded; they are listed in exports of "/system script environment", but these were probably loaded manually by executing ACC script. Correct?

So what should be scheduled is:
/system scheduler
add name=_initACC on-event=ACC policy=read,write,policy,test start-time=startup

add interval=15s name=ACC_scheduled on-event="\$applyACC ..." \
    policy=ftp,read,write,policy,test start-date=jan/01/1970 start-time=00:00:00

try that
 
rayohms
just joined
Posts: 4
Joined: Sat May 18, 2019 2:52 pm

Re: Script implementing Active Congestion Control

Tue Jun 04, 2019 7:27 pm

pls. update this script if this is still working as of june 2019 ... thank you in advance.
 
User avatar
sebastia
Forum Guru
Forum Guru
Topic Author
Posts: 1480
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Script implementing Active Congestion Control

Wed Jun 05, 2019 1:17 pm

Do you mean that it's not working for you? What issues do you have?
 
rayohms
just joined
Posts: 4
Joined: Sat May 18, 2019 2:52 pm

Re: Script implementing Active Congestion Control

Sun Jun 09, 2019 5:51 pm

sir sebastia , thank you sir for your response , its not working for me sir , idont know why? i just followed your instructions and script , i put the system script and scheduler.
 
rayohms
just joined
Posts: 4
Joined: Sat May 18, 2019 2:52 pm

Re: Script implementing Active Congestion Control

Sun Jun 09, 2019 6:00 pm

btw sir , i tried it again , but now it runs abnormaly , dns=8.8.8.8 the limit will go down to the minimum and stuck there, but when you change the dns to 1.1.1.1 it will go up to maximum and stuck there , it will never vary the limit , pls advice of what im going to do , thank you sir.
 
User avatar
frank333
Member Candidate
Member Candidate
Posts: 117
Joined: Mon Dec 18, 2017 12:17 pm
Location: italy Router model: RB3011UiAS-RM

Re: Script implementing Active Congestion Control

Sun Jun 09, 2019 6:05 pm

rayohms, I also have problems in automatically starting the script; but I restart it manually every time I restart the router. In about six months I've restarted it twice. Can you at least start it manually?
 
rayohms
just joined
Posts: 4
Joined: Sat May 18, 2019 2:52 pm

Re: Script implementing Active Congestion Control

Mon Jun 10, 2019 6:00 am

sir frank333 can you show me pls. your final script for this active congestion control and scheduler if you have made some changes from the original post of sir sebastia, thanks in advance.
 
User avatar
frank333
Member Candidate
Member Candidate
Posts: 117
Joined: Mon Dec 18, 2017 12:17 pm
Location: italy Router model: RB3011UiAS-RM

Re: Script implementing Active Congestion Control

Mon Jun 10, 2019 10:30 am

here, I'll send you my files, enter the right interface names, and delete the previous script environment.
PS: remember to bypass the fasttrack ,therefore the script does not work
You do not have the required permissions to view the files attached to this post.
Last edited by frank333 on Mon Jun 10, 2019 12:47 pm, edited 1 time in total.
 
User avatar
sebastia
Forum Guru
Forum Guru
Topic Author
Posts: 1480
Joined: Tue Oct 12, 2010 3:23 am
Location: Antwerp, BE

Re: Script implementing Active Congestion Control

Mon Jun 10, 2019 12:17 pm

Hi

@rayohms
rate of transmission is adjusted based on timing of the ping to test server. See first post:

** response < 25ms -> increase rate by 1/10 of range (max rate - min rate)
** 25 <= response < xxx -> decrease rate by "floor(response / 50) * 1/10 of range"

Also as mentioned by frank:
* needs QoS on upload to be implemented for reliable detection

So what are your timing for ping to the specified targets?

Who is online

Users browsing this forum: No registered users and 2 guests