您的位置:首页 > 理论基础 > 计算机网络

How to install tcpping on Linux.md

2017-05-04 10:32 926 查看
To install tcptraceroute on Debian/Ubuntu:

$ sudo apt-get install tcp

traceroute


To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:

$ sudo yum install tcptraceroute


Finally, download tcpping from the web.

$ cd /usr/bin
$ sudo wget http://www.vdberg.org/~richard/tcpping $ sudo chmod 755 tcpping


To measure network latency by using tcpping, simply run it as follows.

$ tcpping www.cnn.com
seq 0: tcp response from 157.166.240.13 [open] 82.544 ms
seq 1: tcp response from 157.166.241.10 [open] 80.771 ms
seq 2: tcp response from 157.166.241.11 [open] 80.838 ms
seq 3: tcp response from 157.166.241.10 [open] 80.145 ms
seq 4: tcp response from 157.166.240.11 [open] 86.253 ms

参考文章:https://gist.github.com/cnDelbert/5fb06ccf10c19dbce3a7
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: