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 →
- Capture on an interface:
sudo tcpdump -ni eth0 host 10.0.1.5 and port 443 - Save for Wireshark:
sudo tcpdump -ni any -w /tmp/cap.pcap -c 10000 - Show only SYN packets:
tcpdump -ni eth0 'tcp[tcpflags] & tcp-syn != 0' - Use
-nnto skip DNS and port name lookups - 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.
More on Performance, MTU, Latency & Tools
Latency, bandwidth and throughput: what is the difference and why does it matter?BeginnerWhen do you use ping, traceroute and mtr?BeginnerWhat is MTU and what is the usual value?BeginnerHow do you check what is listening on a port and who is connected?BeginnerHow do you measure where time goes in a slow HTTP request?BeginnerTCP or UDP: how do you choose for an application?Beginner