ARP___CN
ARP___CN
Sangeetha.K.P
April 8, 2025
Devices have both IP addresses (e.g., IA, IB) and MAC addresses
(e.g., HA, HB).
Communication over the network uses MAC addresses, but software
works with IP addresses.
If A only knows B’s IP (IB), it needs to find B’s MAC address (HB).
This process is called the address resolution problem.
Address resolution is needed at:
Final step – to reach the destination machine.
Intermediate steps – to reach the next router.
TCP/IP uses different techniques for IPv4 and IPv6.
How it Works:
IP address includes the hardware (MAC) address in the host portion.
To get the MAC address, just extract the last part (octet) of the IP.
Example: IP 192.5.48.3 → MAC address = 3
No table or broadcast is needed — it’s a direct calculation.
Simple Mapping Function:
HA = f(IA) → Hardware Address = Function(IP Address)
In our example, f(192.5.48.3) = 3
Advantages:
Extremely fast and efficient (only a few machine steps).
Easy to add new computers without affecting existing ones.
Simple and human-readable logic.
Figure: The ARP message format when used to map an IPv4 address to an
Ethernet address.
Instructions: Answer the following question briefly but clearly. You may
use diagrams or examples. Submit your response in 10 minutes.
Question:
A company has a computer with two network interfaces (multi-homed
computer). One interface gets an IP address via DHCP, and the other is
manually configured.
1 Explain how ARP helps this computer communicate with other hosts
in both networks.
2 What is the difference in how BOOTP and DHCP assign the IP
address for the dynamic interface?
3 Why might having a multi-homed setup require special care in
routing?