The TCP/IP Guide - Version 3.0 (Contents) ` 280 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
The most important distinction between these types of addresses is the distinction between
layers two and three themselves: layer two deals with directly-connected devices (on the
same network) while layer three deals with indirectly-connected devices (as well as
directly-connected). Say, for example, you want to connect to the Web server at http://
www.tcpipguide.com. This is a web site that runs on a server that has an Ethernet card in it
for connecting it to its Internet service provider site. However, even if you know its MAC
address, you cannot use it to talk directly to this server using the Ethernet card in your
home PC, because the devices are on different networks—in fact, they may be on different
continents!
Instead, you communicate at layer three, using the Internet Protocol and higher layer
protocols such as TCP and HTTP. Your request is routed from your home machine, through
a sequence of routers, to the server at The TCP/IP Guide, and the response is routed back
to you. The communication is, logically, at layers three and above; you send the request not
to the MAC address of the server’s network card, but rather to the server’s IP address.
However, while we can virtually connect devices at layer three, these connections are
really conceptual only. When you send a request using IP, it is sent one hop at a time, from
one physical network to the next. At each of these hops, an actual transmission occurs at
the physical and data link layers. When your request is sent to your local router at layer
three, the actual request is encapsulated in a frame using whatever method you physically
connect to the router, and passed to it using the router's data link layer address. The same
happens for each subsequent step, until finally, the router nearest the destination sends to
the destination using its data link (MAC) address. This is illustrated in Figure 44.
Converting Layer Three Addresses to Layer Two: Address Resolution
The basic problem is that IP addresses are too high level for the physical hardware on
networks to deal with; they don't understand what they are. When your request shows up at
the router that connects to The TCP/IP Guide, it can see the http://www.tcpipguide.com
server's IP address, but that isn't helpful: it needs to send to server's MAC address.
The identical issue exists even with communication between devices on a LAN. Even if the
Web server is sitting on the same desk as the client, the communication is logically at the IP
layer, but must also be accomplished at the data link layer. This means we need a way of
translating between the addresses at these two layers. This process is called address
resolution.
Key Concept: Address resolution is required because internetworked devices
communicate logically using layer three addresses, but the actual transmissions
between devices take place using layer two (hardware) addresses.