首页 > Linux操作系统 > Linux操作系统 > 测试网络性能的小工具
一般测试网络连通性和延迟最常使用Ping命令,但是如果对方禁止了ICMP包将无法ping通,telnet命令虽然可以测试端口连通性,但却无法检测延迟,PaPing 不仅可以测试连通性还可以检测网络延迟情况。
下载安装
cd ~
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/paping/paping_1.5.5_x86-64_linux.tar.gz
tar zxvf paping_1.5.5_x86-64_linux.tar.gz
使用iperf3在server1上执行
iperf3 -s
然后在 server2上执行
./paping -p 5201 -c 100 server1
通过输出能看到丢包情况,和网络延迟情况
Connection statistics:
Attempted = 100, Connected = 100, Failed = 0 (0.00%)
Approximate connection times:
Minimum = 2.00ms, Maximum = 25.95ms, Average = 3.17ms
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/725820/viewspace-2693094/ ,如需转载,请注明出处,否则将追究法律责任。