【缘起】
ping 命令基于 ICMP 协议,在严谨的网路环境中会拒绝 ICMP 回应,使得无法测得延。因此需要替代工具测试网络路由。
可以使用Tcpping 这个工具通过 TCP/UDP 协议来测试时延。,可以直接绕过多数 L3 防火墙进行检测。
参考:https://blog.csdn.net/chinagrowing/article/details/81217527
参考:https://www.laozuo.org/9602.html
参考:https://blog.csdn.net/sifeimeng/article/details/84738157
【工具:Tcpping】
Tcpping 运作方式:
Client: send TCP SYN (default 80)
Server: response TCP ACK (success)
Server: response TCP RST (fail)
Tcpping 使用的是『半开连接技术』,依赖已经拥有此技术的 tcptraceroute 工具:
yum -y install tcptraceroute
安装 Tcpping :
wget http://www.vdberg.org/~richard/tcpping && chmod +x tcpping
使用 Tcpping :
./tcpping www.google.com
指定端口:
./tcpping www.google.com 25
参数 -c 可以配合 gnuplot script 制成图表
./tcpping -c www.google.com
【工具:MTR(My TraceRoute)】
参考:https://www.php.cn/linux-410987.html
参考:https://www.jb51.net/LINUXjishu/341687.html
【工具:BestTrace】
参考:https://www.vpsmm.com/best-trace.shtml
下载:http://cdn.ipip.net/17mon/besttrace.exe
【工具:WinMTR】
参考:https://www.itbulu.com/mtr.html
参考:http://www.downxia.com/downinfo/38565.html