Introduction to Network Performance Measurement with Cisco IOS IP SLA

BRKNMS-1204

BRKNMS-1204 14528_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved.

Cisco Public

2

© 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr

1

Abstract
This presentation introduces you to the principles of network performance measurements with the Cisco IOS IP SLA feature, formerly known as SAA. This session is specially designed for attendees with little or no experience on this topic. We will first explain the concept and background of IP SLA and discover various operations, such as Jitter, DNS, DHCP, and HTTP. Real-life examples of configuration will be provided for a better understanding. This session is a good preparation if you are planning on attending the Advanced Session on Network Performance Measurement. It is designed for network planners and administrators of both Enterprises and Service Providers that deal with network performance management regularly. Attendees should be familiar with IP and SNMP fundamentals.
BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public

3

Objective of This Presentation
Introduce active measurement Provide a clear understanding of Cisco IP SLA functions Understand how IP SLA is working Be able to configure various operations Limitations and scalability issues
Designing Your Network to Deploy Tight SLA Services or Qos Configuration Cisco Applications, Graphical Interfaces, and Other Third Party Applications That Leverage IP SLA For Advanced IP SLA Concepts See NMS-3043 Acknowledgement Emmanuel Tychon
BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public

4

© 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr

2

Agenda
SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios

BRKNMS-1204 14528_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved.

Cisco Public

5

Service Level Agreements (SLA) and Service Delivery
SLAs Are Becoming an Integral Part of Service Delivery

Businesses are relying on them for mission critical applications (voice, video, SAP)

SLA is the cornerstone of carriers’ differentiated service offerings

Service Provider Network
Enterprise Network Enterprise Network

BRKNMS-1204 14528_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved.

Cisco Public

6

© 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr

3

” Fred Baker. All rights reserved. Presentation_ID. Inc. All rights reserved.scr 4 .. Cisco Public 7 SLA Components Metrics: Particular type of “test.” between a single source/target pair General: Availability Mean Time To Restore (MTTR) Per class of service: Packet loss Network delay Network delay variation (jitter) Processes Remedies/reparations BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc.. All rights reserved. Cisco Systems. Inc. Cisco Public 8 © 2006. Fellow of Cisco Systems If You Can‘t Measure It—Don‘t Negotiate It.What’s an SLA? “A Service Level Agreement is the formalization of the ‘Quality of the Service’ in a contract between the Customer and the Service Provider.

Jitter 30 ms 30 ms N/A BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 10 © 2006. Inc. Presentation_ID.scr 5 . Inc. Cisco Systems. Inc.SLA Criteria Easy to understand Simple and light to measure Attainable Meaningful Controllable Application/service driven BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. All rights reserved. Cisco Public 9 Multimedia QoS Requirements (Examples) Traffic Type VoIP Video-Conferencing Streaming Video Maximum Packet Loss 1% 1% 2% Maximum One-Way Latency 200 ms 200 ms 5s Max. All rights reserved.

All rights reserved. Cisco Public Agenda SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 12 © 2006. All rights reserved. QoS. Presentation_ID. Inc. All rights reserved. Cisco Systems. Understand and Apply Network Performance Baseline I) Adjust Network to get Confidence to Deploy New Services and Applications II) Deployment 2 Quantify Results 1 Reduced deployment time? Prove service and application differentiation Verify SLA Reduced network downtime? Assure Application and Service Deployment 3 Fine-Tune and Optimize I) Ongoing Measurements to Understand Behavior. II) Define Proactive Notifications 11 4 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. etc. Inc. Inc.scr 6 .The SLA Lifecycle Baseline Network Performance Verify Network Readiness for (New) Services.

Murphy’s Law If anything can go wrong. things tend to go from bad to worse If everything seems to be going well. it will anyway Left to themselves.scr 7 . Cisco Systems. it will If anything just cannot go wrong. depends on queue length and type A maximum end-to-end one-way delay of 120 milliseconds is recommended for comfortable human-to-human audio BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. you have obviously overlooked something BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. Presentation_ID. All rights reserved. All rights reserved. Inc. Cisco Public 14 © 2006. depends on the bit-rate Queuing delay is the time a packet spends in router queues. Cisco Public 13 SLA Parameter: Latency (Delay) Propagation delay: the time it takes to the physical signal to traverse the path Serialization delay is the time it takes to actually transmit the packet. All rights reserved. Inc.

Presentation_ID. All rights reserved. Cisco Public 15 SLA Parameter: Packet Loss Loss of an isolated packet Possible causes: Because of a single CRC error Because of short duration full queue (tail-drop) Little or no impact for VoIP calls.scr 8 . generating pops and clicks t BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.SLA Parameter: Jitter Jitter is delay variation It is caused by queue depth variation Jitter is bad for interactive voice like VoIP. All rights reserved. Cisco Public 16 © 2006. Cisco Systems. Inc. Inc. based on UDP With TCP. Inc. forces retransmit possibly at a lower speed reducing the effective bandwidth BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved.

