Home / Insights / Cloud Networking
Enterprise Routing Architecture

Multi-Cloud BGP Transit: AWS & Azure

Production engineering playbook for high-availability multihomed routing across AWS Direct Connect and Azure ExpressRoute with route-maps, BFD sub-second failover, and TCP MSS clamping.

Multi-Cloud BGP Transit Architecture
Core Architecture & Hybrid Peering
Key takeaways
  • Use a transit layer (Transit Gateway, Virtual WAN or a third-party hub) instead of meshing VPCs and VNets.
  • Plan non-overlapping address space before connecting clouds.
  • Run BGP with explicit route filters and documented preferences.
  • Test failure paths: link loss, region loss and route leaks.

Engineering Resilient Interconnects Across AWS and Microsoft Azure

Modern enterprises operating distributed digital platforms rarely reside in a single public cloud ecosystem. Regulated workloads, analytical data lakes, disaster recovery environments, and SaaS platforms are routinely partitioned across Amazon Web Services (AWS) and Microsoft Azure. However, operating private dedicated interconnects across both hyperscalers introduces routing complexities that single-provider guides fail to address.

Establishing private connectivity between on-premises datacenters, AWS Direct Connect (DX), and Azure ExpressRoute (ER) requires a deterministic Layer 3 Border Gateway Protocol (BGP) transit design. Without granular path manipulation, asymmetric routing across stateful firewalls will trigger silent session drops, while MTU discrepancies will cause catastrophic Path MTU Discovery (PMTUD) black holes.

Physical Topology & Colocation Meet-Me Architecture

A reliable multi-cloud transit foundation mandates redundant Customer Edge (CE) routing hardware deployed across carrier-neutral colocation facilities (such as Equinix, NTT, or NextDC). Dual routers (CE-01 and CE-02) terminate physical cross-connects into AWS Direct Connect Gateway (DXGW) and Microsoft Enterprise Edge (MSEE) routers via dedicated 10G or 100G 802.1Q dot1q trunk interfaces.

Enterprise Core (DC) Core Switch Fabric AS 65000 (Internal) 10.0.0.0/8 Fabric CE-01: Primary Colocation Cisco ASR 1001-HX · AS 65001 BFD: 300ms / 300ms x3 TCP MSS Clamping: 1360/1460 CE-02: Secondary Colocation Cisco ASR 1001-HX · AS 65001 AS-Path Prepending: x3 Standby Direct Connect & ER AWS Direct Connect Transit VIF · MTU 8500 (Max) DX Gateway → Transit Gateway BGP AS 64512 · Comm: 7224:9300 VPC Subnets: 10.100.0.0/16 Azure ExpressRoute Private Peering · MTU 1500 (Strict) MSEE → ER Gateway / VWAN BGP AS 12076 · Path Weight / Prepend VNet Subnets: 10.200.0.0/16 iBGP

The MTU Mismatch: Why Large Packets Encounter Silent Drops

A prevalent engineering mistake in multi-cloud transit designs is assuming uniform jumbo frame support across all cloud providers. When packets exceed the minimum path MTU without proper fragmentation signaling, traffic fails silently.

Here are the verified specifications from both hyperscalers:

  • AWS Direct Connect: Supports an MTU of 1500 for standard Virtual Interfaces. Transit Virtual Interfaces (Transit VIFs connected to AWS Transit Gateway) support an MTU of up to 8500 bytes. Dedicated Private VIFs support up to 9001 bytes.
  • Azure ExpressRoute: Microsoft Azure ExpressRoute circuits strictly enforce an MTU limit of 1500 bytes per Microsoft documentation. Packets exceeding 1500 bytes on ExpressRoute peering interfaces are dropped at the Microsoft Enterprise Edge (MSEE) boundary without generating fragmentation.

