CLOUD CONCEPT

Transitive Routing

Transitive routing allows traffic between two networks to pass through an intermediate network or routing hub rather than requiring a direct connection.

Cloud Concepts Hub →

What is Transitive Routing

Connectivity from network A to B and from B to C does not necessarily allow A to reach C; the intermediate infrastructure must support transit and have the required routes and forwarding policies. This distinction determines whether cloud networks need direct peering connections, a shared routing hub, or another supported transit architecture.

Transitive routing is the ability to forward traffic between networks through an intermediate routing domain. If network A connects to network B, and B connects to network C, transitive routing can provide a path from A to C through B. However, the existence of those two connections alone does not establish that path. The intermediate infrastructure must support forwarding between the connections, and routing and security controls must permit traffic in both directions.

This distinction is important in cloud networks because a connectivity service may deliberately restrict transit. AWS VPC peering, for example, provides nontransitive connectivity between two VPCs. If VPC A peers with VPC B, and VPC B peers with VPC C, A cannot communicate with C through those peering connections. Adding route-table entries does not remove this restriction. A direct A-to-C peering connection or a supported transit architecture is required.

Direct peering is appropriate when a small number of VPCs need straightforward, pairwise connectivity without a shared routing hub. A full mesh of n VPCs requires n(n−1)/2 peering connections, so connection and route management become increasingly complex as the estate grows. A transit hub reduces the number of connections by letting participating networks attach to a common routing service. This simplifies connectivity management, but does not imply that every attached network should communicate with every other network.

For example, consider application VPCs using 10.10.0.0/16 and 10.20.0.0/16, plus an on-premises network using 172.16.0.0/16. With an AWS Transit Gateway architecture, each VPC needs subnet routes for remote destinations pointing to the transit gateway. The transit gateway needs routes directing those destinations to the correct VPC, VPN, or Direct Connect gateway attachment. The on-premises routers also need return routes toward the application networks. Route propagation can populate supported transit gateway routes, but it does not automatically configure the VPC subnet route tables.

Transit routing is a reachability mechanism, not a security policy. Separate routing tables or segments can allow application networks to reach shared services while preventing production and development networks from communicating directly. Security groups, network ACLs, and firewalls still enforce traffic policy. Overlapping address ranges prevent straightforward destination-based routing and generally require renumbering or a carefully designed translation or service-access approach.

Hybrid connectivity requires the same attention to supported paths. A VPC peering connection does not let a peer VPC use the other VPC's VPN connection, Direct Connect connection, NAT device, or internet gateway as a transit path. A supported hub architecture is needed instead. Similarly, attaching networks to different transit gateways and peering those gateways does not automatically exchange all routes; transit gateway peering requires static routing for destinations reached across the peering attachment.

The trade-offs include cost, performance, operational complexity, and failure impact. Compare attachment charges, data processing, data transfer, throughput limits, and expected traffic volumes rather than assuming either peering or transit is always cheaper or faster. Centralized inspection can simplify enforcement but adds dependencies and requires symmetric traffic paths through stateful appliances. For troubleshooting, trace the forward and return paths separately, verify every routing-table lookup and attachment, and check filtering, MTU, and appliance behavior. A route existing in one table is not proof of end-to-end connectivity.

Key aspects of Transitive Routing

Effective transitive routing requires supported forwarding, complete bidirectional routes, deliberate segmentation, compatible addressing, and an evaluated cost and reliability model.

Transit must be explicitly supported

Two adjacent network connections do not automatically create end-to-end reachability. Confirm that the intermediate service supports forwarding between the relevant attachment types.

Complete forward and return routing

Every routing domain on the path needs a valid route toward the destination, and the destination needs a return path. Dynamic route propagation can help, but it does not configure every participating route table.

Scalable multi-network connectivity

A shared transit hub reduces the connection-management burden compared with a full mesh of peerings. Direct peering remains useful for a small number of networks with limited connectivity requirements.

Controlled reachability and segmentation

Separate transit routing tables or network segments can restrict which networks communicate. Routing isolation complements rather than replaces security groups, ACLs, and firewall policy.

Addressing and path consistency

Use nonoverlapping address ranges for straightforward routed connectivity. When stateful inspection is present, ensure forward and return traffic traverse the required appliance path.

Cost and operational trade-offs

Evaluate traffic volume, attachment and processing charges, throughput limits, and failure dependencies. Centralized routing simplifies management but can broaden the impact of incorrect routes or shared inspection failures.

Cloud services for Transitive Routing

Amazon VPC provides workload networks and local route tables, while VPC peering supplies direct, nontransitive connectivity between selected pairs. AWS Transit Gateway supports regional transit among VPCs and hybrid connections; AWS Cloud WAN provides a policy-managed global core network. AWS Direct Connect and AWS Site-to-Site VPN supply paths from external networks into supported transit architectures. These services must be configured together: workload route tables, hub routing policies, external route advertisements, and security controls all affect reachability. Choose direct peering for limited pairwise requirements and a transit architecture when shared connectivity, segmentation, or operational scale justifies it.

AWS Transit Gateway image AWS Transit Gateway

Provides a regional routing hub connecting VPCs and supported hybrid attachments. Route-table associations and propagation control reachability, while peering between transit gateways requires static routes for destinations across the peering attachment.

Open AWS Transit Gateway →
Virtual private cloud VPC_32 image Amazon VPC

VPC route tables direct workload traffic toward peering connections, transit gateways, and other supported targets. VPC peering is nontransitive, making it appropriate for direct pairwise connectivity rather than an implicit transit hub.

Open Amazon VPC →
AWS Direct Connect image AWS Direct Connect

Provides dedicated connectivity between on-premises infrastructure and AWS. A transit virtual interface and Direct Connect gateway can connect on-premises networks to transit gateways, with reachability governed by routing and allowed-prefix configuration.

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

Provides IPsec connectivity between external networks and AWS. A VPN attached to a transit gateway can provide hybrid access to multiple VPCs when the required routes and policies are configured; a VPN attached to one VPC does not make that VPC's peering connections transitive.

Open AWS Site-to-Site VPN →