MACsec or IPsec Across the Border: The Backup Path Decides

When a cross-border interconnect loses its primary path, what keeps it running is how much encryption state has to survive the switchover. MACsec keys each physical link separately, so failover is just routing between two links that are already secured. IPsec ties security to a tunnel between gateways, so failover means keeping a negotiated session alive or rebuilding it. The choice depends on one question that most design reviews never ask directly: is the backup path a transparent layer 2 service you terminate yourself, or a routed network you do not control?

Where the state lives

Link-layer and IP-layer security standards, meaning IEEE 802.1AE MACsec with its MKA key agreement and IETF IPsec with IKEv2, put their state in very different places. In a MACsec design, each diverse circuit is its own connectivity association with its own key server and its own SAK lifecycle. Losing one circuit takes nothing away from the other, because the two never shared keys, sequence numbers or a peer relationship. Routing moves traffic, and the surviving link was secured before the failure began. IPsec ties the security association to a gateway pair. Unless the SA state is synchronised to a standby gateway, a gateway failure forces fresh IKE negotiation, and the time the outage lasts then depends on how fast the control plane can renegotiate.

The failure mode nobody tests

MACsec in must-secure mode fails closed, which is the right policy for sovereign traffic, but it brings a quiet failure. MKA uses a participant life time of 6 seconds by default. If a carrier protection switch, a flapping optic or a key server reboot interrupts MKA during a SAK rollover, the two ends can end up holding different keys while the physical link reports up. Routing sees a healthy adjacency, at least until its own hellos time out, and meanwhile every frame is dropped at the far end. The fix is procedural rather than exotic. Tie BFD or the routing protocol to the MACsec secured state instead of the physical interface, and run SAK rollover tests while a protection switch is in progress, because that is exactly the window in which production will hit this.

Where the decision flips

If both the primary and backup paths are transparent Ethernet services, such as dark fibre, wavelengths or EVPL circuits, and you terminate each one on your own equipment on both sides of the border, MACsec wins: you get line-rate encryption, no tunnel state to migrate, and failover that is only as slow as your routing convergence. Once any leg of the backup path is a routed service, whether a third-party L3VPN, a national internet exchange or a public transit fallback, MACsec cannot traverse it and IPsec wins by default, since it is the only option that survives a path you do not control. The decision rule is simple: look at the least transparent path in your failure plan, not the primary. A hybrid of MACsec on the primary and IPsec on the backup is technically sound, but it doubles the key management, adds a second policy surface that drifts out of step with the first, and leaves you with a failover path that gets far less testing than the primary.

As a rough estimate, a sub-second routing switchover over pre-keyed MACsec links is achievable, while an IPsec failover without synchronised SA state usually takes several seconds per gateway pair and grows with the number of tunnels, because IKE renegotiation competes for the same control plane CPU.

Does WAN MACsec over a carrier EVPL count as a transparent path?

Yes, as long as the carrier delivers frames unmodified and you can configure MACsec to leave the service VLAN tag unencrypted. Get written confirmation that the carrier's protection switching does not reorder frames beyond the replay window you configured, because otherwise a perfectly normal carrier failover will show up as MACsec replay drops.

Back to SovereignWAN · Domains

← Back to SovereignWAN
Engineering & Architecture Brief

MACsec or IPsec Across the Border: The Backup Path Decides

When a cross-border interconnect loses its primary path, what keeps it running is how much encryption state has to survive the switchover. MACsec keys each physical link separately, so failover is just routing between two links that are already secured. IPsec ties security to a tunnel between gateways, so failover means keeping a negotiated session alive or rebuilding it. The choice depends on one question that most design reviews never ask directly: is the backup path a transparent layer 2 service you terminate yourself, or a routed network you do not control?

Where the state lives

Link-layer and IP-layer security standards, meaning IEEE 802.1AE MACsec with its MKA key agreement and IETF IPsec with IKEv2, put their state in very different places. In a MACsec design, each diverse circuit is its own connectivity association with its own key server and its own SAK lifecycle. Losing one circuit takes nothing away from the other, because the two never shared keys, sequence numbers or a peer relationship. Routing moves traffic, and the surviving link was secured before the failure began. IPsec ties the security association to a gateway pair. Unless the SA state is synchronised to a standby gateway, a gateway failure forces fresh IKE negotiation, and the time the outage lasts then depends on how fast the control plane can renegotiate.

The failure mode nobody tests

MACsec in must-secure mode fails closed, which is the right policy for sovereign traffic, but it brings a quiet failure. MKA uses a participant life time of 6 seconds by default. If a carrier protection switch, a flapping optic or a key server reboot interrupts MKA during a SAK rollover, the two ends can end up holding different keys while the physical link reports up. Routing sees a healthy adjacency, at least until its own hellos time out, and meanwhile every frame is dropped at the far end. The fix is procedural rather than exotic. Tie BFD or the routing protocol to the MACsec secured state instead of the physical interface, and run SAK rollover tests while a protection switch is in progress, because that is exactly the window in which production will hit this.

Where the decision flips

If both the primary and backup paths are transparent Ethernet services, such as dark fibre, wavelengths or EVPL circuits, and you terminate each one on your own equipment on both sides of the border, MACsec wins: you get line-rate encryption, no tunnel state to migrate, and failover that is only as slow as your routing convergence. Once any leg of the backup path is a routed service, whether a third-party L3VPN, a national internet exchange or a public transit fallback, MACsec cannot traverse it and IPsec wins by default, since it is the only option that survives a path you do not control. The decision rule is simple: look at the least transparent path in your failure plan, not the primary. A hybrid of MACsec on the primary and IPsec on the backup is technically sound, but it doubles the key management, adds a second policy surface that drifts out of step with the first, and leaves you with a failover path that gets far less testing than the primary.

As a rough estimate, a sub-second routing switchover over pre-keyed MACsec links is achievable, while an IPsec failover without synchronised SA state usually takes several seconds per gateway pair and grows with the number of tunnels, because IKE renegotiation competes for the same control plane CPU.

Technical FAQ: Does WAN MACsec over a carrier EVPL count as a transparent path?

Yes, as long as the carrier delivers frames unmodified and you can configure MACsec to leave the service VLAN tag unencrypted. Get written confirmation that the carrier's protection switching does not reorder frames beyond the replay window you configured, because otherwise a perfectly normal carrier failover will show up as MACsec replay drops.

Related Architecture Specifications (SOVEREIGNINFO): subseasecure.com · sovereignlan.com · sovereignslice.com

More Technical Articles on sovereignwan.com

Throughput and Cryptographic Overhead: Linux Kernel WireGuard vs IPsec at 100 Gbps WAN Speeds →Quantitative Reliability Analysis of Multi-Homed Sovereign WAN Topologies Against Coordinated Cuts →MACsec on Wavelengths or IPsec over IP: Where Failover Decides a Sovereign Cross-Border Link →Where Cross-Border Failover Flips the Choice Between Link Encryption and Enclave Tunnels →