When an application residing in an AWS EC2 instance sends an 8000-byte TCP segment across Direct Connect destined for an Azure VM, the packet reaches the Customer Edge router or intermediate IPSec overlay. Because many corporate firewalls drop ICMP Type 3 Code 4 ("Destination Unreachable, Fragmentation Needed and DF Set") packets to prevent ICMP scanning, Path MTU Discovery (PMTUD) fails. The TCP connection establishes successfully during the initial SYN-ACK handshake (which uses small packets), but hangs indefinitely the moment high-throughput bulk data is transmitted.

The Production Solution: TCP MSS Clamping

To eliminate this failure mode definitively, network engineers must enforce TCP MSS (Maximum Segment Size) clamping on both Customer Edge routers and transit firewalls:

  • For standard 1500-byte Ethernet interfaces: Configure ip tcp adjust-mss 1460 (1500 bytes minus 20-byte IP header and 20-byte TCP header).
  • For IPsec VPN overlays or VXLAN tunnels: Configure ip tcp adjust-mss 1360 to account for IPsec ESP headers, initialization vectors, and encapsulation overhead.

Cisco IOS-XE Configuration Template (Illustrative)

Illustrative example: the configuration below uses Cisco IOS-XE syntax and has not been validated against a specific IOS-XE release or your hardware. Adapt prefixes, ASNs and timers, and test failover in a maintenance window before production use. It illustrates BGP peering terminating AWS Direct Connect Transit VIF (primary on CE-01 with community 7224:9300) and Azure ExpressRoute Private Peering (primary on CE-01), with sub-second Bidirectional Forwarding Detection (BFD) and deterministic failover.

! ==============================================================================
! Cisco IOS-XE Enterprise Multi-Cloud Transit BGP Configuration
! Device: CE-01 (Primary Edge Router) | Local Autonomous System: 65001
! ==============================================================================

! --- Interface Definitions with Precise MTU & MSS Clamping ---
interface GigabitEthernet0/0/1.100
 description AWS-DirectConnect-Primary-TransitVIF-VLAN100
 encapsulation dot1Q 100
 mtu 8500
 ip address 169.254.248.2 255.255.255.252
 ip tcp adjust-mss 1360
 bfd interval 300 min_rx 300 multiplier 3
 no shutdown
!
interface GigabitEthernet0/0/2.200
 description Azure-ExpressRoute-Primary-PrivatePeering-VLAN200
 encapsulation dot1Q 200
 mtu 1500
 ip address 169.254.249.2 255.255.255.252
 ip tcp adjust-mss 1460
 bfd interval 300 min_rx 300 multiplier 3
 no shutdown
!
interface GigabitEthernet0/0/3
 description Inter-Router-iBGP-Link-to-CE-02
 mtu 1500
 ip address 10.254.0.1 255.255.255.252
 bfd interval 300 min_rx 300 multiplier 3
 no shutdown
!
! --- Prefix Lists Defining Advertised Corporate Subnets ---
ip prefix-list CORP-ROUTES-PRIMARY seq 10 permit 10.0.0.0/8 le 24
ip prefix-list CORP-DEFAULT-ROUTE seq 10 permit 0.0.0.0/0
!
! --- Route Maps: AWS Inbound/Outbound Policy ---
route-map RM-AWS-OUT-PRIMARY permit 10
 match ip address prefix-list CORP-ROUTES-PRIMARY
 ! Set AWS BGP Community: 7224:9300 = 90 Local-Pref (Primary within AWS Region)
 set community 7224:9300 additive
!
route-map RM-AWS-IN permit 10
 set local-preference 200
!
! --- Route Maps: Azure Inbound/Outbound Policy ---
route-map RM-AZURE-OUT-PRIMARY permit 10
 match ip address prefix-list CORP-ROUTES-PRIMARY
!
route-map RM-AZURE-IN permit 10
 set local-preference 200
