Register to reply

Ping help

by biferi
Tags: ping
Share this thread:
biferi
#1
Nov26-12, 04:46 PM
P: 193
I am just playing with the Ping command and would like some help understanding it.

I used Ping on Google and 4 Packets of 32 Bytes of Data went out and came back.
And the TTL for eatch Packet was like this

TTL = 30 ms
TTL = 31 ms
TTL = 30 ms
TTL = 29 ms

Now I know that this is how long each Packet took to go and come back.
And it should stay under 50 ms. and anything over something is wrong.

But how do ppeople findout how far away the server is from just Pinging it?

I know 1,000 ms = 1 SEC. so if my Pakets took 31 ms to get to and come back from google does this mean the server is how many MIN. away it is?
Phys.Org News Partner Science news on Phys.org
Apple to unveil 'iWatch' on September 9
NASA deep-space rocket, SLS, to launch in 2018
Study examines 13,000-year-old nanodiamonds from multiple locations across three continents
phinds
#2
Nov26-12, 05:03 PM
PF Gold
phinds's Avatar
P: 6,326
I doubt there is any strict correlation between the ping number and the distance to the server. It will depend on how many nodes the signal goes through to get there and back and how fast they are.

Also, "should stay under 50ms" is a decent rule of thumb, BUT ... there are many sites that are run off of shared servers, sometimes heavily shared servers, that will rarely give you better than, say, 100ms response time, so it is NOT just a matter of the signal getting there and back, there is also the processing time of the server and that can be slowed down by its load, having nothing to do with the rest of the signal transmission time.
biferi
#3
Nov26-12, 10:23 PM
P: 193
Thanks for getting back to me.

But I do want to know google gave me a TTL of 30ms 31ms 3ms 29ms they are all very very low.

so this tells me they all came back fast and had no prablems.

Is there any way to ajust the Size of each Packet from 32 Bytes to whatever you want?

Vadar2012
#4
Nov26-12, 11:02 PM
P: 208
Ping help

Yeah, you'd have to make some crazy assumptions to get an idea of how far away the server is. Just for fun though, let's assume that the line is ideal and the signal travels at the speed of light, and that the server is perfect with no interuptions and doesn't have to go through clusters etc. So from 30ms we can get that the server you have pinged is about 4500 km away, which is 1/9 of the earth's circumference or like from one side of the U.S to the other. Being an engineer, I would call this a conservative estimate :) or the maximum case. Completely pointless, but interesting.

Btw, 30ms is damm good, from Australia we get 100ms from most servers not in our country.
r4z0r84
#5
Nov27-12, 04:10 PM
P: 92
Have a look at the Tracert cmd, it may help you understand where the ping is actually coming from, the time it takes to hop over all the other connections to google or any server in general and then back again. this is why it is generally impossible to determine how far a server is from your current location, not to mention all networks do not just run in straight lines in terms of distance. you could also look into routing as well as its quite interesting where you get pings from depending on switch configuration and what route your computer takes to collect the information.


Register to reply

Related Discussions
Oblique impact on ground of a ping ping ball Classical Physics 1
Reliable and Accruate Mechanism for Launching Ping Ping Balls? Mechanical Engineering 3
New uses for ping-pong balls General Discussion 4
Help, ping pong simulation.. pls Programming & Computer Science 4
Ping triangulation Computing & Technology 5