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

Operations

OperationMeasuresNeeds a responder?
icmp-echoReachability and RTTNo
udp-echoRTT on a UDP portYes (or an echo service)
udp-jitterJitter, one-way delay, loss, MOS for voice codecsYes
tcp-connectTime to open a TCP sessionOptional
http, dns, dhcpApplication response timesNo
! 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 milliseconds

Tracking 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 0

Traffic 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 responderWhether the responder is on and what it answered.
show track [id]The tracked object's state, changes, delays and clients.

Exam traps

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 30 do?
Waits 10 s before declaring down and 30 s before declaring up, to damp flapping.
An ip sla shows 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

More topics in 4.0 Infrastructure Services