Beruflich Dokumente
Kultur Dokumente
htm
1 of 5 3/27/2011 1:26 AM
How ARP Works file:///C:/Documents and Settings/Joe/Desktop/arp.php.htm
the data link layer where it is taken and placed within a data link
frame. Based on the IP address (and the subnet mask), your
computer should be able to figure out if the destination IP is a local IP
or not. If the IP is local, your computer will look in it's ARP table (a
table where the responses to previous ARP requests are cached) to
find the MAC address. If it's not there, then your computer will
broadcast an ARP request to find out the MAC address for the
destination IP. Since this request is broadcast, all machines on the
LAN will receive it and examine the contents. If the IP address in the
request is their own, they'll reply. On receiving this information, your
computer will update it's ARP table to include the new information and
will then send out the frame (addressed with the destination host's
MAC address).
If the IP is not local then the gateway (router) will see this
(remember, the ARP request is broadcast so all hosts on the LAN will
see the request). The router will look in it's routing table and if it has
a route to the destination network, then it will reply with it's own MAC
address.
2 of 5 3/27/2011 1:26 AM
How ARP Works file:///C:/Documents and Settings/Joe/Desktop/arp.php.htm
3 of 5 3/27/2011 1:26 AM
How ARP Works file:///C:/Documents and Settings/Joe/Desktop/arp.php.htm
4 of 5 3/27/2011 1:26 AM
How ARP Works file:///C:/Documents and Settings/Joe/Desktop/arp.php.htm
in it's routing table for the closest match and see that it is directly
connected to network 3, so there isn't a next hop router to send it to.
Router b will send out an ARP request to learn the MAC address for
200.0.3.2. When this is received, router b will send out the IP packet
(again, this is still addressed to 200.0.3.2) encapsulated within a data
link frame that is addressed to the MAC address of the destination
computer. The destination computer will see that the data link frame
is addressed to it and will pass the IP packet to the network layer. At
the network layer, the IP address will also match that of the computer
and the data from the IP packet will be passed up to the transport
layer. Each layer will examine the header and determine where to
pass it up to until eventually, the data reaches the application running
on the destination computer that has been waiting for the data.
frugal@tildefrugal.net
Copyright © Andrew Dacey
5 of 5 3/27/2011 1:26 AM