Lesson 3 of 11 Advanced Networking

Designing Resilient Direct Connect Connectivity

This lesson explains how to design AWS Direct Connect, which provides private connectivity with consistent latency from on-premises networks, for resilience and multi-Region reach.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish dedicated and hosted connections and the virtual interface types.
  • Explain how a Direct Connect gateway reaches many Regions.
  • Choose a resiliency model.
  • Describe encryption options and BGP path selection.

Connections and virtual interfaces

A Direct Connect connection is obtained in one of two ways. A dedicated connection is a physical port of 1, 10, 100 or 400 Gbps at a Direct Connect location, ordered from AWS. A hosted connection, from 50 Mbps to 25 Gbps, is provided by a Direct Connect partner over its own port, which suits smaller bandwidth needs. The following table summarises the connection types.

ConnectionSpeeds
Dedicated1, 10, 100 or 400 Gbps ports at a Direct Connect location
Hosted (from a partner)50 Mbps to 25 Gbps

Traffic runs over a connection in virtual interfaces (VIFs), and the type decides what is reached. A private VIF reaches VPCs, through a virtual private gateway or a Direct Connect gateway. A transit VIF reaches transit gateways through a Direct Connect gateway, which scales to many VPCs. A public VIF reaches AWS public endpoints, such as S3 and DynamoDB, over the private link instead of the internet. The following table summarises the virtual interfaces.

Virtual interfaceReaches
Private VIFVPCs through a virtual private gateway or Direct Connect gateway
Transit VIFTransit gateways through a Direct Connect gateway
Public VIFAWS public endpoints such as S3 and DynamoDB, over the private link

New connections take weeks; use a VPN in the meantime.

400Gbps

Fastest dedicated connection port

25Gbps

Fastest hosted connection from a partner

Match the pairs

Virtual interfaces

Exam skills 1.3.1

Match each requirement with the Direct Connect virtual interface that meets it.

Log in to try this activity Interactive activities are free with an account.

Reaching many Regions

A Direct Connect gateway is a global resource. A private or transit virtual interface attaches to it once, and the gateway associates with virtual private gateways or transit gateways in any Region except China, so one physical connection in one location reaches VPCs worldwide. Allowed prefix lists on each association control which routes are advertised to the on-premises network.

A Direct Connect gateway connects on-premises networks to AWS networks; it does not route between the AWS networks attached to it, so two VPCs associated with the same gateway cannot reach each other through it. Traffic between VPCs uses a transit gateway, peering or Cloud WAN. In the other direction, SiteLink lets an organisation's own sites communicate with each other through Direct Connect locations over the AWS backbone, without the traffic entering a Region.

The following diagram shows one connection reaching transit gateways in two Regions through a Direct Connect gateway.

A Direct Connect gateway reaching several Regions. The data centre connects to a Direct Connect location, and a transit virtual interface attaches once to the Direct Connect gateway, a global resource that associates with transit gateways in different Regions. The gateway does not route between the AWS networks attached to it.
Allowed prefix lists on each association control which routes the data centre learns. Traffic between the two Regions uses peering, a transit gateway or Cloud WAN, not the Direct Connect gateway.

Resiliency models

AWS recommends three Direct Connect resiliency models, differing in how many failures they survive. Maximum resiliency uses separate connections on separate devices at two Direct Connect locations, four connections in total, so it survives the loss of a device and of a whole location. It is the model for critical workloads. High resiliency uses one connection at each of two locations, surviving the loss of one location, for important workloads. The development and test model uses two connections at one location, which survives a device failure but not the loss of the location, so it suits only non-critical workloads. The following table summarises the models.

ModelDesignUse for
Maximum resiliencySeparate connections on separate devices at two locations (four connections)Critical workloads
High resiliencyOne connection at each of two locationsImportant workloads
Development and testTwo connections at one locationNon-critical

Several further options shape resilience. A Site-to-Site VPN provides a cheaper backup path than a second connection, with lower bandwidth and less consistent latency. Bidirectional Forwarding Detection (BFD) detects a failed link in under a second, rather than waiting for BGP timers, which speeds failover. A link aggregation group (LAG) bundles several connections of the same speed at one location into one logical link for bandwidth; because all its members share a location, it adds capacity but not location resilience.

The following diagram compares the three resiliency models.

The three Direct Connect resiliency models. Maximum resiliency uses separate connections on separate devices at two Direct Connect locations, four connections in all, and survives the loss of a device and of a location. High resiliency uses one connection at each of two locations and survives the loss of one location. The development and test model uses two connections at one location and survives only a device failure.
Each line is a connection. Only the models that use two locations survive the loss of a whole Direct Connect location.
Scenario questions

Direct Connect resiliency

Exam skills 1.3.1

Choose the Direct Connect design for each resiliency requirement.

Log in to try this activity Interactive activities are free with an account.

Encryption and path control

Direct Connect is a private connection, but its traffic is not encrypted by default. Two options add encryption. MACsec encrypts at layer 2 between the customer's router and the AWS device, at line rate, on supported dedicated connections. An IPsec VPN over Direct Connect encrypts at layer 3, either as a private IP VPN over a transit virtual interface or as a VPN over a public virtual interface, at the throughput limits of VPN tunnels.

Path selection between several connections is controlled with BGP. The most specific prefix always wins, so advertising more specific routes over one connection makes it preferred. Between equally specific routes, BGP communities that set local preference on the AWS side, and AS path prepending, influence which connection AWS uses for traffic returning to the on-premises network, which allows active-passive designs or the use of the nearest location for each Region.

Worked example

Designing critical hybrid connectivity

A trading firm's production systems in eu-west-1 and eu-central-1 depend on its two data centres. The business requires connectivity to survive the loss of a device, a Direct Connect location or a whole data centre, and traffic must be encrypted. The design:

Data centre A ── 2 x 10 Gbps dedicated ──► DX location London   (separate AWS devices)
Data centre B ── 2 x 10 Gbps dedicated ──► DX location Frankfurt (separate AWS devices)
            all four connections: MACsec enabled, transit VIF ──► Direct Connect gateway
Direct Connect gateway ──► transit gateway eu-west-1, transit gateway eu-central-1
Backup: Site-to-Site VPN from each data centre to each transit gateway

This is the maximum resiliency model: no single device, location or data centre failure removes connectivity. A Direct Connect gateway lets every connection reach both Regions. MACsec encrypts at layer 2 on the dedicated connections, so no extra VPN overhead is needed on the primary path. To make the London connections preferred for eu-west-1 traffic, the firm advertises the same prefixes over Frankfurt with AS path prepending, and on the AWS side uses local preference BGP communities. BFD on every BGP session reduces failover from about 90 seconds to under one second.

Check yourself

What does the maximum resiliency model for Direct Connect require?

Show answer

Connections at two Direct Connect locations with separate devices at each, so the loss of a device, a connection or a whole location still leaves connectivity.

Exam Tips

Remember for the exam

  • Critical production workloads need maximum resiliency: two Direct Connect locations and separate devices.
  • For one Direct Connect connection to reach VPCs in several Regions, use a Direct Connect gateway.
  • To reach many VPCs through a transit gateway, use a transit VIF with a Direct Connect gateway.
  • To encrypt Direct Connect at layer 2 use MACsec; at layer 3 use a VPN over Direct Connect.
  • A low-cost backup for Direct Connect is a Site-to-Site VPN.
  • For faster failure detection on Direct Connect, enable BFD.