📝 Address Resolution Protocol(ARP) in Link Layer Addressing (26 MCQs)
Mapping IPv4 Addresses to Local Link Addresses
Address Resolution Protocol (ARP) enables a device on an IPv4 local network to discover the link-layer address associated with a known IPv4 address. It supports delivery when the sender knows the next hop's IP address but needs its Ethernet MAC address. ARP is used between neighboring devices on the same broadcast domain. It operates locally and does not perform routing between networks.
ARP Cache and Request-Reply Messages
Hosts maintain an ARP cache containing recently learned IPv4-to-MAC mappings. If an entry is missing, the host broadcasts an ARP request asking which interface owns the target IPv4 address. The target normally returns an ARP reply containing its MAC address, allowing the sender to update its cache. The mapping is temporary.
Resolving the Next Hop Before Frame Transmission
The sender first checks its routing decision. If the destination is on the local subnet, it resolves the destination host's IPv4 address; if remote, it resolves the default gateway's address instead. It broadcasts an ARP request, receives a reply, stores the mapping, and transmits the IP packet in an Ethernet frame.
Finding a Neighbor at 192.0.2.20
A host at 192.0.2.10 needs to send to 192.0.2.20 on the same subnet but has no cache entry. It broadcasts an ARP request for 192.0.2.20. The device owning that address replies with its MAC address, for example 00:AA:BB:CC:DD:EE, which the sender uses in the frame.
ARP Between IP Routing and Ethernet Delivery
ARP connects network-layer addressing with link-layer framing in IPv4 networks. IP determines whether a destination is local or must be reached through a router; ARP then resolves the relevant next-hop IPv4 address to a local MAC address. IPv6 does not use ARP; it uses Neighbor Discovery with ICMPv6 on the local link.
Correcting Common ARP Misunderstandings
'ARP finds the MAC address of every remote internet host' is incorrect; it resolves only a next hop on the local link. 'ARP translates MAC addresses into IP addresses' reverses the usual mapping. 'ARP is used by IPv6' is false because IPv6 Neighbor Discovery performs the corresponding functions for local IPv4 delivery.
Tracing ARP Requests, Replies and Cache Use
For examinations, identify the IPv4 address being resolved and determine whether it belongs to the destination host or the default gateway. Remember that requests are broadcast on the local link and replies are normally unicast. Distinguish ARP messages from the IP packet subsequently carried by the Ethernet frame for Ethernet delivery.
ARP and Neighbor Resolution Terms
- ARP - IPv4 address resolution protocol.
- ARP cache - Stored recent address mappings.
- ARP request - Broadcast address ownership query.
- ARP reply - Response containing target MAC address.
- Next hop - Immediate receiving router or host.
- Neighbor Discovery - IPv6 address resolution mechanism.
📝 All Address Resolution Protocol(ARP) in Link Layer Addressing MCQs
Q1. What is the primary purpose of ARP in an IPv4 network?
📖 Explanation: ARP’s core function is to resolve a known IPv4 address into the hardware address used on the local Ethernet segment. When a host knows the destination IP but not the MAC, it broadcasts an ARP request; the reply provides the needed MAC, enabling frame delivery on the LAN.
Q2. At which OSI layer does ARP operate?
📖 Explanation: ARP works between the Network layer (where IP addresses reside) and the Data Link layer (where MAC addresses are used). It translates layer‑3 addresses to layer‑2 addresses, so it is considered a protocol of the Data Link layer, even though it interacts closely with the Network layer.
Q3. In IPv4, ARP resolves IP addresses to what type of address?
📖 Explanation: The ARP protocol is designed specifically for IPv4 networks to map a 32‑bit IP address to a 48‑bit Ethernet MAC address. This mapping allows the host to encapsulate IP packets inside Ethernet frames for delivery on the local LAN.
Q4. If host A sends an ARP request for IP X and receives no reply, what can be inferred about host X?
📖 Explanation: An ARP request is a broadcast limited to the local broadcast domain. If no reply arrives, it usually means the target IP is not present on the same LAN segment; hosts on a different subnet would not receive the broadcast, so the request times out without a reply.
Q5. A network uses an ARP cache timeout of 20 minutes. If a host changes its MAC address, after how many minutes will other hosts likely have an outdated mapping?
📖 Explanation: ARP caches retain entries until the timeout expires. When a host changes its MAC address, other hosts will continue using the old mapping until the cached entry ages out. With a 20‑minute timeout, the stale entry persists for up to 20 minutes, after which a new ARP request refreshes the mapping.
Q6. When a router receives an ARP request destined for its own IP address, what is the cause‑effect of its reply?
📖 Explanation: The router recognizes that the target IP matches one of its own interfaces. In response, it sends an ARP reply containing its MAC address, enabling the requesting host to direct frames to the router for subsequent IP communication. This reply does not alter routing tables or forward the request further.
Q7. Suppose two hosts A and B have the same IP address due to misconfiguration. What will ARP behavior indicate?
📖 Explanation: When duplicate IP addresses exist, ARP requests may elicit responses from both hosts, causing address‑conflict detection mechanisms (such as Gratuitous ARP) to generate error notifications. The resulting confusion often leads to network instability, and hosts may log duplicate‑address warnings.
Q8. If ARP spoofing is performed to redirect traffic, what is the logical consequence for the victim's network traffic?
📖 Explanation: In an ARP spoofing attack, the attacker sends forged ARP replies that associate the victim’s IP (often the default gateway) with the attacker’s MAC address. Consequently, the victim’s frames are mistakenly delivered to the attacker, allowing interception, modification, or redirection before possibly being forwarded onward.
Q9. In a switched network, ARP broadcasts are limited to which segment?
📖 Explanation: Switches forward broadcast frames, such as ARP requests, only within the VLAN to which the originating port belongs. This containment defines the broadcast domain, ensuring that ARP traffic does not traverse unrelated VLANs or network segments unless a router or bridge explicitly forwards it.
Q10. When a host’s ARP cache is full, what happens to the oldest entry?
📖 Explanation: ARP caches have limited storage; when the cache reaches capacity, the host typically employs a least‑recently‑used (LRU) eviction policy. The oldest or least‑used entry is discarded, freeing space for a new mapping obtained via a fresh ARP request, maintaining cache freshness.
Q11. If a host receives an ARP reply that does not match any pending request, what can be deduced?
📖 Explanation: An unsolicited ARP reply, when no corresponding request was sent, often indicates a gratuitous ARP used for address conflict detection or a malicious attempt such as ARP spoofing. The host may treat it as suspicious, potentially logging a warning, because legitimate ARP replies are expected only after a request.
Q12. Compare the behavior of ARP in IPv4 with Neighbor Discovery in IPv6.
📖 Explanation: ARP in IPv4 relies on Ethernet broadcast frames, while IPv6’s Neighbor Discovery replaces broadcast with link‑local multicast, reducing unnecessary traffic. Both protocols map network‑layer addresses to link‑layer addresses, but ND also incorporates router discovery and address autoconfiguration, offering richer functionality than ARP.
Q13. Evaluate the security implications of static ARP entries versus dynamic entries.
📖 Explanation: Static ARP entries lock an IP‑MAC binding, eliminating the chance for forged ARP replies, but they require manual updates whenever a device changes its MAC, making network management cumbersome. Dynamic entries adapt automatically but can be targeted by spoofing attacks, so administrators must balance security with operational flexibility.
Q14. Differentiate between gratuitous ARP and a regular ARP request.
📖 Explanation: A gratuitous ARP is broadcast without a preceding request, typically to announce a new IP‑MAC association or to detect address conflicts. In contrast, a regular ARP request is sent when a host needs to discover the MAC address for a known IP, awaiting a specific reply from the owner of that IP.
Q15. Analyze the impact on network performance of ARP cache timeout values being too short.
📖 Explanation: When timeout values are excessively short, hosts discard valid entries quickly, forcing repeated ARP requests for the same destinations. This generates additional broadcast traffic, consumes bandwidth, and can degrade overall network performance, especially on congested LANs, while offering little benefit in terms of freshness.
Q16. Contrast the use of ARP proxy in routers versus ARP proxy in bridges.
📖 Explanation: Routers can employ proxy ARP to answer ARP requests on behalf of hosts in another subnet, effectively making the remote network appear local. Bridges may also use proxy ARP to conceal entire segments, but the primary distinction lies in the router’s ability to route packets after responding, whereas a bridge simply forwards frames.
Q17. Assess how ARP cache poisoning differs from DHCP rogue server attacks.
📖 Explanation: ARP cache poisoning directly corrupts the IP‑to‑MAC table, causing traffic to be misdirected to an attacker’s MAC. A DHCP rogue server, however, supplies incorrect IP configuration parameters (such as DNS or default gateway), influencing traffic at a higher layer. Both undermine network integrity but operate at different protocol layers.
Q18. Compare the overhead introduced by ARP in a LAN with 100 hosts versus 1000 hosts.
📖 Explanation: ARP traffic scales with the square of the number of hosts because each host may broadcast an ARP request that all others receive. Consequently, a LAN with 1000 hosts generates roughly ten times more ARP broadcast frames than one with 100 hosts, leading to significantly higher processing and bandwidth consumption.
Q19. Evaluate the effectiveness of port security features that limit ARP entries.
📖 Explanation: Port security can restrict the number of MAC addresses learned on a switch port, limiting the impact of ARP spoofing by preventing unknown MACs from being accepted. However, overly strict limits may block legitimate devices, resulting in connectivity issues, so administrators must balance security with operational requirements.
Q20. Apply the ARP process to explain how a host discovers the MAC address of the default gateway.
📖 Explanation: When a host needs to send traffic to an external network, it first determines the MAC address of its configured default gateway. It does this by broadcasting an ARP request that contains the gateway’s IP address; the gateway replies with its MAC, allowing the host to encapsulate subsequent frames for outbound delivery.
Q21. Synthesize a scenario where ARP and VLAN tagging interact, describing the sequence of frames.
📖 Explanation: A host in VLAN 10 sends an ARP request without a tag; the switch receives the frame on the access port, inserts the VLAN 10 tag, and forwards it to other ports in the same VLAN. The ARP reply follows the reverse path, with the switch removing the tag before delivering it to the originating host.
Q22. Explain how ARP can be used to implement load balancing across multiple servers sharing a virtual IP.
📖 Explanation: When several servers share a virtual IP, each can respond to ARP requests with its own MAC address in a round‑robin fashion. Clients cache the returned MAC for a short period, causing traffic to be distributed among the servers as the ARP cache expires and new replies are received, achieving simple load balancing.
Q23. Apply the principle of ARP cache expiration to design a timer algorithm that balances freshness and overhead.
📖 Explanation: An adaptive algorithm monitors the rate of ARP traffic and adjusts the timeout dynamically: high traffic shortens the timer to keep entries fresh, while low traffic extends it to reduce broadcast frequency. This approach maintains up‑to‑date mappings without overwhelming the network with unnecessary ARP requests.
Q24. Explain why ARP operates on a broadcast medium and discuss implications for network segmentation.
📖 Explanation: ARP uses Ethernet broadcast because the requesting host does not know which device holds the target IP, so it must reach every node in the local segment. This reliance on broadcast underscores the importance of segmentation (e.g., VLANs) to confine ARP storms and limit unnecessary traffic across the broader network.
Q25. Synthesize the steps a switch takes when it learns MAC addresses via ARP traffic, and how this influences forwarding tables.
📖 Explanation: When an ARP request arrives, the switch records the source MAC and incoming port in its Content‑Addressable Memory (CAM) table. This learning enables the switch to forward subsequent frames directly to the correct port, reducing flooding. ARP thus indirectly populates the forwarding database, improving overall efficiency.
Q26. Apply the concept of ARP spoofing to outline a mitigation strategy using Dynamic ARP Inspection.