CS FundamentalsHardGATE CS (PYQ pattern)

Hosts A (subnet 1) and B, C (subnet 2) are joined by router R; all ARP caches start empty, and a host that receives an ARP request caches the requester's mapping. Three packets are sent in order: A to B, then B's reply to A, then A to C. How many ARP messages (requests plus replies) are sent in total?

  1. A. 8
  2. B. 4
  3. C. 10
  4. D. 6

Correct answer: D. 6

A to B: A ARPs for R (2 messages), R ARPs for B (2). B learned R's MAC from R's request and R learned A's from A's, so the reply needs none. A to C: A has R cached, but R must ARP for C (2). Total 6. Forgetting the request-side caching adds 2 more for the reply (8).

More Computer Networks questions

Exams that ask this topic