Monday, August 13, 2012

What happens when we "PING"

This is a typical interview question. A basic explanation to answer this question in an interview is provided here.

1. Ping works in Layer 3 of the OSI model which is "Network Layer"
2. Ping uses ICMP protocol
3. It is mainly used to check the connectivity between two devices
4. When we ping from one device to another, giving the destination device's ip, an icmp echo request is sent to the destination. The destination device sends an echo response which is received by the sender. Some times the request might time out or destination unreachable error message might pop up according to different scenarios.
5. As Ping works in Layer 3, the Layer 2 activities like ARP are carried out as usual. (ARP is used by a device to learn the MAC address of a destination device.)

This is just a basic idea on Ping. A detailed and interesting explanationis available here:

http://www.antionline.com/showthread.php?t=237944

No comments:

Post a Comment