Consider a local LAN with 3 hosts: A, B, and C. All ARP caches are initially empty. The following communication sequence occurs:
- Host A sends a data packet to Host B.
- Host B sends a data packet to Host C.
- Host C sends a data packet to Host A.
- Host A sends a data packet to Host C.
Assume that in standard operation, receiving an ARP Request or an ARP Reply updates the receiver's ARP cache. Let be the total number of ARP frames (Requests + Replies) generated in this sequence under standard operation. Let be the total number of ARP frames generated if ARP caches were NOT updated by receiving an ARP Request (only by Replies). What is the value of ?
B
Step-by-Step Solution
Key idea: This is a casework tracing question testing the precise mechanics of ARP cache updates (RFC 826). Receiving an ARP Request updates the receiver's cache with the sender's details, which is a frequently overlooked detail.
Step 1: Calculate (Standard Operation).
- Step 1.1 (A B): A's cache is empty. A broadcasts ARP Request (1). B receives it and caches A. B unicasts ARP Reply (2). A receives it and caches B. (Total = 2)
- Step 1.2 (B C): B's cache has A, but not C. B broadcasts ARP Request (3). C receives it and caches B. C unicasts ARP Reply (4). B receives it and caches C. (Total = 4)
- Step 1.3 (C A): C's cache has B, but not A. C broadcasts ARP Request (5). A receives it and caches C. A unicasts ARP Reply (6). C receives it and caches A. (Total = 6)
- Step 1.4 (A C): A's cache already has C (from Step 1.3). A sends the data packet directly. (0 frames).
- Therefore, .
Step 2: Calculate (Non-standard: No cache update on Request).
- Step 2.1 (A B): A broadcasts Request (1). B does NOT cache A. B unicasts Reply (2). A caches B. (Total = 2)
- Step 2.2 (B C): B does not have C. B broadcasts Request (3). C does NOT cache B. C unicasts Reply (4). B caches C. (Total = 4)
- Step 2.3 (C A): C does not have A. C broadcasts Request (5). A does NOT cache C. A unicasts Reply (6). C caches A. (Total = 6)
- Step 2.4 (A C): A does not have C (since A didn't cache C from the request in 2.3). A broadcasts Request (7). C unicasts Reply (8). (Total = 8)
- Therefore, .
Step 3: Compute .
Answer: 2