How do you spot TCP retransmissions and what do they tell you?
IntermediateScenarioPerformance, MTU, Latency & Tools
Answer
Situation read → Retransmits show packet loss or congestion.
What I'd do →
- Per host counters:
nstat -az TcpRetransSegsornetstat -s | grep -i retrans - Per connection:
ss -ti dst 10.0.1.20and readretrans:andrtt: - In Wireshark filter
tcp.analysis.retransmission - Rate of retransmits above about 1% is worth investigating
- Correlate with interface drops:
ip -s link show eth0andethtool -S eth0
Why → Retransmits are TCP telling you the network lost or delayed its packets.
Interview tip → Say you check NIC drops and queue overruns before blaming the network.
More on Performance, MTU, Latency & Tools
Latency, bandwidth and throughput: what is the difference and why does it matter?BeginnerWhen do you use ping, traceroute and mtr?BeginnerWhat is MTU and what is the usual value?BeginnerHow do you check what is listening on a port and who is connected?BeginnerHow do you measure where time goes in a slow HTTP request?BeginnerWhat does tcpdump do and what are the first filters you use?Beginner