How does the Ping work ?

Our topic today (PING) may be simple to understand but is important for each professional person working in the field of networks because it is one of the most important tools that help in the diagnosis and TSHOOT of many of the problems  at work and I expect that each one of us asked himself this question?

Of course, our  discuss will not be for the programming of Ping, but how it works in the network.

To go into more detail, we must be we have a simple background in the concept of  OSI layers and the TCP / IP.

As we all know that when we want to we begin the work of Ping Ping, first type a word and then add the name of the site or work experience Ip to be him and the result is as follows.

Previous image shown us on the success of the process while the next picture shows us the failure of the process.

The purpose
of this paper is to resolve any lingering questions you may have about ping and to take your understanding
to the next level. If you do not happen to be a programmer, please do not be frightened off! I am not
going to tell you how to write your own version of ping; trust me.

Ping in general is a device that uses protocol or the ICMP Internet Control Message Protocol.

—-
For those who are ignorant of the work of this Protocol.

shall say to them

is a protocol that works in the third layer Network Layer is responsible for sending error messages in the network in general.

ICMP is a software component of the Internetworking layer of TCP/IP; essentially, it is a companion at that
level to IP (Internet Protocol) itself. In fact, ICMP relies on IP for transport across the network. If you observe
this sort of network traffic, say on an Ethernet network, then your protocol analyzer would capture an Ethernet
frame transporting an IP datagram with an ICMP message inside.

What happens when I send a Ping to IP?

It sends an ICMP (Internet Control
Message Protocol) Echo Request to a specified interface on the network and, in response, it expects to receive
an ICMP Echo Reply. By doing this, the program can test connectivity, gauge response time, and report a variety
of errors.
oR

In the transmitter to send the ICMP Echo Requests to the target followed by -  Type 8, Code 0 massage
What are the meanings?

to understand we will share first on the table below and then complete the.

I Dont understand !!! looooooooob what that mean !!!!11

To understand the process correctly, we must put the Header ahead and imagine what its contents when sending a request and than following me.

Unlike the number of Type 3 which is responsible for non-completion of the Ping check and we find in the Code there are several options to indicate the exact error
We conclude that the Type box, specify the type of ICMP message in the box while the Code is used if there are options available in this type of message


As for the rest of the fields in the Header are almost unknown at all, such as
Header Checksum responsible for error detection
Identifier, mainly to be 256, and includes the process ID
Sequence Number starts at zero and increases with the times demand Echo
Good question is: How is the destination side to respond

The answer is much simpler after we understandhow demand simply because the issue will be the same thing with the change of the Type and the Code in the event there is a problem of access, even if we look at this the

When we send  a request or to verify the required Ip , the ICMP Type select the eight which shows that this request is for packet As for the code is zero by the previous table that demonstrates a logical and of course he does not have options on request.

Unlike the number of Type 3 which is responsible for non-completion of the Ping check and we find in the Code there are several options to indicate the exact error
We conclude that the Type box, specify the type of ICMP message in the box while the Code is used if there are options available in this type of message


As for the rest of the fields in the Header are almost unknown at all, such as
Header Checksum responsible for error detection
Identifier, mainly to be 256, and includes the process ID
Sequence Number starts at zero and increases with the times demand Echo
Good question is: How is the civilian side to respond?

The answer is much simpler after Mavhemena how demand simply because the issue will be the same thing with the change of the Type and the Code in the event there is a problem of access, even if we look at this Header.

Will be note that the operation was successful and the demand has been because we see that the Type with the number 0 , will be find thatin the table shows that the process was objective and he responded to the request.
But if you have been offered this table what will happen?

The answer of course would be that the application process is not compliant – the reason is the target not ability to access or not responding (see table).

Last point is the TTL

the answers varied on the Internet and Google some say is the number of hop to reach the goal and there are those who say is the time that it takes the request to reach the target after the my research and experience – it the value determined by each router or device which increase or decrease depending on the packet path to the target.
As an example, Ping 127.0.0.1 loopback Address for the device (PC) is it 128, and this means that the value of the TTL in Windows is 128 , but the equal to the value in Linux is 64.

Thank You all.

This post was written by:

- who has written 60 posts on Network-Tipps.


Contact the author

  • http://www.gettingwelllerrr.org Charles Decos

    Hi, you used to write exceptional articles, but the last several posts have been kinda boring… I miss your super writing. Past several posts are just just a little out of track!

  • http://www.patnaikb.com and death tadalafil

    This is intriguing, You’re a particularly veteran reddit. I had joined your main rss and appear forward to trying to get greater numbers of your main good report. Equally, I’ve provided your internet site within my social networking sites!

  • http://www.facebookpokerchipnews.com facebook poker

    Hello there! This is my first comment here so I just wanted to give a quick shout out and tell you I really enjoy reading your posts. Can you suggest any other blogs/websites/forums that go over the same topics? Thanks a lot!

  • http://www.cheaprosettastonesale.org Cheap rosetta stone

    I enjoy th is blog- it is the only one I v isit on a typical bas is. Your efforts and opinions (popular or otherw ise) are all appreciated. Thanks.

  • http://www.cheaprosettastonesale.org Cheap rosetta stone

    Wonderful posting, really appreciate the time you may possibly have taken to produce it.

  • Gvbg

    waw nich

Loading

Keep in Touch

  • Subscribe our Newsletter




  • Follow me on Twitter
    Facebook Google Yahoo XML
  • Seo Packages
    What is seo - seo tips