Direct Connect high resiliency
From the data centers to the Region
Each step of the scroll changes the drawing. Every statement names the AWS page it comes from.
AWS Direct Connect's high resiliency model: what it is made of, what happens to the traffic when a location is impaired, and where AWS says so. Scroll to take it apart.
Drag to turnCtrl + scroll to zoomClick a partDrag to turnTwo fingers to move and zoomTap a part
Direct Connect high resiliency
Each step of the scroll changes the drawing. Every statement names the AWS page it comes from.
Step 1 of 10
Two dedicated connections, each to its own Direct Connect location. AWS's figure of the model names them location 1 and location 2, and draws each connection from its own customer data center and router, reaching the same Region.
“You can achieve high resiliency for critical workloads by using two single connections to multiple locations (as shown in the following figure).”AWS: Direct Connect Resiliency Toolkit
Step 2 of 10
AWS's service level calls this a Multi-Site Non-Redundant Deployment: at least two connections across at least two Direct Connect locations, each configured to access the same endpoint. It also asks for an Enterprise Support plan, and sets a condition for private endpoints.
“Multi-Site Non-Redundant Deployment is a Deployment that comprises at least two Connections deployed across a minimum of two different Direct Connect locations, each of which is configured to access the same Endpoint, and, with respect to private Endpoints, the Endpoint is deployed in two or more Availability Zones. You must have an Enterprise Support plan in place for any Multi-Site Non-Redundant Deployment.”AWS: Direct Connect Service Level Agreement
Step 3 of 10
AWS's toolkit says the model protects against a cut fiber and an impaired device, and that it helps where a whole location is impaired.
“This model provides resiliency against connectivity failures caused by a fiber cut or a device failure. It also helps prevent a complete location failure.”AWS: Direct Connect Resiliency Toolkit
Step 4 of 10
AWS's advice is to run BGP across the connections. BGP decides which path the traffic takes, and when a path is lost it moves the traffic to the path left, by itself. Without it, a backup waits for someone to reroute by hand.
“Border Gateway Protocol (BGP) is the dynamic routing protocol that decides which path traffic takes and reroutes it when a path fails. Without dynamic routing, a backup link stays idle until an operator reroutes traffic manually.”AWS Well-Architected: REL02-BP02
Step 5 of 10
Each connection carries traffic: the same local preference community on the prefixes advertised over every connection's private or transit virtual interface makes AWS share the load across them with ECMP, equal-cost multi-path routing. These communities steer the traffic coming from AWS to your network.
“To load balance traffic across multiple Direct Connect connections (active/active) homed to the same or different AWS Regions, apply the same community tag; for example, 7224:7200 (medium preference) across the prefixes for the connections.”AWS: Direct Connect routing policies and BGP communities
Step 6 of 10
When a connection is impaired, its traffic moves to the other. AWS asks for enough capacity that this does not overwhelm the connection left.
“Provision sufficient network capacity to ensure that the failure of one network connection does not overwhelm and degrade redundant connections.”AWS: Direct Connect Resiliency Recommendations
Step 7 of 10
A service disruption at Direct Connect location 1 reaches its AWS device and its connection. Nothing passes through location 1: the BGP session on its virtual interface goes down.
This step is the scenario, not a statement from AWS.
Step 8 of 10
With BFD configured on the customer's router, BGP tears the session down quickly; without BFD, BGP by default waits out its hold-down time. Routing then reconverges without the path through location 1. In our scenario, the traffic from AWS takes the connection at location 2.
“Enabling BFD for your Direct Connect connection allows the Border Gateway Protocol (BGP) neighbor relationship to be quickly torn down. Otherwise, by default, BGP waits for three keep-alives to fail at a hold-down time of 90 seconds.”AWS Knowledge Center: Enable BFD for a Direct Connect connection
Step 9 of 10
Until location 1 is back, all traffic rests on the connection at location 2 alone. AWS's maintenance page says what a maintenance event means for a single connection.
“If you have a non-resilient network setup or a single connection, you’ll experience an interruption in connectivity between your on-premises network and AWS resources.”AWS: Direct Connect maintenance
Step 10 of 10
In this scenario location 1 is back in service, as the test needs a redundant connection; AWS also says not to run it during a maintenance period. The Resiliency Toolkit's failover test stops a virtual interface's BGP session on purpose, to show that traffic goes over a redundant virtual interface. Then AWS brings the session back.
“AWS places the selected virtual interface BGP peering session in the down state. When the interface is in this state, traffic should go over a redundant virtual interface. If your configuration does not contain the appropriate redundant connections, the BGP peering session fails, and traffic does not get routed. When the test completes, or you manually stop the test, AWS restores the BGP session.”AWS: Direct Connect Failover Test
Tap one, or tap it on the model
Where AWS's Direct Connect devices stand. A connection is made there and ends on an AWS device.
AWS's end of a connection, at the Direct Connect location.
A dedicated link between ports on the customer's router and an AWS Direct Connect device.
The customer's end of a connection. AWS's figure of the model draws a router in each customer data center.
What a connection needs to reach AWS services: a virtual interface, public, private or transit, with a BGP session.
Where the connections lead. AWS's figure of the model draws the Region with the Direct Connect icon and a line to the AWS device in each location.