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)?
- A. 4 flooded, 6 forwarded, 4 filtered
- B. 4 flooded, 5 forwarded, 5 filtered
- C. 3 flooded, 7 forwarded, 4 filtered
- 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
- A stop-and-wait link carries 1000-byte frames at 2 Mbps with a one-way propagation delay of 20 ms; ACK transmission time is negligible…
- A token bucket has capacity 3 MB, a token arrival rate of 6 MB/s, and starts full. The link allows a maximum output rate of 30 MB/s. For…
- A single-error-correcting Hamming code protects m data bits with r check bits satisfying 2^r >= m + r + 1. How many check bits are needed…
- A 12-bit CRC uses a generator polynomial of degree 12 with non-zero constant term. What are the probabilities that a burst error of length…
- A TCP connection runs over a 1 Gbps path with RTT = 100 ms. The 16-bit window field alone can express at most 65535 bytes; with the…
- A TCP connection sends at 40 Gbps. The sequence number counts bytes in a 32-bit field. Approximately how long does it take for the…