What is the primary risk of using Anycast IP (Same IP in multiple locations) for long-lived TCP connections?
- A It is significantly slower than unicast routing because of the multiple high-level cryptographic handshakes required to verify the identity of the global Anycast nodes.
- B It is considered illegal in many highly-regulated jurisdictions because the non-deterministic nature of the routing violates strict data sovereignty and residency requirements.
- C It requires a massive allocation of unique, publicly-reachable IP addresses for every single data center to ensure that the internet's routing table can be properly constructed.
- D If a BGP route change occurs mid-connection (a 'route flap'), subsequent packets might be sent to a new server that has no record of the established state, causing a connection reset.
Anycast is powerful because it uses the same IP address for servers all around the world, routing you to the closest one. However, the path your data takes can change instantly if a router deep in the internet decides a different route is 'shorter'. If you are in the middle of a long TCP download and the route flips, your next packet might suddenly land on a server in Tokyo instead of London. Because that Tokyo server has no idea who you are, it won't recognize your TCP sequence numbers and will send back an 'RST' (Reset) packet, abruptly killing your connection. This is why Anycast is primarily used for 'stateless' traffic like DNS or very short-lived HTTP requests where the risk of a flip during the transaction is low.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What is the downside of enabling 'Sticky Sessions' (Session Affinity) on a Load Balancer?
- In WebRTC (P2P Mesh), why is a STUN server required?
- What is the fundamental difference between a Network Switch and a Router?
- In Cloud Networking (AWS), what is the limitation of VPC Peering compared to a Transit Gateway?
- Which protocol is ideal for real-time multiplayer gaming positions or Voice over IP (VoIP), and why?
- What is the purpose of the 'Time To Live' (TTL) field in an IP packet?