Voice-Codec) (Results Are Based on “Packet Reordering Is Not Pathological Network Behavior”. p789 and “Reordering of IP Packets in Internet”. All rights reserved. Cisco Systems. Inc. Presentation_ID. where on average eight of the 50 packets were identified as being out of order Packet reordering within a TCP session causes unnecessary retransmissions and prevents the congestion window from growing properly Potential impact on the UDP application performance (e. Inc.g. December 1999.scr 9 . Inc. Cisco Public 18 © 2006. Bennett. 7. R. Jon C.SLA Parameter: Burst Loss Multiple consecutive packets are lost Possible causes: A noise on the transmission media that kills all the packets A sudden route change in a transit device creates a temporary black hole Full transit interface queue BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. PAM2004 Contribution) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Xiaoming Zhou and Piet Van Mieghem. No. IEEE/ACM Transactions on Networking . and Nicholas Shectman. Cisco Public 17 SLA Parameter: Packet Reordering This is not a rare situation According to a study. 6. DNS vs. Craig Partridge. All rights reserved. Vol. roughly 25% of the hosts monitored exhibit reordering.

All rights reserved. Presentation_ID.scr 10 . Cisco Public 19 Agenda SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 20 © 2006. Cisco Systems. Inc. Inc. All rights reserved.Packet Reordering Causes Load balancing through multiple paths having different latencies Inadequate QoS/queuing policy Typically happening on some parallel architectures BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. All rights reserved.

scr 11 .Current Solutions to Measure SLA Wait for problem to happen. Inc. All rights reserved. All rights reserved. home-made application The geeky approach Special hardware probes The expensive approach BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 22 © 2006. Cisco Public 21 The Concept of Cisco IP SLA If you have a running Cisco IOS® router. Inc.0(5)T or later Reuse your current equipment and enhance existing network management applications IP SLA BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. and customer to complain Reactive approach Manually Time consuming approach Custom. All rights reserved. Cisco Systems. Inc. Presentation_ID. turn it into an active probing device: Synthetic Probe Core technology in IOS Available on most Cisco platforms from 12.

Engine 2 is faster and consumes less memory.0(5)T. Cisco Public 23 Cisco IOS IP SLA Partners Cisco Network Management Solution IP Communications Service Monitor Internetworking Performance Monitor Telephony Monitoring Enterprise performance measurements Third Party Products New Partners 2006 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Systems. Cisco Public 24 © 2006. All rights reserved. we call it “Engine 1”. renamed SAA in 12. New CLI (Phase I) and enhanced accuracy for 12.3 and later trains. Inc. All rights reserved. but using Engine 2.IP SLA History Used to be called RTR. Presentation_ID.2(11)T. and now present in all 12.3(14)T release: IP SLA. time Engine: Engine 1 RTR rtr… SAA Engine 2 IP SLA ip sla mon… ip sla … Feature Name: CLI: BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. New “Engine 2” is a major code rewrite introduced initially in 12. All rights reserved. Inc.scr 12 .

scr 13 . All rights reserved. which may not be present on the network at all times Existing traffic patterns. on a continuous basis By traffic class based on IP Precedence marking Disadvantages Limited to measuring: Existing traffic types. Presentation_ID. All rights reserved. Inc. Inc. Cisco Systems. which may not reflect patterns for new or future applications Disadvantages Only an approximation for performance of live traffic Inject some traffic in the network BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. All rights reserved. Cisco Public 26 © 2006.IP SLA and the Measurement Framework Sampling Method Observed/Passive Collection Method Synthetic/Active Embedded Agents External Probes Scope of Measurement Device/Link Perspective of Measurement End-to-End/Path User Network BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 25 IP SLA: Sampling Method Observed Definition Actual end-user network traffic where performance is measured by timing specific application traffic flows Synthetic Definition Network traffic generated strictly for the purpose of measuring a network performance characteristic Advantages Most accurate for live application traffic on a specified link Advantages Measures performance: Between any two points in the network Controllable.

Cisco Public 27 IP SLA: Scope of Measurement Device or Link Oriented Definition Performance measurement based on analysis of specific device or device interface. All rights reserved. Inc.g. Inc. Cisco Public 28 © 2006. and typically based on latency Advantages Detailed application performance monitoring of critical network links Advantages Starting point performance troubleshooting Reflects end-user experience Disadvantages When network-wide performance problems exist.scr 14 . how does one select which device or link to evaluate? Disadvantages Prior knowledge of relevant end-to-end paths is needed BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. and typically based on utilization rates End to End Definition Performance measurement based on analysis of response time across two or more network devices. All rights reserved. All rights reserved. Inc.IP SLA: Collection Method Embedded Definition Mechanisms for collection of network statistics are integrated into the network communication device (e. Cisco Systems.. Presentation_ID. itself External Definition Mechanisms for collection of network statistics are provided by a stand-alone device specifically designed to collect network performance statistics Advantages Follows network infrastructure Gathers metrics that cannot be observed externally End-to-end monitoring Advantages Validation of performance performed independent of the devices that transmit network traffic Disadvantages More hardware to administer Observed statistics limited to points of deployment Scale and distribution issues Disadvantages Performance monitoring has devicelevel performance implications BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. router or switch).

and non-intrusive to the desktop Identifies network performance issue Disadvantages Scale and distribution issues Intrusive on the desktop Disadvantages Imperfect understanding of end-user experience BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. nor vendor Can be deployed on customer site (CPE) and measure end-to-end SLAs Activate at the production router (CPE. All rights reserved. All rights reserved. PE) or as a dedicated “shadow-router” Can be managed with existing router management tools (e. CE. Inc.g.scr 15 . Cisco Systems. CiscoWorks) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 29 Benefits of Using IP SLA Flat learning curve (Cisco IOS technology) No additional equipment. Presentation_ID. All rights reserved. Inc.IP SLA: Perspective of Measurement User Definition Measurement based on performance statistics measured at the end-user workstation Network Definition Measurement based on performance statistics measured in network devices Advantages Accurate measurement of end-user experience Advantages Easy to deploy. Inc. Cisco Public 30 © 2006.

.g. All rights reserved. ICMP) Near millisecond precision Accessible using CLI and SNMP Proactive notification Historical data storage Flexible scheduling options Already in Cisco IOS (available on most platforms) Almost all interfaces supported.scr 16 . Cisco Public 31 Proactive Notification Can send SNMP traps when certain “triggering” events occur (e. All rights reserved.cisco. and logical BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public © 2006.IP SLA Technical Overview Wide measurement capabilities (UDP. Inc. Inc. Inc.g. All rights reserved.com 32 © 2008 Cisco Systems. Presentation_ID. Cisco Systems.. when ping fails. when rising and falling thresholds are passed) Can trigger another IP SLA operation for further analysis (e. a path echo operation starts) IP SLA WAN SN p tra MP NMS BRKNMS-1204 14528_04_2008_c1 www. TCP. physical.

and each bucket maintains 15 minutes of the aggregated measurements. All rights reserved. Presentation_ID. and 3750 Series © 2008 Cisco Systems. Cisco Public 34 © 2006. Inc. Inc.scr 17 . Cisco 7600 Series Cisco 12000 Series Cisco 7200 Series Cisco 7300 Series Cisco 10000 Series Access Cisco IOS Software Releases 12. Cisco Public 33 Comprehensive Hardware Support Enterprise and Aggregation/Edge Core Cisco IOS Software Release 12.2S Cisco CRS-1 (Future) Cisco Catalyst 6500. Inc.3T and 12.4 Cisco 800 Series (Responder Only) BRKNMS-1204 14528_04_2008_c1 Cisco 1700/ 1800 Series Cisco 2600/ 2800 Series Cisco 3700 Series Cisco 3800 Series Cisco 7200 and 7300 Series Cisco 2900. store 48 buckets. with this configuration.Historical Data Storage Stores previous results Not supported on all operations New enhanced history enables configuration of IP SLA to store aggregated measurements in “buckets” E. it can store 12 hours of performance information BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.g. All rights reserved. 3550. Cisco Systems.. All rights reserved.

2 12. Cisco Public 11. the IP voice or upper feature set will be required The responder will still remain in IP base BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved.2(11)T (Eng2) 12. Cisco Public 35 Features and Supported Cisco IOS Version Feature/Release ICMP Echo ICMP Echo Path UDP Echo TCP Connect UDP Jitter HTTP DNS DHCP DLSw+ SNMP Support UDP Jitter With One Way Latency FTP Get MPLS/VPN Aware Frame-Relay (CLI) ICMP Path Jitter APM Voice with MOS/ICPIF Score Post Dial Delay H323/SIP BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. All rights reserved.1(1)T 12.0(5)T 12.0(3)T 12.0(8)S 12. Inc. Inc.2(2) T 12.3(12) T X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X 36 © 2006.2 12.3M (included) Starting release 12. Presentation_ID.Cisco Device Details Cisco IOS® Routers: Available on all platforms from the small 800 up to the 12000 Catalyst® Switches: 2900.scr 18 .2. All rights reserved.4. 4000 (SUP4). 3700.3 and up to 12.3T and all 12. 6000 (MSFC or MWAM) Included in IP feature set since 11.3(4)T 12. and 12. 3500. Cisco Systems.

All rights reserved. Inc. Presentation_ID. Inc. Cisco Public 37 How Does It Work? Hop-by-hop analysis Edge-to-edge measurement Proactive notification Rising and falling thresholds Robust threshold definition for SLAs SNMP traps generated when SLA violated IP Host SNMP Trap Management Application Configure Collect Present Thresholds can trigger SA operation activation for further analysis M ea su re Cisco IOS Device IP SLA Measure IP SLA Measure (IP SLA Responder) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.scr 19 . All rights reserved.Agenda SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Systems. Inc. All rights reserved. Cisco Public 38 © 2006.

Inc. All rights reserved. Inc. Inc. Cisco Public 39 IP SLA Responder Runs on Cisco IOS Configure ‘ip sla monitor responder’. Cisco Systems. the duration Communication can be authenticated with MD5. all the results are to be polled off the sender Target is another host (IP Host. Presentation_ID. not encrypted (offers integrity) Responder inserts in/out timestamps in packet payload (measures CPU time spent) © 2008 Cisco Systems.scr 20 . some other are working with a simple IP Host (ICMP Ping) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. the port used. or IP SLA Responder) Some operations require the target to run the IP SLA responder (Jitter for instance).0=1 with SNMP Sender uses the IP SLA Control Protocol to communicate with responder before sending the test packets Responder knows the type of operation. Cisco Public BRKNMS-1204 14528_04_2008_c1 40 © 2006. All rights reserved. All rights reserved. or set rttMonApplResponder.IP SLA Sender Cisco IOS device that sends probe packets Operation configuration takes place on the sender only Once the operation is finished.

Inc. All rights reserved. Cisco Public 41 Agenda SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. 2020 Probing Phase Done: Stop Listening BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. 1967 Responder Says OK Control Phase Start Listening on UDP Port 2020 Sending Test Packets… IP SLA-Test UDP. Inc.scr 21 .IP SLA Operation with Responder Control Message Ask Receiver to Open Port 2020 on UDP IP SLA-Control IP SLA Sender IP SLA Responder UDP. Inc. Cisco Systems. Presentation_ID. All rights reserved. Cisco Public 42 © 2006.

scr 22 . Inc. Cisco Systems. the CLI command “rtr …” was changed to “ip sla monitor” ALL CLI examples in this presentation are based on CLI phase 2 that started shipping in 12. All rights reserved.). “dest-ip”. Cisco Public 44 © 2006. Inc. Optional parameters keep the keywords. All rights reserved. “dest-port” are removed (CLI phase 3). After an IOS upgrade to 12. “rtr” commands are transparent! All previous releases still use “rtr…” BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 43 Configuring an Operation R3(config)#ip sla monitor 1 R3(config-ip-sla-monitor)#type ? IP SLAs entry configuration commands: dhcp DHCP Operation dns DNS Query Operation echo Echo Operation frame-relay Frame-Relay Operation ftp FTP Operation http HTTP Operation path-echo Path Discovered Echo Operation path-jitter Path Discovered Jitter Operation slm SLM Operation tcp-connect TCP Connect Operation udp-echo UDP Echo Operation voip Voice Over IP Operation BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.3(14)T up to 12. All rights reserved.4(4)T Starting in 12. the configuration will automatically be converted (both “rtr” as well as “monitor” etc.4(6)T.4(6)T. “type”. Inc.CLI Modifications Recently. the keywords “monitor”. Presentation_ID.

