CS FundamentalsHardGATE CS (PYQ pattern)
A router has four routes to the same prefix (local-pref, AS-path length, origin type, MED, learned via, IGP cost to next hop): R1 (100, 3, IGP, 10, eBGP, 20), R2 (200, 4, IGP, 0, iBGP, 30), R3 (200, 2, IGP, 50, iBGP, 5), R4 (200, 2, IGP, 20, eBGP, 40). Assuming all MEDs are comparable, which route does the standard BGP decision process select (highest local-pref, shortest AS path, lowest origin, lowest MED, eBGP over iBGP, lowest IGP cost)?
- A. R1
- B. R2
- C. R4
- D. R3
Correct answer: C. R4
Highest local-pref keeps R2, R3, R4 (200). Shortest AS path keeps R3 and R4 (2). Lowest MED prefers R4 (20 < 50) before IGP cost or eBGP/iBGP are consulted, so R4 wins even though R3 has the cheaper IGP path.
More Computer Networks questions
- A TCP sender starts with cwnd = 1 MSS and ssthresh = 16 MSS. Each round trip: if cwnd < ssthresh the window doubles (but never beyond…
- Two TCP flows (Tahoe and Reno) both start with cwnd = 1 MSS and ssthresh = 16 MSS and grow identically (doubling up to ssthresh, then +1…
- Using the Mathis approximation, throughput = 1.22 x MSS / (RTT x sqrt(p)), what is the steady-state throughput of a TCP flow with MSS =…
- A TCP sender sends a segment at t = 0 with RTO = 1 s, and no ACK ever arrives. After each timeout it retransmits and doubles the RTO, but…
- A sender transmits segments 1 to 10 (one MSS each); segments 4 and 7 are lost, all others arrive. The receiver sends one cumulative ACK…
- A server sends 40 segments to a client over a loss-free path. It starts with cwnd = 1 (slow start doubles it each round trip) and the…