-
Notifications
You must be signed in to change notification settings - Fork 833
UDP丢包率和延迟测试工具
wangyu- edited this page May 23, 2018
·
1 revision
直接ping走的是icmp流量,并不能准确反映出UDP的丢包率和延迟;而且ping无法直接测出使用UDPspeeder后的丢包率。
测试UDP的丢包和延迟,以前我在wiki里提到过一些方法,但是都比较麻烦。
现在可以看一下这个小工具:
https://github.com/wangyu-/UDPping
可以直接测出UDPspeeder/udp2raw使用前和使用后的UDP丢包率+延迟。
root@raspberrypi:~# ./udpping.py 44.55.66.77 4000
UDPping 44.55.66.77 via port 4000 with 64 bytes of payload
Reply from 44.55.66.77 seq=0 time=138.357 ms
Reply from 44.55.66.77 seq=1 time=128.062 ms
Request timed out
Reply from 44.55.66.77 seq=3 time=136.370 ms
Reply from 44.55.66.77 seq=4 time=140.743 ms
Request timed out
Reply from 44.55.66.77 seq=6 time=143.438 ms
Reply from 44.55.66.77 seq=7 time=142.684 ms
Reply from 44.55.66.77 seq=8 time=138.871 ms
Reply from 44.55.66.77 seq=9 time=138.990 ms
^C
--- ping statistics ---
10 packets transmitted, 8 received, 20.00% packet loss
rtt min/avg/max = 128.06/138.44/143.44 ms