![]() |
![]() |
You're here: Home » Database » RIR Statistics Exchange Format |
RIR Statistics Exchange FormatThis specification defines the file production cycle, naming and content for the RIR statistics files. The RIR statistics files summarise the current state of allocations and assignments of Internet number resources. They are intended to provide a snapshot of the status of Internet number resources, without any transactional or historical details. This format replaces the previous statistics exchange format, and differs from it in significant ways. The details of this format are to be considered a published RIR standard, on which other parties are expected to rely. RIRs must comply with this standard in every respect. Contents
1. Production processEach RIR periodically produces a text file of records as described below, representing all of the allocations and assignments which have been made by that RIR to that date. This file is to be produced daily. The last time of any record for the file is 23:59:59 in the local time zone of the producing RIR (i.e. the last possible time on the specified calendar day in that time zone). An MD5 checksum is to be computed on the file, and published under a matching name, with file extension .md5 appended. A PGP or other cryptographically strong signature can also be computed, and published under a matching name with suitable extension. 2. File naming and exchange2.1 File nameEach file is called delegated-<registry>-yyyymmdd The <registry> value follows the internal record format and is one of the specified strings from the set: {afrinic,apnic,arin,iana,lacnic,ripencc} This set may be altered to add, remove or modify registries. The file is marked delegated-<registry> to discriminate it from any other <registry> files produced in another context. These would be expected to be named in a different file-tree, but if accidentally placed in the same directory would cause no data loss. Data compression is optional. If compressed, the normal file suffix is used to denote the compression algorithm (.gz, .bz2, .zip etc). The most recent file (named as follows) must be available in a non- compressed form. The most recent file will also be available under a name of the form delegated-<registry>-latest. This can be a symbolic or hard link to the delegated-<registry>-yyyymmdd file but must be pointed at the most recent file when it is updated. This is to permit automatic fetching of the current data via a persistent URL, in systems jobs, or in browser bookmarks or other stored form. 2.2 File exchangeEach RIR will make its files available in a standard ftp directory, defined as /stats/ 2.3 File availabilityData will be available by FTP, and additionally by any other access method the RIR chooses. This may include alternative URLs, but these will reflect the common naming model. Data will be publicly visible and will not require access control (world-readable). Examples: http://www.apnic.net/stats/<registry>/delegated-<registry>-latest rsync www.apnic.net::stats/<registry>/delegated-<registry>-latest ftp://ftp.apnic.net/pub/stats/<registry>/delegated-<registry>-latest (the use of a standard prefix in a URL such as /pub/ in FTP servers is not considered obligatory, and does not define the URL for use in HTTP or other access methods. The defined URL base is /stats/<registry>/ across all application-specific access methods) 3. File formatThe file consists of comments, file header lines, and records, one record per line. Header and record lines are structured as 'comma separated fields' (CSV), with leading and trailing blank text in fields not meaningful. The vertical line character '|' (ASCII code 0x7c) is used as the CSV field separator. After the header lines, records are not sorted. 3.1 CommentsComments are denoted by # at the beginning of a line. No line-embedded comments are permitted. Comments may occur at any place in the file. Examples: #optional comments. # any number of lines. #another optional comment. Blank lines are permitted, and may occur at any place in the file. 3.2 File headerThe file header consists of the version line and the summary lines for each type of record. There must be only one version line, which must be the first line of the header. There must be at exactly one summary line for each type of record which appears in the file. 3.2.1 The version line Format: version|registry|serial|records|startdate|enddate|UTCoffset Where:
3.2.2 The summary line The summary lines count the number of record lines of each type in the file. Format: registry|*|type|*|count|summary Where:
Note that the count does not equate to the total amount of resources for each class of record. This is to be computed from the records themselves. 3.2 Record formatAfter the defined file header, and excluding any space or comments, each line in the file represents a single allocation (or assignment) of a specific range of Internet number resources (IPv4, IPv6 or ASN), made by the RIR identified in the record. In the case of IPv4 the records may represent non-CIDR ranges or CIDR blocks, and therefore the record format represents a beginning of range, and a count. This can be converted to prefix/length using simple algorithms. In the case of IPv6 the record format represents the prefix and the count of /128 instances under that prefix. Format: registry|cc|type|start|value|date|status[|extensions...]
4. Validation/assumptionsValidation is assisted by the file headers, using the "records" field. Also by checking the file name against its contents, and by use of the detached MD5 and/or other checksum files. Within any one file. there should be no overlap of assigned records by their base address and count or prefix length. During the transfer of management of a resource from one RIR to another, it is possible that there will be overlapping records when comparing each file. It is assumed that any one file only contains records with registry field set to the value of the file-producing RIR. Early Registration Transfers (ERX) do not have any special tagging in this format. As resource management responsibility moves between the RIR then resource records will move between stats files. ERX records are expected to move from the old to the new registry at the end of any defined transfer window. This minimises the risk of data overlap and avoids unnecessary changes to data. 5. Non-Registry allocated and assigned dataHistorical assignments which are not under Regional Internet Registry management will not be included in the RIR produced files. An instance of the known state of these 'IANA' assignments will be incorporated in the mirroring system if maintained by IANA. 6. Extensions to the formatExtensions to this format may be made by mutual agreement among the participating registries. 7. Data retentionThere is no obligation on any registry to retain previous files, once a new file is produced and lodged for public access. Home | MyAPNIC | Info & FAQ | Services | Training | Meetings | Membership | Policy | Internet community | Search Last modified Monday, 16-Jan-2006 12:02:03 EST | © 1999 - 2009 APNIC Pty. Ltd. Contact us | Privacy statement | RSS ![]() |