RPKI ROAs, maxLength & Preventing BGP Route Hijacks
Resource Public Key Infrastructure (RPKI, RFC 6480 / RFC 6811) cryptographically binds an IP prefix to an authorized Origin ASN via Route Origin Authorizations (ROAs) published by the five Regional Internet Registries (ARIN, RIPE, APNIC, LACNIC, AFRINIC).
Why maxLength Matters
A ROA specifies three parameters: ASN, Prefix, and maxLength. If an operator publishes a ROA for 192.0.2.0/22 with maxLength: 22, announcing a more-specific 192.0.2.0/24 is marked RPKI Invalid (Invalid_Length)—even though the ASN matches!