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.
More on Command-Line Tools & Diagnostics
How do you check if a remote port is open?BeginnerHow do you list listening ports and the processes that own them?BeginnerWhat does `ping` tell you and what does it not?BeginnerHow does traceroute work and how do you read the output?BeginnerWhat is mtr and why is it better than traceroute?IntermediateHow do you query DNS with dig and read the answer?Beginner