background image
104 Chapter 3: OSI Reference Model & Layered Communication
data portion of the frame. That frame uses data link (Layer 2) addressing in the data link header
to ensure that the nearby router receives the frame.
Step 2: Routing Data Across the Network
The routing table for that particular network layer protocol type is nothing more than a list of
network layer address groupings. As shown in Table 3-10 later in this section, these groupings
vary based on the network layer protocol type. The router compares the destination network
layer address in the packet to the entries in the routing table in memory, and a match is made.
This matching entry in the routing table tells this router where to forward the packet next.
Any intervening routers repeat the same process. The destination network layer (Layer 3)
address in the packet identifies the group in which the destination resides. The routing table is
searched for a matching entry, which tells this router where to forward the packet next.
Eventually, the packet is delivered to the router connected to the network or subnet of the
destination host, as previously shown in Figure 3-17.
Step 3: Delivering Data to the End Destination
When the packet arrives at a router sharing a data link with the true destination, the router and
the destination of the packet are in the same L3 grouping. That final router can forward the data
directly to the destination. As usual, a new data link header and trailer are created before a frame
(which contains the packet that made the trip across the entire network) can be sent on to the
media. This matches the final step (Step 3), as previously shown in Figure 3-17.
A Comment About Data Links
Because the routers build new data link headers and trailers, and because the new headers
contain data link addresses, the routers must have some way to decide what data link addresses
to use. An example of how the router determines which data link address to use is the IP Address
Resolution Protocol (ARP) protocol. ARP is used to dynamically learn the data link address of
some IP host.
An example specific to TCP/IP will be useful to solidify the concepts behind routing. Imagine
that PC1 is sending packets to PC2. (If you do not understand the basics of IP addressing
already, you may want to bookmark this page and refer to it after you have reviewed Chapter 5,
which covers IP addressing.) Figure 3-18 provides an example network so that you can review
the routing process.
ch03.fm Page 104 Monday, March 20, 2000 4:58 PM