Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

TCP, UDP & Transport

Direct answer

TCP gives applications a reliable, ordered byte stream over a connection; UDP sends independent datagrams; TLS and QUIC add encryption on top. The topics here explain how each looks in a capture.

When to use this

Start here when a connection will not open, stalls, is slow or is reset — and ping says the network is fine.

First 30 seconds

1. Does the handshake complete? No SYN-ACK → path or firewall; RST → nothing listening or a filter.

2. Handshake time ≈ network round trip. Compare with the time to first response byte.

3. Filter tcp.analysis.retransmission — loss? In which direction?

4. Filter tcp.analysis.zero_window — is the receiver full?

5. Who ends it, and how: FIN after a complete answer, or RST in the middle?

Operational verification

SYN → SYN-ACK → ACK with options agreed → request → acknowledgment → response data → few retransmissions, window open → FIN from both sides

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol behaviour per standard; Cisco IOS / IOS XE command examples.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol behaviour per standard; Cisco IOS / IOS XE command examples.
Scope / prerequisiteStart here when a connection will not open, stalls, is slow or is reset — and ping says the network is fine.
What next?1 suggested next step
Child topics (this level)19
Evidence0
On this pageJump to a specific section
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic TCP Operational Reference

Compact but deep reference to TCP sessions, flags, sequence/acknowledgment behavior, retransmission, MSS and reset/close behavior.

Subtopic UDP Operational Reference

Operational reference for connectionless UDP behavior, ports, checksums, loss characteristics and how to verify UDP applications.

Subtopic TCP Header Field Reference

TCP header fields identify endpoints, sequence space, acknowledgments, header length, flags, receive window, checksum and options.

Subtopic TCP Flags & Reset Forensics

TCP flags describe control transitions; a reset terminates or rejects state and must be interpreted with direction, timing and sequence context.

Subtopic TCP Options & Flow Control Reference

TCP options negotiate capabilities such as MSS, Window Scale, SACK and Timestamps, while the advertised window controls receiver flow.

Subtopic TCP Retransmission, PMTUD & MSS Reference

Retransmissions are recovery behavior; their root cause can be path loss, reordering, receiver behavior or MTU/PMTUD failure.

Subtopic TCP State Machine Reference

TCP connection lifecycle transitions through states such as LISTEN, SYN-SENT, SYN-RECEIVED, ESTABLISHED, FIN-WAIT, CLOSE-WAIT, LAST-ACK and TIME-WAIT.

Subtopic TCP SACK & Reordering Evidence

Selective Acknowledgment lets a receiver report non-contiguous data blocks so the sender can retransmit missing ranges more efficiently.

Subtopic TCP Window Scaling & Flow Control

TCP receive-window flow control limits how much unacknowledged data a sender may place in flight; Window Scale negotiated in the handshake expands the usable receive window.

Subtopic TCP Teardown, FIN/RST & TIME-WAIT

TCP connections normally close using FIN/ACK sequencing, while RST aborts state immediately; TIME-WAIT remains after an active close to protect connection semantics.

Subtopic TCP SYN Retransmission Evidence

Repeated SYN packets without a SYN/ACK indicate that connection establishment has not completed, but the missing response can be caused by several boundaries.

Subtopic TCP Keepalive Evidence

TCP keepalive is an optional endpoint mechanism that probes an otherwise idle connection after configured idle intervals to detect dead peers.

Subtopic TLS Record & Handshake Evidence

TLS records frame ChangeCipherSpec, Alert, Handshake and Application Data while handshake messages negotiate cryptographic/application parameters.

Subtopic QUIC & HTTP/3 Packet Evidence

QUIC carries secure multiplexed transport over UDP and identifies connections with connection IDs rather than relying only on a 5-tuple.

Subtopic TCP Forensics Reference

TCP forensics combines sequence/ack numbers, flags, options, RTT, retransmission, SACK and flow-control evidence.

Subtopic TCP Congestion Window

Congestion window is sender-side state that limits in-flight data independently of the advertised receive window.

Subtopic TCP Delayed ACK

Receivers may intentionally delay ACK generation to reduce ACK traffic while preserving transport correctness.

Subtopic TCP Nagle Algorithm

Nagle reduces tiny-segment transmission by coalescing data while unacknowledged bytes are outstanding.

Subtopic TCP Persist Timer & Zero Window

The persist mechanism probes a zero-window receiver so both endpoints do not deadlock if a window update is lost.

Key points

Read one connection at a time, starting with the handshake: who answered, how fast, with which options. Retransmissions mean loss; a zero window means the receiver is the bottleneck; a reset says who refused. The time between request and first response byte separates network from server.

Key checks
  • Capture filters (Wireshark): tcp.flags.syn == 1, tcp.analysis.retransmission, tcp.analysis.zero_window, tcp.flags.reset == 1.
  • show tcp brief — TCP connections of a Cisco device itself.
  • show ip traffic | section TCP — the device's own TCP statistics.
  • On a host: ss -tin (Linux) or netstat -s — per-connection and global TCP counters.
  • telnet <host> <port> — does the handshake complete at all?
ReferenceWhat it is1 section · depth on demand

What this group covers

TCP and UDP behaviour from captures: header fields, flags and resets, state machine, windows and scaling, retransmissions, SACK, keepalives, Nagle/delayed ACK, congestion window, plus TLS and QUIC/HTTP/3 packet evidence. Start with *TCP Flags & Reset Forensics* for connection failures.

ReferenceImportant terms & boundaries2 sections · depth on demand

Where to look

QuestionReference
Who sent the RST and why?*TCP Flags & Reset Forensics*
Why are connections slow?*TCP Retransmission, PMTUD & MSS Reference / TCP Congestion Window*
Why does the window drop to zero?*TCP Persist Timer & Zero Window*
Why does the SYN get no answer?*TCP SYN Retransmission Evidence*
What state is the socket in?*TCP State Machine Reference*
Why did the TLS handshake fail?TLS Record & Handshake Evidence
Is QUIC being used?QUIC & HTTP/3 Packet Evidence

TCP and UDP are the transport protocols that carry application traffic, and port numbers identify which service a connection belongs to. Knowing the common ports is essential for writing firewall rules and access lists, and port-level tests are the quickest way to tell whether a service is reachable or only the host is.

TCP, UDP and transport quick reference:

PortService
TCP 22SSH/SCP/SFTP
TCP 443HTTPS, RESTCONF
TCP 830NETCONF
TCP 179BGP
TCP/UDP 53DNS
UDP 123NTP
UDP 161/162SNMP/traps
UDP 514Syslog
UDP 67/68DHCP
TCP 49TACACS+
UDP 1812/1813RADIUS
ss -tulpn
Test-NetConnection host -Port 443
nc -vz host 830

In depth

TCP, UDP and transport-layer behaviour decide how applications experience the network. TCP provides reliable, ordered streams with flow and congestion control; UDP sends independent datagrams with minimal overhead; port numbers identify applications on each host.

BehaviourNetwork impact
TCP handshakeFirewalls and timeouts affect connection setup
RetransmissionsLoss reduces throughput sharply
Window sizeLatency limits throughput
MSS/MTUTunnels need lower MSS
UDP without congestion controlNeeds QoS for real-time traffic

Packet captures showing SYNs, resets, retransmissions and window sizes usually explain "slow" or "cannot connect" problems.

Confirmation

Confirm action

Continue?