GATE / CS ARCHIVE

GATE CSE 2019 / QUESTION 29

Resolving a local IP address with ARP

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2019 paper

GATE 2019, Q29 2 marks · MCQ
Not in GATE 2027 syllabusReport issue

IP Addressing, Fragmentation & Address Resolution

Question 29, GATE 2019: In an IP-over-Ethernet network, X needs the MAC address of Y in the same subnet. Choose between sending an ARP request to the gateway IP (A), gateway MAC (B), local broadcast MAC (C), or local broadcast IP (D).
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. The task is address resolution: X knows Y's IP address but needs the link-layer destination address for an Ethernet frame on the local network.
2. ARP carries the target IP address in its request. Since X does not yet know Y's MAC address, it sends the Ethernet frame to FF:FF:FF:FF:FF:FF, the broadcast MAC address, so local hosts can inspect the request.
3. Y recognizes its own IP in the request and normally replies with its MAC address. X can then cache the mapping and send ordinary unicast Ethernet frames to Y.
4. Therefore C describes the needed technique. Neither gateway option is the ordinary same-subnet procedure: a router is used for off-subnet forwarding, not required to identify this local neighbor.
5. D confuses protocol layers. An ARP request is carried directly in an Ethernet frame; it is not an IP datagram sent to a broadcast IP destination. Its broadcast delivery is at the MAC layer.

Original paper, page 10 · Answer key