When the Sender gets to know that the destination is in a other network ( by doing the AND operation with the subnetting adress of its network ) what are the procedures followed, so the packet does reach at the host side
Suppose we are sending from PC-A to PC-B My questions are
The first packet from the host will contain the destination host's address or default gateway's address as destination ?
if default gateway's address is there in the header packet as destination, then after reaching to the default gateway's address, how does it know where to ( PC-B ), the data will be sent ? ( because we didn't write the destination address as PC-B rather we wrote destination as default gateway). Does both original Destination address ( PC-B ) and default gateway's address travel at a time ?
Assume that data reached at the last router/network. I am sure this time destination address will be of PC-B. So the question is how does the network decides to drop the packet in PC-B ? By comparing its MAC address or the HOST portion of IP address of PC-B's address ? ( Please I am really going crazy over this logic, I am not getting any satisfactory answer, please kindly describe it )
Admin please, if you think the question is been repeated then please post a link in replay but i have not found the valid/satisfactory answer to my second que.