Lesson 5 of 5 VPC Connectivity and Hybrid Networking

Designing Private Connectivity with AWS Direct Connect

This lesson explains how Direct Connect provides private, dedicated network connections between your premises and AWS with consistent performance.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish dedicated and hosted connections.
  • Choose private, public and transit virtual interfaces.
  • Explain how encryption and resilience are added to Direct Connect.

Connections

A Direct Connect connection is a physical link at a Direct Connect location, and it is obtained in one of two ways. A dedicated connection is a port of 1, 10, 100 or 400 Gbps ordered directly from AWS and used by one customer. A hosted connection is provided by an AWS Direct Connect Partner, who shares its own links among customers and offers capacities from 50 Mbps to 25 Gbps, which suits smaller needs. Either way, ordering and installing the circuit takes a long time. For resilience, AWS recommends connections at more than one Direct Connect location, so a failure at one location does not disconnect the network. The following table summarises the two types.

TypeSpeedsFrom
Dedicated1, 10, 100 or 400 Gbps portsAWS, at a Direct Connect location
Hosted50 Mbps to 25 GbpsAWS Partners

Provisioning takes weeks or more, so it does not help urgent needs.

400Gbps

Fastest dedicated connection port

25Gbps

Fastest hosted connection from a Partner

Virtual interfaces

A Direct Connect connection carries traffic in virtual interfaces (VIFs), each of which reaches a different kind of destination. A private VIF reaches a VPC through its virtual private gateway, or several VPCs through a Direct Connect gateway, using private addresses. A transit VIF reaches one or more transit gateways, through a Direct Connect gateway, so one connection serves every VPC attached to them. 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 types.

VIFReaches
Private VIFA VPC via a virtual private gateway or Direct Connect gateway
Transit VIFTransit gateways
Public VIFAWS public endpoints such as S3

A Direct Connect gateway connects one link to VPCs in many Regions.

The following diagram shows one connection carrying the three types of VIF.

The three types of Direct Connect virtual interface carried by one connection. A private VIF reaches a VPC through a virtual private gateway, or several through a Direct Connect gateway. A transit VIF reaches transit gateways through a Direct Connect gateway. A public VIF reaches AWS public endpoints such as Amazon S3 over the private link instead of the internet.
A Direct Connect gateway lets one private or transit VIF reach VPCs or transit gateways in many Regions.
Match the pairs

Virtual interfaces

Exam skills 1.2.4 · 3.4.1

Match each destination with the Direct Connect virtual interface that reaches it.

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

Encryption and resilience

AWS Direct Connect provides a private, dedicated connection, but it does not encrypt traffic by default. When encryption is required, MACsec encrypts traffic on supported dedicated connections, or an IPsec VPN can run over the Direct Connect connection, through a public or transit virtual interface.

A single connection is a single point of failure, so critical workloads use connections at two or more Direct Connect locations; the maximum resiliency model uses separate devices at two locations. Link aggregation groups (LAGs) bundle several connections at one location to increase bandwidth, but do not protect against the loss of that location. A Site-to-Site VPN is a common low-cost backup: BGP prefers the Direct Connect routes, so traffic fails over to the VPN automatically if Direct Connect fails and returns when it recovers.

The following diagram shows connections at two locations with a VPN as backup.

Resilient hybrid connectivity. Connections at two Direct Connect locations, with separate devices, remove the single point of failure that one connection or a link aggregation group at one location leaves. A Site-to-Site VPN over the internet is a low-cost backup: BGP prefers the Direct Connect routes and fails over to the VPN automatically.
A link aggregation group would add bandwidth at one location, but would not survive the loss of that location.
Scenario questions

Resilient Direct Connect

Exam skills 1.2.4 · 2.2.4

Choose the Direct Connect design for each requirement.

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

Cost

Charged per port hour plus data out, at lower rates than internet egress: cost-effective for large, steady volumes.

Worked example

Resilient, encrypted hybrid connectivity

A bank moves terabytes a day between its data centre and AWS and needs consistent performance, encryption, and no single point of failure.

RequirementDesign
Consistent bandwidth and latencyDedicated Direct Connect connections
Survive the loss of a connection or locationConnections at two Direct Connect locations
EncryptionMACsec on supported dedicated connections, or an IPsec VPN over Direct Connect
Low-cost backupSite-to-Site VPN over the internet
Reach VPCs in several RegionsDirect Connect gateway

Direct Connect alone is private but not encrypted, a frequent exam point. Data transfer out over Direct Connect is also cheaper than over the internet, which helps justify it for large volumes.

Check yourself

A new office needs a connection to AWS next week. Can a new dedicated Direct Connect connection meet this?

Show answer

No. Provisioning a dedicated connection takes weeks or more. A Site-to-Site VPN can be set up in hours and used until Direct Connect is ready.

Exam Tips

Remember for the exam

  • For consistent low latency and high bandwidth to on premises, use Direct Connect.
  • When connectivity is needed this week, use a VPN, because Direct Connect takes weeks.
  • To encrypt Direct Connect traffic, use MACsec or an IPsec VPN over Direct Connect.
  • To reach VPCs in several Regions over one connection, use a Direct Connect gateway.
  • For automatic failover from Direct Connect to VPN, use BGP with both connections advertising routes.
  • For large, steady outbound data volumes at lower transfer rates, use Direct Connect.