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)?

  1. A. R1
  2. B. R2
  3. C. R4
  4. 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

Exams that ask this topic