What Is a Hub-and-Spoke Network? Share Services and Isolate Workloads
A hub-and-spoke network places shared network services such as firewalls, DNS, and remote connectivity in a central hub, while separating applications or teams into spoke networks. This lets workloads reuse common infrastructure while keeping boundaries between them. Connecting a spoke to the hub does not automatically let it communicate with other spokes. Routes and security rules must deliberately steer traffic through a hub appliance or allow direct paths between selected spokes.
A hub-and-spoke network places shared network services such as firewalls, DNS, and remote connectivity in a central hub, while separating applications or teams into spoke networks. This lets workloads reuse common infrastructure while keeping boundaries between them. Connecting a spoke to the hub does not automatically let it communicate with other spokes. Routes and security rules must deliberately steer traffic through a hub appliance or allow direct paths between selected spokes.
What roles do the hub and spokes play?
The hub hosts network functions shared by several networks. A typical design might include a firewall or network virtual appliance (NVA), VPN or dedicated-circuit gateway, DNS forwarder, Bastion for administrative access, and collection of network logs. What belongs in the hub depends on the organization. The goal is not to move application servers and databases into the hub.
Each spoke is a separate virtual network for isolating a workload, environment, team, or security boundary. For example, production and development environments, or payment and analytics services, can occupy different spokes. Separate address spaces, permissions, and network security rules reduce paths through which a change or incident in one workload could affect another. Teams can also operate their workloads more independently.
Can spokes communicate just because they are connected?
No. Hub-and-spoke describes a layout, not a communication policy. Basic cloud network peering usually creates a path between two networks and does not automatically forward routes from one peer to another. If spoke A and spoke B are each peered with the hub, do not assume that A can automatically route through the hub to B.
The right spoke-to-spoke method depends on the requirement. For centralized inspection, use custom routes to send traffic from both spokes through a firewall/NVA in the hub, and configure the appliance to forward it to the destination spoke. If inspection is unnecessary and a short, low-latency path is preferred, directly peer only the selected spokes or use a network group's direct-connectivity feature. A direct path bypasses the hub, so define separate security rules and logging for that flow.
| Communication need | Path design | Main consideration |
|---|---|---|
| Spokes use shared DNS, VPN, or firewall services | Connect each spoke to the hub and advertise only required service routes | A network connection does not grant service permissions or open firewall rules |
| Inspect spoke-to-spoke traffic centrally | Route both spokes through the hub NVA and configure forwarding and return routes | Verify next hops, symmetric paths, appliance capacity, and failure handling |
| Direct communication between selected spokes in one environment | Peer only those networks or use group connectivity | The direct path may bypass central hub inspection |
| Separate development/test from production | Restrict route exchange and use deny-by-default rules | Add explicit exceptions for required shared services |
How should you plan addressing and routes?
Plan non-overlapping CIDR address ranges for the hub and every spoke. Overlap can make the destination network ambiguous, and some platforms reject peering or route exchange when ranges overlap. Keep an address inventory that includes cloud networks, on-premises networks, remote VPN users, and future regions.
Next, make a communication matrix recording source, destination, protocol/port, and business reason. Use it to decide which paths are allowed and which are denied by default. Check whether spoke route tables receive the shared hub routes, whether the internet default route 0.0.0.0/0 points to the firewall, and whether on-premises prefixes use the intended connection. A route establishes a network path; it does not mean a firewall or service permits the traffic.
Do not assume one hub serves every region. Some cloud virtual networks and gateways are regional resources. For workloads in multiple regions, review regional hubs, hub-to-hub links, DNS resolution, and failover paths. Even when a global network orchestration service is available, verify its actual routing behavior and limits in the provider's documentation.
When should traffic go directly or through the hub?
The choice changes latency, inspection points, and operational complexity. A path through a firewall/NVA centralizes policy enforcement and logs, but adds a hop and requires sufficient appliance capacity and high availability. Direct connectivity can shorten the path and reduce latency, but bypasses that central device and needs its own segmentation and observability. Directly connecting every spoke can also multiply peering relationships and security rules.
Set a default rule and keep exceptions narrow. For instance: “block spoke-to-spoke traffic by default; allow shared services; directly connect only two spokes in the same product environment when required.” For each new connection, record its purpose, owner, allowed ports, inspection point, and review or expiry date. This helps prevent temporary paths from becoming permanent unreviewed policy.
How can you introduce and operate the design safely?
Before deployment, document hub and spoke address plans, ownership, communication matrix, DNS, internet egress, on-premises routes, and log collection. If the hub firewall serves many spokes, verify throughput and define alternate paths for failure. Because a route-policy change can affect many workloads, save current route tables, advertisements/propagation, and firewall rules; prepare a change plan and recovery method.
Start with a noncritical spoke. Test shared-service access, traffic that should be allowed and blocked, DNS, internet egress, and return routes. Effective routes on a network interface, flow logs, and firewall logs can help locate where packets stop. Change one route or policy at a time, confirm the result, and then expand. During diagnosis, do not temporarily allow every address and port; test only the required source, destination, and port, then restore the intended narrow rule.
Hub-and-spoke is useful when workloads need shared network services and must remain separated. A flat network may be simpler for a single workload without shared-service or isolation needs. If manual peering and route management become difficult as networks grow, consider a network manager or managed WAN hub, but automation does not replace policy review and route verification.
References
[Azure hub-and-spoke network topology design](https://learn.microsoft.com/en-us/azure/networking/design-guide/hub-spoke)
[Azure hub-and-spoke reference architecture and components](https://learn.microsoft.com/en-us/azure/architecture/networking/architecture/hub-spoke)
[Azure spoke-to-spoke communication options and routing](https://learn.microsoft.com/en-us/azure/architecture/networking/spoke-to-spoke-networking)
[Google Cloud Network Connectivity Center overview](https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/overview)
[Google Cloud NCC connectivity topologies](https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/connectivity-topologies)