Anycast
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://ipfyi.com/iframe/glossary/anycast/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://ipfyi.com/glossary/anycast/
Add a dynamic SVG badge to your README or docs.
[](https://ipfyi.com/glossary/anycast/)
Use the native HTML custom element.
Definición
Un método de direccionamiento de red donde la misma dirección IP se asigna a múltiples servidores en diferentes ubicaciones. El tráfico se enruta al servidor más cercano o con mejor rendimiento, comúnmente utilizado por CDN y proveedores de DNS.
How Anycast Works
Anycast routing works by advertising the same IPv4Internet Protocol version 4. The fourth revision of IP using 32-bit addresses (e.g., 192.168.1.1), providing approximately 4.3 billion unique addresses. Still the most widely used internet protocol despite address exhaustion. or IPv6Internet Protocol version 6. The successor to IPv4 using 128-bit addresses (e.g., 2001:0db8::1), providing a virtually unlimited address space of 3.4 x 10^38 addresses. Designed to solve IPv4 address exhaustion. prefix from multiple physical locations simultaneously. When a client sends a packet to an anycast address, the internet's routing infrastructure — specifically BGP — automatically delivers it to the topologically nearest node announcing that prefix. "Nearest" is determined by AS path length and other routing metrics, not necessarily geographic distance.
Unlike UnicastA network communication method that sends data from one sender to one specific receiver. The most common form of IP communication, used for web browsing, email, and file transfers., where a single host owns an address, anycast distributes that ownership across a fleet of servers. If one node goes offline, BGP reconverges and traffic shifts to the next-best node within seconds, providing automatic failover without any client-side changes.
Common Use Cases
Anycast is foundational to the modern internet. The DNS root servers (operated by organizations like ICANN and Verisign) each serve a single anycast address, yet are physically replicated hundreds of times worldwide. Content delivery networks use anycast to route users to their nearest PoP. DDoS mitigation providers absorb attack traffic by spreading it across global anycast nodes so no single location is overwhelmed.
Anycast vs. Other Addressing Methods
| Method | Receivers | Routing Basis |
|---|---|---|
| Unicast | 1 | Destination address |
| Anycast | 1 (nearest) | Topology + BGP |
| MulticastA network communication method that sends data from one source to a specific group of interested receivers simultaneously. Uses the 224.0.0.0/4 range in IPv4 and is commonly used for streaming and routing protocols. | Group | Group membership |
| BroadcastA network communication method that sends data to all devices on a subnet simultaneously. The broadcast address is the last address in a subnet, such as 192.168.1.255 for a /24 network. | All on subnet | Link-layer flood |
Use DNS Lookup to see how anycast DNS resolves differently from different regions.