Enhance your Career in Networking With IPinBits!!!‚Äč

ip ping – Checking connectivity of IP networks

Today we will study about the ping and traceroute tools. As a network engineer these two utilities are must to use during troubleshooting/verifications. This article will cover the IP ping.

PING – Ping is used to check connectivity to the remote peer i.e. remote device is reachable from host device or not from L3 connectivity. Ping works for IPv4 while ping6 works for IPv6. It uses ICMP protocol and tells us about the following details :-
1. Connectivity details
2. Round trip time
3. Packet loss in the path

PING uses ICMP protocol, The ICMP stands for Internet Control Message Protocol. It is a Layer 3 protocol. If a IP packet is ICMP packet, it will have protocol No ==1.

ICMP basically carries a TYPE and CODE field which tells us about different results. These TYPE CODE values are listed as below :-

PING uses ICMP ECHO Req and ECHO Reply to verify the connectivity. With the help of ICMP, we get exact reason why our PING connectivity failed. Cisco routers wait for 2 second after sending a packet and if no reply is received in those two seconds we will get timeout error (this is the reason why we get some RTO when we do first time ping, 2 seconds are over while Router/host resolves MAC using ARP). 

We can use extended ping to alter the info (size, TTL, sender’s IP address, count etc). Let’s see some example :-
1. Destination host unreachable 

2. Request Time out