---
title: "Throwing Out The Phonebook"
description: "Fly.io rebuilt 6PN, its private IPv6 network between Fly Machines, replacing a fleet-wide eBPF map of every migrated Machine's location (hundreds of thousands of entries kept in sync from Corrosion's gossip-replicated SQLite) with lazy, on-demand routes."
url: "https://swe.quest/articles/throwing-out-the-phonebook-38542538ac98046f"
canonical: "https://fly.io/blog/throwing-out-the-phonebook/"
source: "Fly.io"
published: "2026-11-13"
difficulty: "hard"
kind: "Case study"
reading_minutes: 10
tags: ["networking","linux","distributed-systems","deployment","system-design"]
---

# Throwing Out The Phonebook

A post on [Fly.io](https://swe.quest/sources/flyio.md), published 2026-11-13, 10 min read, Case study. Original: [https://fly.io/blog/throwing-out-the-phonebook/](https://fly.io/blog/throwing-out-the-phonebook/)

## Summary

Fly.io rebuilt 6PN, its private IPv6 network between Fly Machines, replacing a fleet-wide eBPF map of every migrated Machine's location (hundreds of thousands of entries kept in sync from Corrosion's gossip-replicated SQLite) with lazy, on-demand routes. VXLAN's netlink event for unknown addresses is passed through drift-agent to s6pnforwarderd, which queries local Corrosion and installs a single kernel route. Each host now carries only 100–200 routes, addresses no longer need rewriting, and routes can forward through intermediate hosts to tolerate stale entries or steer around bad links. udp-xdp now only validates same-network traffic and sets an fwmark so the design fails closed. The costs are a roughly one-second first-connection delay from TCP retransmission and broken new conversations if the daemons crash. The migration ran both paths side by side behind per-host flags, tolerating asymmetric routing.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)

## Prerequisites

- IPv6 addressing
- Linux routing tables ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- eBPF/XDP basics ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- WireGuard and VXLAN

## Keywords

6PN, VXLAN, WireGuard, eBPF, Corrosion, udp-xdp, s6pnforwarderd, Fly.io

## Related posts

- [Well, That Wasn't Fun: October 16 '26](https://swe.quest/articles/well-that-wasn-t-fun-october-16-26-83d1120fe160ef39.md): Fly.io · 2026-11-06 · Medium · 7 min read · Incidents & postmortems, Vulnerability research, Linux, Virtualization, Networking
  A Linux kernel bug in IPv4 checksum offload validation let a guest VM direct the host to write its computed checksum into an already-trusted IPv4 header field.
- [Hello, World: We’re Railway](https://swe.quest/articles/hello-world-we-re-railway-63540b1cb9b8fafa.md): Railway · 2023-09-25 · Medium · 17 min read · Networking, CDN & edge, Load balancing, Infrastructure as code, Storage systems
  Railway launches US-East, EU-West and Southeast Asia regions alongside its original US-West GCP zone, with one-click region moves that need no URL or DNS changes.
- [Corrosion](https://swe.quest/articles/corrosion-041c41646926d669.md): Fly.io · 2025-10-22 · Medium · 9 min read · Distributed systems, Replication, SQLite, Incidents & postmortems, Rust
  Corrosion is Fly.io's open-source service discovery system: a Rust program that propagates a SQLite database across thousands of workers via SWIM gossip and QUIC, using the cr-sqlite CRDT extension with last-write-wins logical timestamps instead of distributed consensus.
- [Networking is a black box, we used eBPF to open it](https://swe.quest/articles/networking-is-a-black-box-we-used-ebpf-to-open-it-1c84acda9aefedd8.md): Railway · 2026-02-17 · Medium · 8 min read · Observability, Linux, Networking, Analytics & OLAP, Product engineering
  Railway's Network Flows feature uses eBPF hooks on container packet ingress and egress to show real-time traffic between services as pipes on the project canvas, with click-through access to flow logs and kernel drop codes.
- [Incident Report: July 2, 2026 — US East Services Outage](https://swe.quest/articles/incident-report-july-2-2026-us-east-services-outage-bf635e087ab9dc7a.md): Railway · 2026-07-03 · Medium · 8 min read · Incidents & postmortems, Networking, Linux, Storage systems, Resilience
  An upstream Tier 1 carrier's backbone degradation caused packet loss between Railway's US regions, and while routing around it, engineers disconnected the last carrier supplying a default route to a first-generation US East site, leaving it without a stable internet route for about 20 minutes.

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)
