BGP Origin Validation and Best Path Selection Are Two Distinct Network Decisions
A technical explainer from the Protocol in Code series highlights a common misconception among network engineers: that a route winning BGP's best path selection also means it is authorized. BGP best path selection evaluates preferences such as local preference, AS_PATH length, and MED to pick a winning route, while origin validation separately checks whether the originating AS is actually permitted to announce that prefix. RPKI origin validation addresses this second question by comparing a BGP route against Validated ROA Payloads, which cryptographically assert which AS is allowed to originate a given prefix range. A route can emerge as the best path and still constitute a hijack if no valid ROA authorizes its origin AS. The article walks through a minimal Python implementation to illustrate how the two decisions rely on entirely separate data structures and logic.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in