To install tcptraceroute on Debian/Ubuntu:
$ sudo apt-get install tcptraceroute
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 22.214.171.124 [open] 82.544 ms seq 1: tcp response from 126.96.36.199 [open] 80.771 ms seq 2: tcp response from 188.8.131.52 [open] 80.838 ms seq 3: tcp response from 184.108.40.206 [open] 80.145 ms seq 4: tcp response from 220.127.116.11 [open] 86.253 ms