What Is a Cloud Transit Gateway? Design Routes and Central Control Across Networks
A cloud transit gateway is a managed service or architecture that connects multiple virtual networks and on-premises links through a central hub. It can reduce the work of building and maintaining direct peering between every network, but attaching a network does not automatically make it reachable from every other network or guarantee that traffic is inspected. You still need to design allowed paths, route-table learning and export, and security inspection points.
A cloud transit gateway is a managed service or architecture that connects multiple virtual networks and on-premises links through a central hub. It can reduce the work of building and maintaining direct peering between every network, but attaching a network does not automatically make it reachable from every other network or guarantee that traffic is inspected. You still need to design allowed paths, route-table learning and export, and security inspection points.
How does a central hub forward traffic?
You attach resources such as virtual networks, VPNs, dedicated circuits, or network virtual appliances to a hub. An attachment is the resource that connects a network to the hub. The hub's route table examines a packet's destination IP and selects a next-hop attachment. The connected network also needs a route that sends traffic toward the hub, and the return path must work as well.
For example, suppose application VPC A, data VPC B, and branch VPN C are attached to one hub. An application in A sends a request to a database in B, and A's route sends the data CIDR to the hub. The hub forwards it to B's attachment; B sends the response back toward the hub. The branch range in C is reachable only if hub policy allows it and its route has been propagated. A hub supplies a central transit point, but attachments, routes, and policies still need correct configuration.
Why consider a hub instead of peering?
If only two networks need a simple direct connection, peering may be easier. In a fully meshed design where every pair must connect, the number of links grows quickly: with n networks, at most n(n−1)/2 direct relationships are needed. That is 10 relationships for 5 networks and 45 for 10. These are illustrative link counts, not measurements of performance or cost.
A transit hub provides a hub-and-spoke pattern in which each network attaches to a central point. This can make central routing, segmentation, shared on-premises access, and policies that steer traffic through a security appliance more consistent. The trade-off is that a bad hub route can affect many networks, while centralization can increase operational dependency and the scope of an outage. Even when a managed hub offers high availability, its routes, attachments, security policies, and monitoring still need design.
| Need | Peering | Transit hub |
|---|---|---|
| Direct connection between two networks | Often simple and suitable | An extra hub layer may be unnecessary |
| Several VPCs and branches | Links and routes can become complex | Attachments and central route tables can help scale management |
| Restricting communication between networks | Design each peering relationship and firewall separately | Separate paths with hub route tables and attachments; security rules are still required |
| Central traffic inspection | Peering alone does not provide it | Attach a firewall/NVA and explicitly route traffic through it |
How do AWS, Google Cloud, and Azure hub models differ?
AWS Transit Gateway accepts attachments such as VPCs, VPNs, Direct Connect gateways, and other transit gateways. Each attachment is associated with one Transit Gateway route table, while routes from an attachment can propagate to multiple tables. The route table selects the next-hop attachment. An attachment alone therefore does not permit every path: use associations and propagation to decide which routes each network learns and can use, and to build segmentation.
Google Cloud Network Connectivity Center (NCC) is a framework for orchestrating hubs and spokes. VPC spokes exchange subnet routes with a hub. Hybrid spokes can include HA VPN tunnels, Cloud Interconnect VLAN attachments, and router-appliance VMs. In a mesh topology, spokes in a hub exchange routes with one another. A star topology can use separate route tables for center and edge spoke groups so edge spokes cannot communicate directly. The topology cannot be changed after hub creation, so decide on segmentation and hybrid connectivity first.
Azure Virtual WAN brings VNet, VPN, and ExpressRoute connections into Microsoft-managed virtual hubs in different regions. It manages hub-to-hub connectivity and routes. In a secured virtual hub, routing intent can direct private or internet traffic to Azure Firewall, supported NVAs, or security SaaS. The feature has conditions that prevent using it with some custom route-table configurations, and removing routing intent does not automatically restore the earlier routing setup. Save the gateway, connection, and route-table configuration and plan rollback before enabling it.
These services have similar goals and terminology, but they are not the same product. Confirm the actual meaning of attachments, route propagation, spoke groups, and hub policies in each provider's documentation. Do not infer feature support from the cloud provider's name alone.
How do you design and verify a hub network?
First, write a communication matrix: which destinations must each network reach, and which paths must be blocked? If not every spoke needs to communicate with every other spoke, divide networks into trust zones such as shared services, operations, development/test, branches, and internet egress, and restrict route exchange. Routing separation and security policy complement each other; consider what happens when a route is missing and when a firewall blocks traffic.
Second, check address planning and hub routing. Overlapping CIDR ranges can make destination selection ambiguous or prevent routes from being imported. Record which attachments advertise or propagate routes, which route tables they associate with, and how static routes interact with dynamic BGP routes. Sending the default route 0.0.0.0/0 to a hub can create unintended internet egress or forced tunneling, so verify the egress and return paths together.
Third, if traffic inspection is required, do more than place a firewall in the hub. Confirm that the actual next hop is the firewall/NVA and that return traffic follows a symmetric path. If hub routing bypasses the inspection device, the flow is not inspected even though a central firewall exists. Application authentication, network security groups, and service permissions still apply.
As a deployment example, record or export the route tables and current propagation state before changing them, then test paths with a small number of spokes in one zone. Check destinations that should work and those that should be blocked, return paths, branch routes, and failover behavior before expanding. If the configuration is wrong, stop propagating the new routes and compare the saved setup with the current routes to identify the cause. For features such as Azure Routing Intent, where rollback does not automatically restore the previous setup, take a snapshot of the existing configuration first.
How should you assess cost and operational effort?
A hub may reduce route and connection management work, but that does not make it free or always cheaper. For example, AWS documents hourly charges for Transit Gateway attachments and charges based on data processed. Azure Virtual WAN also requires consideration of hub, connection, and security-service configuration; Google Cloud NCC costs can depend on the underlying connectivity selected. Exact prices, regional differences, and data-processing charges can change, so calculate them from official pricing information for the design date and expected traffic.
Plan for the operational scope of central route changes, attachment approval and ownership, incident responsibilities, route-propagation monitoring, log retention, and security-inspection capacity. Peering may be simpler when there are few networks and limited communication. A hub can reduce management effort when networks span multiple accounts, projects, regions, or on-premises sites and require central policy. The right choice depends on the organization's connection patterns and operational capacity.
References
[AWS Transit Gateway overview and concepts](https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html)
[AWS Transit Gateway route tables](https://docs.aws.amazon.com/vpc/latest/tgw/tgw-route-tables.html)
[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)
[Azure Virtual WAN network topology](https://learn.microsoft.com/en-us/azure/networking/design-guide/virtual-wan)
[Azure Virtual WAN routing intent and policies](https://learn.microsoft.com/en-us/azure/virtual-wan/how-to-routing-policies)