Interview Prep/Networking/Performance, MTU, Latency & Tools

What does tcpdump do and what are the first filters you use?

BeginnerScenarioPerformance, MTU, Latency & Tools
Answer

Situation read → Packet capture is the final source of truth.

What I'd do →

  1. Capture on an interface: sudo tcpdump -ni eth0 host 10.0.1.5 and port 443
  2. Save for Wireshark: sudo tcpdump -ni any -w /tmp/cap.pcap -c 10000
  3. Show only SYN packets: tcpdump -ni eth0 'tcp[tcpflags] & tcp-syn != 0'
  4. Use -nn to skip DNS and port name lookups
  5. Keep captures short and filtered

Why → Capturing at the host proves whether a packet really arrived or left.

Interview tip → Say you capture on both ends to prove where a packet disappears.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools