CLOUD CONCEPT

Link-Layer Encryption

Link-layer encryption protects data frames between network peers at Layer 2, securing a link or segment rather than an entire application-to-application path.

Cloud Concepts Hub →

What is Link-Layer Encryption

Link-layer encryption provides confidentiality and, with protocols such as MACsec, integrity and data-origin authentication for traffic crossing a network link. It matters in hybrid and multi-cloud connectivity because a private circuit is not automatically encrypted, and protection ends wherever the encrypted link terminates.

Link-layer encryption protects traffic at the data-link layer of the network stack. Instead of establishing an encrypted session between applications, it protects frames exchanged between participating network devices. IEEE 802.1AE MAC Security, commonly called MACsec, is an important implementation for Ethernet connectivity. MACsec can provide confidentiality, integrity, data-origin authentication, and replay protection for protected frames, while leaving information needed for Ethernet forwarding visible.

The most important design question is where encryption begins and ends. A MACsec session might extend between an enterprise router and a cloud provider's edge device. Traffic is decrypted at the receiving MACsec endpoint; that session does not establish continuous encryption through the cloud network to a virtual machine or application. Additional controls may protect later segments, but engineers must assess those segments separately rather than infer end-to-end protection from an encrypted access link.

In hybrid architectures, link-layer encryption is useful when workloads need high-throughput private connectivity and the organization must protect traffic on the access circuit. AWS Direct Connect supports MACsec on eligible dedicated connections at supported locations. Both the customer equipment and the selected connection must support the required MACsec capabilities. A Direct Connect connection is not encrypted by default, and MACsec availability must not be assumed for every connection type, port speed, or location.

For example, an enterprise connecting a data center to AWS can enable MACsec between its compatible router and the Direct Connect device. If a carrier supplies a transport segment between those endpoints, engineers must confirm that it transparently carries the required frames and supports the intended design. They must also identify any network segment before the customer router that remains outside the MACsec protection boundary. In a multi-cloud deployment, each provider-facing connection needs its own capability assessment and protection plan.

MACsec, IPsec, and TLS solve different problems. MACsec protects a Layer 2 link or segment. IPsec protects IP traffic between tunnel endpoints and can span routed networks. TLS protects traffic between TLS endpoints, which may be applications or intermediary proxies. AWS Site-to-Site VPN uses IPsec rather than link-layer encryption. It can complement private connectivity when the required encrypted boundary extends beyond the physical access link, but its supported routing architecture, throughput, tunnel overhead, and MTU implications must be evaluated.

Link-layer encryption can often operate at port line rate using hardware support, avoiding the throughput limitations of some software-based encryption designs. Its trade-offs include compatible equipment, eligible cloud ports, frame overhead, key management, and operational complexity. With MACsec Key Agreement, peers establish secure associations using configured credentials; engineers must coordinate parameters and rotate keys without unexpectedly interrupting connectivity.

Troubleshooting should distinguish physical connectivity, encryption negotiation, and routing. An interface can have carrier while MACsec negotiation fails, and a working encrypted session does not prove that BGP or application traffic is healthy. Check peer capabilities, key identifiers, configured keys, cipher compatibility, security policies, and frame counters. Decide explicitly whether loss of encryption must stop traffic: a policy that permits unencrypted fallback can preserve availability while violating a mandatory encryption requirement. Test failover links as well, because a backup path can otherwise silently weaken the security design.

Key aspects of Link-Layer Encryption

Effective link-layer encryption depends on clearly defined endpoints, compatible infrastructure, managed keys, and verified behavior during failures and failover.

Explicit protection boundaries

Encryption covers the path between participating link-layer peers, not automatically the full route to a workload. Document the termination points and assess every segment outside that boundary.

Confidentiality and frame integrity

MACsec can encrypt frame contents and detect unauthorized modification, with replay protection configured at the receiver. It does not conceal all Ethernet metadata or replace routing and access-control policies.

Independence from private routing

A dedicated circuit, VLAN, or private IP route does not itself provide encryption. Verify encryption support and configuration separately from the connectivity service.

Hardware and transport compatibility

Both endpoints must support compatible encryption capabilities, and intervening transport must carry the required traffic. Confirm cloud connection eligibility, device support, and frame-size handling before deployment.

Key management and failure policy

Coordinate peer credentials, key identifiers, and rotation procedures. When encryption is mandatory, configure and test a policy that blocks traffic rather than allowing unencrypted fallback.

Complementary encryption layers

Use IPsec when protection must span routed networks and TLS when protection must extend between application-facing endpoints. Multiple encryption layers can be appropriate when they address different trust boundaries.

Cloud services for Link-Layer Encryption

AWS Direct Connect, Azure ExpressRoute Direct, and eligible Google Cloud Dedicated Interconnect connections can use MACsec to protect their respective access links. In a hybrid or multi-cloud architecture, configure and validate each link independently because one provider's encrypted connection does not secure another provider's connection or the intervening enterprise network. AWS Site-to-Site VPN adds IPsec protection between VPN endpoints when that boundary better matches the requirement. Application TLS can remain necessary regardless of the connectivity choice. Select the layers by mapping trust boundaries, then verify that primary and backup paths satisfy the same encryption policy.

AWS Direct Connect image AWS Direct Connect

Supports MACsec on eligible dedicated connections at supported locations, protecting the link between compatible customer equipment and the AWS Direct Connect device. Private connectivity is not encrypted by default, and MACsec does not by itself provide end-to-end encryption to workloads.

Open AWS Direct Connect →
AWS Site to Site VPN image AWS Site-to-Site VPN

Provides IPsec encryption at the network layer, not MACsec or other link-layer encryption. It complements or provides an alternative to access-link encryption when the required protection boundary is between VPN endpoints; running it over Direct Connect requires a supported connectivity design.

Open AWS Site-to-Site VPN →