https://github.com/ziman/pmtu
Path MTU discovery tool
https://github.com/ziman/pmtu
Last synced: about 1 year ago
JSON representation
Path MTU discovery tool
- Host: GitHub
- URL: https://github.com/ziman/pmtu
- Owner: ziman
- License: other
- Created: 2015-06-24T22:30:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-12-18T10:49:23.000Z (over 6 years ago)
- Last Synced: 2025-04-14T14:15:38.128Z (about 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 37
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## pmtu
A quick'n'dirty Path MTU discovery script in Python that automates repeated
calls to `ping` to perform binary search.
Sometimes the network is unusable without manually decreasing the MTU on the
interface. This script should tell you what the appropriate value is.
### Example
```
$ ./pmtu example.com
750: 64.0 % packet loss
1125: 50.0 % packet loss
1312: 73.0 % packet loss
1406: 54.0 % packet loss
1453: * * *
1429: 50.0 % packet loss
1441: 44.0 % packet loss
1447: 0.0 % packet loss
1450: 61.0 % packet loss
1451: 54.0 % packet loss
1452: 37.0 % packet loss
>>> optimal MTU: 1452 + 28 = 1480
$ ip link set mtu 1480 dev wlan0
```
### Disclaimer
It's really quick'n'dirty, just about usable for my personal purposes.
### License
BSD 3-clause.