Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

TCP Connect

Direct answer

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.

When to use this

Use it to measure whether a TCP service answers and how long the connection takes.

First 30 seconds

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.

Operational verification

SYN → SYN-ACK → measure → close

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE · Cisco IOS / IOS XE
Scope / prerequisiteUse it to measure whether a TCP service answers and how long the connection takes.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Match the probe to the service: ICMP reachability is not TCP or jitter proof
  • Schedule the operation; configuration alone does not run it
  • Tracking consumes the latest operation state and can use delay to dampen transitions
  • A successful probe proves only its source, target, VRF and operation type.
Key checks
  • 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

TargetConfiguration
Cisco deviceip sla responder (optionally ip sla responder tcp-connect ipaddress 192.0.2.10 port 5000) on the target
Server, firewall, load balancerNo responder can be configured on non-Cisco devices; probe a port the service already listens on (for example 22, 80, 443)

Reading results

Return codeLikely cause
OKHandshake completed
TimeoutSYN or SYN-ACK lost/filtered — firewall drop, route problem
No connection / connection refusedHost 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".

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 9293

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%
Confirmation

Confirm action

Continue?