Interview Prep/Networking/Command-Line Tools & Diagnostics

How do you measure packet loss and path MTU correctly?

AdvancedConceptCommand-Line Tools & Diagnostics
Answer
ping -c 100 -i 0.2 10.0.2.9 | tail -3
tracepath -n example.com               # reports pmtu per hop
ping -M do -s 1472 example.com          # 1472 + 28 = 1500
ip route get 10.0.2.9                   # may show cached mtu

If 1472 fails and smaller sizes work, a hop has a smaller MTU and ICMP "fragmentation needed" is not coming back. Look for tunnels (VPN, VXLAN, GRE) and for blocked ICMP.

All Networking questions Roadmap: Networking for DevOps

More on Command-Line Tools & Diagnostics