Anatomy of Direct Connect high resiliency

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.

Scale model of AWS's figure of Direct Connect high resiliency: a Region with Direct Connect, one line that branches to an AWS device in each Direct Connect location, and two dedicated connections, each from a location's device to the router of its own 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 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.

Step 1 of 10

Two connections, each to its own location

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

What the service level asks

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

What it covers

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

Routes, not wires, decide

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

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

Each connection sized for all

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

Location 1 is impaired

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

The other connection carries it all

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

Now a single connection

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

Proved by a test

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

The parts

Tap one, or tap it on the model

The parts

Direct Connect location

Where AWS's Direct Connect devices stand. A connection is made there and ends on an AWS device.

  • Each device has a Region. “Each Direct Connect device is associated with a specific AWS Region. When you create a connection at a Direct Connect location, the connection inherits the associated Region of the device that it terminates on.”
  • Not where the data flows. “The associated Region determines where the connection is managed, not where your data flows.”
  • Your equipment beside it. “However, due to security practices, your equipment cannot be placed within AWS Direct Connect rack or cage areas.” AWS: Direct Connect FAQ
  • Maintenance, by location. “These maintenance events are scheduled 14 days in advance and typically occur during a four-hour window in low-traffic hours at the Direct Connect location where the device endpoint resides.” AWS: Direct Connect maintenance
AWS: Access to AWS Regions

AWS Direct Connect device

AWS's end of a connection, at the Direct Connect location.

  • Never the same device. The Resiliency Toolkit “Prevents you from terminating the dedicated connections on the same Direct Connect device.” AWS: Direct Connect Resiliency Toolkit
  • Check the device ID. “After your connections are approved, you can validate the setup by going to ‘Connections’, selecting the desired connections, and looking at the ‘General configuration’, ‘AWS logical device’. Different device IDs indicate different AWS devices.”
  • A LAG stays on its device. Asked whether a link aggregation group makes the connection more resilient: “No, a LAG doesn't make your connectivity to AWS more resilient. If you have more than one link in your LAG, and if your minimum links are set to one, your LAG will let you protect against single link failure. However, it will not protect against a single device failure or device maintenance at AWS where your LAG is terminating.”
AWS: Direct Connect FAQ

Dedicated connection

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

  • Add another for redundancy. “Each dedicated AWS Direct Connect connection consists of a single dedicated connection between ports on your router and an AWS Direct Connect device. We recommend establishing a second connection for redundancy.”
  • The toolkit's service level. “High resiliency: This model provides you a way to order dedicated connections to achieve an SLA of 99.9%. 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
  • The service level's requirements. At least two connections across at least two Direct Connect locations, each to the same Endpoint; an Enterprise Support plan; for private Endpoints, the Endpoint in two or more Availability Zones. Not through a partner's hosted connection or hosted virtual interfaces; a dedicated connection reached through a partner counts if it is “owned by your AWS account”. 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
AWS: Direct Connect FAQ

Customer router and data center

The customer's end of a connection. AWS's figure of the model draws a router in each customer data center.

AWS: Direct Connect Resiliency Toolkit

Virtual interface, BGP session and BFD

What a connection needs to reach AWS services: a virtual interface, public, private or transit, with a BGP session.

  • Dynamic, not static. “AWS recommends customers use multiple dynamically routed, rather than statically routed, connections to AWS at multiple AWS Direct Connect locations. This will allow remote connections to fail over automatically.” AWS: Direct Connect Resiliency Recommendations
  • BFD, once the router asks. “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.”
  • What remains carries it. “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
  • 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
  • Active/active: the best practice. “Additionally, it is a best practice to use dynamically routed, active/active connections for automatic load balancing and failover across redundant network connections.” AWS: Direct Connect Resiliency Recommendations
  • A primary and a backup, if wanted. On private and transit virtual interfaces, which take local preference communities: “To support failover across multiple Direct Connect connections (active/passive), apply a community tag with a higher preference to the prefixes for the primary or active virtual interface and a lower preference to the prefixes for the backup or passive virtual interface.” AWS: Direct Connect routing policies and BGP communities
AWS: Direct Connect FAQ

Region

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.

  • Beyond AWS's 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 location.” AWS: Direct Connect Resiliency Recommendations
  • Beyond AWS's figure: the gateway is not a path. “A Direct Connect gateway is a virtual component of Direct Connect designed to act as a distributed set of BGP route reflectors. Because it operates outside the data traffic path, it avoids creating a single point of failure or introducing dependencies on specific AWS Regions.” AWS: Direct Connect gateways
  • Beyond AWS's figure: what the gateway joins. A Direct Connect gateway is associated with “A Transit Gateway when you have multiple VPCs in the same Region”, with “A virtual private gateway”, or with “An AWS Cloud WAN core network”. AWS: Direct Connect gateways
  • Beyond AWS's figure: a VPN backup. “Use a VPN as a cost-effective backup to a primary Direct Connect link. A single Site-to-Site VPN connection provides two tunnels. Each tunnel must terminate in a different Availability Zone so that the loss of one zone does not take down both.” AWS Well-Architected: REL02-BP02
AWS: Direct Connect Resiliency Toolkit