Help!!!
I am desperately trying to find the answer to one question. I would really appreciate if you could help me.
What is the difference between loopback test and pinging your own IP address in terms of what the host does? And where does the packet goes in the TCP IP stack? In both cases it should not leave the host’s network interface card. Isn’it? When you ping your IP address, does IP use loopback drivers to reroute outgoing packets back to the source computer? (like in the loopback test) What is the difference?
Where does IP resolves the destination IP address of the packet to the destination MAC address when a packet is sent by a host to itself? I know IP addresses are mapped to MAC addresses in every computer but how does IP get to know the MAC address?
This is my interpretation (probably wrong!):
Once the packet goes down to the Data Link layer, TCP IP finds corresponding MAC address for that IP address as the network interface card has been mapped to that IP address. At this point the packet is passed back up the stack again for processing at the same host.
So only at the Data Link layer, where MAC addresses are recognized by TCP IP, the host identifies that the packet is addresses to itself.
Can you help at all? Thank you so much for your time.