Community discussions

MikroTik App
 
TheNetworkBerg
just joined
Topic Author
Posts: 15
Joined: Mon Sep 30, 2019 9:50 am

MikroTik failover script based on latency

Tue Mar 09, 2021 8:04 am

Hi Guys,

Hope you are all doing well, I have received a requirement for automatic failover if latency/jitter becomes too high at a customer site. I suggested that we may be able to use the MikroTik's scripting function to automate this process that ie if a link has over (x)ms latency over (y) pings that the device disables it's primary BGP peer on its voice VLAN on the WAN. Should the pings stabilize when the script runs again then it should just re-enable to primary BGP peer. I am a complete noob when it comes to MikroTik scripting, though I will still try to figure it out as well. I just wanted to see if anyone has created a similar script and if you wouldn't mind sharing it here. The closest I had seen was a script that basically just changes the route preferences if there is packet loss but not latency. Hope we can have a fruitful discussion :)

Kind Regards,
 
elico
Member Candidate
Member Candidate
Posts: 143
Joined: Mon Nov 07, 2016 3:23 am

Re: MikroTik failover script based on latency

Tue Mar 23, 2021 10:18 pm

You can use netwatch for ping tests and do the failover using a script call.
Jitter is a whole another story.
 
gotsprings
Forum Guru
Forum Guru
Posts: 2102
Joined: Mon May 14, 2012 9:30 pm

Re: MikroTik failover script based on latency

Tue Mar 23, 2021 11:19 pm

You can use netwatch for ping tests and do the failover using a script call.
Jitter is a whole another story.
So you would set the response time there?

Who is online

Users browsing this forum: maxslug and 28 guests