AS Routing Consistency

This data call shows the difference between the routing and the registration state of an ASN. A filter for BGP routes is applied removing non-globally visible prefixes that are not seen by at least 10 RIS full-table peers.

        https://stat.ripe.net/data/as-routing-consistency/data.<format>?<parameters> 
    

e.g. https://stat.ripe.net/data/as-routing-consistency/data.json?resource=AS3333

Parameters

Key Value Info Required
resource asn The ASN to query yes

Output

Data

Key Info
in_bgp "True" if the route has been seen by RIS, "False" otherwise
in_whois "True" if the route exists in IRR or whois, "False" otherwise. For prefixes it is meant to be a Internet Routing Registry, for peers it is meant to be the whois registration of the authoritative Internet registry.
prefix (For prefix routes) the prefix in CIDR notation
peer (For peer exports/imports) the AS number of the peer
query_starttime/query_endtime For routing data: holds the start and end time the query covers
For registration data: query_starttime defines the query time In version 1.1 the result is based on a snapshot instead of a time period. For compatibility reasons "query_starttime" and "query_endtime" will be kept in version 1.x but will hold the same value.
resource Defines the resource used for the query
authority Holds the authoritative Internet registry for the input resource (e.g. RIPE, APNIC, ARIN...)

Example

        "data": {
            "authority": "ripe", 
            "exports": [
                {
                    "in_bgp": false, 
                    "in_whois": true, 
                    "peer": 20481
                }, 
                {
                    "in_bgp": false, 
                    "in_whois": true, 
                    "peer": 8196
                }, 
                ...
                {
                    "in_bgp": true, 
                    "in_whois": true, 
                    "peer": 4637
                }
            ], 
            "imports": [
                {
                    "in_bgp": false, 
                    "in_whois": true, 
                    "peer": 20481
                }, 
                {
                    "in_bgp": true, 
                    "in_whois": false, 
                    "peer": 40962
                }, 
    
                ...
            {
                    "in_bgp": true, 
                    "in_whois": false, 
                    "peer": 559
                }
            ], 
            "prefixes": [
                {
                    "in_bgp": true, 
                    "in_whois": true, 
                    "irr_sources": [
                        "RIPE"
                    ], 
                    "prefix": "193.138.29.0/24"
                }, 
                
                ...
                {
                    "in_bgp": true, 
                    "in_whois": false, 
                    "irr_sources": "-", 
                    "prefix": "193.230.234.0/24"
                }
            ], 
            "query_endtime": "2012-11-15T10:34:00", 
            "query_starttime": "2012-11-15T10:34:00", 
            "resource": "AS6830"
        }, 
    

deprecated - 1.0

This version has been superceded by version 1.1 which is using a more reliable backend.

upcoming - 2.0

Difference to version 1.1: "query_endtime" & "query_starttime" have been replaced by "query_time"