About Peering

Internet Connectivity Distribution & Core.svg

A diagram of how independent networks on the Internet connect to each other.

By User:Ludovic.ferre - Internet Connectivity Distribution&Core.svg, CC BY-SA 3.0, Link


Peering is when two networks (Autonomous Systems) agree to connect directly to each other and exchange routing information to carry traffic between themselves, rather than relying on an upstream transit provider. [1]

Each party in a peering relationship will configure their routers to announce to connected neighbouring routers (peers) the IP address subnets that it has routes for, for example those belonging to the customers of an ISP or hosting company, so that peers know where to direct any traffic for those subnets that it receives.

When a router receives and accepts a route announcement from one of its peers, it will then store an entry in its routing table. [2]

A routing table, in its simplest form, records which interfaces / gateways are able to route IP traffic onwards, and a cost metric to be used in prioritising routes, where there are multiple paths to a destination network.

 

Simplified example of a routing table

Destination network Next hop/Gateway Cost metric
0.0.0.0/0 eth0 / 198.51.100.2 10
192.0.2.0/24 eth1 / 192.0.2.1 5
127.0.0.0/8 lo / 127.0.0.1 0

Footnotes and references

  1. Cloudflare. "What is BGP?" cloudflare.com. https://www.cloudflare.com/en-gb/learning/security/glossary/what-is-bgp/ (accessed Dec. 2, 2021)
  2. Wikipedia. "Routing table" en.wikipedia.org. https://en.wikipedia.org/wiki/Routing_table (accessed Dec. 3, 2021)