CS FundamentalsVery hardProduct company interview · GATE level
Hosts A, B, C, D and E are each attached to their own port of one Ethernet switch whose MAC table is empty. These frames are then sent in order (source -> destination): A -> B, B -> A, C -> A, D -> C, A -> E, E -> D, B -> E, and finally C sends a broadcast frame. How many of these eight frames are delivered to host D's port?
- A. 5
- B. 3
- C. 2
- D. 4
Correct answer: D. 4
The switch learns the source of every frame and floods a frame only if the destination is unknown or broadcast. A -> B: B unknown, flooded (D sees it). B -> A and C -> A: A is known, forwarded only to A. D -> C: C is known, forwarded only to C. A -> E: E has not sent anything yet, so it is flooded (D sees it). E -> D: D is known, delivered to D. B -> E: E is now known, forwarded only to E. The broadcast from C reaches every port, including D. D's port therefore carries 4 frames: two unknown-unicast floods, one frame addressed to D, and the broadcast.
More Computer Networks questions
- A leaky bucket holds at most 5 packets. In each clock tick, newly arrived packets are first placed in the bucket (those that do not fit…
- A browser with nothing cached fetches a page made of a base HTML file and 9 small images, all on one server. Resolving the server's name…
- For the host 172.29.115.201/21, what is the directed broadcast address of its subnet and how many usable host addresses does the subnet…
- The block 10.0.0.0/8 is cut into /19 subnets numbered 0, 1, 2, … in address order (subnet 0 is 10.0.0.0/19). What is the network address…
- A router's forwarding table holds 131.16.0.0/12 → R1, 131.28.0.0/14 → R2, 131.30.0.0/15 → R3, 131.30.128.0/17 → R4 and a default route →…
- A router must summarise 198.51.96.0/21, 198.51.104.0/22 and 198.51.110.0/23 into the smallest single prefix. Which prefix is it, and how…