CLOUD CONCEPT

Hub-and-Spoke Topology

Hub-and-spoke topology is a network design in which multiple peripheral networks connect to a central hub that controls connectivity between them and shared destinations.

Cloud Concepts Hub →

What is Hub-and-Spoke Topology

The hub provides a common routing point for otherwise separate networks, reducing the number of connections needed compared with a full mesh. In cloud architectures, this simplifies connectivity across accounts, regions, and on-premises environments, but introduces cost, resilience, and performance trade-offs around the shared transit layer.

A hub-and-spoke topology connects peripheral networks, called spokes, through a central networking hub. Spokes commonly represent application networks, business units, environments, or remote sites. The hub can be a managed transit router or a routing infrastructure that provides shared connectivity. Its purpose is to simplify network relationships and apply routing policy centrally; it does not require every spoke to communicate with every other spoke.

The scaling advantage becomes clear when comparing it with a full mesh. Connecting n networks directly to every other network requires n(n−1)/2 connections. Connecting those networks to a separate hub requires approximately n spoke connections. This reduces connection management as the environment grows, although route tables, security rules, address planning, and operational ownership still require careful design.

In the cloud, an organization might connect production, development, and shared-services virtual networks to a managed transit hub. Production and development can each reach shared DNS or identity services while remaining isolated from one another. Hub route-table associations, route propagation, and explicit routes determine which destinations are reachable. Virtual-network and subnet routes must also direct traffic toward the hub, and return routes must exist. Security groups, network access controls, and firewalls remain separate controls; routing connectivity alone does not authorize application access.

A common misconception is that connecting virtual networks to a central virtual network using peering automatically creates transit routing. AWS VPC peering is nontransitive: if network A peers with B and B peers with C, A cannot reach C through B using those peering connections. A peering-based star can support independent access to services hosted in the central VPC, but it is not a general-purpose transit hub. For a few networks that need direct connectivity, peering can be simpler and less expensive than introducing a managed transit service.

Hybrid architectures extend the pattern by connecting on-premises networks to the hub through VPN or private connectivity. For example, several application VPCs can share access to a corporate data center through a transit gateway connected to a Direct Connect gateway. Address ranges should be nonoverlapping for straightforward routed connectivity. Overlapping ranges require additional mechanisms, such as translation or service-specific access, rather than an assumption that the hub will resolve the conflict.

Centralization is not automatically cheaper or faster. Compare attachment charges, data-processing charges, inter-Region and applicable cross-Availability-Zone transfer charges, appliance capacity, and operational effort. Centralized internet egress can reduce the number of NAT gateways, but traffic processing and transfer costs can offset those savings. Sending traffic through an inspection VPC also adds forwarding stages and requires symmetric routing for stateful firewalls. A transit hub does not inspect traffic unless inspection services are explicitly placed in the path.

For global deployments, use regional hubs connected through an inter-Region backbone or hub peering rather than forcing all traffic through one distant region. Validate bandwidth, latency, route limits, and failover behavior, and distribute customer-managed routing or inspection appliances across Availability Zones. Managed hub availability does not make every attached dependency resilient. Multi-tier applications can keep web, application, and database tiers within one virtual network; the hub usually connects larger network boundaries rather than replacing tier-level security. Choose the topology according to traffic patterns, isolation requirements, growth, and total cost, not merely the number of networks.

Key aspects of Hub-and-Spoke Topology

Hub-and-spoke networking simplifies connectivity through shared transit while requiring deliberate segmentation, routing, capacity planning, resilience, and cost analysis.

Centralized transit

Spokes use a shared routing hub to reach permitted networks and shared destinations. Distinguish a true transit-capable hub from a central network connected only through nontransitive peering.

Scalable connectivity management

Adding a spoke usually requires a connection to the hub rather than a new connection to every existing network. Route limits, attachment quotas, and address planning still constrain growth.

Explicit segmentation

Separate routing domains can allow access to shared services while preventing production-to-development connectivity. Apply security controls in addition to routing policy, and verify both forward and return paths.

Shared hybrid and network services

Multiple spokes can use common connectivity to data centers, inspection infrastructure, or internet egress. Design these shared dependencies for sufficient capacity and an acceptable failure impact.

Traffic-dependent economics

Evaluate attachment, processing, transfer, NAT, and appliance costs using expected traffic volumes. A hub reduces connection-management complexity but can cost more than direct peering for a small or high-volume network.

Regional placement and resilience

Place hubs near workloads and connect regional hubs when global reach is needed. Test failover and preserve symmetric paths through stateful appliances rather than assuming centralization guarantees availability.

Cloud services for Hub-and-Spoke Topology

Amazon VPC supplies workload spokes, while AWS Transit Gateway provides regional transit and routing segmentation. Direct Connect and Site-to-Site VPN extend that topology to data centers and branches. AWS Network Firewall can inspect selected flows when routing deliberately sends them through an inspection VPC. For a global architecture, AWS Cloud WAN provides a managed core with regional connectivity and centralized network policies. These services do not remove the need for address planning, return routes, security rules, or resilient hybrid links. Compare the combined attachment, processing, transfer, and inspection costs against simpler direct-peering designs before centralizing traffic.

AWS Transit Gateway image AWS Transit Gateway

Provides a regional transit hub for VPC and hybrid network connectivity. Transit gateway route tables support segmentation, while peering can connect regional hubs; attachment routes and VPC routes must still be configured correctly.

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

Provides the isolated networks commonly used as spokes or as shared-services and inspection networks. VPC peering supports direct network connections but is nontransitive, so a central peered VPC does not automatically route between spokes.

Open Amazon VPC →
AWS Direct Connect image AWS Direct Connect

Supplies dedicated connectivity between customer networks and AWS. A Direct Connect gateway associated with transit gateways can extend shared hybrid connectivity to multiple spokes; resilient designs require redundant connectivity.

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

Connects on-premises or branch networks to a cloud transit hub using IPsec tunnels. It can provide primary hybrid connectivity or a backup path, with routing and failover configured for the intended behavior.

Open AWS Site-to-Site VPN →
AWS Firewall Manager image AWS Network Firewall

Can provide managed traffic inspection in a dedicated inspection VPC connected to the hub. Routes must explicitly steer traffic through firewall endpoints, and stateful inspection requires symmetric traffic paths.

Open AWS Network Firewall →