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?

  1. A. 5
  2. B. 3
  3. C. 2
  4. 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

Exams that ask this topic