Inc.ICMP Echo Operation “Ping” test Target can be any IP host Response time is computed by measuring the time taken between sending an ICMP echo request message to the destination and receiving an ICMP echo reply Processing delays on the source router is subtracted BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 46 © 2006. Inc. Presentation_ID.scr 23 . All rights reserved. Cisco Public 45 ICMP Echo Operation (Measurement) T1 IP SLA T3 T2 (at Interface Level) Target Host Processing Time on the Sender: Tproc = T3-T2 Round Trip Time: T = T3-T1-Tproc T=T3-T1-(T3-T2) T=T3-T1-T3+T2 T=T2-T1 Locally an IP SLA packet will perceive the same scheduling latency as any packet from its class Remember that this type of operation will include the processing time on the target host (see later to avoid this) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. All rights reserved. All rights reserved. Cisco Systems.

scr 24 . Inc. Cisco Public 48 © 2006.ICMP Echo Operation (Example) ip sla monitor 2 type echo protocol ipIcmpEcho 10. Inc. All rights reserved. Inc.130.2 tos 32 frequency 120 ip sla monitor schedule 2 life forever start-time now BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 47 ICMP Echo Operation (Output) R3#show ip sla stat 2 Round Trip Time (RTT) for Latest RTT: 100 ms Index 2 Latest operation start time: *17:32:53. All rights reserved. Presentation_ID. Cisco Systems.315 CET Tue Feb 21 2006 Latest operation return code: Timeout Number of successes: 0 Number of failures: 1 Operation time to live: Forever BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved.32.

1 7 ip sla monitor schedule 3 start-time now BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.UDP Echo Operation Uses either well-known UDP port 7 (echo service)— or any other custom port Requires responder for more accurate results: processing delays subtracted on both source and destination ip sla monitor 3 type udp-echo 172. Inc. All rights reserved. Inc. All rights reserved. Inc.scr 25 .6. Presentation_ID. Cisco Systems.16. Cisco Public 50 © 2006. Cisco Public 49 UDP Echo Operation (With IP SLA Responder) T1 T2 T3 Source T5 T4 Responder Processing Delay on the Source: Tps = T5-T4 Processing Delay on the Destination: Tpd = T3-T2 Total Delay: T = T5-T1-Tps-Tpd T = T5-T1-(T5-T4)-(T3-T2) T = T5-T1-T5+T4-T3+T2 T = T2+T4-T1-T3 We have no control on the queuing delay (neither source nor destination) Queuing delay is usually negligible. All rights reserved. but might become a problem on highly utilized interfaces BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

connection time BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 51 TCP Connect Operation TCP Connect Operation measures the time taken by the source to perform a TCP connect operation to the destination device Target can be normal host or IP SLA responder Useful in simulating Telnet. SQL. Inc. Inc. Inc.scr 26 . All rights reserved. All rights reserved. All rights reserved.475 CET Tue Feb 21 2006 Latest operation return code: OK Over thresholds occurred: FALSE Number of successes: 1 Number of failures: 3 Operation time to live: 3397 sec Operational state of entry: Active Last time this entry was reset: Never BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.UDP Echo Operation (Output) R3#show ip sla monitor stat 3 details Round Trip Time (RTT) for Index 3 Latest RTT: 1 milliseconds Latest operation start time: *17:42:45. SSH. Presentation_ID. Cisco Public 52 © 2006. Cisco Systems.

