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

Large UDP packets (e.g. syslog or DNS over 1500 bytes) are lost while small ones arrive.

AdvancedTroubleshootingMTU, routing, packet loss and latency
Answer

Likely causes → Large UDP datagrams are IP-fragmented, and a firewall, NAT or cloud network drops fragments (non-first fragments have no port info).

Diagnose →

sudo tcpdump -ni eth0 'ip[6:2] & 0x3fff != 0'     # fragments
nstat -az IpReasmFails IpFragFails

Fix → Keep UDP payloads under path MTU (EDNS buffer 1232 for DNS), switch to TCP (syslog over TCP/RELP), or allow fragments.

Prevent → Design UDP protocols to avoid fragmentation.

All Networking questions Roadmap: Networking for DevOps

More on MTU, routing, packet loss and latency