TCP Forensics Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=322
Answer
TCP forensics is working out from a packet capture why a connection was slow, stalled or failed. The timing, sequence numbers, acknowledgments and window sizes show which side was waiting for what at each moment.
Remember
Capture at both ends where possible; a capture on the sending host shows what was sent, not what arrived. The SYN to SYN-ACK delay is the path's latency — judge later delays against it. Start from the first anomaly; the rest are consequences.
First checks
tcpdump -ni <if> -s 128 -w case.pcap host <ip> and tcp port <port>— headers of one connection.tshark -r case.pcap -q -z conv,tcp— connections with duration and bytes.tshark -r case.pcap -Y 'tcp.analysis.flags'— everything the analyser flagged.- Wireshark: Expert Information, the time/sequence graph,
tcp.time_delta > 1.
Verify in this order
capture at the right point → one connection isolated → handshake gives latency and options → each pause attributed to client, server or path → first anomaly identified → cause located
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=322