Interview Prep/Networking/Containers, Kubernetes, IPv6 and packet captures

On a busy load balancer host, tcpdump ends with `52341 packets dropped by kernel`.

IntermediateTroubleshootingContainers, Kubernetes, IPv6 and packet captures
Answer

Likely causes → tcpdump couldn't copy packets out of the kernel buffer fast enough: no filter (capturing everything), full packet payloads, name resolution slowing output, or writing to a slow terminal.

Diagnose → The summary lines show the ratio of captured to dropped. Check CPU on the tcpdump process and disk speed if writing a file.

Fix →

sudo tcpdump -ni eth0 -s 128 -B 65536 -w /tmp/lb.pcap 'host 10.0.4.12 and tcp port 443'

-n skips DNS, a tight BPF filter cuts volume, -s 128 keeps headers only, -B enlarges the buffer (KiB), and -w writes binary instead of printing. Rotate with -C 100 -W 10 for long captures.

Prevent → Always capture with a filter and to a file in production; for sustained high-rate analysis use flow logs, eBPF tools, or port mirroring instead.

All Networking questions Roadmap: Networking for DevOps

More on Containers, Kubernetes, IPv6 and packet captures