Interview Prep/Networking/Command-Line Tools & Diagnostics

How do you read tcpdump output for a TCP handshake and a reset?

AdvancedConceptCommand-Line Tools & Diagnostics
Answer
IP 10.0.1.5.51234 > 10.0.2.9.443: Flags [S], seq 100, win 64240
IP 10.0.2.9.443 > 10.0.1.5.51234: Flags [S.], seq 500, ack 101
IP 10.0.1.5.51234 > 10.0.2.9.443: Flags [.], ack 501

S SYN, . ACK, P PSH, F FIN, R RST. SYN with no SYN-ACK suggests filtering. SYN followed by R. means connection refused. Repeated retransmitted SYNs are a path problem.

All Networking questions Roadmap: Networking for DevOps

More on Command-Line Tools & Diagnostics