[英]Latency measurement over UDP on Linux
I want to measure UDP latency and drop rate between two machines on Linux. 我想测量Linux上两台计算机之间的UDP延迟和丢失率。 Preferably (but not crucial) to perform measurement between multiple machines at the same time. 最好(但不是很关键)在多个机器之间同时执行测量。
As a result I want to get a histogram, eg RTT times of each individual packet at every moment during measurement. 结果,我想获得一个直方图,例如在测量期间的每个时刻每个单独数据包的RTT时间。 Expected frequency is about 10 packets per second. 预期的频率约为每秒10个数据包。
Do you know of any tool that I can use for this purpose? 您知道我可以用于此目的的任何工具吗?
What I tried so far is: 到目前为止,我尝试过的是:
Can you recommend something? 你能推荐点什么吗?
Thanks 谢谢
It depends. 这取决于。 If all you want is a trace with timestamps, Wireshark is your friend: https://www.wireshark.org/ 如果您想要的只是带有时间戳的跟踪信息,Wireshark就是您的朋友: https : //www.wireshark.org/
I would like to remind you that UDP is a message based protocol and packets have definite boundaries. 我想提醒您,UDP是基于消息的协议,数据包具有明确的边界。 There cannot be reception of partial packets. 无法接收部分数据包。 That is, you will either get the complete message or you will not get it. 也就是说,您将获得完整的消息,或者您将不会获得完整的消息。 So, you need not worry about partial packets in UDP. 因此,您不必担心UDP中的部分数据包。
The method of calculating packet drop using counter & calculating latency using time delta appears fine for UDP. 对于UDP,使用计数器计算数据包丢失和使用时间增量计算延迟的方法看起来不错。 However the important point to be taken in to consideration is ensuring the synchronization of the system time of client and server. 但是,要考虑的重要点是确保客户端和服务器的系统时间同步。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.