background image
256
Chapter 5
IP Routing
10.
The packet is pulled from the frame, and the frame is discarded. The
packet is handed to the protocol listed in the Ether-Type field--it's
given to IP.
11.
IP receives the packet and checks the IP destination address. Since
the packet's destination address doesn't match any of the addresses
configured on the receiving router itself, the router will look up the
destination IP network address in its routing table.
12.
The routing table must have an entry for the network 172.16.20.0, or
the packet will be discarded immediately and an ICMP message will
be sent back to the originating device with a "destination network
unavailable" message.
13.
If the router does find an entry for the destination network in its table,
the packet is switched to the exit interface--in this example, interface
Ethernet 1.
14.
The router packet-switches the packet to the Ethernet 1 buffer.
15.
The Ethernet 1 buffer needs to know the hardware address of the des-
tination host and first checks the ARP cache. If the hardware address
of Host B has already been resolved, then the packet and the hardware
address are handed down to the Data Link layer to be resolved.
16.
If the hardware address has not already been resolved, the router sends
an ARP request looking for the hardware address of 172.16.20.2.
17.
Host B responds with its hardware address, and the packet and destina-
tion hardware address are both sent to the Data Link layer for framing.
18.
The Data Link layer creates a frame with the destination and source
hardware address, Ether-Type field, and FCS field at the end of the
frame. The frame is handed to the Physical layer to be sent out on
the physical medium one bit at a time.
19.
Host B receives the frame and immediately runs a CRC. If the answer
matches what's in the FCS field, the hardware destination address is
then checked. If the host finds a match, the Ether-Type field is then
checked to determine protocol where the packet should be handed to
at the Network layer--IP, in this example.
20.
At the Network layer, IP receives the packet and checks the IP desti-
nation address. Since there's finally a match made, the protocol field
is checked to find out whom the payload should be given to.
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com