GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Trace ARP request and reply addressing

3 questions solved the same way, newest first. Back to Computer Networks

How these are solved

ARP resolves local next-hop IP to MAC; request is broadcast while ordinary reply is unicast. Exclude mixed ARP/TCP statements requiring unrelated piggyback rules.

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

IP Addressing, Fragmentation & Address Resolution

Question 8, GATE 2021: S1: The destination MAC address of an ARP reply is a broadcast address. S2: The destination MAC address of an ARP request is a broadcast address. Which is correct? A both true; B S1 true/S2 false; C S1 false/S2 true; D both false.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

In ordinary Ethernet ARP address resolution, a requester broadcasts because it does not yet know the target MAC address. The target learns the requester’s MAC from that request and unicasts the reply to it. Thus S1 is false and S2 true, C. This describes the normal request/reply exchange, not gratuitous ARP or implementation-specific unicast refresh traffic.

The requester already knows the destination IP but lacks its link-layer address. It therefore sends an Ethernet broadcast asking which host owns that IP. The request includes the requester's own sender MAC/IP, so the responding target has the information needed for a unicast reply. Do not confuse the IP address being resolved with the Ethernet destination field the statements ask about.

Original paper, page 15 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Resolving a local IP address with ARP

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

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Address resolution protocol

IP Addressing, Fragmentation & Address Resolution

Question 24, GATE 2005: ARP is used to find: A IP address from DNS; B default gateway IP; C IP corresponding to a MAC; D MAC corresponding to an IP.
Question 24, GATE 2005: ARP is used to find: A IP address from DNS; B default gateway IP; C IP corresponding to a MAC; D MAC corresponding to an IP.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

On an IPv4 local link, ARP resolves a known next-hop IPv4 address to the corresponding link-layer/MAC address, D. It does not perform DNS name resolution or discover the default gateway’s IP configuration.

To send a local-link Ethernet frame, the sender needs a destination MAC address. Given the next-hop IPv4 address, ARP requests who owns it and learns the corresponding MAC, D. Name-to-IP lookup is DNS; determining which gateway to use comes from routing/configuration; reverse resolution is a different function. For a remote destination, the resolved MAC normally belongs to its next-hop router.

Original paper, page 3