LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2005, 03:43 PM   #1
ivj
Member
 
Registered: Jul 2004
Posts: 61

Rep: Reputation: 15
What is ping?


I had a few questions about pinging...

When I use ping google.com it tells me that time is around 80 milliseconds...

Is that the time for the signal to get to google, or is it time for a signal to get to google AND come back?

Technically, shouldn't the speed TO google be different than the speed FROM google, or should it be the same?

Also, whats TTL (time to live)?

Thanks!
 
Old 07-18-2005, 03:47 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
OKay ping is a way of measuring the speed of 'reply' from a server. That is the response time. How quickly a ping packet got to the server and the reply came back. Usually done in groups so you can get an average. ( as it will vary depending on what route each packet took ).

The TTL is how long each packet is allowed to live, i.e. how long before you'll wait for a response before giving up ( think of it like a timeout ).
 
Old 07-18-2005, 03:50 PM   #3
ivj
Member
 
Registered: Jul 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Oh wow so you're saying that when I do ping google.com and it tells me 80, what happened is that it took about 40 ms to get to google and about 40 to get from google to me?

And is 1:1 ratio correct? Or will sometimes one be slower than the other? And if so, is there any way to measure it?
 
Old 07-18-2005, 04:01 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Yes sometimes, it will be slower one way or the other, but probably not by much, also it depends on how quick the server is, Google having lots of power and badwidth, responds to the ping request really quicky.

So its Time to server, server speed in responding, and time back.

Theres no easy way to say how long it took one way or the other, as that would require both your machine and server agreeing on eactly what time it is within milliseconds.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM
dhcp client can't ping gateway but can ping other local hosts dirty_forks Linux - Networking 7 10-08-2004 10:54 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM
I can ping google.com successfully,but ping client(in my intranet) failed.Why? whepin Linux - Newbie 4 12-30-2001 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration