Packet Capture with tcpdump: When and How

tcpdump still beats every other tool when you need to see the actual bytes. The discipline is using it safely.

Why tcpdump

tcpdump still beats every other tool when the question is 'what bytes actually went on the wire'. Metrics and traces describe the application's view; tcpdump shows the network's view.

Four use cases

Safe-in-production patterns

tcpdump in production is risky if used carelessly. Four discipline rules keep the capture useful without becoming an outage cause.

Analysis with Wireshark

Reading raw tcpdump output line by line misses patterns. Wireshark provides the visual analysis layer that turns bytes into insight.

Antipatterns

What to do this week

Three moves. (1) Apply this pattern to your highest-risk network path. (2) Measure the failure mode rate before/after. (3) Document the change so the next incident-responder inherits the knowledge.