微秒级别的网络延迟检测

写了一个工具用来作微秒级别的网络延迟检测,须要在配置文件中简单描述须要测试的网络链接:git

[s1]
SRC_HOST = sample1.com
DST_HOST = sample2.com
DST_HOST_INTERNAL = sample2.internal.com

[s2]
SRC_HOST = sample1.com
DST_HOST = sample3.com
DST_HOST_INTERNAL = sample3.internal.com

运行后能够输出下面的结果:github

| source      | target      | Ethernet |          IP | Latency (micro-second) |
|-------------+-------------+----------+-------------+------------------------|
| sample1.com | sample2.com | en1      | 192.168.0.2 |                     23 |
| sample1.com | sample3.com | en6      | 192.168.0.3 |                     27 |

代码在github上   https://github.com/ChanningBJ/NetLatency 
网络

在个人网络环境中是正常工做的,若是发现bug,欢迎fork或者与我联系 :)
工具

相关文章
相关标签/搜索