LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-07-2003, 08:10 AM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Ping & Server Speed


What parameter shows the connectio of the server?

I'm looking for a paramter that shows server speed capability.


E.g:
[mike@MS mike]$ ping linuxquestions.com
PING linuxquestions.com (213.130.63.234) 56(84) bytes of data.
64 bytes from usl0000001-vip3.eu.verio.net (213.130.63.234): icmp_seq=1 ttl=48 time=91.5 ms
64 bytes from usl0000001-vip3.eu.verio.net (213.130.63.234): icmp_seq=2 ttl=48 time=88.4 ms
 
Old 06-07-2003, 08:32 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
The time parameter(time=91.5 ms) shows how long it took for your request to complete. Obviously the smaller the number the faster the server speed.
 
Old 06-07-2003, 08:47 AM   #3
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Thanks for the good answer.

One more question: TTL has any effect on server speed ?
What the purpose of TTL in the output ?

Thanks
 
Old 06-07-2003, 08:51 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I believe that stands for Time To Live. This is what the ping man page says:

The TTL value of an IP packet represents the maximum number of IP routers that the packet can go through before being thrown away. In current practice you can expect each router in the Internet to decre-ment the TTL field by exactly one.
 
Old 06-07-2003, 08:57 AM   #5
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Why the TTL number is not constant ?

Last question, why some servers is not possible to ping..

[mike@MS mike]$ ping nyt.com
PING nyt.com (199.239.137.217) 56(84) bytes of data.
From 128.241.244.54 icmp_seq=2 Packet filtered
 
Old 06-07-2003, 08:59 AM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
They could have there firewall configured to drop the icmp ping packets or the server could simply be down.
 
Old 06-07-2003, 05:31 PM   #7
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
and TTL isn't constant but decremented at each hop to prevent packets that that are unable to reach their destination bouncing around the internet going nowhere until the end of time - or someone pulls the plug.
 
Old 06-07-2003, 05:53 PM   #8
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Looking_Lost
and TTL isn't constant but decremented at each hop to prevent packets that that are unable to reach their destination bouncing around the internet going nowhere until the end of time - or someone pulls the plug.
Ok .. But When I ping two different servers, I got differemt TTL number..

E.g:

[mike@MS .galeon]$ ping rackspace.com
PING rackspace.com (64.39.2.185) 56(84) bytes of data.
64 bytes from cirrus.rackspace.com (64.39.2.185): icmp_seq=1 ttl=113 time=60.8 ms

&

[mike@MS .galeon]$ ping rackshake.net
PING rackshake.net (213.58.153.4) 56(84) bytes of data.
64 bytes from hosting1.sonet.pt (213.58.153.4): icmp_seq=1 ttl=40 time=162 ms

TTL for rackspace.com is 113
TTL for for rackshack.net is 40 ...

Why they are different.. Same protocol right ??
 
Old 06-07-2003, 07:19 PM   #9
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Quote:
TTL details

The TTL value of an IP packet represents the maximum number of IP routers that the packet can go through before being thrown away. In current practice you can expect each router in the Internet to decrement the TTL field by exactly one. The TCP/IP specification states that the TTL field for TCP packets should be set to 60, but many systems use smaller values (4.3 BSD uses 30, 4.2 uses 15).

The maximum possible value of this field is 255, and most UNIX systems (including QNX) set the TTL field of ICMP ECHO_REQUEST packets to 255. Thus you'll find you can "ping" some hosts, but not reach them with telnet or ftp.

In normal operation, ping prints the ttl value from the packet it receives. When a remote system receives a ping packet, it can do one of three things with the TTL field in its response:

* Not change it -- this is what Berkeley UNIX systems did before the 4.3BSD-Tahoe release. The TTL value in the received packet is 255 minus the number of routers in the roundtrip path.
* Set it to 255 -- this is what current Berkeley UNIX systems do. The TTL value in the received packet is 255 minus the number of routers in the path from the remote system to the pinging host.
* Set it to some other value -- some machines use the same value for ICMP packets that they use for TCP packets; for example, either 30 or 60. Others may use completely wild values.
Never thought of that myself before so I did a quick search and turned up the above. Ya learn something new everyday


 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
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
hosting and ping samba server name as well as mail server name simultaneously cbekannan Linux - General 2 01-11-2005 12:11 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
Linux & XP & ping m_pahlevanzadeh Linux - Networking 4 07-22-2004 12:49 AM
how do i ping my server , what is my server name , web hosting waheedrafiq Linux - Software 7 12-03-2003 11:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:36 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration