Use it to measure whether a TCP service answers and how long the connection takes.
TCP Connect
An IP SLA TCP connect operation measures how long it takes to open a TCP connection to a port, testing that a service is reachable, not only the host.
1. TCP connect measures time to establish a TCP session to a port.
2. Tests services, not just ICMP.
3. Target port must be open.
4. Responder optional for non-Cisco targets.
5. Combine with tracking.
SYN → SYN-ACK → measure → close
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Testing a port the service does not listen on.
- Using TCP connect against firewalls that rate-limit SYNs.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
show ip sla statistics <id>— connect time and return code
ReferenceWhat it is1 section · depth on demand
How it works
A TCP connect operation opens a TCP session (SYN, SYN-ACK, ACK) to a port and measures the setup time, then closes it. It shows the service port is reachable, not just the host. For non-standard ports on Cisco targets, enable ip sla responder.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
What is measured
The operation times the TCP three-way handshake to the target port and then closes the connection. A success proves that something answered SYN with SYN-ACK on that port — not that the application behind it works.
ip sla 20
tcp-connect 192.0.2.10 443 source-interface GigabitEthernet0/0/0
timeout 2000
frequency 30
ip sla schedule 20 life forever start-time now
Responder or not
| Target | Configuration |
|---|---|
| Cisco device | ip sla responder (optionally ip sla responder tcp-connect ipaddress 192.0.2.10 port 5000) on the target |
| Server, firewall, load balancer | No responder can be configured on non-Cisco devices; probe a port the service already listens on (for example 22, 80, 443) |
Reading results
| Return code | Likely cause |
|---|---|
OK | Handshake completed |
Timeout | SYN or SYN-ACK lost/filtered — firewall drop, route problem |
No connection / connection refused | Host reachable, port closed (RST received) |
Things that make the result lie
- A firewall or load balancer doing SYN proxy answers the handshake itself; the probe stays green while the real server is down. Probe the server's own address, or use an HTTP-type check on a monitoring system.
- IPS rate limits on SYNs can drop probes during attacks or scans.
- Every probe opens and closes a session that the server logs — a 5-second frequency fills access logs.
Use TCP connect to track service reachability (for example failover when a data-centre VIP stops answering) and ICMP echo for path reachability; together they separate "network down" from "service down".
ReferenceConfiguration & state1 section · depth on demand
Configuration
ip sla 20
tcp-connect 192.0.2.10 443
frequency 30
ip sla schedule 20 life forever start-time now
Documented example, not captured output. Measures TCP handshake time to a real service port; no responder needed for well-known ports.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Assurance → IP SLA → TCP Connect. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc9293.html · confidence 94%