WebFaction
Community site: login 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 21 Apr '12, 03:13

Prajwal
10622130
accept rate: 33%

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

(21 Apr '12, 03:57) Prajwal

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?

(21 Apr '12, 04:03) neeravk

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?

(21 Apr '12, 04:08) Prajwal

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.

(21 Apr '12, 04:36) neeravk

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
permanent link

answered 21 Apr '12, 03:31

neeravk
1.5k3412
accept rate: 41%

Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×4
×2

question asked: 21 Apr '12, 03:13

question was seen: 2,920 times

last updated: 21 Apr '12, 04:36

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM