RPKI Origin Validation and Route Leak Prevention
What origin validation proves
RPKI (Resource Public Key Infrastructure) lets resource holders publish signed Route Origin Authorizations (ROAs). A relying-party validator checks the objects and produces validated payloads (VRPs). A VRP associates a prefix, a maximum prefix length and an authorized origin ASN. BGP origin validation compares a route against these payloads. It does not authenticate every AS in AS_PATH or establish reachability. RFC 6811 defines origin validation; RFCs 8481 and 8893 clarify policy and export handling.
Evaluate three validation states
Use only this invented validated payload: 192.0.2.0/24, maximum length 25, origin AS 64496. A route is Valid if any covering VRP authorizes both length and origin. If at least one VRP covers the route but none authorizes both, it is Invalid. Without a covering VRP it is NotFound.
Route Origin State192.0.2.0/24 64496 Valid192.0.2.128/25 64496 Valid192.0.2.0/26 64496 Invalid192.0.2.0/24 64497 Invalid198.51.100.0/24 64497 NotFoundThese rows are offline classification examples, not real ROAs or announcements. With multiple VRPs, a single matching authorization is enough for Valid. NotFound means lack of covering evidence, not proof of wrongdoing.
Authorization is different from export permission
A leak is propagation beyond an intended routing relationship. A route with a Valid origin can still be leaked. For a simple fictional non-transit network, export own and authorized customer routes to upstreams or lateral peers, but do not export provider- or peer-learned routes to those neighbors. BGP Roles and Only to Customer (OTC) in RFC 9234 add relationship-aware signaling and checks where supported. Internet Routing Registry (IRR) data can help construct filters, but differs from cryptographic RPKI validation and needs source and freshness checks. Combine explicit prefix/source filters, origin validation, sensible route-count limits and monitoring.
Choose and verify a defensive policy
An example reviewed policy rejects Invalid routes and applies ordinary authorization checks to Valid and NotFound routes. This is a policy choice, not a claim that the protocol automatically drops Invalid routes. Track validator freshness, cache status, state counts, authorized prefixes and expected neighbors. When an unexpected route appears, preserve sanitized evidence, compare the effective origin and current authorization, check import/export policy, escalate to responsible operators, and verify recovery using independent observations. Do not make unreviewed live routing changes or relax filters to silence alarms.
Practice and limits
Classify the new fictional VRPs and route rows in the manual exercise, then apply the specified relationship policy. Explain why a Valid origin is not enough for export. The exercise models prefix coverage, maximum length, origin ASN and a simple export decision only; no signatures, real RPKI cache, BGP daemon or packet delivery are tested. The next chapter examines redistribution and convergence.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
RPKI Origin Validation and Route Leak Prevention Quiz
Apply advanced BGP concepts to fictional routing evidence.
A VRP covers 192.0.2.0/24 with max length 25 and origin 64496. Route 192.0.2.0/26 has that origin. State?
A route has no covering VRP. Which state applies?
Two covering VRPs exist; one authorizes both origin and length. State?
Can a route with Valid origin violate an export relationship?
Which evidence best supports reviewing an unexpected route?