NRO Signed Stats

Proof of concept implementation that takes (to be signed) RIR delegation stats to build up the current view of which RIR holds which Internet Number Resources.

Disclaimer

This is EXPERIMENTAL work and not intended for production use until this is all much more mature!

Code

The code for this currently lives on a private NRO gitlab repository. It will likely be made public when it is more mature.

Output

This tool combines IANA and RIR stats files in order to resolve the holdership of resources to each RIR. History is kept so that resources which have been resolved to one registry can only move to another registry after the current holder drops its claim. The following files are downloaded daily at 9:00 UTC and then used for verification.

IANA    -> "https://ftp.apnic.net/pub/stats/iana/delegated-iana-latest"

AFRINIC -> "https://ftp.afrinic.net/stats/afrinic/delegated-afrinic-extended-latest"
APNIC   -> "https://ftp.apnic.net/stats/apnic/delegated-apnic-extended-latest"
ARIN    -> "https://ftp.arin.net/pub/stats/arin/delegated-arin-extended-latest"
LACNIC  -> "https://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-extended-latest"
RIPENCC -> "https://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest"

The following files are then saved in a yyyy/mm/dd directory under out:

Filename Description
resolved.txt Resolved claims in the format of the NRO delegated stats file. I.e. this includes all resources for which a unique holder was determined.
unresolved.txt Contains all other claims. This could be overclaims due to an ongoing transfer. Claim that get the 'state' 'coholder' iare expected when the tool has no prior state and resources are seen under two RIRs because of an ongoing transfer. It is expected that the holdership will resolve after the transfer is complete.
verified-constraint-configuration-RIR.txt Verified constraint configuration files for each RIR containing all resources that were uniquely claimed by that RIR, or recently removed by that RIR (allowing make-before-break)
unverified-constraint-configuration-RIR.txt UN-Verified constraint configuration files for each RIR containing all resources listed in the RIR's stats file.

TODO / DONE

The following is a - possibly not quite up to date - list of what is done, and still planned to be done for this tool

Basic Stats Resolution and Outputs

Signing

Validation

Possible Technical Improvements

Possible, Maybe, Future, Ever?