RFC 10063 mirrors routing registry data as signed HTTPS files

In short

About 1 minute how often a server publishes a delta, if anything changed; At least once a day new snapshot, if there were changes; 24 hours age after which the index file counts as stale; About a dozen larger IRR databases, per the RFC

What is an Internet Routing Registry?

Networks on the internet announce which address blocks they can reach, and their neighbours have to decide which announcements to believe. One input is the Internet Routing Registry: a set of databases, written in the Routing Policy Specification Language (RPSL), in which operators record things like which network is allowed to originate which address block (our summary). The RFC says IRR objects serve purposes from manual research by operators to automated network configuration and filtering, and that operators depend on them for route filtering.

According to the RFC, about a dozen larger IRR databases are well known and widely used, run by organisations such as Regional Internet Registries and some large network operators. Most of them mirror records from some of the others, so that a query to one gives a comprehensive view. Some parties also mirror databases into private servers to cut latency or to analyse the objects.

Why replace the older mirroring protocols?

The RFC's security section is direct. Before NRTMv4, the most common protocols were FTP for full snapshots and NRTM version 3 for later changes. It says there are no provisions for integrity or authenticity and various scenarios where mirroring may not be reliable. Because manipulating IRR objects can have a significant security impact, it calls the near-absence of security in existing protocols a problem.

NRTMv3 also asked clients to query the IRR server directly with special WHOIS queries, which the RFC says scales poorly and has no standard protection against denial-of-service attacks. Of the earlier NRTM versions, none was formally specified, though NRTMv3 was widely deployed.

How NRTMv4 works

The design is three kinds of file, all on an ordinary HTTPS endpoint (this walk-through is ours, following RFC sections 2 and 4).

A client starts from the small notification file and a snapshot. After that it polls the notification file, typically every minute, and fetches only the deltas it is missing. Versions are contiguous whole numbers, and unlike NRTMv3 serials they have no gaps; one NRTMv4 version is one delta, which may hold several changes to several objects.

Start: The operator generates a key pair, keeps the private key on the server and gives clients the public key, the database name and the notification file URL. Initialisation: The server creates a random session ID (a version 4 UUID) and a snapshot at version 1. About every minute: If objects changed, the server publishes a delta with the next version number. After downtime it publishes one larger catch-up delta rather than one per minute. At least daily: If anything changed, a new snapshot. The RFC says servers should not generate one more than once an hour. Every 24 hours at most: The notification file is regenerated even if nothing changed.

If a server loses history, or a client switches to a different server, the session ID changes and clients reload from the latest snapshot. The RFC says this ensures there are no accidental gaps. References to deltas older than 24 hours should be dropped from the notification file, but never ones newer than the current snapshot.

Integrity, staleness and caching

The notification file is signed, and clients must verify the signature against their configured public key on every retrieval. It carries SHA-256 hashes of every delta and snapshot, which clients must check. The RFC calls the result a chain of trust from the signing key to each file, with HTTPS on top. Clients must use HTTPS only, never HTTP or FTP, and the endpoint must follow the TLS best practice in BCP 195.

Staleness is handled with a generation timestamp in the notification file. If it is more than 24 hours old, a client should warn the operator but may keep processing. A client that cannot get or accept the deltas it needs should reinitialise from a snapshot; if even the snapshot fails after retries, it should alert the operator and stop.

Snapshots and deltas never change for a given session ID and version, so their URLs include both, plus an unpredictable random value to avoid negative-caching problems. The RFC says such files can be cached indefinitely and asks servers to send Cache-Control: immutable. The notification file should not be cached for longer than one minute.

This is what the RFC means by scalability: files are generated once, and ordinary web caches, CDNs and DDoS protection can serve them. Key rotation is built in. A server announces the next signing key in the notification file, the RFC recommends one week before the old key is removed, and a client that misses the whole rotation needs manual recovery.

Terms in plain English

Where things stand

RFC 10063 is a Standards Track document approved by the IESG, with no IANA actions. The RFC gives no deployment figures, and we did not check which registries or software have implemented it. It states that there is no migration path from NRTMv3, and that operators wanting both can run them in parallel.

Sources

Sources

Related stories

More from Wi-Fi Wizards

All stories from Wi-Fi Wizards