A mitigation operator wants to distribute traffic across several filtering systems. Should it use BGP anycast or equal-cost multipath routing (ECMP)? The question combines two mechanisms that often operate at different levels of the architecture.
Anycast makes a service address reachable from multiple locations. ECMP allows a forwarding device to select among eligible equal-cost next hops. A network can use both at once.
Anycast distributes reachability
With BGP anycast, multiple sites announce reachability for a service prefix. Internet routing policy influences which site a particular network reaches. Geography may correlate with the selected path, but BGP does not choose the geographically nearest site by definition.
RFC 4786, the operational guidance for anycast services, discusses routing stability, monitoring and application characteristics. A site can receive a distinct traffic population, and its load can change when routing conditions change.
That is useful for geographically distributed services, but it does not mean every site receives the same traffic volume. Each location needs a capacity and failure plan appropriate to the traffic it might receive.
ECMP distributes forwarding
Inside a network, a router may have several eligible next hops for a destination. ECMP commonly distributes flows among them using a hash rather than measuring the application load on each backend in real time.
RFC 2992 analyzes a hash-based ECMP algorithm and the effects of changing the next-hop set. Exact hash fields and resilience behavior vary by implementation.
For a cluster of filtering nodes, ECMP can allow multiple machines to participate without placing a separate application proxy in front of all traffic. However, the number of installed nodes does not prove that their processing work will be perfectly balanced. Flow distributions, forwarding equipment and health handling all matter.
They solve different capacity questions
A geographically distributed network may use anycast to bring traffic into several sites and ECMP inside each site to reach its filtering fleet. Each site still has ingress links, forwarding capacity and a way of delivering accepted traffic to the destination.
A small operator with one location may obtain meaningful local resilience from ECMP without operating a multi-site anycast network. A large network may require both local redundancy and geographic distribution.
The important comparison is the capacity domain: traffic must arrive at an operational site and then reach a healthy processing path within that site. Neither routing mechanism by itself identifies malicious traffic or guarantees that a service survives an incident.
Stateful processing complicates failure recovery
If a filtering decision relies on local connection state, a path change can move traffic to a node that does not possess the same information. Replicating state, using protocol-appropriate stateless validation or accepting bounded reconnection behavior are different design choices with different costs.
It is important to distinguish routing reachability from readiness to process legitimate sessions. A node can advertise a route while a necessary dependency is unavailable. Health checks and withdrawal behavior should reflect the service's real readiness.
RFC 8326 describes graceful BGP session shutdown for planned maintenance. Planned changes and unexpected failures have different convergence characteristics; neither implies instant, lossless transitions.
What to ask before designing a mitigation network
Identify which failure domains need redundancy, whether protected applications tolerate path changes, how forwarding health is determined and where capacity remains after a node or site is removed. Evaluate accepted-traffic delivery as well as routing convergence.
The architecture should be judged on end-to-end service availability under normal conditions and controlled failover. Anycast is not a substitute for local scaling, and ECMP is not a substitute for geographic reachability. Both can be appropriate components of one network, alongside a separate security policy that decides what traffic to accept.

