Peer1IX
Internet Exchange
Services

Interconnection

Internet ExchangeMicro PoPsEdge Data Centers

Network Services

Data Center to Data CenterVirtual Connectivity HubData Center to CloudCloud to CloudPeer1ix Cloud RouterPeer1ix Virtual EdgeNAT GatewayPeer1ix PortVirtual Cross Connect

Security Services

DDoS ProtectionPeer1ix FWaaSIPsec Tunnel

Cloud Interconnect

Cloudflare Network Interconnect
Locations
Network toolsAll-in-One Network ReportBGP Looking GlassRPKI ValidatorBGP Security & Hijack CheckIP WHOISAS WHOISBGP Route ExplorerASN InsightsBGP Hijacks & Route LeaksInternet Outage TrackerCountry Internet InsightsTop Domains RankingDNS LookupSubnet CalculatorWhat Is My IP
BlogAboutContact Get connected

The ROA Max-Length Trap

· 1 min read · Peer1IX Team

The ROA Max-Length Trap

One field in a ROA causes more RPKI-invalid routes than any other. How to set max-length without breaking your own announcements.

The field

Every ROA has a max-length. Announcements with a prefix length longer than that are RPKI-invalid, even if the origin ASN is correct.

The common mistake

A network has a ROA for 203.0.113.0/22 with max-length 22. For traffic engineering, it starts announcing four /24s. All four are now invalid and are dropped by networks enforcing RPKI.

The tempting fix

Setting max-length to 24 makes the /24s valid — but it also authorises any /23 or /24 within the /22 with your ASN as origin, even ones you do not announce. An attacker forging your ASN could announce a more-specific and attract traffic.

The better fix

Create separate ROAs for exactly the prefixes you announce.

Check regularly

Run our RPKI validator on your ASN after any routing change.

ROA max lengthRPKI invalidmisconfiguration