12,270
edits
This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!
m (clean up, typos fixed: over sized → oversized, thigns → things, However → However, (2)) |
|||
(12 intermediate revisions by 3 users not shown) | |||
For example:
[[File:Firebrick-1500MTU-ping.png|200px|thumb|a 1500 ping on FireBrick]]
On Linux:
ping -c1 -M do -s 1472 81.187.81.187
On OSX (Apple):
ping -c1 -D -s 1472 81.187.81.187▼
On Windows:
^^ That's the ping command to remember. The rest of this section is a bit of info about that command.
==Explanation
'''-c1
'''-M do / -f / -D''' The important option! This means don't fragment the ping packet - we don't want the ping split into multiple packets when testing MTU!
''' -s 1472 / -l 1472''' The payload size. When setting size in ping, the size is the payload size - not the full packet size. '''The full packet size is''' <syntaxhighlight inline> payload (1472) +
▲ ping -c1 -D -s 1472 81.187.81.187
▲ ping -n1 -f -l 1472 81.187.81.187
==Two quick examples==
rtt min/avg/max/mdev = 12.491/12.491/12.491/0.000 ms
So, here we ping with '''1472''' bytes, this is 1472 plus 20 bytes for the IP header and 8 bytes for the ICMP header is a '''1500''' byte MTU!
Checking if you have smaller than 1500 MTU:
This is despite the bridging modem used for the tests not claiming to support an MTU > 1500 octets
and with PPPoE needing to send 1504 octets and receive 1508.
[[Category:MTU]]
|
edits