IP SLA 101

About IP SLA

IP SLA is a feature that enables a router to monitor the status of a connection by measuring different KPIs. The SLA can be measured end-to-end from one host to another and is independent of the Layer 2 encapsulation.

Configuring IP SLA

Define the IP SLA Operation

First, you must define a SLA Operation:
1
R(config)# ip sla SLA-ID
Copied!
Then, you must choose the SLA type:
1
R(config-ip-sla)# ?
2
IP SLAs entry configuration commands:
3
dhcp DHCP Operation
4
dns DNS Query Operation
5
ftp FTP Operation
6
http HTTP Operation
7
icmp-echo ICMP Echo Operation
8
icmp-jitter ICMP Jitter Operation
9
path-echo Path Discovered ICMP Echo Operation
10
path-jitter Path Discovered ICMP Jitter Operation
11
tcp-connect TCP Connect Operation
12
udp-echo UDP Echo Operation
13
udp-jitter UDP Jitter Operation
14
voip Voice Over IP Operation
Copied!
Each type of SLA is doing a type of measuring and it has paritcular options that can be configured:
  • dhcp – measures RTT (routing-trip-time) taken to discover a DHCP server and obtain a leased IP
  • dns – measures RTT (routing-trip-time) taken to receive a DNS reply
  • ftp – time taken to download a file from an FTP Server
  • http – time taken to retrive a web page from an HTTP Server
  • icmp-echo – measures end-to-end response time between the router and another IP device
  • icmp-jitter – measures jitter, latency and packet-loss of the ICMP echos and echo-replies
  • path-echo – measures end-to-end and hop-by-hop respone time
  • path-jitter – measures end-to-end and hop-by-hop jitter, latency and packet-loss
  • path-jitter – measures end-to-end and hop-by-hop jitter, latency and packet-loss
  • tcp-connect – measures time to perform a TCP connect with a host
  • udp-echo – measures end-to-end response when sending UDP packets
  • udp-jitter – measures jitter when sending UDP packets. Useful for troubleshooting VoIP performance
  • voip – voip related measurements
Once the operation type is selected, you can define even more options, like:
1
! Frequency of the operation
2
R(config-ip-sla-echo)# frequency SECONDS
3
! Timeout of the response:
4
R(config-ip-sla-echo)# timeout MSEC
5
! Limit of the rising threshold
6
R(config-ip-sla-echo)# threshold MSEC
7
! Size of the Padding:
8
R(config-ip-sla-echo)# request-data-size BYTES
9
! ToS value of the packets sent
10
R(config-ip-sla-echo)# tos TOS-VALUE
11
! Force the router to check for data-corruption:
12
R(config-ip-sla-echo)# verify-data
13
! SNMP Owner
14
R(config-ip-sla-echo)# owner STRING
Copied!
IP SLA maintains several history statistics. They can be configured with the history command:
1
R(config-ip-sla-echo)#history ?
2
buckets-kept Maximum number of history buckets to collect
3
distributions-of-statistics-kept Maximum number of statistics distribution buckets to capture
4
enhanced Enable enhanced history collection
5
filter Add operation to History when...
6
hours-of-statistics-kept Maximum number of statistics hour groups to capture
7
lives-kept Maximum number of history lives to collect
8
statistics-distribution-interval Statistics distribution interval size
Copied!

Schedule or start the operation

1
R(config)# ip sla schedule SLA-ID [start-time WHEN] [recurring] [life {SEC|forever}] [ageout SEC]
2
! life = how long to run the SLA operation
3
! ageout = how long to keep the Entry when inactive
4
! recurring = reschedule it daily
5
! start-time: WHEN can be one of the following:
6
! HH:MM:[SS] - start at the specified time
7
! after HH:MM:SS - start HH hours, MM minuts, SS seconds later
8
! now - start now
9
! pending - does not collect information
Copied!
You can restart a SLA operation using:
1
R(config)# ip sla restart SLA-ID
Copied!

Configure the responder, if needed

The responder should be configured on a router that responds to IP SLA requests
1
! TCP Connect or UDP Echo:
2
R(config)# ip sla responder {tcp-connect|udp-echo} IP-ADDR port PORT
3
! Frame-Relay:
4
R(config)# ip sla responder frame-relay all
Copied!
A SLA responder and an initiator can be authenticated using a Key-chain:
1
R(config)# ip sla key-chain KEY-CHAIN
Copied!

Monitoring SLA

You can monitor the status of the SLA operations using:
1
R# show ip sla statistics SLA-ID [details]
2
! or some other show ip sla commands
3
R# show ip sla {configuration...|history...| ...}
Copied!

Proactive Monitoring

Proactive monitoring allows a router to take action when a SLA operation is below requirements. You can enable sending of trap messages using:
1
R(config)# ip sla logging traps
Copied!
A reaction can be defined with the following command:
1
R(config)# ip sla reaction-configuration SLA-ID react EVENT ...
2
! The reaction can be to send a trap, to generate a trigger, both or none
Copied!
If a trap is generated then the SNMP server must be configured to send that kind of trap:
1
R(config)# snmp-server enable traps TRAP
Copied!
If a trigger is generated, it can put into an active state other SLA operations:
1
R(config)# ip sla reaction-trigger SLA-ID TRIGGERED-SLA-ID
Copied!
Last modified 24d ago