!
! --- BGP Routing Process Configuration ---
router bgp 65001
 bgp log-neighbor-changes
 bgp graceful-restart
 no bgp default ipv4-unicast
 ! Define all BGP neighbors at router bgp level
 neighbor 10.254.0.2 remote-as 65001
 neighbor 10.254.0.2 description iBGP-Peer-CE-02
 neighbor 10.254.0.2 update-source GigabitEthernet0/0/3
 !
 neighbor 169.254.248.1 remote-as 64512
 neighbor 169.254.248.1 description AWS-DirectConnect-TransitGateway
 !
 neighbor 169.254.249.1 remote-as 12076
 neighbor 169.254.249.1 description Azure-MSEE-PrivatePeering
 !
 address-family ipv4 unicast
  ! Activate iBGP with CE-02
  neighbor 10.254.0.2 activate
  neighbor 10.254.0.2 next-hop-self
  neighbor 10.254.0.2 send-community both
  !
  ! Activate AWS Direct Connect Neighbor (DXGW AS 64512)
  neighbor 169.254.248.1 activate
  neighbor 169.254.248.1 fall-over bfd
  neighbor 169.254.248.1 send-community both
  neighbor 169.254.248.1 route-map RM-AWS-IN in
  neighbor 169.254.248.1 route-map RM-AWS-OUT-PRIMARY out
  !
  ! Activate Azure ExpressRoute Neighbor (MSEE AS 12076)
  neighbor 169.254.249.1 activate
  neighbor 169.254.249.1 fall-over bfd
  neighbor 169.254.249.1 route-map RM-AZURE-IN in
  neighbor 169.254.249.1 route-map RM-AZURE-OUT-PRIMARY out
 exit-address-family
!

Bidirectional Forwarding Detection (BFD) Tuning

Standard BGP implementations rely on Keepalive (default 30 or 60 seconds) and Holdtime (default 90 or 180 seconds) timers. If a fiber cut or transponder failure occurs in a leased circuit without dropping physical link state at the router port, traffic continues to blackhole into the dead path for up to three minutes before BGP tears down the peering session.

By coupling BGP with hardware-assisted Bidirectional Forwarding Detection (BFD):

  • Transmit Interval: 300 ms
  • Receive Interval: 300 ms
  • Multiplier: 3
  • Total Failure Detection Time: 300 ms * 3 = 900 ms

In less than one second, BFD detects forwarding plane loss, signals the BGP control plane to invalidate routes, and convergence triggers immediate rerouting through the alternate Customer Edge router (CE-02).

Multi-Cloud Routing Failure Modes & Operational Matrix

Failure Scenario Root Cause Mechanism Observed Symptom Engineering Resolution
Asymmetric Firewall Drops Inbound traffic enters via AWS DX; return path routes via Azure ER or Internet VPN. TCP SYN completes, but ACK is dropped by stateful firewalls due to out-of-state inspection. Enforce BGP Local-Preference on CE inbound and AS-Path prepending on outbound to align ingress/egress symmetry.
PMTUD Black Hole AWS Transit VIF transmits 8500-byte packets; Azure ER interface enforces 1500-byte ceiling. SSH and ping work, but HTTPS, API calls, and SQL queries hang indefinitely after initial TLS handshake. Apply ip tcp adjust-mss 1360 (IPSec) and 1460 (Ethernet) on all transit customer interfaces.
BGP Route Flapping Transponder instability causing BGP hold-time expirations every 90 seconds. Continuous route recalculations, high router CPU utilization, and intermittent packet drops. Enable BGP route flap dampening and configure BFD sub-second timers with link carrier-delay damping.
Subnet Leaking / Transit Hijack Customer Edge router redistributes AWS routes into Azure BGP advertisements without filtering. Azure and AWS route cross-cloud traffic through your colocation bandwidth. Implement strict prefix-lists rejecting cross-cloud redistribution and filtering non-enterprise AS paths.

Primary Source Documentation & Technical Standards

For detailed provider specifications and reference standards, consult the official primary documentation:

Frequently Asked Questions

About the Author

Lalit Bhardwaj — Founder & Technology Strategist, XOOPIE. Lalit leads XOOPIE with a hands-on technology strategy and infrastructure engineering approach. His focus is on understanding how an organization actually operates and translating that reality into an appropriate, resilient technical design.

Read Lalit Bhardwaj's full profile →