25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ARP packet reception<br />

When a host receives an ARP packet (either a broadcast request or a<br />

point-to-point reply), the receiving device driver passes the packet to the ARP<br />

module, which treats it as shown in Figure 3-40.<br />

Do I have the specified<br />

hardware type?<br />

No<br />

(discard)<br />

Do I speak the specified<br />

protocol?<br />

No<br />

(discard)<br />

Is the pair <br />

already in my table?<br />

No<br />

Am I the target protocol<br />

address?<br />

Is flag = false?<br />

No<br />

(discard)<br />

Figure 3-40 ARP: Packet reception<br />

The requesting host will receive this ARP reply, <strong>and</strong> will follow the same<br />

algorithm to treat it. As a result of this, the triplet for the desired host will be added to its lookup table<br />

(ARP cache). The next time a higher-level protocol wants to send a packet to that<br />

host, the ARP module will find the target hardware address <strong>and</strong> the packet will be<br />

sent to that host.<br />

Note that because the original ARP request was a broadcast in the network, all<br />

hosts on that network will have updated the sender's hardware address in their<br />

table (only if it was already in the table).<br />

122 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong><br />

No<br />

Is the opcode a request?<br />

No<br />

(discard)<br />

End<br />

Yes<br />

Yes<br />

Yes<br />

Yes<br />

Yes<br />

Yes<br />

Set flag = false.<br />

Update the table with the<br />

sender hardware address.<br />

Set flag=true.<br />

Add the triplet to<br />

table.<br />

Swap source <strong>and</strong> target<br />

addressesin the ARP<br />

packet. Put my local<br />

addresses in the source<br />

address fields. Send back<br />

ARP packet as an ARP<br />

reply to the requesting<br />

host.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!