When we get the output of "Ping" as Request timed out or Destination host unreachable, we often think that the destination is down but the two outputs infer different meanings.
Here, we shall see the difference between the two from a user machine using Wireshark.
Below are the IP Address information from the "ipconfig" output :
When I ping the IP Address 192.168.1.10 which is part of my Wi-Fi Subnet, I get the reply from my Source IP Address, saying "Destination host unreachable".
When we get the response from the same Source IP Address, here 192.168.1.9, it means the ICMP Echo Requests were not sent from that IP Address.
Let's see why did this happen?
If we take a look at Wireshark Capture, we see three ARP requests sent for each Ping utility used. Since there were no successful ARP resolution, the user machine did not forward the ICMP Packet to the destination as it does not know which MAC Address to send to [ARP is a protocol to resolve the destination MAC Address if the program is aware of the IP Address].
Now when I ping the IP Address that is not part of my subnet, say 192.168.56.100, I get "Request timed out" for each of the four ICMP Packets.
We do not see ARP requests in this case. Why is that so? ARP queries were not sent from local machine as the destination 192.168.2.100 belongs to a different subnet.
You are welcome brother.
ReplyDeleteVery informative.. Keep doing good work.
ReplyDeleteGlad it was informative to you.
Delete