Chapter 8.1 Address Mapping Outline 8.2 The ARP Protocol
8.3 ATM ARP
8.4 ARP Package
TCP/IP Protocol Suite 3
8-1 ADDRESS MAPPING
The delivery of a packet to a host or a router requires
two levels of addressing: logical and physical. We need to be able to map a logical address to its corresponding physical address and vice versa. These can be done using either static or dynamic mapping.
TCP/IP Protocol Suite 4
Topics Discussed in the Section Static Mapping Dynamic Mapping
TCP/IP Protocol Suite 5
8-2 ADDRESS MAPPING •Anytime a host or a router has an IP datagram to send to another host or router, it has the logical (IP) address of the receiver. • But the IP datagram must be encapsulated in a frame to be able to pass through the physical network. •This means that the sender needs the physical address of the receiver. •A mapping corresponds a logical address to a physical address. • ARP accepts a logical address from the IP protocol, maps the address to the corresponding physical address and pass it to the data link layer.
TCP/IP Protocol Suite 6
Topics Discussed in the Section Packet Format Encapsulation Operation Proxy ARP
TCP/IP Protocol Suite 7
Figure 8.1 Position of ARP in TCP/IP protocol suite
TCP/IP Protocol Suite 8
Figure 8.2 ARP operation
broadcast
TCP/IP Protocol Suite 9
Figure 8.3 ARP packet
TCP/IP Protocol Suite 10
Hardware type: Type of network. Ethernet-Type 1 Protocol type: If IPv4, then 0800H Hardware length: Length of physical address. For ethernet:6 Protocol length: Length of logical address. For IPv4, it is 4 Operation:Type of packet. ARP REQ-1,REP-2 Sender h/w address: physical address of sender Sender protocol address: Logical address of sender Target h/w address: : physical address of target Target protocol address: Logical address of target
TCP/IP Protocol Suite 11
Figure 8.4 Encapsulation of ARP packet
Type: 0x0806
Preamble Destination Source
Type Data CRC and SFD address address 8 bytes 6 bytes 6 bytes 2 bytes 4 bytes
TCP/IP Protocol Suite 12
Note
An ARP request is broadcast;
an ARP reply is unicast.
TCP/IP Protocol Suite 13
Figure 8.5 Four cases using ARP
TCP/IP Protocol Suite 14
Figure 8.7 Proxy ARP
Request
TCP/IP Protocol Suite 15
7.3 RARP RARP finds the logical address for a machine that only knows its physical address.
This if often encountered on thin-client workstations. No disk, so when
machine is booted, it needs to know its IP address (don’t want to burn the IP address into the ROM).
RARP requests are broadcast, RARP replies are unicast.
If a thin-client workstation needs to know its IP address, it probably
also needs to know its subnet mask, router address, DNS address, etc. So we need something more than RARP. BOOTP, and now DHCP have replaced RARP.