BGP Routing Analytics: RPKI, ASPA, Connectivity, and Anomalies
How to read BGP transit hierarchy, RPKI ROA and ASPA coverage, path validation, route leaks, and related Radar tools and APIs.
This page summarizes Cloudflare Radar documentation on its Routing area: how to see how an autonomous system (AS) reaches the Internet, how RPKI (ROA and ASPA) adoption is tracked, how to validate a BGP AS_PATH, how BGP route leaks and other anomalies are exposed, and which BGP API endpoints mirror the charts. The material is aimed at network operators, researchers, and anyone asking “who are my upstreams?”, “is this path a leak?”, or “how much of this country’s space is ROA-covered?”
Cloudflare Radar Routing section: Overview, RPKI, and Anomalies
Section titled “Cloudflare Radar Routing section: Overview, RPKI, and Anomalies”The Routing area is organized as three sub-pages so BGP statistics, trust数据, and incident-style signals stay separate.
The single Routing page has been split into three focused sub-pages: Overview — Routing statistics, IP address space trends, BGP announcements, and the new Top 100 ASes ranking. RPKI — RPKI validation status, ASPA deployment trends, and per-ASN ASPA provider details. Anomalies — BGP route leaks, origin hijacks, and Multi-Origin AS (MOAS) conflicts.
— Cloudflare, Routing Section Expansion on Cloudflare Radar
Overview adds a Top 100 ASes table (customer cone, IPv4 space, or IPv6 space) and combined IPv4/IPv6 IP address space trends on global, country, and AS views. RPKI holds ROA deployment timeseries, per-ASN prefix validation (Valid / Invalid / Unknown), ASPA deployment widgets, and the interactive ASPA path validator. Anomalies is where detected route leaks, origin hijacks, and MOAS conflicts are listed for investigation. Release notes for these changes are collected in Cloudflare Radar release notes.
Location-aware routing views also support region filters (continents, subregions, political regions, US Census divisions); see Region Filtering on Cloudflare Radar.
AS-level connectivity graph: how an AS reaches Tier-1 networks
Section titled “AS-level connectivity graph: how an AS reaches Tier-1 networks”On an AS routing page, the AS-level connectivity graph answers how that network reaches Tier-1 networks across everything it announces—not just one prefix.
The AS-level connectivity graph aggregates the BGP paths an AS uses to reach the Tier-1 networks, unioned across all the prefixes it announces, as observed by selected RouteViews collectors. It reads from left to right, starting at the queried AS and ending at the Tier-1 networks, and each node is labeled with its AS number, country, and organization name.
— Cloudflare, AS-level connectivity and upstream providers on Cloudflare Radar
By default the graph shows direct Tier-1 links plus indirect paths for readability; Show full paths expands to every observed path, including transit through Tier-1s the AS already peers with. An IP version selector switches IPv4 and IPv6 because paths to Tier-1 may differ by address family. Data comes from RouteViews RIB snapshots unioned across selected collectors.
This is the AS-wide counterpart to the prefix-level BGP real-time routes Sankey on prefix pages (built from RouteViews, RIPE RIS, MRT, and live streams). Prefix view is one prefix; AS connectivity is the union of paths for all prefixes that AS originates—useful for transit hierarchy, hop count to the core, and whether paths are diverse or concentrated.
Upstream providers widget: transit mix over time
Section titled “Upstream providers widget: transit mix over time”The Upstream providers stacked area chart shows what share of an AS’s observed paths each direct upstream carried over time.
The Upstream providers widget tracks the share of an AS’s observed paths carried by each of its direct upstream networks over time, drawn as a stacked area chart. Up to 10 upstreams appear as their own series and the remaining ones are grouped into Other. Transit changes such as adding a provider, dropping one, or moving traffic between them appear as movement between bands rather than as a single aggregate number.
— Cloudflare, AS-level connectivity and upstream providers on Cloudflare Radar
Like the connectivity graph, it supports IPv4/IPv6 selection. On AS pages, the connectivity table can show ASPA-verified upstreams (checkmarks), a dedicated ASPA upstreams table, and a daily ASPA change timeline when ASPA deployment insights are enabled—see RPKI ASPA Deployment Insights on Cloudflare Radar.
Programmatic equivalents:
| Endpoint | Purpose |
|---|---|
/bgp/routes/paths/{asn} |
Ordered AS path segments toward Tier-1, with path count, peer count, collectors; optional collector |
/bgp/routes/upstreams/{asn}/timeseries |
Upstream share over time; limit, ipVersion |
Details are in AS-level connectivity and upstream providers and release notes (2026-08-07).
RPKI ROA deployment: origin authorization coverage over time
Section titled “RPKI ROA deployment: origin authorization coverage over time”Route Origin Authorization (ROA) objects say which AS may originate a prefix. Radar tracks how much announced space is covered by valid ROAs.
The RPKI sub-page adds an RPKI ROA deployment timeseries widget that tracks the share of announced BGP space covered by a valid Route Origin Authorization (ROA) over time, with separate IPv4 and IPv6 lines. A toggle switches the view between the share of covered prefixes and the share of covered IP address space. The widget is available on global, country, and AS views.
— Cloudflare, New routing widgets on Cloudflare Radar
Per-ASN pages also group prefixes by RPKI status (Valid, Invalid, Unknown) with visibility scores—introduced in the routing section expansion. API: /bgp/rpki/roas/timeseries (prefix or address-space share, IP version, optional ASN or location filters). Country pages add Top ASes by announced IP space (IPv4/IPv6 stacked); API: /bgp/ips/top/ases.
ROA answers who may originate a prefix; it does not alone prove that an AS_PATH is policy-consistent—that is where ASPA fits.
RPKI ASPA: deployment tracking and path validation
Section titled “RPKI ASPA: deployment tracking and path validation”Autonomous System Provider Authorization (ASPA) is an RPKI object in which a customer AS lists authorized upstream providers, so validators can check whether a BGP path’s provider-customer hops match published policy.
While RPKI Route Origin Authorizations (ROAs) verify which Autonomous System (AS) is authorized to originate a prefix, ASPA validates the BGP AS_PATH by allowing an AS to declare its authorized upstream transit providers, enabling detection of route leaks and certain BGP hijacks with forged path segments.
— Cloudflare, Radar glossary — ASPA
ASPA deployment insights on Radar
Section titled “ASPA deployment insights on Radar”Global routing shows ASPA object counts over time and a searchable table of recent ASPA objects. Country and region pages show ASPA deployment rate for ASNs registered there. APIs from RPKI ASPA Deployment Insights:
/bgp/rpki/aspa/snapshot— current or historical ASPA objects/bgp/rpki/aspa/changes— changes over time/bgp/rpki/aspa/timeseries— object counts over time
ASPA path validation tool: check a BGP AS_PATH in the browser
Section titled “ASPA path validation tool: check a BGP AS_PATH in the browser”The ASPA validation tool in the Routing section takes a path and returns Valid, Invalid, or Unknown against published ASPA records.
Enter a BGP AS_PATH and the tool checks it against the Autonomous System Provider Authorization (ASPA) records currently published in the RPKI, returning a verdict of Valid, Invalid, or Unknown. An Invalid verdict means no chain of provider authorizations covers the whole path, which is the signature of a route leak.
— Cloudflare, RPKI ASPA path validation on Cloudflare Radar
Validation follows draft-ietf-sidrops-aspa-verification (still a draft, not an RFC). Paths use BGP wire order: rightmost AS is the origin, leftmost is closest to the observer. The full ASPA snapshot loads once in the browser; edits update verdict, graph, and trace without new requests.
Two algorithms run in parallel:
| Algorithm | Session context (per draft) | Ramps allowed |
|---|---|---|
| Upstream | From customer, peer, route server client, or route server | Up-ramp only (customer→provider hops from origin toward path apex) |
| Downstream | From a provider | Up-ramp and down-ramp (from announcing neighbor back to apex) |
The graph marks each hop Provider+, Not Provider+, or No attestation; hops no ramp covers are highlighted. Algorithm step by step shows upper-bound scans (stop on Not Provider+) and lower-bound scans (also stop on No Attestation). Path and algorithm are encoded in the URL for sharing; records match /bgp/rpki/aspa/snapshot, with record count and snapshot time shown in the UI.
BGP anomalies: route leaks, hijacks, and leak events API
Section titled “BGP anomalies: route leaks, hijacks, and leak events API”Radar’s Anomalies sub-page and ASN views surface BGP route leaks (announcements propagated beyond intended scope), origin hijacks, and MOAS conflicts. The glossary defines leak table columns (From, By, To, times, BGP message and prefix counts, vantage points) and hijack fields (detected vs expected origin, confidence, tags including RPKI evidence).
For programmatic leak search, Search BGP route leak events documents the leaks events API. Cloudflare currently emphasizes provider-customer-provider-type leaks (see their design blog linked from that page).
Example request shape (parameter name as in the published example):
curl "https://api.cloudflare.com/client/v4/radar/bgp/leaks/events?invlovedAsn=64512&format=json&per_page=10" \ --header "Authorization: Bearer <API_TOKEN>"Response fields include leak_asn, leak_seg (suspected leak segment), min_ts / max_ts, leak_count, peer_count, prefix_count, and origin_count. ASPA Invalid and Radar’s automated leak detection are complementary: ASPA checks path against published provider lists; Radar leak events aggregate observations from route collectors.
MRT Explorer: inspect BGP dump files without uploading them
Section titled “MRT Explorer: inspect BGP dump files without uploading them”The MRT Explorer parses Multi-Threaded Routing Toolkit dumps (announcements, withdrawals, attributes) entirely in the browser—nothing is uploaded to Cloudflare.
Paste a URL to fetch an MRT file remotely, drag and drop one onto the page, or browse for a local file. Gzip and bzip2 compressed files are supported.
— Cloudflare, MRT Explorer on Cloudflare Radar
After parsing, the event list shows timestamp, prefix, AS path, OTC (Only to Customer), and communities; View details opens full JSON. Loading by URL stores the source in the query string so the link is shareable.
Common mistakes when reading Radar routing data
Section titled “Common mistakes when reading Radar routing data”- Confusing ROA coverage with path validity — High ROA deployment does not mean every path is ASPA-valid or leak-free; check ROA timeseries and ASPA/path tools separately.
- Wrong AS path order — ASPA validation expects wire order (origin on the right). Reversing the path inverts the semantics.
- Ignoring address family — Connectivity and upstream charts can differ between IPv4 and IPv6; compare like with like.
- Treating collector view as complete reality — Graphs union selected RouteViews (and related) vantage points; unseen paths may exist.
- Single algorithm verdict — A path can be Valid under Downstream and Invalid under Upstream; both are shown deliberately.
- Equating “Other” upstream band with one provider — Upstream chart groups beyond the top 10 into Other; large shifts there may hide several networks.
How to check this on your site
Section titled “How to check this on your site”- Open Cloudflare Radar, go to Routing, and walk Overview, RPKI, and Anomalies per routing section expansion.
- On your ASN’s routing page, review AS-level connectivity and Upstream providers; toggle Show full paths and IPv4/IPv6 as needed (connectivity changelog).
- On RPKI, check ROA deployment timeseries and run suspicious paths through the ASPA path validation tool.
- For leaks affecting your AS, follow BGP anomalies investigation and cross-check glossary definitions for BGP route leaks and origin hijacks.
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are questioning so it can be corrected or explained.