← ROOTBEER

AS-SET Check

Reference: the data sources, how a run uses them, what every number and badge means, and what the page shows.

AS-SET Check answers one question for every BGP peer of Internet2 (AS11537): how well does the IRR as-set the peer publishes cover what the peer actually announces to Internet2? It measures that two ways — by ASN (is the origin of each accepted route in the set?) and by prefix (would the prefix filter Internet2 builds from the set, out of the route objects in ROOTBEER's own IRRd, let the route through?) — and lays out the evidence so a peer can be told exactly what to add.

This document describes the data sources, how each one is used, and what the user sees. The about page inside the app is the short version of the same material.


1. Data sources

Source What AS-SET Check takes from it Where it comes from Refresh
NSO per-policy route report Every accepted and rejected route Internet2 receives: prefix, full AS path, accept/reject. The peer is the first hop after AS11537. Internet2's routers via NSO, uploaded to rootbeer-store (/rootbeer-store/i2-route-report), loaded by the RE Topology Report, which AS-SET Check reads in memory. Report reloaded every 12 h; a run recomputes whenever the report's timestamp changes.
IRRd (ROOTBEER's own mirror) aut-num export policy, as-set members and recursive expansions, and route/route6 objects. The repo's IRRd deployment (charts/irrd), one release per environment (irrd.irrd-prod.svc in production, irrd.irrd-dev.svc in Dev, a laptop port-forward locally). GraphQL over HTTP, Host: irrd.local. Live queries on every run. IRRd itself mirrors the registries continuously (NRTM) and re-imports ROAs hourly.
PeeringDB Each network's irr_as_set field (free text; several names and plain ASNs are accepted). https://www.peeringdb.com/api, net records, 150 ASNs per request; anonymous or with PEERINGDB_API_KEY. Live on every run.
CAIDA AS organizations AS names shown next to every ASN. rootbeer's shared asnames store. Every 24 h.
RouteViews, via reinfo Internet2's BGP communities on each prefix, used for the international-peer marker. reinfo downloads RouteViews RIBs (including the route-views5 collector); the RE Topology Report asks reinfo for the prefixes carrying Internet2's labelled communities. reinfo refreshes every 2 h; the report's community map 30 s after boot and every 30 min.

1.1 The IRRd view

Route objects are looked up with no sources argument, so IRRd answers from its default view, which is what any filter generator querying the same IRRd gets:

A registry IRRd does not mirror is invisible: a route object that exists only there reads as missing.

1.2 Internet2 communities

Internet2 tags routes on ingress with communities from a small labelled set (shared palette rootbeer/community_palette.py):

Community Label Meaning
11537:950 I2 Internet2 Participants
11537:3000 Fed US Federal Networks
11537:2501 Intl R&E Networks outside the US

The map is per prefix and reflects RouteViews' view of the best path, so a prefix learned from two peers carries the tag of the path RouteViews saw.


2. How a run works

A run is a background job (a child process, so the minutes of work never stall the web server). It produces one record per peer plus run-level metadata, keeps the result in memory and in /data/as-set-check-cache.json.gz (schema 6), and serves it from there.

2.1 When runs happen

Every 15 minutes the service decides whether to recompute:

A run waits up to 20 minutes (polling every 15 s) for the route report to load, then up to 5 minutes for the route report's community map on a cold start, and may take up to 25 minutes in total (typically 3–4 minutes for ~130 peers).

2.2 Stages

  1. Cone. From the route report's AS paths: for every peer, every downstream ASN seen after it (the peer itself excluded), with the distinct accepted and rejected prefixes on paths through each ASN, which ASNs are origins, and the positional tree used by Tree mode.
  2. aut-nums (IRRd rpslObjects, 40 per request, 3 in flight). Peers first, then every ASN in the trees. From each aut-num's export/mp-export values the policy toward Internet2 is parsed (see §3.1).
  3. PeeringDB net records for the same ASNs (150 per request; 3.1 s between requests anonymously, 1.6 s with a key; up to 3 attempts; Retry-After-style hints honoured up to 120 s).
  4. Expansion (IRRd recursiveSetMembers, 20 sets per request). Every set a peer names is expanded recursively to ASNs. IRRd returns one entry per registry holding a set name; their members are unioned.
  5. Direct members (IRRd rpslObjects on as-set, 40 per request), for Tree mode's "how does the parent's set include the child" question.
  6. Route objects (IRRd rpslObjects(ipLessSpecific:), 50 prefixes per request, 4 in flight, 8-minute budget). For every distinct prefix seen via any peer, accepted or rejected, the route/route6 objects whose prefix equals it or is a less specific of it. After 3 consecutive failed requests the stage gives up for the run, so a wrong query does not turn into a thousand warnings.
  7. Report. Per-peer coverage, verdicts, findings and the Tree roll-up (§3–§4).

Every IRRd request is retried once after 2 s on a transient error. A failed request is logged and leaves a hole; the run then marks what the hole affects as stale and carries the previous run's values for it (§2.3).

2.3 Degraded runs and stale data

Source unavailable Effect on the run What the page shows
IRRd (aut-num / expansion / members) Peers whose data did not arrive keep the previous run's IRR side; with no earlier run, their tier is unknown. Banner chip IRRd red; a callout; flag/finding IRRd data is carried over from an earlier run.
PeeringDB Same carry-over for the PeeringDB side. Chip PeeringDB red; flag/finding PeeringDB data is carried over.
Route objects (some or all prefixes) Prefixes whose lookup failed keep their previous route objects (marked stale) or, with none, read unknown. Chip Route objects red; finding Route objects are carried over; unknown verdicts.
Community map (cold start, reinfo down) Every peer's international flag is unknown. The International peers only switch is disabled with its reason shown.

Trees fall back to the previous run whenever any tree stage failed, since one missing chunk would silently strip children of their sets.


3. Definitions

3.1 Where the as-set comes from (tiers)

For each peer the first tier that yields a set wins:

Tier Source Label in the UI
1 aut-num export toward AS11537: to AS11537 announce … (export or mp-export) aut-num → AS11537
2 aut-num export toward everyone: to AS-ANY announce … aut-num → AS-ANY
3 PeeringDB net.irr_as_set PeeringDB
— none of the above no as-set
4 (Tree mode only) a member of the parent's set named AS<child>:AS-… inferred name

Every as-set and plain ASN named in the announce clause counts, whatever the operators joined them with; several names are unioned into one declared cone. The declared cone also includes any plain ASNs in the export and the peer itself. Parsing details: AS-path regular expressions (<…>) and prefix-set literals ({…}) are dropped; a clause ends at ; or at a bare refine/except/to/action; to AS293 or AS11537 announce … (as-expressions) is not matched; to AS-ANY except AS11537 still counts as tier 2.

When several registries publish the aut-num and name different sets at the winning tier, their union is used and the peer gets a registries disagree finding. PeeringDB is always fetched as a cross-check; naming a different set than the aut-num gives PeeringDB disagrees. An export that exists but names no set (a prefix or community filter) gives export without as-set and is shown verbatim under Sources.

3.2 ASN coverage

3.3 Prefix coverage

Internet2's filters allow every prefix that has a route object originated by an ASN in the set, and their more-specifics. For each prefix seen via the peer:

Verdict Rule Passes the filter?
covered a route object for exactly this prefix has an origin in the declared cone yes
covered via less specific no exact object qualifies, but a covering (less specific) one does yes
origin not in set (outside_set) route objects exist, but none has an origin in the declared cone no
no route object (no_object) nothing in any mirrored registry and no ROA covers it no
unknown IRRd could not be asked in this run and no earlier result exists counted in no ratio
no set to filter with the peer has no usable set (none found, or expansion incomplete) every known accepted prefix counts as not passing

A covered prefix whose qualifying objects all name an origin other than the announcing AS is still covered but flagged origin mismatch. Prefix coverage % is covered ÷ known (non-unknown) accepted prefixes; the rejected bar is the same over rejected routes, so a rejection whose only problem is a missing route object stands out. Peers without a usable set have no percentage and are excluded from the fleet ratios.

3.4 International peers

A peer is international when at least one route received via it, accepted or rejected, carries 11537:2501 in the route report's community map. The flag is unknown when the run had no community data. The per-peer record also carries the count of prefixes per labelled community.

3.5 Tree mode (roll-up)

Each child's set is resolved relative to its actual parent (to AS<parent> announce …, then AS-ANY, PeeringDB, then an inferred AS<child>:AS-… member), and the edge is classified by how the parent's set includes the child:

Verdict Meaning Colour
as-set the parent lists the child's own set, so the child's additions roll up green; orange if that set omits the child's own ASN and nothing else supplies it
ASN covered by the bare ASN only orange when the child's own set declares ASNs the parent lacks (missing up)
indirect covered only through another member set as above
not covered absent from the parent's set entirely red
parent has no set nothing can roll this branch up grey
unknown IRRd data for this edge was unavailable in the run grey

For every AS with a set, missing own lists the ASNs seen beneath it that its set does not declare (yellow). Lists are capped at 1,000 entries.


4. Findings

The peer page leads with findings: one sentence each, with a View button that opens the right tab and chip and, where a list helps, a Copy button. Ordered red, then amber, then informational; within a band by the leading count, descending.

Id Severity Title When
no_as_set red (amber if the peer has no accepted routes) No as-set found in any registry or PeeringDB tier is none
asns_not_in_set red N ASNs accepted via this peer are not in the as-set any bgp only, accepted/mixed ASN; text gives origin vs transit counts and the accepted prefixes that depend on them
prefixes_not_passing red N accepted prefixes would not pass a filter built from the as-set measured no_object + outside_set > 0
expansion_incomplete amber Part of the as-set could not be expanded; coverage is not measured IRRd did not return every member set
set_not_found amber A named as-set does not exist in the IRRd mirror names listed
export_without_as_set amber The export toward AS11537 / AS-ANY names no as-set prefix or community filter
registries_disagree amber Registries publish different sets at the effective tier union used
peeringdb_disagrees amber PeeringDB names a different set than the aut-num export both named
irr_stale, peeringdb_stale, route_objects_stale amber … data is carried over from an earlier run the source was unreachable in this run
rejected_not_passing info N rejected prefixes also lack set or route-object coverage filtering working as intended
rejected_covered info N rejected prefixes are covered by the as-set and route objects rejected for other reasons (RPKI, prefix length, policy)
origin_mismatch info N prefixes are covered only by route objects with a different origin than announced passes, registration does not match
declared_not_seen info N ASNs are declared but never seen via this peer normal for a large set
no_accepted_routes info No accepted routes from this peer
unknown_prefixes info N prefixes could not be looked up IRRd did not answer, no earlier result

5. What the user sees

5.1 Run banner

At the top of every view: Compared (when the run finished), Route report (the report's timestamp), Route objects (when fetched, how many prefixes), and three chips — IRRd, PeeringDB, Route objects — green when that side of the run was complete. A callout explains any stale carry-over. The Data Sources link opens the shared modal, where AS-SET Check contributes the rows IRRd GraphQL queries, Route objects (AS-SET Check) and PeeringDB Network records (irr_as_set).

5.2 Overview (/as-set-check)

Summary tiles

Tile Value Beneath
Peers number of peers how many publish a set, how many none, how many are international (when known)
Accepted prefixes accepted routes via all peers rejected count
ASN coverage fleet share of accepted prefixes whose origin the set declares measured over peers with a set
Prefix coverage fleet share that a filter built from the set would pass over peers with a usable set
Peers with gaps peers with any uncovered ASN or not-passing prefix how many have no set at all

Controls

Table columns

Column Content
Peer ASN (link to the peer page), Intl badge when international, CAIDA name
Publishes tier badge (green AS11537 export, blue AS-ANY, orange PeeringDB, red no as-set; unknown (IRRd unavailable) when applicable), plus flag icons for private ASN, no accepted routes, disagreements, set not found, incomplete expansion, stale sides
AS-set first set name; "+n" expands the rest
Cone downstream ASNs seen; accepted / rejected prefixes beneath
ASN coverage accepted bar over rejected bar; hover for counts
Prefix coverage the same for the route-object filter; for a set-less peer the line counts accepted prefixes with no route object anywhere
Gaps uncovered accepted ASNs over accepted prefixes that would not pass

Each header has an i button with a full description.

URL. The overview's choices are in the hash, written only when they differ from the defaults: #q=<text>&show=gaps|no_set|prefix_gaps&publishes=1|2|3&private=1&intl=1&sort=<column>&dir=asc|desc. private=1 shows private ASNs; dir appears only when it overrides the column's default direction. Changing a filter rewrites the hash in place (no history entry); Back from a peer page returns to the same filtered view.

5.3 Peer page (/as-set-check/asn/<asn>)

Header: AS<asn> · name, the tier badge, the Intl badge when international, the set names (or "no as-set"), a PeeringDB link.

Tiles: Via this peer (accepted prefixes · rejected) · Downstream ASNs (seen in accepted paths · declared) · ASN coverage (covered of accepted) · Prefix coverage (would pass · unknown) · Rejected (covered · not passing).

Findings (§4), then four tabs, each with a count badge:

Tabs and chips are part of the URL (#tab=prefixes&chip=no_object); old ?view=tree links still open the tree.


6. API

All under /as-set-check. While no run exists the data endpoints answer 503.

Endpoint Returns
GET /api/peers run (metadata, including irrd_ok, peeringdb_ok, route_objects_ok, communities_ok, fetch times, counts and the fleet summary) and peers, one overview row per peer
GET /api/peer/{asn} run plus the full peer record: sources, expansions, per-ASN rows, flags, counts, findings
GET /api/peer/{asn}/tree the roll-up tree for Tree mode
GET /api/peer/{asn}/prefixes the per-prefix rows with their route objects and verdicts, plus stale

Prefix rows list BGP prefixes and public IRR route objects only; no individual host addresses are served.


7. Limitations