Protocols
Saved & recent

Anycast

Also called: IP anycast, anycast service

Anycast makes the same service address reachable from multiple locations. Routers direct a packet toward one of those locations using their routing information and policy. This can distribute demand and offer alternative destinations when routes change, without requiring clients to choose a different service IP address.

For example, two DNS sites can announce routes for the same service address, and a resolver’s query reaches whichever site its network’s route selects. “Nearest” means preferred by routing, not necessarily closest on a map. Packets are not copied to every site. Route changes can also move traffic between locations, so applications with long-lived connections or shared state need to account for that possibility.

Read first
Routing
Related
BGP, DNS, TCP
Further reading
IETF RFC 4786 — Operation of Anycast Services
client 1 client 2 192.0.2.53 192.0.2.53 normally routes to DNS site A normally routes to DNS site B alternate after convergence site A failure one destination per packet shared service address
Illustrative anycast service: the same address is available at multiple sites, and routing selects where each packet goes.

View in the full Protocols collection