Lesson 2 of 4 Hybrid Connectivity and Zero-Trust Access

Encrypting Direct Connect Traffic with MACsec or VPN

This lesson explains how to meet an encryption requirement on AWS Direct Connect, which gives private, consistent connectivity to AWS but is not encrypted by default. This is a frequent exam scenario.

Learning outcomes

After completing this lesson, you will be able to:

  • Choose between MACsec and a VPN over Direct Connect for encryption.
  • Describe how MACsec is operated on supported connections.
  • Explain why security requirements apply to backup paths as well as primary paths.

Encrypting Direct Connect

When traffic over Direct Connect must be encrypted, there are two options at different layers. MACsec (IEEE 802.1AE) encrypts at layer 2, between your router and the AWS device, at full line rate with no throughput penalty. It requires a supported dedicated connection of 10 Gbps or more and MACsec-capable equipment. An IPsec VPN over Direct Connect runs a Site-to-Site VPN across a public or transit virtual interface (VIF), encrypting at layer 3. It works with hosted connections and smaller speeds, but VPN tunnel throughput limits apply. The following table summarises the options.

OptionLayerRequirements
MACsec (IEEE 802.1AE)Layer 2, line rateSupported dedicated connections of 10 Gbps or more and compatible devices
IPsec VPN over Direct ConnectLayer 3Public or transit VIF; works with hosted connections

10Gbps

Minimum dedicated connection speed for MACsec

The following diagram matches two different Direct Connect connections to the encryption that suits each.

Encrypting two different Direct Connect connections. The 10 Gbps dedicated connection at a MACsec-capable location uses MACsec, with the CKN/CAK pair in Secrets Manager and must_encrypt so it never falls back to clear text; the 1 Gbps hosted connection runs a private IP VPN over a transit VIF; the backup is a Site-to-Site VPN.
VIF stands for virtual interface.
Scenario questions

Encrypting Direct Connect

Exam skills 3.3.2 · 5.1.1

Choose the encryption option for each Direct Connect connection.

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

Operating MACsec

MACsec (IEEE 802.1AE) encrypts traffic at layer 2 between the customer's router and the AWS Direct Connect device, at line rate and without the throughput limits of a VPN. It is available on dedicated connections at supported speeds and locations, not on hosted connections. Both ends must share the same key, so key management is the main operational task. The following list describes how MACsec is operated.

  • A connectivity association key name and key (CKN and CAK) pair is associated with the connection and stored in Secrets Manager.
  • The encryption mode must_encrypt drops traffic rather than sending it unencrypted if keys do not match.
  • Keys are rotated by associating a new pair with the connection and the router.
True or false

Running MACsec

Exam skills 3.3.2

Check how MACsec keys and modes are managed.

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

Resilience

Security requirements must hold on every path that traffic can take, including backup paths. Critical workloads use connections at two Direct Connect locations, so that the failure of one location does not interrupt connectivity, often with a Site-to-Site VPN as an additional backup path. If the Direct Connect connections use MACsec and the backup is a VPN, traffic remains encrypted whichever path it takes, because IPsec VPNs always encrypt. A design in which the backup path is an unencrypted Direct Connect connection would, by contrast, break an encryption-in-transit requirement during a failover.

Scenario questions

Encryption on the backup path

Exam skills 3.3.2 · 5.1.1

Keep an encryption requirement on every path, including failover.

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

Meeting an encryption requirement on Direct Connect

A regulator requires all traffic between the data centre and AWS to be encrypted. The company has a 10 Gbps dedicated Direct Connect connection to eu-west-1 and a 1 Gbps hosted connection to us-east-1 from a partner. The two connections need different solutions:

10 Gbps dedicated, MACsec-capable location   -> Enable MACsec: associate a CKN/CAK pair (stored in
                                                Secrets Manager) with the connection, configure the
                                                router, set encryption mode "must_encrypt"
1 Gbps hosted connection                     -> MACsec not available: run a private IP Site-to-Site VPN
                                                over a transit VIF to the transit gateway
Backup path                                  -> Standard Site-to-Site VPN over the internet (always encrypted)

MACsec encrypts at line rate without the throughput limits of IPsec tunnels, but only on supported dedicated connections. Setting must_encrypt ensures the link drops rather than falls back to clear text if the keys do not match.

Check yourself

Is traffic over Direct Connect encrypted by default?

Show answer

No. It is private but not encrypted; MACsec or an IPsec VPN adds encryption.

Exam Tips

Remember for the exam

  • Direct Connect is private but not encrypted by default.
  • To encrypt a 100 Gbps Direct Connect connection at layer 2 at line rate, use MACsec.
  • For encryption over a hosted Direct Connect connection without MACsec, use an IPsec VPN over Direct Connect.
  • Set MACsec to must_encrypt so traffic is never sent unencrypted.
  • Use two Direct Connect locations and a VPN backup for critical workloads.