52.132.TCP Connect Operation (Measurement) T1 SYN SYN/ACK T2 ACK Source FIN Destination The measured connecting time is the difference between sending the initial SYN and receiving the ACK. Inc. All rights reserved. Default: enabled BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.68 9 control disable ip sla schedule 123 start-time now Connects to TCP Connection to 10. Presentation_ID. disable the Control Protocol (optional).132. Cisco Public 53 TCP Connect Operation (Example) ip sla monitor 123 type tcp-connect 10. All rights reserved. Cisco Public 54 © 2006. Inc. Inc. Cisco Systems.68 on port 9 If the target host is not running IP SLA.52.scr 27 . in this case = T2-T1 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved.

TCP Connect Operation (Output) Router#sh ip sla monitor statistics 123 detail Round trip time (RTT) Index 123 Latest RTT: 1 ms Latest operation start time: 14:20:26. All rights reserved. Inc. Cisco Public 55 UDP Jitter Operation Measures the delay.2(2)T or later and clock synchronization between source and destination Always requires IP SLA responder Starting Cisco IOS 12. the operation can measure MOS and ICPIF scores for VoIP © 2008 Cisco Systems. delay variance (jitter) and packet loss by generating periodic UDP traffic Measures: per-direction jitter. Inc. All rights reserved. Cisco Public BRKNMS-1204 14528_04_2008_c1 56 © 2006.3(4)T. All rights reserved. Cisco Systems. Inc.scr 28 . and round trip time Detect and report out-of-sequence and corrupted packets One-way delay requires Cisco IOS 12.272 CET Mon Mar 13 2006 Latest operation return code: OK Over thresholds occurred: FALSE Number of successes: 24 Number of failures: 0 Operation time to live: Forever Operational state of entry: Active Last time this entry was reset: Never BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Presentation_ID. per-direction packet-loss.

Inc. BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Presentation_ID. Inc. All rights reserved. Cisco Public 57 UDP Jitter: Measurement Example Send Packets STx = Sent tstamp for Packet x Receive Packets i2 P2 ST2 i1 P1 ST1 P2 IP Core RT2 Responder P1 RT1 IP SLA RTx = Receive tstamp for Packet x Reflected Packets Reply to Packets dx = Processing Time Spent Between Packet Arrival and Treatment P1 AT1 ATx = Receive tstamp for Packet x i4 P2 AT2 P1 RT1+d1 i3 P2 RT2+d2 Each Packet Contains STx. All rights reserved. Inc. Cisco Public 58 © 2006. dx and the Source Can Now Calculate: JitterSD = (RT2-RT1)-(ST2-ST1) = i2-i1 JitterDS = (AT2-AT1)-((RT2+d2)-(RT1+d1)) = i4-i3 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.UDP Jitter: Packet Stream Send train of packets cith constant interval Receive train of packets at Interval. RTx. All rights reserved.scr 29 . impacted by the network IP Core IP SLA Responder Per-Direction Inter-Packet Delay (Jitter) Per-Direction Packet Loss Average Round Trip Delay The Responder adds a “Receive Time Stamp” and replies to Packets. Cisco Systems. ATx.

Inc. Cisco Systems. eventually with GPS device as reference Use a GPS device on the auxiliary port of a 7200 (ex: Trimble Palisade GPS) If the time is not synchronized. IP SLA ignores the measurement by filling in 0s BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.scr 30 . All rights reserved. All rights reserved. Inc. All rights reserved. Cisco Public 60 © 2006. positive jitter means they have been received with more than 10ms interval Negative jitter means less than 10ms interval Zero jitter means they are received with the same inter-packet delay (the variance is zero) Jitter should remain as low as possible for real-time traffic such as voice over IP No need to have clocks synchronized BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 59 UDP Jitter Operation One-Way Delay Computation One-way delay measurement requires the clocks on source and target routers synchronized Use Network Time Protocol (NTP) server. Inc. Presentation_ID.UDP Jitter Operation Jitter Computation If packets are sent with 10ms interval.

