Routinator

Between a resource holder publishing a ROA and a router checking an announcement, two things have to happen. A validator has to establish which records it can trust, and the router needs a current copy of the results. Routinator handles validation and serves the resulting data. The router sees the BGP announcements and applies the operator’s policy.

Validating a distributed repository

Starting from its configured trust anchors, Routinator follows the certificate hierarchy to the publication points where certification authorities publish their records. A resource certificate establishes which IP addresses or AS numbers its holder can speak for. When validating a Route Origin Authorisation (ROA), Routinator checks both the signature and whether the certificate covers the prefixes in the authorisation.

Routinator prefers the RPKI Repository Delta Protocol (RRDP) when available. Once it has retrieved a snapshot, it can bring its local copy up to date by fetching only the subsequent changes. Its fallback policy determines when it tries rsync if RRDP fails.

At each publication point, a signed manifest lists files and their hashes. This gives Routinator a way to detect an incomplete update, even when the download itself succeeds. It keeps the most recent correctly published set separately from newly fetched files. If a replacement set is incomplete, Routinator can validate the stored set again. Certificate validity and freshness checks still apply. By default it rejects stale manifests and revocation lists. A repository outage can therefore change the data available to routers as previously usable material ages out.

Read about repository updates and validation.

What a router receives

For each prefix in a valid ROA, Routinator derives a Validated ROA Payload (VRP) containing the prefix, maximum prefix length and origin AS number. A router compares an announcement with all VRPs that cover its prefix. One VRP permitting both the announced length and the origin AS is enough for Valid. If VRPs cover the prefix but none permits that combination, the result is Invalid. If none covers it, the result is NotFound.

For example, a ROA may authorise AS 64496 to announce 192.0.2.0/24 with a maximum length of 24. If this is the only covering VRP, an announcement of 192.0.2.0/25 from the same AS is Invalid. The origin matches, but the announcement is more specific than the authorisation permits.

An Autonomous System Provider Authorisation (ASPA) describes a relationship between networks. Routinator combines the authorised providers for a customer AS into a provider set. To use that set in routing decisions, the receiving software needs to exchange ASPA data over RTR version 2, verify AS paths against the data and apply the configured policy. RTR version 0 carries VRPs, version 1 adds BGPsec router keys and version 2 also carries ASPA payloads.

Read about ASPA in Routinator.

Serving updates to routers

While a validation run is in progress, routers can continue to use the last completed data set. Routinator keeps a history of changes, so a router that reconnects with a known session and serial number can request just the updates it missed. When that history no longer covers the router’s serial number, the router retrieves the full set.

After a service restart, Routinator first tries to validate the contents of its local store. If successful, it can serve those results while it fetches fresh repository data. With an empty store it must complete a network validation run before the first data set is available. A successful data request can therefore precede the first completed network update.

Routers can connect directly to Routinator’s RTR server. For a deployment with several sites, RTRTR can take a feed from the validator and serve local router sessions. This lets operators place distribution close to routers while choosing independently where to retrieve and validate repository data.

RTR service · Service startup

Understanding the data your network uses

When an announcement unexpectedly becomes Invalid, the prefix checker shows which VRPs cover it and whether the origin or the prefix length accounts for the result. For a record-level investigation, the extended JSON output includes source information such as the publication URI and certificate validity times. Repository metrics help establish whether an update failed, while RTR session metrics show what is happening on the connection to a router.

Operators can also apply local exceptions using SLURM. Routinator filters matching published payloads before adding locally asserted data. For example, an operator can temporarily authorise a specific prefix and origin AS for its own routers while the resource holder corrects a ROA. The exception affects consumers of that validator’s output. Other networks continue to see the authorisations published in the RPKI.

Checking an announcement · Local exceptions · Monitoring