Solved

Reliable Backup Static Routing using Object Tracking

Posted on 2010-09-10
6
629 Views
Last Modified: 2012-06-21
Hi All,

I've been tasked with making a proper failover on the a router running Cisco IOS 12.4

The connectivity consists of a T1 (serial) primary connection, and another firewall hosting a VPN over an internet connection for the backup connection.

I've built it out, and it all works great... except....

This T1 is a little schitzophrenic.  Every now and then it drops a packet or two (like 3 times a minute.)  This has no effect whatsoever on our primary use of this connection, which is telnet traffic for an AS/400.  

The problem is, the tracked SLA changes from up to down and back three times a minute.  Meaning it changes the routing three times a minute.  This kind of behaviour is VERY disruptive to the AS/400 traffic.

Here's my wish - I want the SLA to ONLY switch state if it loses say 10 consecutive pings.  I thought the answer was the "threshold" quantity on the SLA, but it not only seems to have no effect (state still changing) but much of my reading says it's connected to a "hysterisis" function - which I don't really understand.  Even if I crank the "threshold" up to ridiculous quantities (30000 say) it still logs the tracked object as changing state just as frequently.

The "frequency" is just how often the SLA pings.  I've increased this quantity too, but really it's like Russian roulette as to whether it gets a good ping or a bad ping when it goes off.

Can anyone tell me what I'm missing here?

Thanks,

Nate
0
Comment
Question by:petranator2011
6 Comments
 
LVL 24

Expert Comment

by:rfc1180
ID: 33649048
what is your current config for the SLA now?

Billy
0
 

Author Comment

by:petranator2011
ID: 33650178
ip sla monitor 1
 type echo protocol ipIcmpEcho 10.25.2.1 source-ipaddr 10.25.22.3
 timeout 1000
 threshold 30000
 frequency 15
ip sla monitor schedule 1 life forever start-time now
************

As I understand it, that should set the timeout on each ping to 1000ms, it should repeat every 15 seconds, and as I mentioned before - changing the frequency seems to have no affect on how the trackable object works at all.  Currently I have it set for 30000, whatever unit that is in.

Nate
0
 
LVL 36

Expert Comment

by:ArneLovius
ID: 33650390
either increase the frequency of the ping or the amount of the threshold

the threshold is in milliseconds

I'd try a frequency of 1, or a threshold of 150,000

0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 36

Expert Comment

by:ArneLovius
ID: 33650454
for clarity...

take the number of failed pings you want to trigger failover, multiply it by the ping frequency, then multiply is by 1000

so for 10 failed pings at 15 second intervals, 10 * 15 * 1000 = 150,000

This means you could be down for 150 seconds before failover

for your particular requirement, I would have a more frequent ping (1 per second) and have it lose no more than 30

so for 30 failed pings at 1 second intervals, 30 * 1 * 1000 = 30,000 this should be more appropriate for your T1

I would have called out a fault on your T1 a long time ago...



0
 
LVL 10

Accepted Solution

by:
cstosgale earned 500 total points
ID: 33654872
There is a better way of handling this that is slightly less dirty. Usually, your SLA is being used by a track object that you then apply to your static route.

On that track object, you can specify a delay down and delay up value.

Therefore, you can leave it pinging every second, with a 1 second timeout, and let your sla go down if it misses a ping. If you configure delay down 20 on your track object, if the SLA does not respond, the track object (and thus your route) will stay up unless the SLA continues to fail the ping for a concurrent period of 20 seconds.

If it comes back, the timer is reset back to 20.

e,g,:-

ip sla monitor 1
 type echo protocol ipIcmpEcho 10.25.2.1 source-ipaddr 10.25.22.3
 timeout 1000
 threshold 30000
 frequency 1
ip sla monitor schedule 1 life forever start-time now
track 1 ip sla 1 reachability
delay down 20
delay up 0

ip route 0.0.0.0 0.0.0.0 10.25.2.1 track 1

This config will mean that the route will only disappear if the SLA is down for a concurrent 20 seconds
0
 

Author Closing Comment

by:petranator2011
ID: 33661789
Thank you all.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

If you have an ASA5510 then this sort of thing would be better handled with a CSC Module, however on an ASA5505 thats not an option, and if you want to throw in a quick solution to stop your staff going to facebook during work time, then this is the…
There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now