|
I want to know the latency from my machine to webfaction hosted site. I tried doing a ping onto the remote machine IP, but it looks ICMP Ping messages are blocked at the other end. Am I missing anything here? Is there any other way to do this ( a hack?) Thanks. |
|
We don't block ICMP on our end on any of our web servers, so it must be an intermediate router that is blocking your packets. That said, ICMP is not an effective way to measure latency as ICMP packets are normally deprioritized by intermediate routers. You can use TCP-based ping tools like tcpping or hping to measure latency. I personally prefer hping: $ sudo hping3 -S -p 22 web329 HPING web329 (eth0 108.59.11.72): S set, 40 headers + 0 data bytes len=46 ip=108.59.11.72 ttl=54 DF id=0 sport=22 flags=SA seq=0 win=14600 rtt=252.4 ms len=46 ip=108.59.11.72 ttl=54 DF id=0 sport=22 flags=SA seq=1 win=14600 rtt=252.5 ms len=46 ip=108.59.11.72 ttl=53 DF id=0 sport=22 flags=SA seq=2 win=14600 rtt=249.5 ms len=46 ip=108.59.11.72 ttl=53 DF id=0 sport=22 flags=SA seq=3 win=14600 rtt=249.0 ms |
Sorry ICMP works fine, but it does take some 15secs+ to start showing the results.
See icmp_seq col; it starts from 29.
replies for the first 30?
PING web322.webfaction.com (216.185.102.20) 56(84) bytes of data.
64 bytes from web322.webfaction.com (216.185.102.20): icmp_seq=29 ttl=50 time=312 ms
64 bytes from web322.webfaction.com (216.185.102.20): icmp_seq=30 ttl=50 time=312 ms
64 bytes from web322.webfaction.com (216.185.102.20): icmp_seq=31 ttl=50 time=313 ms
64 bytes from web322.webfaction.com (216.185.102.20): icmp_seq=32 ttl=50 time=313 ms
64 bytes from web322.webfaction.com (216.185.102.20): icmp_seq=33 ttl=50 time=311 ms
64 bytes from web322.webfaction.com (216.185.102.20): icmp_seq=34 ttl=50 time=311 ms
^C
I am not sure, I don't see this when I ping. This still seems to be something on your end. Do you have access to a different ISP?
Also, did you try tcp-based ping?
anyway why this high latency? Machine is web322.webfaction.com and is in Singapore, ASIA.
Its 300+ms latency; and so I get a lot of lag in typing commands through SSH. Any help here? Thanks.
@neeravk How to do the latency using tcp-based ping?
You can use the tools I listed in the answer below. tcpping or hping both should help you do a better test.
Also, I don't get as much latency as you:
So, something seems to wrong with your ISP's routing.