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

How do you find the cause of a request that is slow only 1 in 1000 times?

AdvancedScenarioPerformance, MTU, Latency & Tools
Answer

Situation read → Tail latency usually comes from retransmits, DNS timeouts or GC, not average load.

What I'd do →

  1. Add timing breakdown to logs (connect, TLS, TTFB) and trace IDs
  2. Check for 1 second or 3 second multiples (TCP SYN retransmit at 1s, DNS timeout at 5s)
  3. Capture with tcpdump around the slow event
  4. Use bpftrace or tcpretrans from bcc to log retransmits live
  5. Correlate with GC pauses and noisy neighbours

Why → Delays in exact multiples of the retransmit or resolver timeouts are a fingerprint.

Interview tip → Say 1s, 3s and 5s latencies point at network timeouts, not CPU.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools