Created
October 1, 2015 08:20
-
-
Save biiont/d8669385cb44b3473a8a to your computer and use it in GitHub Desktop.
Determining MTU With Ping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script allows to determine MaxTranssmitUnit size for current network. | |
# | |
# Argument "-M" selects Path MTU Discovery strategy: - "do" means prohibit | |
# fragmentation, even local one; - "want" do PMTU discovery, fragment locally | |
# when packet size is large; - "dont" do not set DF flag. | |
# | |
# Argument "-s" specifies payload size. Value 1472 produces frames of 1500 bytes. | |
# And value 1473 is for frames 1501 byte which is more than usual MTU. | |
# | |
# Arguments "-c 3 -A" are used to send 3 packets as fast as possible (adaptive ping). | |
ping -A -c 3 -M do -s 1472 google.com | |
ping -A -c 3 -M do -s 1473 google.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ping www.google.com -f -l 1500