Anatomy of Direct Connect maximum resiliency

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.

Scale model of AWS's figure of Direct Connect maximum resiliency: a Region with Direct Connect, one line that branches to the AWS devices of two Direct Connect locations, two devices in each, and four dedicated connections, each on its own device, those of a location to the router of one customer data center
All anatomiesBack to all anatomies

Drag to turnCtrl + scroll to zoomClick a partDrag to turnTwo fingers to move and zoomTap a part

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.

Step 1 of 10

Four connections, two locations

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 devices, separate locations

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

The customer's side: separate data centers

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

Every connection carries traffic

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

Sized for the loss

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

A fast heartbeat

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

Location 1 is impaired

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

The other location carries everything

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

Maintenance, never all at once

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

Proved, not assumed

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

The parts

Tap one, or tap it on the model

The parts

Direct Connect location

The facility that houses AWS's devices; the customer's equipment reaches them through a cross-connect.

  • Nearby, not inside. “However, due to security practices, your equipment cannot be placed within AWS Direct Connect rack or cage areas.”
  • Spread across locations. “Using maximum resiliency, connections are spread across at least two Direct Connect locations, with termination on two unique device endpoints within each Direct Connect location.” AWS: Direct Connect maintenance
  • Each device, its Region. “Each Direct Connect device is associated with a specific AWS Region.” “The associated Region determines where the connection is managed, not where your data flows.” AWS: Access to AWS Regions
  • Beyond the figure: any Region. “You can use AWS Direct Connect gateway to access any AWS Region (except AWS Regions in China) from any AWS Direct Connect locations.” AWS: Direct Connect Resiliency Recommendations
AWS: Direct Connect FAQs

AWS Direct Connect device

AWS's equipment at the location, where a connection ends.

  • A unique device. For the service level: “Each Connection is on a unique AWS device, as indicated by the AWS Device ID visible in the AWS Direct Connect Console”. AWS: Direct Connect Service Level Agreement
  • Redundant equipment. “When you request multiple ports at the same AWS Direct Connect location, they will be provisioned on redundant AWS equipment.”
  • How to check. In the console, under the connection's “AWS logical device”: “Different device IDs indicate different AWS devices.”
  • A LAG is not a spare. “No, a LAG doesn't make your connectivity to AWS more resilient.” “However, it will not protect against a single device failure or device maintenance at AWS where your LAG is terminating.”
AWS: Direct Connect FAQs

Dedicated connection

A dedicated link between ports on the customer's router and an AWS Direct Connect device.

  • The service level. “This model provides you a way to order dedicated connections to achieve an SLA of 99.99%. It requires you to meet all of the requirements for achieving the SLA that are specified in the Direct Connect Service Level Agreement.” AWS: Direct Connect Resiliency Toolkit
  • Its conditions. Among them: “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.” And: “Furthermore, the SLAs do not apply to AWS Direct Connect services accessed via an AWS Partner Network (APN) Direct Connect Partner integration using either a hosted connection or hosted virtual interfaces.” AWS: Direct Connect Service Level Agreement
  • The same speed. The Resiliency Toolkit “Ensures that the redundant dedicated connections have the same speed.” AWS: Direct Connect Resiliency Toolkit
  • MACsec in must_encrypt. With MACsec required for all traffic: “This mode provides the highest security guarantee but may impact availability if there are any MACsec-related issues.” AWS: MAC Security in Direct Connect
AWS: Direct Connect FAQs

Customer router and data center

The customer's end of every connection, in separate data centers.

  • BGP on the router. “Your device must support Border Gateway Protocol (BGP) and BGP MD5 authentication.” AWS: Direct Connect connection options
  • AWS's figure. “The following figure shows both connections from each customer data center going to the same Direct Connect locations. You can optionally have each connection from a customer data center going to different locations.” AWS: Direct Connect Resiliency Toolkit
  • Redundant hardware. “Avoid relying on a single on-premises device connecting to a single AWS Direct Connect device.”
  • Different routers too. Beyond the figure, AWS's reference architecture also advises: “Have the redundant Direct Connect connections terminate on different routers inside your data center.” AWS: Active/Active and Active/Passive Configurations in AWS Direct Connect
AWS: Direct Connect Resiliency Recommendations

Virtual interface, BGP session and BFD

The logical link on a connection, with its BGP peering session.

  • Its BGP session. “You must create one of the following virtual interfaces (VIFs) to begin using your Direct Connect connection.” “A virtual interface can support a BGP peering session for IPv4, IPv6, or one of each (dual-stack).”
  • BFD's timers. “Asynchronous BFD is automatically enabled for each AWS Direct Connect virtual interface, but will not take effect until it's configured on your router. AWS has set the BFD liveness detection minimum interval to 300, and the BFD liveness detection multiplier to 3.” AWS: Direct Connect FAQs
  • What remains carries it. “Active/Active: Traffic is load-shared between interfaces based on flow via ECMP. If one connection becomes unavailable, then all traffic is routed through the other connections.” AWS: Active/Active and Active/Passive Configurations in AWS Direct Connect
  • BFD, a best practice. “It's a best practice to enable BFD for fast failure detection and failover when connecting to AWS services over Direct Connect connections.” AWS Knowledge Center: Enable BFD for a Direct Connect connection
  • Preference first. “Local preference BGP community tags are evaluated before any AS_PATH attribute, and are evaluated in order from lowest to highest preference (where highest preference is preferred).” AWS: Direct Connect routing policies and BGP communities
  • BFD or graceful restart. “We recommend that you do not configure graceful restart and BFD at the same time.” AWS: BGP-specific settings
AWS: Direct Connect virtual interfaces and hosted virtual interfaces

Region

In AWS's figure, a Region holds Direct Connect, with a line that branches to every AWS device.

  • The Endpoint. The service level counts availability to an Endpoint: “‘Endpoint’ is an AWS service private or public endpoint for which a virtual interface on a Connection has been provisioned and configured for full, independent access.” AWS: Direct Connect Service Level Agreement
  • Across Availability Zones. A condition of the service level: “For private Endpoints, your Endpoint is deployed in two or more Availability Zones”. AWS: Direct Connect Service Level Agreement
  • Beyond the figure: a gateway. When a virtual interface is created: “For Gateway type, choose Virtual private gateway, or Direct Connect gateway.” AWS: Configure Direct Connect for maximum resiliency
  • Beyond the figure: a VPN backup. “Thus, we do not recommend customers use AWS Site to Site VPN as a backup for AWS Direct Connect connections with speeds greater than 1 Gbps.” “Consider using AWS Site to Site VPN terminating on an AWS Transit Gateway as a backup for your mission critical workloads.” AWS: Direct Connect Resiliency Recommendations
AWS: Direct Connect Resiliency Toolkit