TCP Header Field Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=280
Answer
Every TCP segment starts with a header of at least 20 bytes: source and destination port, sequence number, acknowledgment number, flags, receive window, checksum and options.
Remember
Sequence numbers count bytes, not packets. The acknowledgment number is the next byte expected — everything before it has arrived. Each direction has its own numbering. The window field must be multiplied by the scale agreed in the handshake.
First checks
tcpdump -ni <if> -S host <ip> and tcp port <port>— flags, sequence range, acknowledgment, window, options per segment.ss -ti dst <ip>— the kernel's view of a live connection: round-trip time, window, retransmissions.- Wireshark:
tcp.stream eq N, then the sequence, next-sequence and acknowledgment columns.
Commands
tcpdumpss -ti
Verify in this order
ports identify the connection → sequence numbers advance by the bytes sent → acknowledgment numbers follow → window stays above zero → no sequence range repeated
Where it usually breaks
physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=280