▪▪▪ ▪▪▪

What to Read About Anycast

by Robert Jefe Lindstaedt September 19, 2026
Essential Reads

Anycast means many sites announce the same address, and each client reaches the nearest one. Most of the operational work is in what happens when a site leaves.


This week I went looking for reading on taking a site away, to work out why taking one site out of rotation was visible to users at all. Every link below was fetched and every quote checked against the source.

Start here

RFC 4786 / BCP 126, Operation of Anycast Services is the closest thing to a manual. It is a best current practice document, and it spends its length on production problems: how to take a node out (§4.8.2 covers pessimistic withdrawal, where a covering prefix is withdrawn “if any individual service becomes unavailable”), why you want a hold-down before re-advertising, and how to monitor. Keep the monitoring section at hand: without the probes it asks for, a route collector does not show a regional outage.

RFC 7094, Architectural Considerations of IP Anycast is the conceptual companion: what anycast is, and what it does to stateful protocols. §4.5 restates RFC 3258’s advice that routes “should not be withdrawn, in order to reduce operational complexity”, then argues it deserves more attention.

Older RFCs with a narrower scope

RFC 1546, Host Anycasting Service is the original definition. It is worth ten minutes because it already states that anycast is stateless while the services run over it are often stateful.

RFC 3258, on distributing authoritative name servers, is DNS-specific but holds the most useful drain advice in the set (§2.3): do not withdraw the route, shut the service process down instead.

Graceful restart can keep a drained site’s routes alive

If your drain works by dropping a BGP session, read RFC 4724 (graceful restart) and RFC 8538 (the same for sessions that end in a BGP notification message) before you trust that the withdrawal happened. Graceful restart keeps a neighbour’s routes alive across a restart (RFC 4724 §4.1), so the neighbour may keep sending traffic to a box you just took away. RFC 8538 sets a default stale timer of 180 seconds and lists administrative shutdown as a hard reset that should flush at once. Whether it does depends on the BGP implementations at both ends of the session.

Running it at scale

Dropbox on their edge network says that “graceful drain of the PoP is impossible”, because “BGP balances packets and not connections”. For what a real graceful drain costs to build, Fastly’s faild describes the flow-tracking layer it takes. Cloudflare’s Traffic Manager argues against draining by route withdrawal, and their anycast primer is the plain-English version for anyone you need to explain this to. The root server operators publish their practice: K-root and F-root.

Route collectors miss a regional outage

A global routing view can show no change while users in one region cannot reach the service. If a covering prefix stays announced from your other sites, a collector sees the same table, because the withdrawal never left the provider’s network.

The common instruments each answer a different question. A collector reports the global table, a probe reports its own catchment, and an uptime check reports whichever site it reached. Unless a probe sits in the region you are changing, none of them shows what users there see.

RFC 4786 §5.1 has asked for probes “distributed representatively across the routing system” since December 2006, with the node’s identity recorded alongside each answer. Cloudflare publishes the node’s identity: curl https://www.cloudflare.com/cdn-cgi/trace names the site that served you, and they published how far you get inferring catchments with no probes.