GithubHelp home page GithubHelp logo

adamkirchberger / mtufind Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 7 KB

MTUFind is a tool to find the maximum transmission unit (MTU) to a destination.

Go 100.00%
mtu maximum-transmission-unit icmp ping network network-troubleshooting

mtufind's Introduction

mtufind

MTUFind is a tool to find the maximum transmission unit (MTU) to a destination.

What is MTU

In computer networking, the maximum transmission unit (MTU) is the size of the largest protocol data unit (PDU) that can be communicated in a single network layer transaction.

How does it work

  1. Send ICMP echo request packet with a DF flag
  2. Keep sending packets and increment the data size by 500 bytes each time
  3. If a reply is not received then half the increment size and try again
  4. Keep trying until we reach an increment of 1 byte

Install

Linux

wget https://github.com/adamkirchberger/mtufind/releases/download/v1.0.1/mtufind_v1.0.1_linux_amd64.tar.gz && \
tar xvzf mtufind_v1.0.1_linux_amd64.tar.gz && \
sudo mv mtufind /usr/local/sbin

Mac

wget https://github.com/adamkirchberger/mtufind/releases/download/v1.0.1/mtufind_v1.0.1_darwin_amd64.tar.gz && \
tar xvzf mtufind_v1.0.1_darwin_amd64.tar.gz && \
xattr -dr com.apple.quarantine mtufind && \
mv mtufind /usr/local/sbin/

Run

sudo /usr/local/sbin/mtufind github.com
MTU to 140.82.118.4 is 1500 bytes

Mac OSX

Newer Mac operating systems may complain with

"cannot be opened because the developer cannot be verified".

To fix this use the Mac install command above which resolves the Gatekeeper dialog.

Limitations

  • Currently only works for IPv4 destinations
  • Needs root access as the standard ICMP libraries do not support DF flag

mtufind's People

Contributors

adamkirchberger avatar

Watchers

 avatar

Forkers

jingc1413

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.