130. Cisco Public 62 31 . All rights reserved.shtml © 2008 Cisco Systems.scr Time BRKNMS-1204 14528_04_2008_c1 BRKNMS-1204 14528_04_2008_c1 R received the packet.4) Rx: (5.2 source-port 80[control] ip sla monitor schedule 10 start-time now UDP Jitter Operation to 10. Cisco Public 61 UDP Jitter Operation (Example) Typical IP SLAs configuration (12. Presentation_ID.52.2) Rx Counter: 3 Ack: (3.68. Inc.3(14)T and Above: www.3) Send Counter: 4 × © 2006. but did not receive the ACK: PacketLossDS + 1 Send Counter: 5 Rx Counter: 4 Ack: (5.1.68 dest-port 3456 interval 10 num-packets 20 source-ipaddr 1.com/en/US/products/ps6602/products_white_paper 0900aecd8022c2cc.1) Rx Counter: 2 Current RxCount Index of the ACKd packet Rx: (1.52. Port 3456 Send 20 packets each time IP SLAs CLI Conversion Document in 12. Inc.3) Rx: (3. All rights reserved.cisco.4) R missed a packet (only 4 received while 5 sent: PacketLossSD += 1 © 2008 Cisco Systems. All rights reserved. Cisco Systems.UDP Jitter Operation Packet Loss Sender Send Counter: 1 Result: PacketLossSD = 1 PacketLossDS = 1 Responder Rx Counter: 1 Ack: (1.4(4)T): ip sla monitor 10 type Jitter dest-ipaddr 10.130. Inc.1.1) Send Counter: 2 × Send Counter: 3 Ack: (2.

scr 32 . Cisco Public 64 © 2006. All rights reserved. Inc. 12 bytes for RTP header) Packets are sent every 20 milliseconds (interval) Marked with DSCP value of 8 (TOS equivalent 0x20) Runs every minute (frequency) ip sla monitor 1 type jitter dest-ipaddr 10.711 VoIP call Use RTP/UDP ports 16384 and above.279 PST Tue Mar 14 2006 Latest operation return code: OK Over thresholds occurred: FALSE RTT Values Number Of RTT: 1000 RTT Min/Avg/Max: 1/1/4 ms Latency one-way time milliseconds Number of Latency one-way Samples: 0 Source to Destination Latency one way Min/Avg/Max: 0/0/0 ms Destination to Source Latency one way Min/Avg/Max: 0/0/0 ms Source to Destination Latency one way Sum/Sum2: 0/0 Destination to Source Latency one way Sum/Sum2: 0/0 (cont…) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. the packet size is 172 bytes (160 bytes of payload. Presentation_ID. Inc. All rights reserved. Inc.0. All rights reserved.UDP Voice Jitter Operation (Example) Simulating G.0.2 dest-port 5556 num-packets 1000 request-data-size 172 tos 32 ip sla monitor schedule 1 life forever start-time now B A C A = 20 ms B = 20 s (1000 x 20 ms) C = 40 s (60 s – 20 s) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Systems. Cisco Public 63 UDP Voice Jitter Operation (Output) [1/3] Router#sh ip sla mon sta 1 detail Round trip time (RTT) Index 1 Latest RTT: 1 ms Latest operation start time: *18:32:08.

All rights reserved.UDP Voice Jitter Operation (Output) [2/3] (…cont) Jitter time milliseconds Number of Jitter Samples: 999 Source to Destination Jitter Min/Avg/Max: 1/3/8 ms Destination to Source Jitter Min/Avg/Max: 1/2/4 ms Source to destination positive jitter Min/Avg/Max: 1/3/8 ms Source to destination positive jitter Number/Sum/Sum2: 413/1578/6188 Source to destination negative jitter Min/Avg/Max: 3/3/8 ms Source to destination negative jitter Number/Sum/Sum2: 409/1574/6190 Destination to Source positive jitter Min/Avg/Max: 1/2/4 ms Destination to Source positive jitter Number/Sum/Sum2: 398/1086/3252 Destination to Source negative jitter Min/Avg/Max: 1/2/4 ms Destination to Source negative jitter Number/Sum/Sum2: 395/1089/3285 Interarrival jitterout: 0 Interarrival jitterin: 0 Packet Loss Values Loss Source to Destination: 0 Loss Destination to Source: 0 Out Of Sequence: 0 Tail Drop: 0 Packet Late Arrival: 0 Voice Score Values Calculated Planning Impairment Factor (ICPIF): 0 Mean Opinion Score (MOS): 0 Number of successes: 1 Number of failures: 0 Operation time to live: Forever Operational state of entry: Active Last time this entry was reset: Never BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Systems. Cisco Public 65 UDP Voice Jitter Operation (Output) [3/3] Average positive jitter.scr 33 . Source to destination positive jitter Number/Sum/Sum2: 413/1578/6188 Total number of packets with a positive jitter. Inc. Presentation_ID. Inc. Source to destination positive jitter Min/Avg/Max: 1/3/8 ms Sum of all positive jitter. Inc. Smallest positive jitter. Sum the squares of all positive jitter. BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. All rights reserved. Biggest positive jitter. Cisco Public 66 © 2006.

Inc. Inc.1 [opt 82] ip sla monitor schedule 30 start-time now This feature enables the router to include information about itself and the attached client when forwarding DHCP requests to a DHCP server BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 68 © 2006. All rights reserved. Cisco Systems. a critical element for surfers’ speed feeling The IP SLA DNS operation queries for an IP address if the user specifies hostname (forward).1.1. Cisco Public 67 DNS Operation Difference between the time taken to send a DNS request and the time a reply is received Check your DNS performance. All rights reserved. Presentation_ID. All rights reserved.scr 34 . or queries for a hostname if the user specifies an IP address (reverse) Do not revert back to TCP if the DNS UDP query fails BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc.DHCP Operation Useful for Cable/DSL providers that uses DHCP for dynamic address allocation Measures the time taken to discover a DHCP Server and obtain a lease from it IP SLA releases the leased IP address after the operation ip sla monitor 30 type dhcp dest 10.

1.1 ip sla monitor schedule 40 start-time now Resolve www. Presentation_ID. time to first byte.DNS Operation (Example) ip sla monitor 40 type dns target-addr www.1. this gives ultimate flexibility for user to control fields such as authentication BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved.cisco. TCP connection. Cisco Public 69 HTTP Operation Measures HTTP server responsiveness: DNS request.1. Inc.1 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. HTTP transaction time HTTP Proxy servers supported IP SLA Responder cannot be used Supports GET requests and custom RAW requests: GET request—IP SLA will format the request based on the URL specified RAW—One must specify the entire content of the HTTP request.scr 35 .com name-server 10. Cisco Public 70 © 2006. Inc.com to an IP Address… …Against the DNS Server 10. Cisco Systems.1.cisco. Inc. All rights reserved. All rights reserved.

Inc. Inc.cisco. Cisco Public 71 HTTP Operation (GET Example) Simple GET Request to Server www. All rights reserved.HTTP Operation (Measurement) DNS REQ DNS RTT DNS ANS DNS Server SYN TCP RTT SYN/ACK ACK Time to First Byte GET /… <HTML>… …</HTML> HTTP RTT FIN FIN/ACK ACK IP SLA HTTP Server BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. All rights reserved.cisco. Cisco Systems.com ip sla monitor 50 type http operation get url http://www. Presentation_ID.com/go/ipsla ip sla monitor schedule 50 start-time now Options: cache name-server proxy source-ipaddr source-port version Enable or Disable download of cached HTTP page Name Server Proxy information Source Address Source Port Version Number BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.scr 36 . Inc. Cisco Public 72 © 2006.

279 PST Tue Mar 14 2006 Latest DNS RTT: 4 ms Latest TCP Connection RTT: 8 ms Latest HTTP Transaction RTT: 181 ms Number of successes: 1 Number of failures: 0 Operation time to live: 3593 sec Total = DNS RTT + TCP RTT + HTTP RTT BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. Inc.cisco. Cisco Systems.com http-raw-request GET /lab/index. All rights reserved.com’. the Requested Page Is Password Protected ip sla monitor 60 type http operation raw url http://www.cisco.html HTTP/1.HTTP Operation (Output) Router#sh ip sla monitor stat 50 Round Trip Time (RTT) for Index 50 Latest RTT: 193 ms Latest operation return code: OK Latest operation start time: *18:32:08. Presentation_ID. Cisco Public 73 HTTP Operation (RAW Authentication) Use RAW for a HTTP GET Operation on Server ‘www. All rights reserved.0\r\n Authorization: Basic btNpdGT4biNvoZe=\r\n \r\n exit ip sla monitor schedule 60 start-time now “user:password” Encoded in Base64 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. Cisco Public 74 © 2006.scr 37 . Inc.

Cisco Public 75 FTP Operation Measures the time to download a file Do not abuse: big files gives more realistic results while consumes more bandwidth Active or passive mode Does not work with IP SLA responder BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.cisco.com:80 ip sla monitor schedule 70 start-time now proxy http://example- BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.cisco.cisco. All rights reserved. All rights reserved.HTTP Operation (Example: Proxy) Use Proxy ‘example-proxy’ to Get to a Page on the Server ‘www.scr 38 . Inc. Cisco Public 76 © 2006. Inc. Inc. All rights reserved.com’ ip sla monitor 70 type http operation get url http://www.com proxy. Presentation_ID. Cisco Systems.

FTP Operation (Example)
Get the file ‘/home/user/test.cap’
ip sla monitor 80 type ftp operation get url ftp://user:pwd@drop.cisco.com/test.cap [mode] ip sla monitor schedule 80 start-time now

Get the file in ‘/test.cap’
ip sla monitor 81 type ftp operation get url ftp://user:pwd@drop.cisco.com//test.cap [mode] ip sla monitor schedule 81 start-time now

Absolute vs. Relative Path

[mode]: active or passive ftp
BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public

77

FTP Operation (Output)
Router#sh ip sla monitor stat 80 Entry number: 80 Modification time: *19:15:28.968 UTC Tue Mar 14 2006 Number of Octets Used by this Entry: 3264 Number of operations attempted: 1 Number of operations skipped: 0 Current seconds left in Life: 3591 Operational state of entry: Active Download Bandwidth was: Last time this entry was reset: Never 294792 bytes/587 s = 502 KB/s Connection loss occurred: FALSE Timeout occurred: FALSE Over thresholds occurred: FALSE Latest RTT (milliseconds): 587 Latest operation start time: *19:15:28.972 UTC Tue Mar 14 2006 Latest operation return code: OK Bytes read: 294792

BRKNMS-1204 14528_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved.

Cisco Public

78

© 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr

39

PathJitter Operation
Runs in two phases: route discovery, and hops evaluation (see next slide) Per hop round trip time Per hop packet loss Per hop cumulated Jitter with noise reduction (RFC1889) No IP SLA responder required on the destination, nor on the hops

Note: Requires Cisco IOS Version 12.2(2)T or Later
BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems, Inc. All rights reserved. Cisco Public

79

PathJitter Operation (Two Phases)
Hop 1

Destination

Source Hop 2

1. 2.

Discover the path with traceroute Evaluate each hop one by one for RTT, packet lost, and round-trip total Jitter

BRKNMS-1204 14528_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved.

Cisco Public

80

© 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr

40

PathJitter Operation (Example)
Trace the Hops to ‘10.52.128.1’:

ip sla monitor 11 type path-jitter dest-ipaddr 10.52.128.1 [options] ip sla monitor schedule 11 start-time now

options: interval num-packets source-ipaddr targetOnly Inter packet interval Number of packets to be transmitted Source IP Address Perform Path Jitter on destination only

BRKNMS-1204 14528_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved.

Cisco Public

81

PathJitter Operation (Output)
sh ip sla mon stat 11 details ---- Path Jitter Statistics ---Source IP Destination IP Number of Echos Interval between Echos Target Only Hop IP 10.52.132.2: RTT:1 MinRTT:1 MinPosJitter:1 MinNegJitter:0 OutOfSequence:0 Hop IP 10.52.128.1: RTT:1 MinRTT:1 MinPosJitter:2 MinNegJitter:1 OutOfSequence:0 10.52.132.5 10.52.128.1 10 20 ms Disabled (default)

PacketLoss:0 MaxRTT:2 MaxPosJitter:1 MaxNegJitter:0 DiscardedSamples:0 PacketLoss:0 MaxRTT:3 MaxPosJitter:2 MaxNegJitter:1 DiscardedSamples:0

Jitter:0 SumRTT:19 SumPos:1 SumNeg:0

Sum2RTT:37 Sum2Pos:1 Sum2Neg:0

Jitter:0 SumRTT:14 SumPos:2 SumNeg:2

Sum2RTT:24 Sum2Pos:4 Sum2Neg:2

BRKNMS-1204 14528_04_2008_c1

© 2008 Cisco Systems, Inc. All rights reserved.

Cisco Public

82

© 2006, Cisco Systems, Inc. All rights reserved. Presentation_ID.scr

41

4 timeout 1000 frequency 3 threshold 2 ip sla monitor schedule 1 start-time now life forever ! track 2 rtr 1 state track 3 rtr 1 reachability ! interface e0/1 ip address 10.0.12. Cisco Systems.Post Dial and Gatekeeper Delays SIP and H. Cisco Public 84 © 2006.3(12)T or later ip sla monitor 21 type voip delay gatekeeper registration ip sla monitor schedule 21 life forever start-time now ip sla monitor 22 type voip delay post-dial [destination | detect point] ip sla monitor schedule 22 life forever start-time now BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. All rights reserved. All rights reserved.51.10 standby 3 priority 120 standby 3 preempt standby 3 track 2 standby 3 track 3 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc.4 255.2(25)S ip sla monitor 31 type echo protocol ipIcmpEcho 10.255.323 This feature adds the capability to monitor call setup delay for VoIP calls Requires Cisco IOS 12.0 standby 3 ip 10. Cisco Public 83 Enhanced Object Tracking with IP SLA Uses IP SLA operation as a “metric” for HSRP Introduced in Cisco IOS 12.scr 42 .21.0.3(4)T and 12. Inc. Inc.21.0. Presentation_ID.

All rights reserved. jitter One-way Reachability Connectivity testing Application testing Streaming Video* Minimize delay. All rights reserved. Presentation_ID. packet loss. Cisco Systems. Inc. Cisco Public 86 43 . Inc. All rights reserved. Cisco Public 85 Agenda SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios © 2008 Cisco Systems. packet loss. DNS. jitter Service Level Agreement Measure delay.scr Requirement IP SLA Measurement Jitter Packet loss Latency per QoS Jitter Packet loss Latency MOS Voice Quality Score Jitter Packet loss Latency One-way Enhanced accuracy NTP Connectivity tests to IP devices Connectivity tests to network services (DHCP. Inc. packet loss BRKNMS-1204 14528_04_2008_c1 BRKNMS-1204 14528_04_2008_c1 © 2006. packet loss Verify Quality of Service (QoS) VoIP Minimize delay. http) Jitter Packet loss Latency *IP SLA Has No Specific Monitoring Option for “Streaming Video” and Does Not Generate IP SLA Video Streams © 2008 Cisco Systems.Cisco IOS IP SLA Uses and Metrics Data Traffic Minimize delay.

Inc. Inc.scr 44 . Cisco Systems. all will start at the same time after a router reload Consider using the option ‘after’ instead of ‘now’ Example. All rights reserved.Schedule and Stop To schedule operation <n> to start: ip sla monitor schedule <n> [life seconds] [start-time {pending | now | hh:mm [month day |day month]}][ageout seconds] To stop a running operation <n>: no ip sla monitor schedule <n> BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. Presentation_ID. Inc. Cisco Public 87 Scheduling Caveat If you configure multiple operations to start ‘now’. Cisco Public 88 © 2006. All rights reserved. new operations are started every second: ip sla monitor schedule <n> start-time after 00:01:00 ip sla monitor schedule <n+1> start-time after 00:01:01 ip sla monitor schedule <n+2> start-time after 00:01:02 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

579 PST Mon Apr 18 Latest operation start time: *12:50:39. All rights reserved. with automatic smooth “start-time” Example.scr 45 .579 PST Mon Apr 18 Latest operation start time: *12:50:35. Inc.591 PST Mon Apr 18 2005 2005 2005 2005 2005 2005 2005 2005 2005 2005 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. All rights reserved. Inc. Cisco Public 89 Multi-Operation Scheduler (Status) Show Command: r1#show ip sla monitor group schedule Group Entry Number: 1 Probes to be scheduled: 1-10 Total number of probes: 10 Schedule period: 10 Mode: even Group operation frequency: Equals schedule period Status of entry (SNMP RowStatus): Active Next Scheduled Start Time: Start Time already passed Life (seconds): 3600 Entry Ageout (seconds): never BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.599 PST Mon Apr 18 Latest operation start time: *12:50:52.579 PST Mon Apr 18 Latest operation start time: *12:50:38. All rights reserved.599 PST Mon Apr 18 Latest operation start time: *12:50:53. Presentation_ID.579 PST Mon Apr 18 Latest operation start time: *12:50:37.579 PST Mon Apr 18 Latest operation start time: *12:50:40.599 PST Mon Apr 18 Latest operation start time: *12:50:34.579 PST Mon Apr 18 Latest operation start time: *12:50:36.Multi-Operation Scheduler (Configuration) Start many operations at once. start operations 1 to 10 within 10 seconds: ip sla monitor group schedule 1 1-10 schedule-period 10 start-time now sh ip sla monitor operation | include start Latest operation start time: *12:50:51. Cisco Public 90 © 2006. Cisco Systems.

Inc. All rights reserved. Cisco Systems.Reaction Actions and Operation Trigger Router(config)#ip sla monitor reaction-configuration <n> ? action-type ip sla Reaction Action Type connection-loss-enable ip sla Enable Connection Loss Reaction threshold-falling ip sla Falling Threshold Value threshold-type ip sla Reaction Threshold Type timeout-enable ip sla Enable Timeout Reaction Router(config)#ip sla monitor reaction-trigger <entry-number> <target-number> BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc.12.1 10. Cisco Public 92 © 2006. Cisco Public 91 VRF-Awareness Issue (for MPLS/VPN) How to send probe packets from IP SLA to a specific VPN? By default.10.10. Inc.g. All rights reserved.scr 46 . Blue and Yellow We Need a Way to Execute an Operation in a VRF Context—e. and the wrong route is selected CEs with VRFs Red.10..1 10.1 Route lookup is done in the global routing table. local processes are not executed in a VRF context IP SLA (PE) 10. Blue or Yellow BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Red. Presentation_ID.10. All rights reserved.11.

1.Solution: IP SLA for MPLS/VPN IP SLA operations are VRF-aware since 12.2(6)S.1 dest-port 80 vrf blue ip sla monitor schedule 41 start-time now BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved.2(2)T. Inc. Cisco Systems. Cisco Public 93 IP SLA for MPLS/VPN (Example) Sends Probes to a Remote IP SLA in the Context of the Blue VPN: ip sla monitor 41 type jitter dest-ipaddr 1. UDP Echo.scr 47 . ICMP Path Echo. 12. Inc. Presentation_ID. 12. All rights reserved.0(26)S Supported on ICMP Echo.1. and UDP Jitter operations Allows measurement from PE to anything Use vrf vrf-name option BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. All rights reserved. Cisco Public 94 © 2006.

Cisco Systems.130. ToS 160 (0xA0) 176 (0xB0) 56 (0x38) Cisco Public DSCP 40 44 14 Precedence 5 5 1 96 © 2006. Inc. All rights reserved. All rights reserved. Presentation_ID. Inc. no diffserv (see next slide to perform translation) ip sla monitor 11 type jitter dest-ipaddr 10.TOS Marking Probes can be TOS marked to match the target class Only TOS setting is supported. All rights reserved.52.scr 48 . Inc.68 dest-port 16384 \ interval 20 num-packets 1000 tos 0x20 frequency 60 request-data-size 172 ip sla monitor schedule 11 start-time now BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 95 Converting Between TOS and DiffServ 128 4 64 2 32 1 16 8 4 2 1 TOS (RFC795) P2 P1 P0 T3 T2 ToS T1 T0 CU In Cisco IOS the 8 TOS bits are set from right to left precedence Always zero 32 16 8 4 2 1 DiffServ (RFC2474) D5 D4 D3 D2 D1 D0 CU CU DSCP (6 bits) Multiply by 4 Divide by 8 Binary 101 000 101 100 001 110 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

0.215 CET Tue Feb 21 2006 Estimated system max number of entries: 10852 Estimated Number of Number of Number of Number of number of configurable operations: 10847 Entries configured : 5 active Entries : 2 pending Entries : 0 inactive Entries : 3 Maximum Number of Configurable Operations Supported Operation Types Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: Type of Operation to Perform: dhcp dns echo frameRelay ftp http jitter pathEcho pathJitter tcpConnect udpEcho voip Supported Operations IP SLAs low memory water mark: 14976312 Memory Limit BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.scr 49 . All rights reserved. Cisco Public 97 IP SLA Application Version R3#show ip sla monitor application IP Service Level Agreements Version: Round Trip Time MIB 2. Infrastructure Engine-II Time of last change in whole IP SLAs: *17:46:22. Cisco Systems.2. All rights reserved. Inc. Cisco Public 98 © 2006. Inc. All rights reserved. Inc.Agenda SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Presentation_ID.

All rights reserved. Infrastructure Engine-II. Presentation_ID.1/0. Entry number: 1 Owner: Tag: Type of operation to perform: udp-jitter Target address/Source address: 1. Cisco Systems. All rights reserved. Inc. Inc.0 Target port/Source port: 1000/0 Request size (ARR data portion): 32 Operation timeout (milliseconds): 5000 Packet Interval (milliseconds)/Number of packets: 20/10 Type Of Service parameters: 0x0 Verify data: No Vrf Name: Control Packets: enabled Schedule: Operation frequency (seconds): 60 (not considered if randomly scheduled) Next Scheduled Start Time: Pending trigger Group Scheduled : FALSE Randomly Scheduled : FALSE Life (seconds): 3600 Entry Ageout (seconds): never Recurring (Starting Everyday): FALSE Status of entry (SNMP RowStatus): notInService Threshold (milliseconds): 5000 Distribution Statistics: Number of statistic hours kept: 2 Number of statistic distribution buckets kept: 1 Statistic distribution interval (milliseconds): 20 Enhanced History: BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. Inc.1.0. Cisco Public 100 © 2006.1. Cisco Public 99 Display the Configuration State (Incl.0. Defaults) R3#show ip sla monitor configuration 1 IP SLAs.scr 50 .Operational State Show the Actual State of an Operation: Old command show rtr operational-state operation-number New command show ip sla monitor statistics operation-number [details] BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

Presentation_ID. All rights reserved. Cisco Public 101 Debugging an Operation’s Activities To debug operation <n> activity: debug ip sla monitor trace <n> To debug activity of the responder: debug ip sla monitor trace 0 The Responder Is the Equivalent of Operation Zero BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 102 © 2006.Deleting Operations To delete one operation <n>: router(config)# no ip sla monitor <n> To delete all operations: router(config)# ip sla monitor reset BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc. Inc. All rights reserved. All rights reserved. Cisco Systems.scr 51 . Inc.

Inc.406: cmd: command: RTT_CMD_JITTER_PORT_ENABLE.132. .68(9999) 16:27:45.422: sdTime: 2104279296 dsTime: -2017879294 16:27:45.406: sending control msg: 16:27:45.scr 52 . Cisco Systems. Cisco Public 103 Debug Sample Output 16:27:45.414: Ver: 1 ID: 144 Len: 8 16:27:45.402: ip sla 1: Starting An Echo Operation . Presentation_ID.69(49175) dest-ip=10.Debugging an Operation’s Errors To debug errors for operation <n>: router# debug ip sla monitor error <n> To debug errors the responder: router# debug ip sla monitor error 0 The Responder Is the Equivalent of Operation Zero BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.132.442: sdTime: 2104279296 dsTime: -2017879295 16:27:45. Cisco Public 104 © 2006.414: receiving reply 16:27:45. All rights reserved.68.52. port: 9999. .406: Ver: 1 ID: 144 Len: 52 16:27:45. ip: 10.442: jitterOut: 0 16:27:45.406: source=10.422: responseTime (1): 2 16:27:45.> BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.132.442: jitterIn: -1 16:27:45. Inc.52.442: responseTime (2): 1 <. Inc.52.IP sla Probe 1 16:27:45. All rights reserved. duration: 5200 16:27:45. All rights reserved.

scr 53 . Inc.Agenda SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. Cisco Systems. Inc. All rights reserved. Cisco Public 105 Scenario 1: Service Provide Core Network Shadow Router at Each PoP PoP2 PoP1 PoP3 PoP4 PE P PE PE Shadow Router (2600. All rights reserved. Inc. Presentation_ID. 3600) Dedicated for IP SLA Possible GPS feed for clock synchronisation (one-way delay) © 2008 Cisco Systems. Cisco Public BRKNMS-1204 14528_04_2008_c1 106 © 2006.

scr 54 . Inc. All rights reserved. Inc. All rights reserved. Presentation_ID. Cisco Systems. Inc.Scenario 1: Service Provide Core Network Extending Monitoring to the Customer Sites Hierarchical Polling PoP to CPE PoP2 PoP1 PoP3 PoP4 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. Cisco Public 108 © 2006. Cisco Public 107 Scenario 1: Service Provide Core Network Scalability Versus Accuracy PoP2 PoP1 PoP3 PoP4 # of operations = PoP(PoP-1) + 1 for each CPE versus # of operations =CPE(CPE-1) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

All rights reserved. Drawback: less flexible.scr 55 . Cisco Systems. BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. more overhead. Inc. All rights reserved. Inc. Cisco Public 109 Scenario 1: Service Provide Core Network Best Practice: CE to CE SLA CE CE PoP2 NOC PoP3 PoP1 CE CE PoP4 For increased accuracy. Presentation_ID. All rights reserved. define CE to CE polling. Inc. Cisco Public 110 © 2006.Scenario 1: Service Provide Core Network Best Practice: NOC to POP/CE SLA CE CE PoP2 NOC PoP3 PoP1 CE PoP4 Best practice suggests using 1 site to poll the others to increase manageability when network design changes are required BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

All rights reserved. Cisco Public 111 Scenario 2: Enterprise WAN Hierarchical Monitoring Corp. Inc.scr 56 . All rights reserved. Cisco Systems. Inc. All rights reserved.Scenario 2: Enterprise WAN ISP SLA Monitoring CE PE PE CE ISP CPE CPE Enterprise (CPE to CE) ISP Network (CE to CE) Enterprise (CPE to CE) End-to-End (CPE to CPE) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Public 112 © 2006. Presentation_ID. HQ Data Center Regional Aggregation Remote Campus HomeOffi ce Retail Branch Network Connectivity Server Connectivity Small Office BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Inc.

documentation. Cisco Systems.com/go/ipsla This page contains links to executive and technical documents. Cisco Public 113 References Cisco IOS IP SLA Web site on CCO: http://www.cisco. Presentation_ID. Inc. Inc. Web Servers DNS DHCP Email Web BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. and white papers Suggested reading: Cisco IOS IP Service Level Agreements User Guide Accurate Network Performance Monitoring using Cisco IOS IP SLA BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved.Scenario 3: Network Services Monitoring DNS.scr 57 . All rights reserved. DHCP. Cisco Public 114 © 2006. Inc. Email. All rights reserved.

DNS.com cisco-ios-ipsla-questions@external. Presentation_ID.com cisco-ios-ipsla-announce@external.com Cisco IOS IP SLAs External Announcements: cisco-ios-ipsla-announce-approval@cisco.IP SLA Email Aliases Cisco IOS IP SLAs External Self-Help User Community: cisco-ios-ipsla-questions-approval@cisco. Inc. TCP Connect) BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. All rights reserved. Inc. Cisco Public 115 A Complementary Solution NetFlow From where? To Who? When? How Much? Which Apps? What ToS? IP SLA Latency Loss Jitter Server Delay (HTTP. All rights reserved. Inc. Cisco Public 116 © 2006.cisco.com BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.cisco.scr 58 . Cisco Systems. All rights reserved.

All rights reserved.Summary SLA Concept Network Disturbance Active Measurement Overview Architecture Configuration Options Monitoring and Debugging Use Cases and Scenarios BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Systems. Presentation_ID.scr 59 . Inc. Cisco Public 118 © 2006. Inc. Inc. All rights reserved. All rights reserved. Cisco Public 117 Conclusion IP SLA is the integrated Cisco IOS feature to actively measure and report applications and network performance It offers a broad set of measurement functions Several network management applications support it Stay tuned…we have an ambitious roadmap for new features What other features would you like to see added? BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

All rights reserved.com/b ookstore/product.asp?isbn= 1587051982&rl=1 Available Onsite at the Cisco Company Store BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Cisco Systems.scr 60 . All rights reserved. Inc.ciscopress. Cisco Public 119 Recommended Reading Continue your Cisco Live learning experience with further reading from Cisco Press Check the Recommended Reading flyer for suggested books Please refer to the work titled “Accounting and Performance Management” at the URL below: http://www. Presentation_ID. Inc. Inc. Cisco Public 120 © 2006. All rights reserved.Q and A BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.

Cisco Systems. Don’t forget to activate your Cisco Live virtual account for access to all session material on-demand and return for our live virtual event in October 2008.Complete Your Online Session Evaluation Give us your feedback and you could win fabulous prizes. Go to the Collaboration Zone in World of Solutions or visit www. Receive 20 Passport points for each session evaluation you complete. Inc. All rights reserved.com. All rights reserved.cisco-live. Inc.scr 61 . Presentation_ID. Complete your session evaluation online now (open a browser through our wireless network to access our portal) or visit one of the Internet stations throughout the Convention Center. Inc. BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems. Winners announced daily. All rights reserved. Cisco Public 122 © 2006. Cisco Public 121 BRKNMS-1204 14528_04_2008_c1 © 2008 Cisco Systems.