login community faq

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.

asked Apr 21 '12 at 03:13

Prajwal's gravatar image

Prajwal
295

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

(Apr 21 '12 at 03:57) Prajwal Prajwal's gravatar image

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?

(Apr 21 '12 at 04:03) neeravk ♦♦ neeravk's gravatar image

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?

(Apr 21 '12 at 04:08) Prajwal Prajwal's gravatar image

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:

$ ping web322
PING web322.webfaction.com (216.185.102.20) 56(84) bytes of data.
64 bytes from web322.webfaction.com (216.185.102.20): icmp_req=1 ttl=55 time=78.8 ms
64 bytes from web322.webfaction.com (216.185.102.20): icmp_req=2 ttl=55 time=78.8 ms
64 bytes from web322.webfaction.com (216.185.102.20): icmp_req=3 ttl=55 time=78.8 ms

So, something seems to wrong with your ISP's routing.

(Apr 21 '12 at 04:36) neeravk ♦♦ neeravk's gravatar image

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

answered Apr 21 '12 at 03:31

neeravk's gravatar image

neeravk ♦♦
14061311

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×74
×3
×2

Asked: Apr 21 '12 at 03:13

Seen: 594 times

Last updated: Apr 21 '12 at 04:36

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited