寫了一個工具用來作微秒級別的網絡延遲檢測,須要在配置文件中簡單描述須要測試的網絡鏈接: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或者與我聯繫 :)
工具