Quick Linux Tip #44:
Try: ss -ti | grep -A3 'ESTAB' | head -20
Info: ss -ti dumps TCP internal metrics. Look for retrans:X/Y (X current retransmits, Y total) and rtt (round-trip time). Non-zero retransmits signal packet loss or network congestion.
Examples:
- $ ss -ti state established '( dport = :443 )' # Inspect HTTPS connections
- $ watch -n 1 'ss -s' # Monitor overall socket summary
- $ netstat -s | grep -i 'retrans\|reset' # Global TCP retransmission counters
Note: When retransmissions occur, cwnd (congestion window) shrinks automatically. Persistent retransmits across multiple endpoints point to network hardware issues rather than application bugs.
Leave a Reply