This module describes how to configure the IP SLA QFP Time Stamping feature for IP Service Level Agreements (SLAs) UDP jitter operations. This new probe and responder structure enables more accurate network performance measurements.
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see
Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Prerequisites for IP SLAs QFP Time Stamping
The devices on which the responder and probe are to configured must both be running Cisco software images that support QFP time stamping in order for the IP SLAs QFP Time Stamping feature to work.
Time synchronization, such as that provided by NTP, is required between the source and the target device in order to provide accurate one-way delay (latency) measurements. To configure NTP on the source and target devices, perform the tasks in the “Performing Basic System Management” chapter of the
Network Management Configuration Guide.
Before configuring any IP SLAs application, you can use the
show ip sla application command to verify that the operation type is supported on your software image.
Restrictions for IP SLA QFP Time Stamping
After rebooting the sender or responder devices, the Forward Processor (FP) and Route Processor (RP) times can be inaccurate until SNTP synchronizes the FP clock to the RP clock. To avoid running an operation before the device FP and RP times are stable, wait several minutes after a reboot before starting the UDP jitter operation.
The one way delay value reported by an IP SLAs UDP jitter operation are dependent on the NTP synchronization level. Even if the device is synchronized, if the NTP offset values on the device are large, then one way values can be inaccurate. In cases where offset value becomes too large, the one way value may not be reported. Also, the NTP offset value on the device can fluctuate and these changes will be reflected in one way values reported.
If you configure the optimized time stamp location on the source device and the device on which the targeted IP SLAs Responder is configured does not support the optimized time stamp location, the IP SLAs operation will fail.
The IP SLAs UDP jitter operation was primarily designed to diagnose network suitability for real-time traffic applications such as voice over IP (VoIP), video over IP, or real-time conferencing.
Jitter means inter-packet delay variance. When multiple packets are sent consecutively from source to destination, for example, 10 ms apart, and if the network is behaving ideally, the destination should be receiving them 10 ms apart. But if there are delays in the network (like queuing, arriving through alternate routes, and so on) the arrival delay between packets might be greater than or less than 10 ms. Using this example, a positive jitter value indicates that the packets arrived greater than 10 ms apart. If the packets arrive 12 ms apart, then positive jitter is 2 ms; if the packets arrive 8 ms apart, then negative jitter is 2 ms. For delay-sensitive networks like VoIP, positive jitter values are undesirable, and a jitter value of 0 is ideal.
However, the IP SLAs UDP jitter operation does more than just monitor jitter. As the UDP jitter operation includes the data returned by the IP SLAs UDP operation, the UDP jitter operation can be used as a multipurpose data gathering operation. The packets IP SLAs generates carry packet-sending and receiving sequence information, and sending and receiving time stamps from the source and the operational target. Based on this information, UDP jitter operations are capable of measuring the following:
Per-direction jitter (source to destination and destination to source)
Per-direction packet loss
Per-direction delay (one-way delay)
Round-trip delay (average round-trip time)
As the paths for sending and receiving data may be different (asymmetric), the per-direction data allows you to more readily identify where congestion or other problems are occurring in the network.
The UDP jitter operation functions by generating synthetic (simulated) UDP traffic. The UDP jitter operation sends N UDP packets, each of size S, T milliseconds apart, from a source device to a target device, at a given frequency of F. By default, ten packet frames (N), each with a payload size of 10 bytes (S), are generated every 10 ms (T), and the operation is repeated every 60 seconds (F). Each of these parameters is user-configurable, so as to best simulate the IP service you are providing, or want to provide, as shown in the table below.
Table 1 UDP Jitter Operation Parameters
UDP Jitter Operation Parameter
Default
Configured Using:
Number of packets (N)
10 packets
udp-jittercommand,
num-packets option
Payload size per packet (S)
32 bytes
request-data-size command
Time between packets, in milliseconds (T)
20 ms
udp-jitter command,
interval option
Elapsed time before the operation repeats, in seconds (F)
60 seconds
frequency (IP SLA) command
The IP SLAs operations function by generating synthetic (simulated) network traffic. A single IP SLAs operation (for example, IP SLAs operation 10) will repeat at a given frequency for the lifetime of the operation.
QFP Time Stamping
IP SLAs UDP jitter is the most widely-used IP SLAs operation for measuring metrics such as round-trip time, one-way delay, jitter, and packet loss. The accuracy of measurements depends on the location where the time stamps are taken while the packet moves from the sender to responder, and back.
Typically, time stamps for IP SLAs operations are taken in the IP SLAs process at the Route Processor (RP). This time-stamp location results in inaccurate and inconsistent measurements because the time stamps are subject to scheduling delays experienced at the RP. QFP time stamping moves the location of the time stamping from the RP to the Cisco Packet Processor (CPP).
However, to measure the one-way delay, the clocks on the source and target devices must be synchronized. Because device CPP clocks cannot be synchronized directly to an external clock source, the RP clocks are synchronized with an external clock source and SNTP is used to synchronize RP and Forwarding Processor (FP) clocks. The accuracy of the RP-FP synchronization is poor. To address this issue, the enhanced UDP jitter probe in the QFP Time Stamping feature stores both the RP and CPP time stamps. RTT and jitter calculations utilize the CPP time stamps, and one-way calculations continue to be based on RP time stamping. Therefore, time synchronization, such as that provided by NTP, is required between the source and the target device in order to provide accurate one-way delay (latency) measurements. One-way latency values are computed using RP time stamps are corrected by applying estimated-correction algorithms based on CPP time stamps.
QFP time stamping includes an enhanced UDP probe and enhanced responder. The devices on which the UDP probe and IP SLAs responder are configured must both be running Cisco software images that support QFP time stamping and the optimized time stamp location (for more accurate RTT measurements). If the UDP jitter operation is targeted to an responder on a device that does not support the optimized time stamp location, the IP SLAs probe will fail.
Configuring the IP SLAs Responder on the Destination Device
Note
A responder should not configure a permanent port for the same sender. If the responder configures a permanent port for the same sender, even if the packets are successfully sent (no timeout or packet-loss issues), the jitter values will be zero.
SUMMARY STEPS
1.enable
2.configureterminal
3.Do one of the following:
ipslaresponder
ipslaresponderudp-echoipaddressip-addressportport
4.exit
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Device> enable
Enables privileged EXEC mode.
Enter your password if prompted.
Step 2
configureterminal
Example:
Device# configure terminal
Enters global configuration mode.
Step 3
Do one of the following:
ipslaresponder
ipslaresponderudp-echoipaddressip-addressportport
Example:
Device(config)# ip sla responder
Example:
Device(config)# ip sla responder udp-echo ipaddress 172.29.139.132 port 5000
(Optional) Temporarily enables IP SLAs Responder functionality on a Cisco device in response to control messages from the source.
(Optional) Required only if protocol control is disabled on the source. Enables IP SLAs responder functionality on the specified IP address and port.
Protocol control is enabled by default.
Step 4
exit
Example:
Device(config)# exit
(Optional) Exits global configuration mode and returns to privileged EXEC mode.
Configuring and Scheduling a UDP Jitter Operation on the Source Device
(Optional) For Cisco ASR 1000 Series routers only, optimizes the time stamp location for IP SLAs.
Note
If the device on which the targeted IP SLAs Responder is configured does not also support the optimized time stamp location, the IP SLAs operation will fail.
Step 8
end
Example:
Device(config-ip-sla-jitter)# end
Returns to privileged EXEC mode.
Step 9
showipslaconfiguration [operation-number]
Example:
Device# show ip sla configuration 10
(Optional) Displays configuration values including all defaults for all IP SLAs operations or a specified operation.
Configuring a UPD Jitter Operation with QFP Time Stamping and Additional Characteristics
Note
The IP SLAs UDP jitter operation does not support the IP SLAs History feature (statistics history buckets) because of the large data volume involved with UDP jitter operations. This means that the following commands are not supported for UDP jitter operations:
historybuckets-kept,
historyfilter,
historylives-kept,
samples-of-history-kept, and
showipslahistory.
The MIB used by IP SLAs (CISCO-RTTMON-MIB) limits the hours-of-statistics kept for the UDP jitter operation to two hours. Configuring a larger value using the
historyhours-of-statisticshours global configuration change will not increase the value beyond two hours. However, the Data Collection MIB can be used to collect historical data for the operation. For information, see the CISCO-DATA-COLLECTION-MIB at
http://www.cisco.com/go/mibs.
(Optional) For Cisco ASR 1000 Series routers only, optimizes the time stamp location for IP SLAs.
Note
If the device on which the targeted IP SLAs Responder is configured does not also support the optimized time stamp location, the IP SLAs operation will fail.
Step 7
historydistributions-of-statistics-keptsize
Example:
Device(config-ip-sla-jitter)# history distributions-of-statistics-kept 5
(Optional) Sets the number of statistics distributions kept per hop during an IP SLAs operation.
Device(config-ip-sla-jitter)# history statistics-distribution-interval 10
(Optional) Sets the time interval for each statistics distribution kept for an IP SLAs operation.
Step 14
tagtext
Example:
Device(config-ip-sla-jitter)# tag TelnetPollServer1
(Optional) Creates a user-specified identifier for an IP SLAs operation.
Step 15
thresholdmilliseconds
Example:
Device(config-ip-sla-jitter)# threshold 10000
(Optional) Sets the upper threshold value for calculating network monitoring statistics created by an IP SLAs operation.
Step 16
timeoutmilliseconds
Example:
Device(config-ip-sla-jitter)# timeout 10000
(Optional) Sets the amount of time an IP SLAs operation waits for a response from its request packet.
Step 17
Do one of the following:
tosnumber
traffic-classnumber
Example:
Device(config-ip-sla-jitter)# tos 160
Example:
Device(config-ip-sla-jitter)# traffic-class 160
(Optional) In an IPv4 network only, defines the ToS byte in the IPv4 header of an IP SLAs operation.
or
(Optional) In an IPv6 network only, defines the traffic class byte in the IPv6 header for a supported IP SLAs operation.
Step 18
flow-labelnumber
Example:
Device(config-ip-sla-jitter)# flow-label 112233
(Optional) In an IPv6 network only, defines the flow label field in the IPv6 header for a supported IP SLAs operation.
Step 19
verify-data
Example:
Device(config-ip-sla-jitter)# verify-data
(Optional) Causes an IP SLAs operation to check each reply packet for data corruption.
Step 20
vrfvrf-name
Example:
Device(config-ip-sla-jitter)# vrf vpn-A
(Optional) Allows monitoring within Multiprotocol Label Switching (MPLS) Virtual Private Networks (VPNs) using IP SLAs operations.
Step 21
end
Example:
Device(config-ip-sla-jitter)# end
Returns to privileged EXEC mode.
Step 22
showipslaconfiguration [operation-number]
Example:
Device# show ip sla configuration 10
(Optional) Displays configuration values including all defaults for all IP SLAs operations or a specified operation.
Scheduling IP SLAs Operations
Note
All IP SLAs operations to be scheduled must be already configured.
The frequency of all operations scheduled in a multioperation group must be the same.
The list of one or more operation ID numbers to be added to a multioperation group is limited to a maximum of 125 characters in length, including commas (,).
Device(config)# ip sla schedule 10 life forever start-time now
Example:
Device(config)# ip sla group schedule 1 3,4,6-9 life forever start-time now
Configures the scheduling parameters for an individual IP SLAs operation.
Specifies an IP SLAs operation group number and the range of operation numbers for a multioperation scheduler.
Step 4
exit
Example:
Device(config)# exit
Exits to privileged EXEC mode.
Step 5
showipslagroupschedule
Example:
Device# show ip sla group schedule
(Optional) Displays IP SLAs group schedule details.
Step 6
showipslaconfiguration
Example:
Device# show ip sla configuration
(Optional) Displays IP SLAs configuration details.
Troubleshooting Tips
If the IP SLAs operation is not running and not generating statistics, add the
verify-data command to the configuration of the operation (while configuring in IP SLA configuration mode) to enable data verification. When data verification is enabled, each operation response is checked for corruption. Use the
verify-data command with caution during normal operations because it generates unnecessary overhead.
Use the
debugipslatrace and
debugipslaerror commands to help troubleshoot issues with an IP SLAs operation.
What to Do Next
To add proactive threshold conditions and reactive triggering for generating traps (or for starting another operation) to an IP SLAs operation, see the “Configuring Proactive Threshold Monitoring” section.
operation)
To display and interpret the results of an IP SLAs operation, use the
showipslastatistics command. Check the output for fields that correspond to criteria in your service level agreement to determine whether the service metrics are acceptable.
Configuration Examples for IP SLAs QFP Time Stamping
Example: Configuring a UDP Operation with QFP Time Stamping
In the following example, two operations are configured as enhanced UDP jitter operations with QFP time stamping and the optimized time stamp location. Operation 2 starts five seconds after the first operation.
Note
The device on which ther esponder is configured must (also) support the optimized time stamp location or the probe will fail.
On the source (sender) device:
ip sla 1
udp-jitter 192.0.2.134 5000 num-packets 20
request-data-size 160
tos 128
frequency 30
precision microseconds !enables QFP time stamping
optimize timestamp !configures optimized time stamp location
ip sla schedule 1 start-time after 00:05:00
ip sla 2
udp-jitter 192.0.2.134 65052 num-packets 20 interval 10
request-data-size 20
tos 64
frequency 30
precision microseconds
optimize timestamp
ip sla schedule 2 start-time after 00:05:05
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password.
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to
www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 2 Feature Information for IP SLAs QFP Time Stamping
Feature Name
Releases
Feature Information
IP SLAs QFP Time Stamping
Cisco IOS XE Release 3.7S
This feature enables IP SLAs Cisco Packet Processor (CPP) time stamping to improve the accuracy of IP SLAs UDP jitter operations.
For Cisco ASR 1000 Series routers only, this feature also supports optimizing the time stamp location for more accurate RTT measurements.
The following commands were introduced or modified:
optimize timestamp,
precision microseconds,
show ip sla configuration.