Interview Prep/Networking/MTU, routing, packet loss and latency

TCP throughput drops sharply under load, and `nstat` shows `TcpRetransSegs` climbing.

IntermediateTroubleshootingMTU, routing, packet loss and latency
Answer

Likely causes → Packet loss somewhere on the path (congestion, policer, bad link) or receiver-side drops.

Diagnose →

nstat -az TcpRetransSegs TcpExtTCPLostRetransmit TcpExtTCPTimeouts
ss -ti dst <peer> | grep -o 'retrans:[0-9/]*'
sudo tcpdump -ni eth0 host <peer> -w retrans.pcap   # in Wireshark: tcp.analysis.retransmission

Fix → Locate the loss with mtr and interface counters; fix the bottleneck or shape traffic below a policer rate.

Prevent → Alert on retransmit rate as a percentage of segments sent.

All Networking questions Roadmap: Networking for DevOps

More on MTU, routing, packet loss and latency