26.10.2012 Views

Internet Security - Dang Thanh Binh's Page

Internet Security - Dang Thanh Binh's Page

Internet Security - Dang Thanh Binh's Page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

H<br />

Host<br />

H<br />

TCP/IP SUITE AND INTERNET STACK PROTOCOLS 29<br />

IP address<br />

(a) Request for the physical address by broadcast<br />

Physical address<br />

ARP<br />

request<br />

M1 M2 M3<br />

ARP<br />

reply<br />

Server<br />

Host Server<br />

(b) Reply for the physical address by unicast<br />

Figure 2.4 ARP dynamic mapping.<br />

S<br />

S<br />

Physical<br />

address<br />

Figure 2.4 shows an example of simplified ARP dynamic mapping. Let a host or router<br />

call a machine. A machine uses ARP to find the physical address of another machine by<br />

broadcasting an ARP request. The request contains the IP address of the machine for which<br />

a physical address is needed. All machines (M1, M2, M3, ...) on the network receive an<br />

ARP request. If the request matches a M2 machine’s IP address, the machine responds<br />

by sending a reply that contains the requested physical address. Note that Ethernet uses<br />

the 48-bit address of all 1’s (FFFFFFFFFFFF) as the broadcast address.<br />

A proxy ARP is an ARP that acts on behalf of a set of hosts. Proxy ARP can be used<br />

to create a subnetting effect. In proxy ARP, a router represents a set of hosts. When an<br />

ARP request seeks the physical address of any host in this set, the router sends its own<br />

physical address. This creates a subnetting effect. Whenever looking for the IP address of<br />

one of these hosts, the router sends an ARP reply announcing its own physical address.<br />

To make address resolution easy, choose both IP and physical addresses the same<br />

length. Address resolution is difficult for Ethernet-like networks because the physical<br />

address of the Ethernet interface is 48 bits long and the high-level IP address is 32 bits<br />

long. In order for the 48-bit physical address to encode a 32-bit IP address, the next<br />

generation of IP is being designed to allow 48-bit physical (hardware) addresses P to be<br />

encoded in IP addresses I by the functional relationship of P = f (I). Conceptually, it will<br />

be necessary to choose a numbering scheme that makes address resolution efficient by<br />

selecting a function f that maps IP addresses to physical addresses.<br />

As shown in Figure 2.5, the ARP software package consists of the following five<br />

components:

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

Saved successfully!

Ooh no, something went wrong!