ARP caches are kept on all operating systems in an IPv4 Ethernet network. Every time a device requests
a MAC address to send data to another device connected to the LAN, the device verifies its ARP cache to
see if the IP-to-MAC-address connection has already been completed. If it exists, then a new request is
unnecessary. However, if the translation has not yet been carried out, then the request for network ad-
dresses is sent, and ARP is performed.
An ARP cache size is limited by design, and addresses tend to stay in the cache for only a few minutes. It
is purged regularly to free up space. This design is also intended for privacy and security to prevent IP
addresses from being stolen or spoofed by cyberattackers. While MAC addresses are fixed, IP addresses
are constantly updated. In the purging process, unutilized addresses are deleted; so is any data related
to unsuccessful attempts to communicate with computers not connected to the network or that are not
even powered on.
What is address resolution protocol's relationship with DHCP and DNS? How do they differ?
ARP is the process of connecting a dynamic IP address to a physical machine's MAC address. As such, it is
important to have a look at a few technologies related to IP. As mentioned previously, IP addresses, by
design, are changed constantly for the simple reason that doing so gives users security and privacy.
However changes on IP addresses should not be completely random. There should be rules that allocate
an IP address from a defined range of numbers available in a specific network. This helps prevent issues,
such as two computers receiving the same IP address. The rules are known as DHCP or Dynamic Host
Configuration Protocol.
IP addresses as identities for computers are important because they are needed to perform an internet
search. When users search for a domain name or Uniform Resource Locator (URL), they use an alphabet-
ical name. Computers, on the other hand, use the numerical IP address to associate the domain name
with a server. To connect the two, a Domain Name System (DNS) server is used to translate an IP ad-
dress from a confusing string of numbers into a more readable, easily understandable domain name,
and vice versa.
What is ARP in Networking Useful For?
ARP is necessary because the software address (IP address) of the host or computer connected to the
network needs to be translated to a hardware address (MAC address). Without ARP, a host would not
be able to figure out the hardware address of another host. The LAN keeps a table or directory that
maps IP addresses to MAC addresses of the different devices, including both endpoints and routers on
that network.
This table or directory is not maintained by users or even by IT administrators. Instead, the ARP protocol
creates entries on the fly. If a user's device does not know the hardware address of the destination host,
the device will send a message to every host on the network asking for this address. When the proper
destination host learns of the request, it will reply back with its hardware address, which will then be
stored in the ARP directory or table. If ARP is not supported, manual entries can be made to this direc-
tory.