IRR Route Objects vs RPKI ROAs: What Each Does and Why You Need Both
Disclosure up front: I run IPYE, a company that leases IP space. This is a practical how-to, and IPYE comes up where it helps, with a short call to action at the end. New operators often ask why they need both a ROA and
Disclosure up front: I run IPYE, a company that leases IP space. This is a practical how-to, and IPYE comes up where it helps, with a short call to action at the end.
New operators often ask why they need both a ROA and an IRR route object, since both seem to say "this prefix is originated by this ASN". They do overlap, but they're checked by different systems, trusted to different degrees, and used at different points in an upstream's process. Missing either one can get your route dropped. This guide compares them, using a prefix from IPYE. The examples use the documentation prefix 198.51.100.0/24 and the origin AS64500.
Side by side
| IRR route object | RPKI ROA | |
|---|---|---|
| Says | prefix P is originated by AS X | prefix P, up to length L, may be originated by AS X |
| Who can create it | depends on registry; in RADB, anyone with a maintainer | only the holder of the address space's RPKI certificate |
| Cryptographically signed | no | yes |
| Used for | building prefix filters (bgpq4 and so on), documentation | route origin validation on routers |
| Effect of absence | your prefix missing from IRR-based filters | route is "not found", usually still accepted |
| Effect of a wrong entry | wrong filters, possible acceptance of hijacks | route "invalid", dropped by ROV networks |
How an upstream uses both
A typical customer session goes through two gates:
- Filter generation (IRR). Overnight or on demand, the upstream expands your AS-SET and route objects into a prefix list. If your prefix isn't in IRR, it's not in the list, and it's rejected before RPKI is even considered.
- Route origin validation (RPKI). The router checks each accepted route against VRPs. If the ROA names another ASN, the route is invalid and dropped. That happens at your upstream if it runs ROV, and at many other networks further away.
So IRR gets you through your upstream's door, and RPKI keeps your route alive across the internet.
Why IRR alone isn't enough
Because anyone can create objects in some registries, IRR data includes stale and forged entries. Hijackers have created route objects to get their announcements through IRR-based filters. RPKI fixes this with signatures that only the address holder can produce.
Why RPKI alone isn't enough (yet)
Many upstreams still build customer filters only from IRR. Some are starting to use RPKI data to generate or prune filters, and tools like bgpq4 can combine both. Until that's universal, a missing route object means a rejected route at those upstreams, whatever your ROA says.
Making them agree
Create both with the same prefix and origin:
route: 198.51.100.0/24
origin: AS64500
mnt-by: MAINT-AS64500
source: RADB
ROA: 198.51.100.0/24, maxLength 24, AS64500
Check both:
whois -h whois.radb.net 198.51.100.0/24
routinator validate --asn 64500 --prefix 198.51.100.0/24
Where they diverge, and why that's dangerous
- ROA updated, IRR not: after an ASN change, IRR still says the old origin. Upstreams filtering on IRR reject the new announcement.
- IRR updated, ROA not: the new announcement passes filters, but is invalid everywhere that runs ROV.
- Stale IRR objects from previous users: they don't affect your ROA, but they confuse filters and leak-detection tools.
Treat the two as a pair: whenever you change one, change the other in the same change window.
IPv6
The same applies, with route6 objects and IPv6 ROAs, for example for a /48 with maxLength 48.
Where each comes from
With IPYE, the ROA is created for the origin ASN you set on the lease, so the RPKI half is handled. Create the IRR object yourself, or ask whether one can be created in the RIR's registry. IPv4 leases also include the LOA and reverse DNS.
Next step
Check that your ROA and route object agree for every prefix, and set or confirm the origin ASN in the IPYE portal.
About IPYE
IPYE leases IPv4, IPv6 and ASN space with instant setup. Your first IPv6 /48 is free for the first year, a real allocation you can announce on your own ASN, with a LOA from the portal and the ROA created automatically. IPv4 /24 to /22 leases include LOA, ROA and per-/24 rDNS, and ASN and region changes apply automatically. Locations: Los Angeles, New York, Ashburn, Salt Lake City, London, Amsterdam, Frankfurt. More at ipye.com. Questions: [email protected].
Disclosure: I run IPYE
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.