Routing, chapter 17 of 36
Securing the Routing System
Origin validation checks one AS number, the last one, and its own RFC calls it protection against misconfiguration.
border1 is about to put our SYN onto the peering LAN toward 203.0.113.20, because an UPDATE from that address said that 192.0.2.0/24 lies behind AS64505. Nothing in that message proved it. Had some other network announced 192.0.2.0/25 and 192.0.2.128/25 that evening, and had the announcement reached AS64500, border1 would have sent the SYN to the longer prefixes without asking whose they were.
- 25 octets
- the DER payload of AS64505's ROA, before a CMS signature wraps it
- 67.2%
- of routed IPv4 space RPKI Valid on 12 November 2026, against 15.9 percent in April 2019
- 201 of 777
- IPv4 ASes tested without NAT that let spoofed sources out, in the year to 13 November 2026
Who may originate 192.0.2.0/24
One announcement checked against AS64505's ROA as RFC 6811 defines it. Pick a hijack or compose one, loosen the maxLength, and see where border1 would send the SYN to 192.0.2.80 with and without ROV filtering.
Why does border1 believe AS64505 at all?
The BGP specification tells border1 how to parse an UPDATE and how to rank routes. No rule asks whether AS64505 holds 192.0.2.0/24. Sandra Murphy's analysis of 2006 names the gap: "no mechanism has been specified within BGP to validate the authority of an AS to announce NLRI information" (RFC 4272, Section 3).
For decades the protection was operator practice. A provider filters what its customers may announce, usually with lists generated from the routing registries. Because BGP compares routes only for the same prefix, a false /25 and the true /24 both reach the FIB, and longest match sends the lower half of the block to the /25.
What goes wrong when routers believe everything?
On 25 April 1997 a border router of AS 7007 received about 23,000 routes over a session without an inbound filter. It de-aggregated them into more-specifics and stripped their AS paths. More specific than the genuine routes and one AS long, they won wherever they arrived.
On 24 February 2008 Pakistan Telecom (AS17557) announced 208.65.153.0/24 inside YouTube's 208.65.152.0/22. PCCW Global passed it on and withdrew it after more than two hours [RIPENCC2008]. In June 2019 a BGP optimizer split Cloudflare's 104.20.0.0/20 into two /21s that Verizon accepted. AT&T, which also dropped RPKI-invalid routes, kept them out [Levy2019]. They were Invalid, because Cloudflare had signed a maximum length of 20 [Strickx2019].
How does border1 turn ROAs into a verdict?
The validator hands it Validated ROA Payloads: prefix, maximum length, origin AS. A VRP covers a route whose prefix equals or lies inside its own, and matches it if the route is also no longer than the maximum length and has the same origin. Matched is Valid, covered but never matched is Invalid, and uncovered is NotFound (RFC 6811, Section 2).
The verdict is only a label. An Invalid route kept at low preference protects nothing, because longest match still forwards to it (RFC 7115, Section 5). So AS64500 drops Invalid routes from eBGP neighbors.
What does maxLength give away?
Origin validation checks only the last AS. If AS64511 announces 192.0.2.0/24 with the path 64511 64505, every validator calls it Valid, though its longer AS_PATH limits how far it spreads. Had AS64505 signed a maxLength of 25, the same forged path for 192.0.2.0/25 would be Valid, have no genuine competitor, and win by longest match wherever it propagated. RFC 9319, Section 3 calls this the forged-origin sub-prefix hijack.
In June 2017, 12 percent of the prefixes in ROAs carried a maxLength above their length, and 84 percent of those authorized sub-prefixes that the legitimate AS did not announce (RFC 9319, Section 4). The advice is minimal ROAs.
How much of the Internet validates?
Most routed address space now has a ROA, and most users still sit behind networks that do not act on it. A ROA protects a prefix only where routers drop Invalid routes. APNIC estimates that share from the user's side with an object reachable only through an RPKI-invalid route. In the week to 11 November 2026, 31.4 percent of sampled users worldwide could not fetch it, 51.5 percent in Europe [APNIC2026].
Enforcement hands power to whoever controls a ROA. On 3 January 2024 someone logged into Orange EspaƱa's RIPE NCC account with the password "ripeadmin" and published ROAs that made its routes Invalid [Madory2024].
Who checks the source address of our SYN?
bng1 does. Route validation says nothing about the source a packet claims. After the SYN floods of 1996, Paul Ferguson and Daniel Senie wrote what became BCP 38: a router that connects a customer network forwards only packets whose source lies in that customer's prefixes (RFC 2827, Section 3). bng1 knows the addresses it gave out, so our SYN from 198.51.100.77 passes.
Access lists need maintenance by hand, so BCP 84 describes filters that read the FIB. Strict RPF can drop legitimate packets where routing is asymmetric. Loose RPF only checks that some route exists, and BCP 84 calls the name "a misnomer in a sense" (RFC 3704, Section 2.4).
The book keeps asking
This chapter has 5,738 words and 14 questions. These 8 are answered only in the book and the audiobook.
- Is every bad route a hijack?
- Who can say which AS may originate 192.0.2.0/24?
- What does AS64505's ROA contain?
- How do the validated payloads reach border1?
- Why did BGPsec stay on paper?
- Can a BGP session know that it carries a leak?
- What will ASPA add?
- How does border1 protect its own sessions?
Open the sources
- RFC 6480 An Infrastructure to Support Secure Internet Routing
- RFC 9582 A Profile for Route Origin Authorizations (ROAs)
- RFC 6811 BGP Prefix Origin Validation
- RFC 8210 The Resource Public Key Infrastructure (RPKI) to Router Protocol, Version 1
- RFC 7908 Problem Definition and Classification of BGP Route Leaks
- RFC 9234 Route Leak Prevention and Detection Using Roles in UPDATE and OPEN Messages
- RFC 8205 BGPsec Protocol Specification
- RFC 2827 Network Ingress Filtering: Defeating Denial of Service Attacks which employ IP Source Address Spoofing
All 63 documents this chapter cites, each with a link to its publisher and a copy kept here.
