cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6381
Views
0
Helpful
18
Replies

How packet reach destination

sugatada9
Level 1
Level 1

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?

18 Replies 18

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.

Got it Joseph! thank you so much!!

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

 

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.

Don't forget to rate helpful posts.