---
title: "Peering automation at Facebook"
description: "Facebook replaced its manual, email-driven public peering process with a self-service portal at facebook.com/peering, where networks authenticate via PeeringDB OAuth and request BGP sessions at internet exchanges."
url: "https://swe.quest/articles/peering-automation-at-facebook-a7d38d4377b51007"
canonical: "https://engineering.fb.com/2021/05/20/networking-traffic/peering-automation/"
source: "Meta Engineering"
published: "2021-05-20"
difficulty: "easy"
kind: "Case study"
reading_minutes: 5
tags: ["networking","identity-auth"]
---

# Peering automation at Facebook

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2021-05-20, 5 min read, Case study. Original: [https://engineering.fb.com/2021/05/20/networking-traffic/peering-automation/](https://engineering.fb.com/2021/05/20/networking-traffic/peering-automation/)

## Summary

Facebook replaced its manual, email-driven public peering process with a self-service portal at facebook.com/peering, where networks authenticate via PeeringDB OAuth and request BGP sessions at internet exchanges. Approved requests trigger a workflow that validates peer data (IPs, max-prefix) against PeeringDB and internal tables, configures Facebook's routers, emails the peer, and checks daily for session establishment, sending reminders on days 2, 3, 7 and 13. The system has pushed over 1,400 sessions from 149 approved requests, saving more than eight hours of engineer time per week, and Facebook recommends PeeringDB OAuth as an industry standard for peering automation.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- BGP basics ([easy posts on Networking](https://swe.quest/tags/networking.md?difficulty=easy))
- internet exchange peering

## Keywords

PeeringDB, BGP, OAuth, Facebook, internet exchange

## Related posts

- [Password Protection with OAuth2 Proxy](https://swe.quest/articles/password-protection-with-oauth2-proxy-5f43c2cdc6af05d6.md): Render · 2022-02-10 · Medium · 6 min read · Identity & auth, Load balancing, Cloud platforms
  Putting oauth2-proxy in front of a Render Private Service adds OAuth-based login (Google, GitHub and a dozen other providers) to an existing web app without touching its code.
- [Running Border Gateway Protocol in large-scale data centers](https://swe.quest/articles/running-border-gateway-protocol-in-large-scale-data-centers-d93bb3d6d3d281ee.md): Meta Engineering · 2021-05-13 · Hard · 3 min read · Networking, Datacenters, Deployment, Testing
  Facebook runs BGP as the routing foundation of its data centers, and found it works well only when co-designed with the topology, configuration, switch software and fleet-wide operations pipeline.
- [Inside Facebook’s video delivery system](https://swe.quest/articles/inside-facebook-s-video-delivery-system-d5975357617c95f8.md): Meta Engineering · 2024-12-10 · Medium · 13 min read · Recommendations & ranking, Video & media, System design, Mobile, Refactoring & migrations
  Facebook spent roughly two years unifying its separate Watch and Reels stacks across mobile clients, the server layer and ranking, in a deliberate order.
- [Staying Evergreen: How we automated secure access and repo hygiene in a shared org](https://swe.quest/articles/staying-evergreen-how-we-automated-secure-access-and-repo-hygiene-in-a-shared-b76aa86640c047a2.md): GitHub Engineering · 2026-10-15 · Medium · 8 min read · Identity & auth, Developer tools, Security, System design
  Evergreen is a Go-based GitHub App that automates quarterly outside-collaborator access reviews and stale-repo archival in a shared org of 1,400+ GitHub employees, customers and partners, built entirely from native primitives: scheduled Actions firing repository\_dispatch, webhooks, issue checklists, custom properties, and per-repo JSON state files in git that double as the audit trail.
- [Flexible Authentication: Reimagining authentication for millions of users at Airbnb](https://swe.quest/articles/flexible-authentication-reimagining-authentication-for-millions-of-users-at-ba6c3fb737afccb7.md): Airbnb Engineering · 2026-08-12 · Easy · 8 min read · Identity & auth, Product engineering, System design, Mobile
  Airbnb rebuilt login and signup around an "Identify first then Challenge" model.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
