kloesing/Onionoo — Issue #14: Include AS information in relay details documents
Author: kloesing
Created: 2012-02-19 18:16:57+00:00
State: open

Damian and I discussed including AS numbers and names in relay detail documents. Maxmind has "a [free database](http://www.maxmind.com/download/geoip/database/asnum/) that maps IPv4 addresses to ASN, including the name of the ASN." The first four of 181049 lines in their CSV file are:

16778240,16779263,"AS56203 Big Red Group"
16781312,16782335,"AS2519 VECTANT Ltd."
16783616,16785407,"AS2519 VECTANT Ltd."
16793600,16809983,"AS18144 Energia Communications,Inc."

We could add two new fields "as_number" and "as_name" to relay details documents containing these information for any given relay. If we don't find a relay in their database, we'd just leave out these fields.