07-15-2013 08:34 AM - edited 03-07-2019 02:24 PM
Folks,
a question to clear my understanding.
When a host send a packet to a destination host, then what it writes in its packet as destination address. It is the gateway or the destination host's IP/MAC address?
If it is gateway address of the host as destination address of the packet, then how the packet arrives to the destination host?
If the host writes destination host's address in the packet, then every hop rewrites MAC/IP during routing & switching. So how the packet arrives to the destination?
Solved! Go to Solution.
07-16-2013 05:10 PM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
ok.. so if the host application doesn't know the IP then it will know FQDN and resolve it to IP. So in this scenario a DNS help shall be required or NATing device also can work as a DNS?
Correct, the sending device has to somehow "know" the address of the recipient. It might be its IP or it might be by logical name (e.g. supportforums.cisco.com).
If NAT is involved, it may need to also NAT the DNS query and response, but that doesn't mean the NAT device, itself, is doing DNS.
07-17-2013 02:54 PM
Got it Joseph! thank you so much!!
12-23-2017 12:48 AM
Hi,
I am bit confused about the packet reach to the destination if host does not know the destination IP address so what would be the Packet info..
source IP = source IP
destination IP =?
source Mac = source Mac
destination Mac =?
Thanks and regards
Sumit
07-15-2013 10:31 AM
Hi,
The host does a a binary AND between its IP and mask and between the dest IP and its mask to know if the dst IP is on same subnet or not.
The dest IP is given by the application on the host and usually derived from a name by DNS.
Regards
Alain
Don't forget to rate helpful posts.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide