CS FundamentalsVery hardGATE CS

A 4-port learning switch has an empty MAC table. Hosts A, B, E, C and D are attached as follows: A and F on port 1 (through a hub), B and E on port 2 (through a hub), C on port 3 and D on port 4; host G does not exist on this switch. The following frames (source -> destination) arrive in order: A->B, B->A, C->E, E->B, D->A, A->E, B->E, E->D, F->A, D->F, A->F, C->G, D->G, B->C. The switch first learns the source address, then looks up the destination. How many frames are flooded, how many are forwarded on one port, and how many are filtered (not forwarded)?

  1. A. 4 flooded, 6 forwarded, 4 filtered
  2. B. 4 flooded, 5 forwarded, 5 filtered
  3. C. 3 flooded, 7 forwarded, 4 filtered
  4. D. 5 flooded, 5 forwarded, 4 filtered

Correct answer: A. 4 flooded, 6 forwarded, 4 filtered

Tracing the table: flooded frames are those whose destination is not yet learned (4), frames whose destination sits on the arrival port are filtered (4) and the remaining 6 are forwarded to a single port. Hubs make A and F share a port and B and E share a port, so frames between those pairs are filtered, and frames to the non-existent G are always flooded.

More Computer Networks questions

Exams that ask this topic