Big Discount for just couple days!
This Offer Will END in

What is IP Anycast? Where it is used in networking?

What is IP Anycast? Is IP Anycast a routing protocol? Where IP Anycast is used in Networking?. In this post I will answer these questions.

I discuss these questions and often ask them in my trainings as well. I always receive many different answers but you will see how it is easy to understand the idea behind any cast after reading this post.

IP Anycast is a way of assigning IP address. Same IP address is assigned on multiple nodes. It is not a routing protocol , switching protocol or a special network design. Just way of assigning an IP address.

There are many use cases of it.

Internally in the networks, Multicast uses IP Anycast for load balancing and redundancy. Specifically PIM ASM (Protocol Independent Multicast – Any Source Multicast) uses IP Anycast for the RP (Rendezvous Point) address assignment. Same IP address is assigned on multiple nodes in the network and underlaying IGP protocol shortest path is used to determine the closest RP in a topology.


Another common use case for it is  ‘ CDN  ‘ (Content Delivery Networks)


IP Anycast is a special method for request routing in CDN architecture.

Let’s have a look at what is request routing and how Anycast is used in request routing.

Request routing or also known as server redirection is a method to bring the customer to the optimal server in a CDN architecture.


ip anycast

Figure – IP Anycast vs. Unicast


In this approach, the same IP address is assigned to multiple servers located in a distributed manner.

When the client sends requests to the IP address, the requests will be routed to the nearest server defined by the routing policy. With this approach content providers may lose some server selection flexibility. Consider a scenario in which Anycast forwards requests to the nearest (yet overloaded) server, by simply respecting a distance-based routing policy.
CDN service providers who configure their platform with Anycast set a single IP address for all their nodes!
Unlike a DNS Based CDN Redirection, where every node has a unique IP address and recursive DNS routes the client to the closest node, it uses the Border Gateway Protocol (BGP) to route clients using the natural network flow of the Internet
BGP is a network level protocol which is used by Internet edge routers to exchange routing and reachability information so that every node on the network, even though it is autonomous, knows the state of their closest network neighbors.
Anycast uses this information to efficiently route traffic based on hop count ensuring the shortest traveling distance between the client and its final destination.

Leave a Comment

Your email address will not be published. Required fields are marked *