Discover Packages
github.com/human1001/mtu
package
module
Version:
v0.0.0-...-d0301d8
Opens a new window with list of versions in this module.
Published: Aug 30, 2023
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
MTU
用于发现链路的MTU,通过发送不同大小的DF标识的IP包探测链路MTU、采用二分法。探测上行链路采用系统自带的PING命令,以免需要管理员权限;探测下行链路需要服务器支持。
快速开始
参考
Expand ▾
Collapse ▴
Documentation
¶
Client 客户端
isUpLink 探测上行路径MTU,否则探测下行MTU
fastMode 探测上行链路的快速模式,更快
如数据包太大时,Ubuntu会提示:ping: local error: message too long, mtu=1400,快速模式直接采用1400这个值
Sever 服务, 探测下行链路需要
需要发送自定义IP包, 需要root权限运行。
确保服务器的上行MTU足够大, 不应成为链路瓶颈
Source Files
¶
Directories
¶
internal
test
Click to show internal directories.
Click to hide internal directories.