Interview Prep/Networking/Performance, Cost & Scale

How do you debug high p99 latency that disappears on retry?

AdvancedProductionPerformance, Cost & Scale
Answer

Capture the fingerprint: p99 clustering at 1 s, 3 s or 5 s points to SYN retransmit or DNS timeouts; 200 ms clusters to TCP RTO or delayed ACK and Nagle interaction; periodic spikes to GC or conntrack. Correlate with nstat retransmission counters, packet captures on both ends, and DNS query timings.

tcpdump -nn -i any 'tcp[tcpflags] & tcp-syn != 0 and host 10.0.2.9' -w syn.pcap

Duplicate SYNs to the same destination in the capture confirm connect-level loss.

All Networking questions Roadmap: Networking for DevOps

More on Performance, Cost & Scale