Start here when a connection will not open, stalls, is slow or is reset — and ping says the network is fine.
TCP, UDP & Transport
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.
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?
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
Operational reference
Fast context before you go deeper.
Subtopics
Go one level deeper into this subject.
Compact but deep reference to TCP sessions, flags, sequence/acknowledgment behavior, retransmission, MSS and reset/close behavior.
Subtopic UDP Operational ReferenceOperational reference for connectionless UDP behavior, ports, checksums, loss characteristics and how to verify UDP applications.
Subtopic TCP Header Field ReferenceTCP header fields identify endpoints, sequence space, acknowledgments, header length, flags, receive window, checksum and options.
Subtopic TCP Flags & Reset ForensicsTCP 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 ReferenceTCP options negotiate capabilities such as MSS, Window Scale, SACK and Timestamps, while the advertised window controls receiver flow.
Subtopic TCP Retransmission, PMTUD & MSS ReferenceRetransmissions are recovery behavior; their root cause can be path loss, reordering, receiver behavior or MTU/PMTUD failure.
Subtopic TCP State Machine ReferenceTCP 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 EvidenceSelective Acknowledgment lets a receiver report non-contiguous data blocks so the sender can retransmit missing ranges more efficiently.
Subtopic TCP Window Scaling & Flow ControlTCP 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-WAITTCP 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 EvidenceRepeated 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 EvidenceTCP keepalive is an optional endpoint mechanism that probes an otherwise idle connection after configured idle intervals to detect dead peers.
Subtopic TLS Record & Handshake EvidenceTLS records frame ChangeCipherSpec, Alert, Handshake and Application Data while handshake messages negotiate cryptographic/application parameters.
Subtopic QUIC & HTTP/3 Packet EvidenceQUIC carries secure multiplexed transport over UDP and identifies connections with connection IDs rather than relying only on a 5-tuple.
Subtopic TCP Forensics ReferenceTCP forensics combines sequence/ack numbers, flags, options, RTT, retransmission, SACK and flow-control evidence.
Subtopic TCP Congestion WindowCongestion window is sender-side state that limits in-flight data independently of the advertised receive window.
Subtopic TCP Delayed ACKReceivers may intentionally delay ACK generation to reduce ACK traffic while preserving transport correctness.
Subtopic TCP Nagle AlgorithmNagle reduces tiny-segment transmission by coalescing data while unacknowledged bytes are outstanding.
Subtopic TCP Persist Timer & Zero WindowThe persist mechanism probes a zero-window receiver so both endpoints do not deadlock if a window update is lost.
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.
- 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) ornetstat -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
| Question | Reference |
|---|---|
| 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:
| Port | Service |
|---|---|
| TCP 22 | SSH/SCP/SFTP |
| TCP 443 | HTTPS, RESTCONF |
| TCP 830 | NETCONF |
| TCP 179 | BGP |
| TCP/UDP 53 | DNS |
| UDP 123 | NTP |
| UDP 161/162 | SNMP/traps |
| UDP 514 | Syslog |
| UDP 67/68 | DHCP |
| TCP 49 | TACACS+ |
| UDP 1812/1813 | RADIUS |
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.
| Behaviour | Network impact |
|---|---|
| TCP handshake | Firewalls and timeouts affect connection setup |
| Retransmissions | Loss reduces throughput sharply |
| Window size | Latency limits throughput |
| MSS/MTU | Tunnels need lower MSS |
| UDP without congestion control | Needs QoS for real-time traffic |
Packet captures showing SYNs, resets, retransmissions and window sizes usually explain "slow" or "cannot connect" problems.