CS FundamentalsVery hardGATE CS (PYQ pattern)
Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost 4), B2-B4 (cost 38), B2-B5 (cost 38), B3-B4 (cost 38), B3-B5 (cost 38). Classic spanning tree runs (root = lowest ID; root port = lowest cost to the root, ties to the lower neighbour ID; the designated port of a link is on the switch with the lower cost to the root, ties to the lower ID; other non-root ports are blocked). Which switch has a blocked port facing B2?
- A. B4
- B. B1
- C. B2
- D. B3
Correct answer: A. B4
Blocked ports (switch towards neighbour): B4 towards B2, B2 towards B5, B4 towards B3, B3 towards B5. The link to B2 is the only one among those where B4 loses the designated-port election and the link is not its root port.
More Computer Networks questions
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8 (positions numbered 1 to 11 from the left). The…
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8. The received word (positions 1 to 11) is 10001100111…
- Which of these CRC generator polynomials, given as bit strings (leftmost bit is the highest power), is guaranteed to detect EVERY error…
- A 4 x 4 block of data bits is protected by even row and column parity. The received block (rows separated by /, each row followed by | and…
- 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)…
- A receiver acknowledges every second full-sized segment immediately and otherwise delays an ACK until a 200 ms timer fires. A sender…