Posted By

biiont on 02/20/14


ping mtu

Versions (?)

Determining MTU With Ping

 / Published in: Bash

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).

  1. ping -A -c 3 -M do -s 1472
  2. ping -A -c 3 -M do -s 1473

Report this snippet  

You need to login to post a comment.