RPKI, RIRs, and Internet Governance
The internet's routing table is the world's most critical database. This lesson explains how IP addresses are allocated, how routing security works, and the organizations that keep the global routing system trustworthy.
Context: Why This Matters
Every time your traffic leaves your network, it enters the global routing table. BGP routers worldwide use that table to forward your packets to the correct destination. But what prevents a malicious actor from announcing your IP address range as their own and hijacking your traffic? That's where RPKI comes in.
Route hijacks and leaks happen regularly, both by accident and on purpose. In 2008, Pakistan Telecom accidentally announced a more-specific slice of YouTube's address space to the world and took YouTube offline for about two hours. In 2018, attackers hijacked the address space of Amazon's Route 53 DNS service to steal cryptocurrency from MyEtherWallet users. In 2019, a BGP optimizer's leak carried by Verizon knocked large parts of Cloudflare and other networks offline. RPKI is the industry's answer to the most common of these: someone announcing address space they don't hold.
The RIRs: Regional Internet Registries
The internet is divided into five regions, each managed by a Regional Internet Registry (RIR). These organizations allocate IP address space and AS numbers to ISPs and large organizations.
| RIR | Region | Website |
|---|---|---|
| APNIC | Asia-Pacific (India, China, Australia, Japan, etc.) | apnic.net |
| RIPE NCC | Europe, Middle East, Central Asia | ripe.net |
| LACNIC | Latin America and Caribbean | lacnic.net |
| ARIN | North America | arin.net |
| AFRINIC | Africa | afrinic.net |
When you want public IP address space, you contact your local RIR. They verify your need, assign you a block, and enter you into the public WHOIS database. That same RIR is where you later create RPKI certificates to authorize your BGP announcements.
ICANN: The Umbrella Organization
Above the RIRs sits ICANN (Internet Corporation for Assigned Names and Numbers). Through the IANA functions, now performed by its affiliate PTI, ICANN oversees the global IP address and AS number pools and delegates large blocks to each RIR. It also manages the root zone of DNS (more on that in the DNS lesson) and coordinates the entire address allocation policy globally.
ICANN's role: Set global policy, manage the root zone, and coordinate between RIRs. It does not assign addresses directly; that's the RIRs' job.
RPKI: Cryptographic Authorization
RPKI (Resource Public Key Infrastructure) is a public-key system that cryptographically ties IP prefixes and AS numbers to the organization that holds them, so that holder can state which AS is authorized to originate its routes.
The problem RPKI solves: Without RPKI, any router can announce any IP prefix in BGP. An attacker (or misconfigured router) can hijack prefixes. RPKI lets a prefix holder publish a signed statement saying "AS 65001 is authorized to originate 203.0.113.0/24," and networks can check BGP announcements against it before accepting them.
How RPKI Works
- You hold an IP prefix: Your RIR has allocated 203.0.113.0/24 to you, and issues you a resource certificate listing it.
- You create a ROA: Using your RIR's web portal or API, you create a Route Origin Authorization (ROA) that says "AS 65001 may originate 203.0.113.0/24."
- The ROA is signed: It's signed with the key of your resource certificate. With hosted RPKI (the common case), the RIR runs that certificate authority for you, so the portal handles the keys.
- The ROA is published: It's placed in your RIR's public RPKI repository. Each RIR's root certificate, the trust anchor, is where validation starts.
- Validators check it, routers use it: Validator software downloads every RIR's repository, verifies the signatures back to the trust anchors, and gives routers the list of valid prefix–origin pairs. When a router receives 203.0.113.0/24 from origin AS 65001, the route is Valid if a ROA matches, NotFound (sometimes called unknown) if no ROA covers the prefix, and Invalid if a ROA covers it but the origin AS or prefix length doesn't match.
- Policy decides the action: The best current practice is to reject Invalid routes on eBGP sessions and accept Valid and NotFound. Most of the largest transit networks already drop Invalids.
ROA (Route Origin Authorization)
A ROA is a signed statement. It contains:
- ASN: The AS number authorized to announce the prefix (e.g., AS 65001).
- Prefix: The IP prefix (e.g., 203.0.113.0/24).
- Maximum length: The longest prefix the AS can announce (e.g., /25). This lets you say "AS 65001 can announce 203.0.113.0/24, 203.0.113.0/25, etc., but not /26 or longer." Keep it equal to what you actually announce (RFC 9319): a loose max length lets an attacker who forges your AS as the origin announce a more-specific that still looks Valid.
- Signature: Signed with the key of your resource certificate, which chains up to your RIR's trust anchor.
Example ROA:
ROA ASN: 65001
Prefix: 203.0.113.0/24
Max Length: 24
Signed by: your resource certificate (hosted by ARIN)
This ROA authorizes only AS 65001 to originate exactly 203.0.113.0/24. An announcement of 203.0.113.0/25 or 203.0.113.128/25 (longer prefixes), or of the /24 from any other AS, is Invalid.
RPKI Validation on Cisco IOS XE
Cisco IOS XE validates routes once you point it at one or more RTR servers (validators). The recommended pattern is to make the decision explicitly in an inbound route-map: drop anything RPKI-Invalid and accept the rest.
router bgp 65001
bgp rpki server tcp 192.0.2.11 port 3323 refresh 600
bgp rpki server tcp 198.51.100.11 port 3323 refresh 600
!
address-family ipv4 unicast
bgp bestpath prefix-validate disable
neighbor 203.0.113.1 soft-reconfiguration inbound
neighbor 203.0.113.1 route-map RPKI-IN in
!
route-map RPKI-IN deny 10
match rpki invalid
route-map RPKI-IN permit 20
! Verify
show ip bgp rpki servers
show bgp ipv4 unicast rpki table
Explanation: bgp rpki server tcp connects the router to your validators; use at least two. Validation then happens automatically. By default IOS XE also folds the validation state into best-path selection, which can cause surprises, so bgp bestpath prefix-validate disable turns that off and the RPKI-IN route-map does the work instead: deny match rpki invalid, permit everything else. soft-reconfiguration inbound stops the router from sending route-refresh requests to the peer every time the ROA table changes. Port 3323 is Routinator's default; use whatever your validator listens on.
Reference: NLNOG BGP Filter Guide: Rejecting RPKI Invalid BGP Routes
RPKI Validation on FortiGate (FortiOS 8.0.1)
FortiOS 8.0.1 adds native route origin validation. It's configured per VDOM under config router bgp: one switch to turn validation on, plus one or more RPKI cache servers.
config router bgp
set route-origin-as-validation enable
config rpki-server
edit 1
set addr "192.0.2.11"
set port 3323
next
edit 2
set addr "198.51.100.11"
set port 3323
next
end
end
# Verify
get router info bgp rpki server-summary
get router info bgp rpki validate 208.65.153.0/24 17557
Note: In 8.0.1 the FortiGate only talks to validators over plain TCP (no SSH or TLS transport), so run your validators on a trusted segment close to the firewall. Try the validate command with Pakistan Telecom's 2008 YouTube route: it comes back Invalid.
Reference: Fortinet: BGP RPKI route origin validation (FortiOS 8.0.1)
RTR Servers: How Routers Get RPKI Data
Routers don't connect directly to the RIR's CA (Certification Authority). Instead, they connect to an RTR (RPKI to Router) server. This server downloads and validates the ROAs from every RIR's repository and serves the results to routers over a simple protocol (RFC 6810 and RFC 8210). Run your own, ideally two using different software, with open-source validators like Routinator, rpki-client, or FORT.
Why RPKI Adoption Is Slow (and Why It Matters)
RPKI has been in production since 2011. By early 2026 roughly 62% of IPv4 routes and 66% of IPv6 routes in the global table were RPKI-Valid (NIST RPKI Monitor), but that still leaves a large share of the Internet unsigned. Why has it taken so long?
- Operational burden: Creating and maintaining ROAs requires discipline. A typo or lapsed ROA causes route invalidation.
- No immediate incentive: Rejecting invalid routes can break BGP sessions if misconfigured. Operators are cautious.
- Paperwork: In the ARIN region, your resources must be covered by an ARIN agreement before you can use ARIN's RPKI. If your addresses came from your ISP, your ISP has to create the ROA for you.
- Legacy equipment: Older routers don't support RPKI validation.
But the trend is clear: major carriers such as AT&T, Cogent, Telia, and Telstra now drop RPKI-Invalid routes, so a ROA protects you across much of the Internet. In 2024 the White House's Roadmap to Enhancing Internet Routing Security told every network operator, enterprises included, to publish ROAs and require route validation from their providers.
See it happen
Watch these incidents replayed step by step, with and without route origin validation, in RPKI: The Incidents.
Summary
- The five RIRs allocate IP address space to their respective regions. Your local RIR is your entry point to public address space and RPKI.
- ICANN coordinates the RIRs and manages global policy and the DNS root zone.
- RPKI uses cryptographic ROAs (Route Origin Authorizations) to authorize an AS to announce specific prefixes.
- BGP routers get validated data from an RTR server and mark each route Valid, Invalid, or NotFound. Best practice is to drop Invalid on eBGP sessions.
- RPKI checks only the origin AS and prefix length, not the whole path, so keep ROAs tight, protect your RIR account with MFA, and monitor your prefixes.
- Further reading: RFC 6811 (BGP Prefix Origin Validation), RFC 7115 (Origin Validation Operation), RFC 9319 (avoiding maxLength), and your RIR's RPKI documentation.