CS FundamentalsVery hardGATE CS (PYQ pattern)

A learning switch starts with an empty table. Frames arrive as (source, destination, ingress port): (A,B,1), (B,A,2), (C,E,3), (A,C,1), (D,F,4), (B,D,2), (E,A,5), (F,E,6), (G,B,7), (B,G,2). The switch learns the source address on every frame before forwarding, and floods a frame whose destination has not yet been seen as a source. How many frames are flooded?

  1. A. 4
  2. B. 3
  3. C. 5
  4. D. 6

Correct answer: B. 3

A frame is flooded when its destination has not appeared as a source in an earlier frame (the frame's own source is learned first). Going through the ten frames and checking each destination against the table built so far gives 3 floods.

More Computer Networks questions

Exams that ask this topic