Configuring Ip Slas TCP Connect Operations
Configuring Ip Slas TCP Connect Operations
This chapter describes how to configure an IP Service Level Agreements (SLAs) TCP Connect operation
to measure the response time taken to perform a TCP Connect operation between a Cisco switch and devices
using IPv4. TCP Connect accuracy is enhanced by using the IP SLAs Responder at the destination Cisco
switch. This chapter also describes how the results of the TCP Connect operation can be displayed and
analyzed to determine how the connection times to servers and hosts within your network can affect IP
service levels. The TCP Connect operation is useful for measuring response times for a server used for a
particular application or connectivity testing for server availability.
This chapter includes these sections.
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
OL-27603-02 1
Configuring IP SLAs TCP Connect Operations
Guidelines and Limitations for Configuring IP SLAs TCP Connect Operations
The connection response time is computed by measuring the time taken between sending a TCP request
message from Switch B to IP Host 1 and receiving a reply from IP Host 1.
TCP Connect accuracy is enhanced by using the IP SLAs Responder at the destination Cisco device. If the
destination switch is a Cisco switch, the IP SLAs Responder makes a TCP connection to any port number
that you specified. If the destination is not a Cisco IP host, then you must specify a known destination port
number such as 21 for FTP, 23 for Telnet, or 80 for an HTTP server.
Using the IP SLAs Responder is optional for a TCP Connect operation when using Cisco devices. The IP
SLAs Responder cannot be configured on non-Cisco devices.
TCP Connect is used to test virtual circuit availability or application availability. Server and application
connection performance can be tested by simulating Telnet, SQL, and other types of connections to help you
verify your IP service levels.
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
2 OL-27603-02
Configuring IP SLAs TCP Connect Operations
Configuring the IP SLAs Responder on the Destination Device
Procedure
Example:
switch# configure terminal
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
OL-27603-02 3
Configuring IP SLAs TCP Connect Operations
Configuring and Scheduling a TCP Connect Operation on the Source Device
Note If an IP SLAs Responder is permanently enabled on the destination IP address and port, use the control
disable keywords with the tcp-connect command to disable control messages.
Tip • If the IP SLAs operation is not running and 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 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 debug ip sla sender trace and debug ip sla sender error commands to help troubleshoot
issues with an IP SLAs operation.
Procedure
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
4 OL-27603-02
Configuring IP SLAs TCP Connect Operations
Configuring and Scheduling a Basic TCP Connect Operation on the Source Device
Example:
switch# configure terminal
Example:
switch(config-ip-sla)# tcp-connect
172.29.139.132 5000
Step 7 ip sla schedule operation-number [life Configures the scheduling parameters for an
{forever | seconds}] [start-time {hh:mm[:ss] individual IP SLAs operation.
[monthday | daymonth] | pending | now | after
hh:mm:ss] [ageout seconds] [recurring]
Example:
switch(config)# ip sla schedule 10
start-time now life forever
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
OL-27603-02 5
Configuring IP SLAs TCP Connect Operations
Configuring and Scheduling a TCP Connect Operation with Optional Parameters on the Source Device
This example shows how to configure an IP SLAs operation type of TCP Connect that will start immediately
and run indefinitely:
ip sla 9
tcp-connect 172.29.139.132 5000
frequency 10
!
ip sla schedule 9 life forever start-time now
What to Do Next
To add proactive threshold conditions and reactive triggering for generating traps or for starting another
operation, see the Configuring Proactive Threshold Monitoring section.
To display statistics of an IP SLA operation over the last one hour and interpret the results, use the show ip
sla statistics command. Checking the output for fields that correspond to criteria in your service level agreement
helps you to determine whether the service metrics are acceptable. To display the aggregated IP SLA history,
use the show ip sla statistics aggregated command.
Note If an IP SLAs Responder is permanently enabled on the destination IP address and port, use the control
disable keywords with the tcp-connect command to disable control messages.
Tip • If the IP SLAs operation is not running and 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 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 debug ip sla trace and debug ip sla error commands to help troubleshoot issues with an
IP SLAs operation.
Procedure
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
6 OL-27603-02
Configuring IP SLAs TCP Connect Operations
Configuring and Scheduling a TCP Connect Operation with Optional Parameters on the Source Device
Example:
switch# configure terminal
Example:
switch(config-ip-sla)# tcp-connect
172.29.139.132 5000
Step 5 history buckets-kept size (Optional) Sets the number of history buckets
that are kept during the lifetime of an IP SLAs
Example: operation.
switch(config-ip-sla-tcp)# history
buckets-kept 25
switch(config-ip-sla-tcp)# history
distributions-of-statistics-kept 5
Step 7 history enhanced [interval seconds] [buckets (Optional) Enables enhanced history gathering
number-of-buckets] for an IP SLAs operation.
Example:
switch(config-ip-sla-tcp)# history
enhanced interval 900 buckets 100
Step 8 history filter {none | all | overThreshold | (Optional) Defines the type of information kept
failures} in the history table for an IP SLAs operation.
Example:
switch(config-ip-sla-tcp)# history
filter failures
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
OL-27603-02 7
Configuring IP SLAs TCP Connect Operations
Configuring and Scheduling a TCP Connect Operation with Optional Parameters on the Source Device
Step 10 history hours-of-statistics-kept hours (Optional) Sets the number of hours for which
statistics are maintained for an IP SLAs
Example: operation.
switch(config-ip-sla-tcp)# history
hours-of-statistics-kept 4
Step 11 history lives-kept lives (Optional) Sets the number of lives maintained
in the history table for an IP SLAs operation.
Example:
switch(config-ip-sla-tcp)# history
lives-kept 5
Step 13 history statistics-distribution-interval (Optional) Sets the time interval for each
milliseconds statistics distribution kept for an IP SLAs
operation.
Example:
switch(config-ip-sla-tcp)# history
statistics-distribution-interval 10
Step 15 threshold milliseconds (Optional) Sets the upper threshold value for
calculating network monitoring statistics created
Example: by an IP SLAs operation.
switch(config-ip-sla-tcp)# threshold
10000
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
8 OL-27603-02
Configuring IP SLAs TCP Connect Operations
Configuring and Scheduling a TCP Connect Operation with Optional Parameters on the Source Device
Example:
Step 18 exit Exits TCP configuration submode and returns
to global configuration mode.
Example:
switch(config-ip-sla-tcp)# exit
Step 19 ip sla schedule operation-number [life Configures the scheduling parameters for an
{forever| seconds}] [start-time {hh:mm[:ss] individual IP SLAs operation.
[monthday | daymonth] | pending | now | after
hh:mm:ss] [ageout seconds] [recurring]
Example:
switch(config)# ip sla schedule 10
start-time now life forever
This example shows how to configure all the IP SLAs parameters (including defaults) for the TCP Connect
operation number 10:
switch# show ip sla configuration 10
IP SLAs Infrastructure Engine-III
Entry number: 10
Owner: admin
Tag: TelnetPollServer1
Operation timeout (milliseconds): 10000
Type of operation to perform: tcp-connect
Target address/Source address: 101.101.101.1/0.0.0.0
Target port/Source port: 5000/0
Type Of Service parameter: 0xa0
Vrf Name: default
Control Packets: enabled
Schedule:
Operation frequency (seconds): 60 (not considered if randomly scheduled)
Next Scheduled Start Time: Start Time already passed
Group Scheduled : FALSE
Randomly Scheduled : FALSE
Life (seconds): Forever
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
OL-27603-02 9
Configuring IP SLAs TCP Connect Operations
Configuration Example for a TCP Connect Operation
What to Do Next
To add proactive threshold conditions and reactive triggering for generating traps or for starting another
operation, see the Configuring Proactive Threshold Monitoring section.
To display statistics of an IP SLA operation over the last one hour and interpret the results, use the show ip
sla statistics command. Checking the output for fields that correspond to criteria in your service level agreement
helps you to determine whether the service metrics are acceptable. To display the aggregated IP SLA history,
use the show ip sla statistics aggregated command.
Switch A Configuration
configure terminal
ip sla responder tcp-connect ipaddress 10.0.0.1 port 23
Switch B Configuration
ip sla 9
tcp-connect 10.0.0.1 23 control disable
frequency 30
tos 128
timeout 1000
tag FLL-RO
ip sla schedule 9 start-time now
This example shows how to configure a TCP Connect operation with a specific port, port 21, and without an
IP SLAs Responder. The operation is scheduled to start immediately and run indefinitely.
ip sla 9
tcp-connect 173.29.139.132 21 control disable
frequency 30
ip sla schedule 9 life forever start-time now
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
10 OL-27603-02
Configuring IP SLAs TCP Connect Operations
Feature History for TCP Connect
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
OL-27603-02 11
Configuring IP SLAs TCP Connect Operations
Feature History for TCP Connect
Cisco Nexus 7000 Series NX-OS IP SLAs Configuration Guide, Release 6.x
12 OL-27603-02