Infrastructure

R1 learns 10.1.1.0/24 from two eBGP neighbors with default weight and local preference. The ISP-A path has AS_PATH length 3 and origin IGP; the ISP-B path has AS_PATH length 2 and origin incomplete. Which path does R1 install?

Show the answer

Correct answerB. Path via ISP-B, because AS_PATH length is compared before origin type

AWhy not this: Router ID is a late tie-breaker, used only when all earlier attributes are equal.

BWhy this is right: Shortest AS_PATH is evaluated before origin, so the length-2 path through ISP-B is chosen.

CWhy not this: Origin is compared only after AS_PATH length, so this advantage never comes into play.

DWhy not this: BGP does not load-balance by default, and these paths differ in AS_PATH length anyway.

With weight and local preference tied, BGP prefers the shortest AS_PATH, and that step comes before origin type, so ISP-B wins. The origin step is never reached, so IGP origin's advantage does not apply.