Direct Connect maximum 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 maximum resiliency model: what it is made of, what it withstands, up to a whole location 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 maximum resiliency
Each step of the scroll changes the drawing. Every statement names the AWS page it comes from.
Step 1 of 10
At least four dedicated connections across at least two Direct Connect locations, at least two in each, every connection on its own AWS device. The service level also asks for an Enterprise Support plan and a Well-Architected Review.
“Multi-Site Redundant Deployment is a Deployment that comprises at least four Connections deployed across a minimum of two different Direct Connect locations, each of which is configured to access the same Endpoint, where no fewer than two Connections are deployed in each of the two Direct Connection locations, each Connection is on a unique AWS device, 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 Redundant Deployment and have completed a ‘Well-Architected Review’ with an AWS Solutions Architect.”AWS: Direct Connect Service Level Agreement
Step 2 of 10
Separate connections end on separate AWS devices, spread across locations. AWS says the model gives resiliency against the loss of a device, of connectivity, or of a whole location.
“You can achieve maximum resiliency for critical workloads by using separate connections that terminate on separate devices in more than one location (as shown in the following figure). This model provides resiliency against device, connectivity, and complete location failures.”AWS: Direct Connect Resiliency Toolkit
Step 3 of 10
On the customer's side too, the connections leave from separate data centers.
“AWS recommends connecting from multiple data centers for physical location redundancy.”AWS: Direct Connect Resiliency Recommendations
Step 4 of 10
The same local preference community on every connection's prefixes makes them active/active for the traffic AWS sends. On private and transit virtual interfaces, AWS picks a path by the longest prefix, then local preference, then AS_PATH, then MED; with all equal, it uses ECMP across the virtual interfaces.
“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 5 of 10
Enough capacity is provisioned that losing a connection does not overwhelm and degrade the redundant ones.
“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 6 of 10
BFD detects a lost path fast. AWS enables it on every virtual interface; it takes effect once the customer's router is configured for it. With BFD, BGP tears a lost session down quickly; without BFD, BGP by default waits out its hold-down time.
“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 7 of 10
A service disruption hits Direct Connect location 1. Every connection that ends there stops carrying traffic, and the BGP sessions on their virtual interfaces go down.
This step is the scenario, not a statement from AWS.
Step 8 of 10
AWS says what the same community tag does when a connection is lost: the traffic it sends is load balanced with ECMP across the connections that remain. In our scenario, once the sessions at location 1 are down, BGP no longer offers the paths through location 1, and those that remain are the connections in location 2.
“If one of the connections fails, traffic will be then load balance using ECMP across the remaining active connections regardless of their home Region associations .”AWS: Direct Connect routing policies and BGP communities
Step 9 of 10
Location 1 is back, in our scenario. Direct Connect never plans maintenance on redundant connections at the same time: the connection under maintenance is drained, and its traffic goes to the redundant connections. The customer may instead steer that traffic with local preference BGP communities.
“Direct Connect will never schedule a planned maintenance event that will simultaneously take down your redundant connections.”AWS: Direct Connect maintenance
Step 10 of 10
Outside maintenance, as AWS asks, the failover test stops the BGP session of a chosen virtual interface on purpose, and traffic should move to a redundant virtual interface. When the test ends, AWS restores the session.
“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.”AWS: Direct Connect Failover Test
Tap one, or tap it on the model
The facility that houses AWS's devices; the customer's equipment reaches them through a cross-connect.
AWS's equipment at the location, where a connection ends.
A dedicated link between ports on the customer's router and an AWS Direct Connect device.
The customer's end of every connection, in separate data centers.
The logical link on a connection, with its BGP peering session.
In AWS's figure, a Region holds Direct Connect, with a line that branches to every AWS device.