Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用本指南找出邮件服务器的正确 MTU(最大传输单元)大小。但是,服务器会阻止 ping。有没有其他方法可以在没有管理员访问邮件服务器的情况下确定 MTU 大小?
您正在尝试进行路径 MTU 发现。
只要途中没有防火墙阻止所有 ICMP 流量(因为返回“需要分片”的 ICMP 包必须到达您那里),所提供的方法将适用于所有类型的 IP 包。您只需发送设置了“DF”标志的 IP 包,并注意返回“需要分片”的 ICMP 包。
这是python 中使用原始套接字的示例。