Latency to a remote service has high jitter: p50 is 20 ms but p99 is 600 ms.
AdvancedTroubleshootingMTU, routing, packet loss and latency
Answer
Likely causes → Bufferbloat or microbursts on a congested link, retransmission timeouts (200 ms minimum RTO), CPU steal or GC pauses on endpoints, or Nagle + delayed ACK interaction (40 ms stalls).
Diagnose →
mtr -rwc 500 -i 0.1 target
ss -ti dst target | grep -E 'rto|retrans|rtt'
sar -n DEV 1; vmstat 1 # steal (st) column
Fix → Remove the bottleneck or apply fq_codel/cake queueing, set TCP_NODELAY for request/response protocols, fix endpoint pauses.
Prevent → Track latency histograms, not averages, and correlate with retransmits.
More on MTU, routing, packet loss and latency
SSH connects, but the session freezes as soon as you run `ls` in a big directory or `cat` a large file.IntermediateHTTPS to a site over the VPN hangs after `Client hello`, while HTTP works.Intermediate`ping: local error: message too long, mtu=1500`BeginnerPods on different nodes can ping each other, but HTTP responses larger than ~1.4 KB never arrive.Advanced`mtr` shows 30% loss at hop 6, but 0% at the final destination.Beginner`mtr` shows loss starting at hop 4 and continuing to the destination at 8–10%.Intermediate