4.5 Troubleshoot network performance with IP SLA: jitter, delay, reachability and tracking
ENARSI 300-410 v1.1 · 4.0 Infrastructure Services
IP SLA makes the router generate test traffic and measure the result: reachability, round-trip delay, jitter and loss. On its own it is a measurement; tied to object tracking, it changes routing: a static route, HSRP priority or PBR next hop follows the result.
What you must know
- Configure icmp-echo, udp-echo and udp-jitter operations with a schedule.
- Set up the IP SLA responder for UDP operations.
- Track an operation's reachability or state and use it in static routes, HSRP and PBR.
- Read
show ip sla statisticsandshow track.
Operations
| Operation | Measures | Needs a responder? |
|---|---|---|
icmp-echo | Reachability and RTT | No |
udp-echo | RTT on a UDP port | Yes (or an echo service) |
udp-jitter | Jitter, one-way delay, loss, MOS for voice codecs | Yes |
tcp-connect | Time to open a TCP session | Optional |
http, dns, dhcp | Application response times | No |
! Sender
ip sla 10
udp-jitter 10.2.2.2 16384 codec g711alaw
tos 184
frequency 30
ip sla schedule 10 life forever start-time now
!
! Far end
ip sla responder
R1# show ip sla statistics 10
IPSLAs Latest Operation Statistics
IPSLA operation id: 10
Type of operation: udp-jitter
Latest RTT: 22 milliseconds
Latest operation return code: OK
RTT Values:
Number Of RTT: 1000 RTT Min/Avg/Max: 18/22/41 milliseconds
Voice Scores:
ICPIF: 0 MOS Score: 4.34
Jitter Time:
Source to Destination Jitter Min/Avg/Max: 0/2/9 millisecondsTracking and failover
ip sla 1
icmp-echo 203.0.113.1 source-interface GigabitEthernet0/0
frequency 5
ip sla schedule 1 life forever start-time now
track 1 ip sla 1 reachability
delay down 10 up 30
!
ip route 0.0.0.0 0.0.0.0 203.0.113.1 track 1
ip route 0.0.0.0 0.0.0.0 198.51.100.1 10
R1# show track 1
Track 1
IP SLA 1 reachability
Reachability is Up
3 changes, last change 00:12:44
Delay up 30 secs, down 10 secs
Latest operation return code: OK
Tracked by:
Static IP Routing 0Traffic uses ISP A while the probe succeeds (1) and moves to ISP B when it fails (2). reachability is up when the return code is OK or over threshold; state is up only when OK. A threshold below the timeout turns slow replies into failures.
Commands
show ip sla configuration [id] | The operation's type, target, frequency, threshold and timeout. |
show ip sla statistics [id] [details] | Latest results, return code, success and failure counts. |
show ip sla responder | Whether the responder is on and what it answered. |
show track [id] | The tracked object's state, changes, delays and clients. |
Exam traps
- An operation does nothing until it is scheduled.
- UDP operations need
ip sla responderon the far device. - Without a source interface or a host route, the probe can follow the backup path.
reachabilityandstatetracking differ on over-threshold results.- The backup static needs a higher AD than the tracked one.
Check yourself
- Which operation gives jitter and MOS?
- udp-jitter (with a codec).
- The tracked default route never comes back after ISP A recovers. Why might that be?
- The probe now leaves via ISP B and fails, or the target is unreachable from the backup path; pin it with a source interface and a host route.
- What does
delay down 10 up 30do? - Waits 10 s before declaring down and 30 s before declaring up, to damp flapping.
- An
ip slashows no statistics. Likely cause? - It was never scheduled with
ip sla schedule.
Labs
Try it live: IP SLA: jitter for voice, then a failover on delay, not just loss