Pcornel
Networking · Network & Protocols

TCP, UDP & Transport

Cheat sheet · https://pcornel.dk/topic.php?topic=6254

Back to the Topic

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.

Remember

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.

First 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?

Verify in this order

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6254

Confirmation

Confirm action

Continue?