RPKI (Resource Public Key Infrastructure) is a security framework that helps protect Internet routing from unauthorized changes and cyberattacks. It allows network operators to verify whether a particular network has permission to announce specific IP addresses.
Every day, billions of data packets travel across different networks to reach their destinations. But what happens if someone announces a route they shouldn’t control? Traffic could end up in the wrong place, causing outages or security problems.
That’s where RPKI comes in. Let’s explore how it works, why it matters, and how it makes Internet routing more secure.
Table of Contents
What Is RPKI?
RPKI stands for Resource Public Key Infrastructure. It is a system that uses digital certificates to verify which networks are authorized to announce specific IP address ranges.
To understand its purpose, you first need to know about Border Gateway Protocol (BGP).
BGP allows different networks, known as Autonomous Systems (AS), to exchange routing information. Each Autonomous System has a unique Autonomous System Number (ASN).
However, BGP has a major weakness: it doesn’t automatically verify whether a network has permission to announce a particular IP address range.
RPKI addresses this problem by providing a reliable way to check route origins. It helps network operators distinguish authorized announcements from suspicious or incorrect ones.
How Does RPKI Work?
Resource Public Key Infrastructure uses digital certificates, cryptographic signatures, and routing information to establish trust between networks.
The process involves four main components:
1. Resource Certificates
Regional Internet Registries (RIRs) manage the allocation of Internet number resources.
They also support RPKI certification, which links IP address resources to their legitimate holders through cryptographically verifiable certificates.
These certificates establish who has authority over particular IP address ranges.
2. Route Origin Authorization (ROA)
A Route Origin Authorization (ROA) is a digitally signed statement that specifies which Autonomous System can announce an IP address prefix.
Each ROA contains three important details:
- IP prefix: The range of IP addresses being protected.
- ASN: The Autonomous System authorized to announce the prefix.
- Maximum prefix length: The most specific route the ASN can announce under that authorization.
For example, an organization might authorize AS64500 to announce the IP prefix 203.0.113.0/24.
If another network announces the same prefix without authorization, RPKI validation can identify the announcement as invalid.
3. RPKI Validators
An RPKI validator is software that collects and checks certificates and ROAs from trusted repositories.
It verifies their digital signatures and builds a list of authorized route origins.
Network operators can then provide this validated information to their routers.
4. Route Origin Validation (ROV)
Route Origin Validation (ROV) compares BGP announcements with validated RPKI information.
It classifies announcements into three categories:
| Status | Meaning |
| Valid | A matching ROA authorizes the originating ASN and prefix length. |
| Invalid | A covering ROA exists, but none authorizes the announcement. |
| Not Found | No applicable ROA covers the announced prefix. |
Routers can use these results to make routing decisions. Many operators reject invalid routes while allowing valid and Not Found announcements according to their routing policies.
Importantly, RPKI doesn’t automatically block traffic. Network operators must implement appropriate validation policies.
Experience Industry-Leading DNS Speed with ClouDNS!
Ready for ultra-fast DNS service? Click to register and see the difference!
Why Is RPKI Important?
Internet routing depends heavily on cooperation between networks. Without proper verification, incorrect routing announcements can spread and affect connectivity.
It helps address several important risks.
Protection Against BGP Hijacking
BGP hijacking happens when a network announces IP prefixes belonging to another organization.
Attackers may use this technique to redirect traffic, intercept communications, or disrupt services.
RPKI helps reduce this risk by allowing networks to identify unauthorized route origins.
Prevention of Routing Misconfigurations
Not every routing incident involves an attacker.
Sometimes, a network administrator accidentally announces the wrong IP prefix or ASN. Such mistakes can redirect traffic or make services unreachable.
It helps participating networks detect these errors before accepting incorrect routes.
Improved Network Reliability
Incorrect routing information can affect websites, cloud services, and other online applications.
By supporting more trustworthy routing decisions, RPKI reduces the risk of certain routing-related disruptions.
This is particularly important for organizations that depend on reliable connectivity and continuous service availability.
RPKI vs. DNSSEC: What’s the Difference?
RPKI and DNSSEC both improve Internet security, but they protect different parts of the infrastructure.
RPKI protects routing information. It verifies whether an Autonomous System is authorized to originate an IP prefix.
DNSSEC protects DNS data authenticity. It uses digital signatures to help DNS resolvers detect forged or modified DNS responses.
For example, DNSSEC helps ensure that a domain’s DNS information is authentic, while RPKI helps networks validate the origin of routes used to reach IP addresses.
Both technologies contribute to Internet security, but neither replaces the other.
How to Implement RPKI
Organizations that manage their own IP address resources can start using RPKI through their Regional Internet Registry.
The basic implementation process includes:
- Identify your IP prefixes and ASNs. Review which networks legitimately originate your address ranges.
- Access your RIR’s RPKI service. Most registries offer hosted RPKI management.
- Create ROAs. Authorize the correct ASNs and configure appropriate maximum prefix lengths.
- Verify your announcements. Check that your legitimate routes appear as Valid.
- Maintain your ROAs. Update them when routing arrangements or network providers change.
Network operators who want to reject invalid routes must also deploy RPKI validation and configure ROV on their routing infrastructure.
Careful configuration matters. An incorrect ROA can cause legitimate announcements to become invalid and potentially get rejected by other networks.
Does RPKI Have Limitations?
Although Resource Public Key Infrastructure improves routing security, it doesn’t eliminate every threat.
Its most widely deployed protection focuses on route origin validation, not verification of the entire route taken through the Internet.
Therefore, RPKI alone cannot prevent every route leak, forged AS path, or routing attack.
Its effectiveness also depends on adoption. Networks that don’t enforce Route Origin Validation may still accept invalid announcements.
For stronger protection, organizations should combine RPKI with additional routing security measures, network monitoring, and appropriate filtering policies.
How Is RPKI Related to Anycast DNS?
RPKI is also relevant to infrastructure that uses BGP, including Anycast DNS.
Anycast allows multiple geographically distributed servers to share the same IP address. BGP helps direct requests toward an appropriate network location.
Because Anycast depends on Internet routing, accurate route announcements are important for maintaining reliable connectivity.
RPKI can help network operators validate the origins of these announcements. However, it doesn’t replace Anycast’s traffic distribution capabilities or protect DNS records directly.
Together with technologies such as DNSSEC and network monitoring, routing security contributes to a more resilient Internet infrastructure.
Conclusion
RPKI plays an important role in making Internet routing more secure and trustworthy. By combining digital certificates, Route Origin Authorizations, and Route Origin Validation, it helps networks identify unauthorized or incorrect routing announcements.
Although it cannot prevent every routing problem, Resource Public Key Infrastructure provides an essential layer of protection against route hijacking and accidental misconfigurations.
As more networks adopt it, the Internet becomes better equipped to handle routing threats and maintain reliable connectivity.
For organizations looking to improve their overall infrastructure, combining routing security with reliable Anycast DNS services is an important part of building a stable and resilient online presence.