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?
- A. 4
- B. 3
- C. 5
- 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
- A receiver acknowledges every second full-sized segment immediately and otherwise delays an ACK until a 200 ms timer fires. A sender…
- A TCP sender has LastByteSent = 7000 and LastByteAcked = 5000, cwnd = 4000 bytes, and the receiver's advertised window is 3000 bytes. How…
- A TCP receiver has a 65,536-byte receive buffer. It has received data up to byte 150,000 (LastByteRcvd) and the application has read up to…
- A sender uses path MTU discovery: it sends packets with the DF bit set, starting at 1500 bytes. The links along the path have MTUs 1500…
- Hosts A (subnet 1) and B, C (subnet 2) are joined by router R; all ARP caches start empty, and a host that receives an ARP request caches…
- In an RSA system p = 17, q = 11 and the public exponent is e = 7. What is the ciphertext for the plaintext m = 50, and what is the private…