The idea
With anycast, the same IP prefix is announced from several locations. BGP routes each user to the "closest" announcement, as determined by routing policy and path length.
Why it is used
- DNS: root and public resolvers use anycast for speed and resilience.
- CDNs: users reach a nearby edge without special client logic.
- DDoS resilience: attack traffic is spread across many sites.
Resilience
If a site fails, its announcement is withdrawn and traffic flows to the next-nearest site automatically.
Caveats
"Closest" is decided by routing, not geography. Poor peering can send users to distant sites. Local interconnection, such as peering at Peer1IX, helps anycast services land users nearby.
Seen in the wild
Look up a public DNS resolver in our looking glass — it is served from many locations behind one prefix.
