1.6 Physical and IP Addresses

Each node has a physical address for the specific hardware device that connects it to a network. For instance, a physical address on an Ethernet network is a 6-byte numeric value, such as 08-00-14-57-69-69. It is assigned by the manufacturer of the Ethernet interface hardware. X.25 networks, which conform to the specification of the ITU-T (International Telecommunications Union, Telecommunications sector), previously CCITT, use the X.121 standard for physical addresses, which consist of 14-digit numbers.

NOTE:Physical addresses are also called media access control (MAC) addresses. Throughout the rest of this section, all references to MAC or physical addresses assume physical addresses on Ethernet, token ring, or FDDI networks.

Because IP uses a 32-bit address and Ethernet uses a 48-bit Ethernet address, there is a conflict. To associate the IP address to a physical address on an Ethernet network, a mapping must occur between the two types. The address resolution protocol (ARP) provides a mapping between the two different forms of addresses.

1.6.1 IP Address to Physical Address Translation

Each physical medium has its own physical address for nodes on that medium. The physical addresses are also called MAC addresses. Ethernet and token ring networks use 6-byte MAC addresses. ARCnet uses a 1-byte MAC address.

IP addresses are independent of the hardware. When an IP packet is transmitted on the network, it is first encapsulated within the physical frame used by that network. Figure 1-9 shows an IP packet encapsulated in an Ethernet frame. The IP packet contains an Internet address for a node, but the Ethernet frame must have a physical address for it to be delivered on the data-link network. Therefore, the sending node must be able to map an IP address to a physical hardware address.

Figure 1-9 Packet Encapsulated in an Ethernet Frame

An IP packet encapsulated in an Ethernet frame

Mapping Internet Addresses to Physical Addresses

When an IP address is mapped to a physical, or MAC, address, ARP is used on broadcast networks such as Ethernet, token ring, and ARCnet. When a node uses IP to send a packet, it must determine which physical address on the network corresponds to the destination IP address. To find the physical address, the node broadcasts an ARP packet containing the destination IP address. The node with the specified destination IP address sends its physical address back to the requesting node.

Address Resolution Cache

To speed packet transmissions and reduce the number of broadcast requests that must be examined by every node on the network, each node keeps an address resolution cache. Each time the node broadcasts an ARP request and receives a response, it creates an entry in its address resolution cache. The entry maps the IP address to the physical address.

When the node sends an IP packet, it looks up the IP address in its cache and uses the physical address, if found. The node broadcasts an ARP request only if the IP address is not in its cache.

ARP Cache Update Timeout

ARP Cache Update Timeout is a configurable parameter used to specify the timeout period for an entry to be removed from the ARP table, if the entry has not been updated. The ARP Cache Update Timeout value should be greater than or equal to the ARP Cache Stale Timeout value.

ARP Cache Stale Timeout

ARP Cache Stale Timeout ia a configurable parameter used to specify the timeout period for an entry to be removed from the ARP table, if the entry has not been used for some time. The ARP Cache Stale Timeout value should be less than or equal to the ARP Cache Update Timeout value.