Skip to content

PeeringDB ​

PeeringDB is a freely available, user-maintained database of networks, Internet Exchange Points (IXPs), data centers, and the interconnections between them.

Bruin supports PeeringDB as a source for Ingestr assets. You can use it without any connection, or with a connection that holds a PeeringDB API key.

Public source, no connection required ​

There is no .bruin.yml entry to configure. Set source_connection: peeringdb.com and Bruin reads PeeringDB as a guest:

yaml
name: peeringdb.networks
type: ingestr
connection: duckdb-default

parameters:
  source_connection: peeringdb.com
  source_table: networks

  destination: duckdb

PeeringDB limits guests to 20 requests per minute per IP address and only shows them contacts marked public, so run guest assets one at a time.

Connection with an API key ​

A PeeringDB API key doubles the request allowance and returns contacts that are visible only to PeeringDB users. Add it as a connection in .bruin.yml:

yaml
    connections:
      peeringdb:
        - name: "peeringdb"
          api_key: "<api_key>"
FieldRequiredDescription
nameYesThe name to identify this PeeringDB connection.
api_keyYesA PeeringDB user or organization API key. A read-only key is enough.

Then point the asset at it:

yaml
name: peeringdb.network_contacts
type: ingestr
connection: duckdb-default

parameters:
  source_connection: peeringdb
  source_table: network_contacts

  destination: duckdb

PeeringDB data is subject to its acceptable use policy.

Available Source Tables ​

Every table uses id as its primary key and is loaded with the merge strategy, using updated as the incremental key. Records deleted in PeeringDB are kept with status set to deleted.

TablePKInc KeyInc StrategyDetails
organizationsidupdatedmergeOrganizations that own networks, exchanges, facilities, carriers, and campuses
campusesidupdatedmergeCampuses that group facilities
facilitiesidupdatedmergeFacilities, such as data centers
carriersidupdatedmergeCarriers that provide connectivity between facilities
carrier_facilitiesidupdatedmergeCarrier presence at facilities
exchangesidupdatedmergeInternet Exchange Points
exchange_facilitiesidupdatedmergeExchange presence at facilities
exchange_lansidupdatedmergeExchange peering LANs
exchange_prefixesidupdatedmergePrefixes used on exchange peering LANs
networksidupdatedmergeNetworks (autonomous systems)
network_facilitiesidupdatedmergeNetwork presence at facilities
network_exchange_lansidupdatedmergeNetwork connections to exchanges, with IP addresses and port speeds
network_contactsidupdatedmergeNetwork points of contact; guests only see public ones

Run the asset ​

bash
bruin run assets/peeringdb_networks.asset.yml