background image
The IP Routing Process
255
address of the router's interface Ethernet 0 (configured with the
IP address of 172.16.10.1) must be known. Why? So the packet can be
handed down to the Data Link layer, framed, and sent to the router's
interface connected to the 172.16.10.0 network. Hosts communicate
only via hardware addresses on the local LAN.
6.
First, the ARP cache is checked to see if the IP address of the default
gateway has been already resolved to a hardware address:
If it has, the packet is then free to be handed to the Data Link layer
for framing. (The hardware destination address is also handed
down with that packet.)
If the hardware address isn't already in the ARP cache of the
host, an ARP broadcast is sent out onto the local network to
search for the hardware address of 172.16.10.1. The router
responds to the request and provides the hardware address of
Ethernet 0, and the host caches this address. The router also
caches the hardware address of Host A in the ARP cache.
7.
Once the packet and destination hardware address are handed to the
Data Link layer, the LAN driver is used to provide media access via
the type of LAN being used (in this example, Ethernet). A frame is
then generated, encapsulating the packet with control information.
Within that frame are the hardware destination and source addresses,
plus an Ether-Type field that describes the Network layer protocol
that handed the packet to the Data Link layer--in this case, IP. At the
end of the frame is something called a Frame Check Sequence field
(FCS) that houses the answer to the cyclic redundancy check (CRC).
8.
Once the frame is completed, the frame is handed down to the Physical
layer to be put on the physical medium (in this example, twisted-pair
wire) one bit at a time.
9.
Every device in the collision domain receives these bits and builds the
frame. They each run a CRC and check the answer in the FCS field. If
the answers don't match, the frame is discarded. If the CRC matches
(which, in this example, is the router's interface Ethernet 0), then the
hardware destination address is checked to see if it matches too. If it's
a match, then the Ether-Type field is checked to find the protocol used
at the Network layer.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com