Explain PING results Codes

I looked online to find the explanation of the PING results, but could not fine any.
http://www.nthelp.com/icmp.html
I looked on the link above also similar links but  it does not explain what each ping result means


for instance: Ping 10.10.10.10
If  get Time Out, Destination Host unreachable, etc..etc..
What does each result means ... sometimes it means the host is down, sometimes, the network that the host is on is down but the host is probably up

there are many different results that we can get from Ping

Any link that explains each results what it means ?


Thanks
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul SimmonsCommented:
The most authoritative resources would be the IANA:
http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml

Wikipedia is also a reputable reference:
https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol
0
arnoldCommented:
Not sure what you are after.
Timeout in addition to what you posted, is also a configurable setting I.e. One can configure their firewall, systems to not respond to pings when they are not from known sources/desired sources.
Ping/trace route can be used to map a network. Identifying routers, etc.
0
Don JohnstonInstructorCommented:
I think that you're looking for what the destination unreachable result codes are.

They're pretty self-explanatory.

 0  Net Unreachable
	    1  Host Unreachable
            2  Protocol Unreachable
            3  Port Unreachable
            4  Fragmentation Needed and Don't Fragment was Set
            5  Source Route Failed
            6  Destination Network Unknown
            7  Destination Host Unknown
            8  Source Host Isolated
            9  Communication with Destination Network is
               Administratively Prohibited
           10  Communication with Destination Host is
               Administratively Prohibited
           11  Destination Network Unreachable for Type of Service
           12  Destination Host Unreachable for Type of Service
           13  Communication Administratively Prohibited      [RFC1812]
           14  Host Precedence Violation                      [RFC1812]
           15  Precedence cutoff in effect                    [RFC1812]

Open in new window


How different vendors generate their text is up to them though.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

jskfanAuthor Commented:
Don,

I have seen that list, but what does each result mean

for instance the most common results of ping are:

Time Out, Destination Host unreachable

in which scenario we can get Time out and in which scenario we get Destination Host unreachable

this is just for 2 scenarios

The list that Don posted has many scenarios ... but there is no link on the internet that explains in which case you get each result listed above by Don
0
arnoldCommented:
those codes will be seen commonly on your own network where you do not block ping/icmp packets generated internally.  Though even on ones own network one might restrict as mentioned above to minimize "discovery" internally through defining explicitly sources from which other devices will respond. i.e. simply being on the network you will not be able to discover the equipment.....


What are you after?
0
Don JohnstonInstructorCommented:
A "host unreachable" would be where the router which serves the network that the destination is on, can't get a response to an ARP request.  

There is no "timeout" code.
0
jskfanAuthor Commented:
There is no Time Out code, but when you ping you can get :
reply Time out OR Destination Host Unreachable, OR you get neither, just the ping fails.

That's what I was looking for, the different results of PING. If there is a link that explains them that would be great.
0
arnoldCommented:
Think of it this way, you place a call to a friend.
The person disabled voicemail.
The attempts keeps ringing.
You either can wait or you decide the hang-up.
The reason is either the person forgot the phone, or the person does not want to answer.

ping is the same, it has built-in criteria on how long it will wait for a response, that is controlled with the -W option.

I am still not clear what is the reason behind your question.

What is the significance you are applying to the situation.
i.e. what is the difference to you whether the ping packet (icmp) hitting a router that is configured not to respond or one that is saturated with higher priority data handling acknowledged by your app as a response has not been received within the amount you specified to wait.
0
Don JohnstonInstructorCommented:
There is no Time Out code, but when you ping you can get :
reply Time out OR Destination Host Unreachable, OR you get neither, just the ping fails.
"time out" is not the result of receiving an ICMP message. It is what happens when you do not receive a response at all (within the timeout period).

"host unreachable" is what you receive from the router that serves the target's network if they can't find the host.

I haven't seen a document that details each code.  The codes are rather self-explanatory.  "Destination Network Unreachable" would be an intermediate router reporting back that he network that the destination host is on is unreachable.  "Destination Network Unreachable" is when the intermediate network is unreachable (as in the next hop router is down).

And so on.
0
jskfanAuthor Commented:
Arnold:

I know that if there is no reply from the host, it means you cannot reach it.
However through the reply message you can tell if the down stream router cannot reach the host, or the host itself is down, or the host does not exist at all.
0
arnoldCommented:
It was true when the TCP/IP was designed. It is only true on ones own network and often requires you to change the settings.
Many routers are now require affirmative steps to enable the device to respond to ICMP/ping requests along with having ACLs allowing the same.
PING and traceroute can be used to map out the network.

When you ping someserver.somedomain.com You are dealing with multiple entities on the path.
Your own network.
Your Upstream Provider
Their upstream provider
The remote side's upstream provider
The remote side network
the path to the server.

Each entity has their own enforcement.

the pings are allowed to pass, but will not be responded to.


The point is that internally you can configure your network as you see fit and get the appropriate response as defined.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jskfanAuthor Commented:
In my case I am talking about internal network.
sometimes I ping a hostname and there is no response , I believe in that case the hostname is not in DNS
sometimes I ping hostname and it will show the IP address but with time out in replies. Sometime I ping hostname, it show IP address but with Destination host unreachable.

I know the IP address will show up only if reverse lookup zone is configured and PTR exists in the Reverse Lookup zone.
0
jskfanAuthor Commented:
thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
TCP/IP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.