Question Locked

How can the Network layer know the destination IP?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

From Where Network Layer Know the destination IP so can Add to Packet Header ??
i want to know the procedures from write www.yahoo.com in my browser till IP for yahoo added in packet header

7 replies

by pfeiffep

Header
The header features source and destination MAC address, the Ethertype protocol identifier field and optional IEEE 802.1Q VLAN tag indicating VLAN membership and traffic priority.

or maybe I mis-understood your question

by brian_meahan - techtoolbox.com

When you put the url in the browser, a number of thngs happen, but basically the browser sends a query out to your local Domain Name servers and they look to see if there is an A record which is what translates the domain name to an IP address. If one isn't found then it goes to the next level which is your ISP and does the same check. This keeps going until it hits the root level servers (the brains to the internet so to speak). Once it has this IP address then it goes on to the network which owns the address and the process is somewhat reversed, but not quite. It all depends on the network on the receiving end. It may go through a firewall or proxy NAT (network address translation) which converts the outward facing IP to an internal IP address, but in essence the request is sent on to an internal server and the webserver then takes that URL and port and serves up the appropriate web page.

by layth1970

What Layer 3 receives from Layer 4, the transport protocol header does NOT contain anything about the IP address (or host name). So, from where does the layer 3 brings the destination IP address? By other words, is there a common or global source of information available simultaneously to the 7 layers, or the case is that every layer can only get information from the one above it?

by robo_dev

can use the hostname or IP address interchangeably. So if you send a ping message from one PC to another, you can specify either it's IP address or the hostname

This discussion is closed to new replies.