Steering traffic at the network layer with IP Anycast – Understanding Network and Security for Near-Edge Computing
IP Anycast is another common approach for global traffic distribution. Figure 2.13 depicts an example of how it works:

Figure 2.10 – IP Anycast
Both servers have a public IP address of 144.12.11.5. Customers are automatically routed to the closest one. This makes DNS simple; you just need a single A record for myapp.io pointing to that IP.
You may be asking yourself: wait, I thought public IP addresses had to be unique on the internet? That is normally true. However, if one has access to their provider-independent IP space from IANA, some tricks can be utilized.
Recall the situation in Figure 2.3, which shows the peering that happens between different ASs on the internet. When that peering happens, one AS tells another AS about the IP prefixes inside of it. It also passes along BGP community information, which is a series of variables that can override the normal mechanism BGP uses to figure out the best path to get to a destination within that AS. This information can be manipulated in such a way as to make all other ASs think whatever we want them to think about how to get to an IP we control.
However, if your AS peers with multiple ISPs, you will need to get both of them to cooperate concerning how your IP prefixes are advertised. This compounds the already difficult task of obtaining your own public IP space from IANA in the first place. Thus, IP Anycast is typically the province of the ISPs themselves. Most organizations lease individual IP Anycast addresses from their ISPs:

Figure 2.11 – IP Anycast path convergence
One of the reasons you might choose IP Anycast over GSLB is because it has a shorter path convergence time. With GSLB, if one of the data centers goes offline, the GSLB server needs to realize this and then start handing out a different IP – but due to the way DNS caching works on devices and at their ISPs, the timeout for this to happen can be lengthy. Unless you can enforce low Time-To-Live (TTL) values on the cache of all intermediate DNS servers and keep device cache times short (an unlikely prospect), they will be re-routed to the other data center more quickly with IP Anycast.
One of the main downsides to IP Anycast is that the routing decisions are only made in the network, which is not typically something an application owner has an understanding of or the access to modify if they did. It is more straightforward for a developer to specify the behavior they want with GSLB, and more parameters can be taken into consideration.
You may also like
Archives
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- May 2023
- April 2023
- February 2023
- January 2023
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- December 2021
- November 2021
- October 2021
- September 2021
- June 2021
Calendar
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Leave a Reply