Technical reference
ASN Lookup technical details
This reference documents how the ASN Lookup works: what it accepts, where each fact comes from, how upstreams and downstreams are worked out, and the limits it keeps to.
What you can look up
| Input | Example | What happens |
|---|---|---|
| AS number | AS64500, 64500 or asdot 1.10 | The AS profile: holder, registry, prefixes and neighbours. |
| IP address | 192.0.2.1 or 2001:db8::1 | The prefix it is announced in, its origin AS, reverse DNS and RPKI status, then the origin’s profile. |
| Prefix | 198.51.100.0/24 | As for an address, without reverse DNS. Host bits are cleared first, so 198.51.100.7/24 is read as 198.51.100.0/24. |
| Domain | example.com | Its first A record, or AAAA if there is no A record, is looked up as an address. |
Special-purpose numbers and addresses are explained instead of looked up: private, documentation and reserved ASNs, and private, loopback, link-local, carrier-grade NAT, documentation, multicast and other non-global addresses. No autonomous system announces those on the public internet.
Where the data comes from
Every lookup reads public data at the time you ask, and answers are cached for an hour. No lookup history is kept.
| Shown as | Source |
|---|---|
| Holder and whether the AS is announcing routes | RIPEstat as-overview |
| AS name, country, registry and allocation date; names of neighbours | Team Cymru IP-to-ASN mapping, over DNS (AS64500.asn.cymru.com TXT) |
| Announced prefixes | RIPEstat announced-prefixes, last two weeks |
| Upstreams and downstreams | RIPEstat asn-neighbours |
| Prefix, origin AS and IANA block for an address | RIPEstat prefix-overview |
| RPKI status | RIPEstat rpki-validation |
| Reverse DNS | A PTR query to Cloudflare’s 1.1.1.1 over DNS-over-HTTPS |
RIPEstat is built on the RIPE NCC’s Routing Information Service (RIS), route collectors that receive full BGP tables from hundreds of networks around the world. A route that none of those networks carry, such as one used only inside a region or between two private peers, does not appear.
Answers are cached for an hour, because routing tables change slowly and the sources ask heavy users to be considerate. The page says when a result came from the cache. Lookups are rate limited per visitor.
Prefixes
RIPEstat lists every prefix the AS originated in the last two weeks that at least 10 RIS peers saw. The counts and charts include only prefixes still announced at the end of that window; the rest are counted separately as recently withdrawn.
- IPv4 addresses counts each address once, even where announcements overlap, such as a /16 and a /24 inside it. “/24 blocks” divides that by 256.
- IPv6 /48 networks is the same total for IPv6, in units of /48, the size most networks accept as the longest route.
- Prefixes by length charts how many announcements there are of each size. A smaller number after the slash is a bigger block.
- The prefix list shows up to 1,000 prefixes, IPv4 first, in address order. The counts always cover them all.
Upstreams and downstreams
The neighbour graph comes from the AS paths the RIS collectors recorded. A neighbour that appears to the left of the AS in a path, between it and the collector, is shown as upstream. One that appears to the right, behind it, is shown as downstream. Left usually means a transit provider and right usually means a customer, but BGP data shows positions in paths, not contracts: a peer can appear on the left, and a network that is both a customer in one region and a peer in another can appear on either side.
RIPEstat flags a third group, shown as possibly upstream: neighbours that also feed the route collectors directly. Because their own sessions with the collectors put them at the left of every path they send, they may look upstream when they are not.
The graph and tables show the 10 neighbours on each side that appear in the most AS paths (6 per side on narrow screens), and up to 6 possibly upstream networks. The “Paths” number is that count, and line thickness follows it. Counts above the graph cover every neighbour. Select a neighbour to look it up.
Where an address sits
For an address or prefix, three bars show how it nests: the block IANA allocated to a registry (for example a /8), the prefix announced in BGP and its share of that block, and the address’s position inside the prefix. The registry shown is the one IANA allocated the block to; addresses can later be transferred between registries, so the holder’s own registry record is the final word. Website Recon reads that record for the addresses a website uses.
When more than one AS originates the prefix, all of them are listed and the first is profiled. Multiple origins can be deliberate, such as during a migration or with some DDoS protection services, or a sign of a leak or hijack.
RPKI status
Route origin validation, defined in RFC 6811, compares the announced prefix and origin AS with the route origin authorizations (ROAs) published in RPKI:
| Shown as | Meaning |
|---|---|
| RPKI valid | A ROA allows this AS to originate this prefix at this length. |
| RPKI invalid | ROAs cover the prefix, but none allows this origin, or none allows a prefix this long. Networks that enforce RPKI drop the route. |
| No ROA | No ROA covers the prefix, so RPKI has no opinion. The route is accepted, but it is not protected against mis-origination. |
The status is checked for the first origin AS only. RPKI Explained shows how to publish ROAs.
Limits
| Limit | Value |
|---|---|
| Neighbours named per side | 10 upstream, 10 downstream, 6 possibly upstream |
| Prefixes listed | 1,000 (counts and charts include all) |
| Prefix window | The last two weeks, seen by at least 10 RIS peers |
| Timeout per source | 8 seconds for RIPEstat, 4 seconds for DNS |
| Cache | 1 hour |
| Rate limit | 60 lookups an hour and 300 a day per visitor, not counting cached answers |
If RIPEstat cannot be reached, the lookup stops with an error rather than showing partial data as complete. If only the neighbour or prefix data is missing, that section says so and the rest is shown.