RPKI and ROAs Explained: How Route Origin Authorizations Secure BGP
RPKI (Resource Public Key Infrastructure) cryptographically binds IP prefixes to their authorized originating Autonomous Systems using signed Route Origin Authorizations. Validating routers compare every BGP announcement against this signed data and classify it as Valid, Invalid, or NotFound per RFC 6811 - and an Invalid verdict means the route is dropped worldwide within minutes.
What Is RPKI and What Is Inside a Route Origin Authorization (ROA)?
RPKI (Resource Public Key Infrastructure) is a public key infrastructure built on top of the Regional Internet Registry (RIR) allocation system that allows IP prefix holders to cryptographically certify which AS is authorized to originate their prefixes in BGP. A Route Origin Authorization (ROA) is the signed object that carries this binding, formatted as a CMS-signed data structure per RFC 6482. The Autonomous System Number being certified and the routing it protects are covered in the BGP explained guide.
| ROA Field | Format | Meaning |
|---|---|---|
| Authorized Origin ASN | 32-bit ASN number | The only AS authorized to announce this prefix in BGP. |
| IPv4/IPv6 CIDR Prefix | CIDR notation (e.g. 192.0.2.0/24) | The exact IP prefix covered by this ROA. |
| Maximum Prefix Length (MaxLength) | Integer (equal to or greater than the prefix length) | The longest sub-prefix that may be announced; RFC 9319 recommends setting it equal to the prefix length. |
| RIR Trust Anchor Locator (TAL) | URI to the RIR's public key | Root of the RPKI trust chain, operated by each RIR (ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC). |
| Cryptographic Format | CMS Signed Object (RFC 6482) | The ROA is a cryptographically signed X.509-derived object, not a DNS record. |
| Relying Party Validator | Routinator, OctoRPKI, Fort, or cloud-managed RPKI | Software that fetches, validates, and caches ROAs into VRP sets. |
| Router Feed Protocol (RTR) | RFC 8210, port 323 or 8282 | Protocol that pushes validated ROA payloads (VRPs) from the RP cache to BGP routers. |
Read the table top to bottom and the enforcement logic falls out naturally: the ROA names exactly one origin ASN, covers exactly one prefix, and caps how specific a legitimate announcement may be. Everything a validating router decides comes from those three signed facts - it needs no WHOIS database, no manual filter lists, and no trust in any operator's word.
How Route Origin Validation (ROV) Works: Valid, Invalid, and NotFound States
ROV proceeds through 4 steps from signing to enforcement:
- Sign ROA in the RIR portal: The prefix holder creates a ROA in their RIR dashboard (ARIN Online, RIPE NCC LIR Portal, etc.), specifying the authorized origin ASN and prefix with or without a MaxLength.
- Fetch and validate via a Relying Party cache: The RP software (Routinator, OctoRPKI, or Fort) downloads all ROAs and certificates from the five RIR repositories, verifies the cryptographic signatures, and builds a Validated ROA Payload (VRP) set.
- Push validated ROA payloads via RTR: The RP cache serves the VRP set to BGP routers using the RPKI-to-Router protocol (RFC 8210) on port 323 or 8282, keeping the set synchronized in near-real time.
- Apply BGP route origin validation filtering: The BGP router compares each incoming announcement against its local VRP set and classifies it as Valid, Invalid, or NotFound, then applies the configured policy (accept, reject, or accept-with-tag).
The diagram below shows the router-side decision, and the table defines the three ROV states per RFC 6811:
| ROV State (RFC 6811) | Meaning | Router Behavior | What It Means for the Prefix Holder |
|---|---|---|---|
| Valid | A VRP exists matching both the prefix and the origin ASN, and the prefix length does not exceed MaxLength | Route is accepted and annotated with the validation state | The prefix is protected against origin hijacks and accidental mis-origination. |
| Invalid | A VRP exists for a covering prefix, but the origin ASN or prefix length violates it | Route is dropped on validating routers (potentially blackholing the prefix globally) | Urgent: the ROA must be updated to match the current announcement. |
| NotFound (Unknown) | No covering ROA exists for this prefix | Route is accepted (no ROA restriction applies) | The prefix is unprotected; creating a ROA would secure it. |
The asymmetry between Invalid and NotFound is the part operators most often get wrong. NotFound is the safe-but-weak default: the route is accepted everywhere, just unprotected. Invalid is the dangerous state, because a ROA exists and the announcement contradicts it - and enforcement is not optional anymore, since major transit providers and eyeball networks drop Invalid routes. The live status checker further down this page reports the current state for any prefix.
The ROA MaxLength Trap (RFC 9319) and RPKI vs BGPsec vs DNSSEC
RFC 9319 recommends setting the MaxLength field in a ROA equal to the exact prefix length you actually announce in BGP. Setting a wide MaxLength (such as /24 on a /16 ROA) lets an attacker forge your ASN in the AS_PATH and announce any more-specific /24 sub-prefix, which validating routers would accept because the ROA technically covers it. Always set MaxLength to the exact announced prefix length unless you genuinely announce sub-prefixes.
The table below positions RPKI against the other two integrity mechanisms it is usually confused with:
| Mechanism | Governing RFC | What It Protects | How It Works |
|---|---|---|---|
| RPKI ROA | RFC 6480, RFC 6811 | BGP route origin (which AS may announce a prefix) | Cryptographically signed ROAs validated by Relying Party caches and enforced on BGP routers. |
| BGPsec | RFC 8205 | Entire BGP AS_PATH (every hop, not just the origin) | Each AS cryptographically signs the update as it traverses the path; deployment remains limited. |
| DNSSEC | RFC 4033 to RFC 4035 | DNS record integrity (which nameserver is authorized to answer for a domain) | DNS zone signing validated by recursive resolvers; protects domain resolution, not routing. See What Is DNSSEC. |
The three mechanisms stack rather than compete. RPKI stops a hijacked route, DNSSEC stops a forged answer, and BGPsec (still rare in production) would stop path manipulation between the two endpoints. A domain secured at the DNS layer with DNSSEC can still be intercepted at the routing layer by a sub-prefix hijack, which is the exact scenario RPKI exists to close - the DNS hijacking guide walks through attacks that span both layers.
The RPKI RFC Timeline (2012 to Today)
RPKI is younger than BGP by two decades, and its specification history shows a system that reached core stability early and has been hardening ever since. The table below lists the milestones:
| Year | RFC | What It Defined |
|---|---|---|
| 2012 | RFC 6480 | The RPKI architecture: certificate hierarchy, repositories, and trust anchors |
| 2012 | RFC 6482 | The Route Origin Authorization (ROA) signed object format |
| 2013 | RFC 6811 | BGP Prefix Origin Validation: the Valid / Invalid / NotFound semantics routers apply |
| 2017 | RFC 8210 | The RPKI-to-Router (RTR) protocol version 1 that feeds VRPs to routers |
| 2022 | RFC 9319 | Updated MaxLength and prefix-length policy guidance to close sub-prefix hijack gaps |
Adoption, not specification, is the modern frontier: the RFCs have been stable since 2017, while the share of announced prefixes with valid ROAs and the share of routers enforcing Invalid rejection both keep climbing year over year. That is why the operational advice in this guide - create ROAs, set MaxLength exactly, keep them in sync with announcements - matters more today than any new protocol work.
How to Check RPKI ROA Status for Any IP Prefix or ASN
# 1. Check RPKI validation status via RIPEstat
curl -s "https://stat.ripe.net/data/rpki-validation/data.json?resource=AS13335&prefix=1.1.1.0/24" | jq .data
# 2. Check BGP route origin via Team Cymru
dig +short 1.1.1.1.origin.asn.cymru.com TXT
# 3. Query the bgpmon.net looking glass
whois -h whois.bgpmon.net 1.1.1.0/24
# 4. List all VRPs from a local Routinator cache
curl -s http://localhost:9556/api/v1/status Check RPKI status live
Enter an IP address, prefix, or ASN to see its BGP origin and RPKI ROA validation state. Run the full check in the ASN lookup tool.
Frequently Asked Questions
What is the difference between RPKI and DNSSEC?+
RPKI secures BGP routing by cryptographically binding IP prefixes to originating ASNs using signed Route Origin Authorizations stored in RIR repositories. DNSSEC secures DNS records by signing zone data with public-key cryptography stored in the DNS hierarchy. They protect different layers: RPKI protects routing, DNSSEC protects domain resolution. A domain can and should have both.
What happens if I set MaxLength too high on my ROA?+
Setting MaxLength higher than the prefix you actually announce allows an attacker to announce a more-specific sub-prefix under your ASN. For example, a ROA for 10.0.0.0/16 with MaxLength 24 permits any /24 inside that /16 to be announced as coming from your ASN, enabling sub-prefix hijacks. RFC 9319 recommends setting MaxLength equal to the exact prefix length you announce in BGP.
Do I need RPKI if my ISP already filters prefixes?+
Yes, IRR-based prefix filters rely on manually maintained databases that are frequently stale or incomplete. RPKI ROAs provide cryptographic proof that is automatically verifiable by every participating router without relying on manual database accuracy. Both mechanisms together provide defense in depth.
What is a VRP (Validated ROA Payload)?+
A VRP is the output of a Relying Party (RP) cache after it has fetched and cryptographically validated all ROAs from the RIR repositories. Each VRP contains a tuple of (prefix, max prefix length, origin ASN) and is pushed to BGP routers via the RPKI-to-Router (RTR) protocol on port 323 or 8282. The router compares incoming BGP announcements against its VRP set to determine validity.
Last verified: 2026-11-18