RPKI invalid-drop in production: what actually breaks
Dropping RPKI-invalid routes is the right decision. It is also not free, and pretending otherwise is how deployments get rolled back.
Route Origin Validation is settled. The debate about whether to drop invalids finished several years ago and the answer was yes. What has not been written down often enough is the operational shape of the rollout - which is where deployments stall.
The three states, briefly
A route is valid when a ROA authorises that origin ASN for that prefix at that length; invalid when a ROA covers the prefix but the origin or the length is wrong; not-found when no ROA covers it. Not-found is not a failure state - a large minority of the table still has no ROA and dropping those would disconnect you from a meaningful slice of the internet.
What is actually invalid, and why
In our experience the invalid population breaks down roughly like this.
maxLength mistakes (the largest group)
An operator creates a ROA for 192.0.2.0/22 with maxLength 22, then later deaggregates and announces four /24s. Every one is invalid. The prefix is theirs, the origin is right, and the announcement is entirely legitimate - the ROA is simply too tight.
This is why the guidance is to set maxLength equal to the prefix length unless you have a specific reason. A permissive maxLength is a hijack surface; a too-tight one is a self-inflicted outage.
Stale ROAs after a transfer
Address space changes hands, the new holder announces from their ASN, and the old ROA is still authorising the previous origin. Common after acquisitions.
Multi-origin without full coverage
A prefix legitimately announced by two ASNs - anycast, or a customer transitioning providers - where only one has a ROA.
Actual hijacks
A small but real fraction. This is the population you are deploying for.
Sequencing the rollout
Phase 1: validate and tag, drop nothing
Run validators, mark routes with a community reflecting their state, and change no forwarding behaviour. This gives you a measurable baseline of how much of your table is invalid, and where it comes from.
Phase 2: measure the blast radius
For every invalid route, ask: do we have an alternative path? Most invalids are covered by a valid or not-found route from another neighbour, in which case dropping is invisible. The ones with no alternative are your risk list, and it is usually short enough to read.
Phase 3: contact the origins that matter
For invalids on your risk list, contact the originating network. Most are maxLength errors and are fixed within days once someone points them out. This step converts a potential incident into an email thread.
Phase 4: drop on peers first
Enable invalid-drop on peering sessions before transit sessions. Peers are a smaller, better-instrumented population and the failure mode is a fallback to transit rather than a loss of reachability.
Phase 5: drop on transit, then on customers
Customer sessions last, and with warning. A customer whose announcement is invalid needs to hear it from you before it is dropped, not afterwards.
What monitoring you need first
- Validator health. A validator that has silently stopped fetching will happily report a shrinking VRP set, and your router will start treating previously valid routes as not-found. Alert on VRP count deltas, not just on process liveness.
- Two validators minimum, from different implementations, with the router preferring whichever is fresher.
- Per-neighbour invalid counts as a time series. A sudden spike from one neighbour is either a hijack or a ROA that just expired, and you want to know which within minutes.
- Your own prefixes, validated from outside. The most embarrassing RPKI incident is your own ROA expiring.
The failure mode nobody plans for
Your own ROA expires. Everyone who drops invalids stops accepting your announcement, and you disappear from a large part of the internet while your routers show the session as healthy and the prefix as announced. Monitor your ROA expiry dates as first-class infrastructure with alerting well before the deadline - the same way you monitor certificate expiry, and for exactly the same reason.
Was it worth it?
Yes, and not marginally. Origin validation removes the single most common category of routing incident - the fat-fingered announcement of someone else's space - at a cost measured in a few weeks of careful rollout and a handful of emails. The remaining attack surface is path manipulation rather than origin forgery, which is a much harder thing for an attacker to do and a much rarer thing to see.
The one honest caveat: RPKI protects the origin, not the path. Do not let a green validation state convince anyone that route leaks are solved. They are not.