CS FundamentalsVery hardGATE CS · Product company CS fundamentals

A BGP router (no vendor-specific weight, all routes learned over eBGP, all valid) has three routes to 203.0.113.0/24: X: LOCAL_PREF 200, AS_PATH length 4, MED 10 Y: LOCAL_PREF 100, AS_PATH length 2, MED 0 Z: LOCAL_PREF 200, AS_PATH length 3, MED 50 Which route is selected?

  1. A. Y
  2. B. Z
  3. C. X
  4. D. X or Z, chosen by lowest router ID

Correct answer: B. Z

Highest LOCAL_PREF is compared first, which eliminates Y despite its shortest path. Between X and Z the shorter AS_PATH wins, so Z; MED is compared only after AS path length (and normally only between routes from the same neighbouring AS).

More Computer Networks questions

Exams that ask this topic