Back to Blogs

GCP Network Connectivity Center: Embracing the Hub-and-Spoke Topology 🤩

Introduction

In today's aggressively expanding hybrid IT landscape, modern enterprise businesses require seamless, high-bandwidth connectivity between legacy on-premises infrastructure and bleeding-edge cloud resources. While Google Cloud's traditional Shared VPC network model has been historically instrumental in isolating and managing distinct workloads across separate VPC networks, as your footprint scales globally, pairing VPCs becomes an unwieldy operational nightmare.

Enter the modern paradigm: the Hub-and-Spoke topology utilizing GCP's powerhouse solution, the Network Connectivity Center (NCC). This architecture shifts networking away from messy web-like peering into a clean, centralized, and highly governable control plane.

The Challenge: The "VPC Peering Spaghetti" Problem

Historically, connecting five different VPCs in GCP required building ten separate, reciprocal VPC Network Peering connections. If you scale that to twenty VPCs, you are managing hundreds of independent peering links. This full-mesh architecture rapidly becomes entirely unmanageable, incredibly difficult to audit for security compliance, and strictly limits transitive routing capabilities.

Common Pitfall: Attempting to route traffic transitively through a middleman VPC. GCP VPC Peering is strictly non-transitive. If VPC A peers with VPC B, and VPC B peers with VPC C, VPC A literally cannot route packets to VPC C naturally. Engineers often waste days attempting to forcefully hack routes around this fundamental cloud limitation.

[Insert Image: A "Before and After" diagram. The Before shows the chaotic "VPC Peering Spaghetti" web (full mesh). The After shows the clean, methodical Hub-and-Spoke architecture centered around the Network Connectivity Center.]

The Solution/Process: Architecture with Network Connectivity Center

The Hub-and-Spoke topology is the undisputed best-practice architectural pattern for massive-scale networking. This design centralizes network control routing tables, natively supports transitivity, and grants highly governable access to disparate cloud and on-premises environments.

Understanding Hubs and Spokes

The terminology is simple but critically important to mastering this topology:

  • The Hub: Acts as the central coordinating brain. A Network Connectivity Center hub is a global management resource to which you persistently attach multiple dynamic spokes. A single global hub can simultaneously route localized spokes originating from multiple different GCP regions worldwide.
  • The Spokes: Represent the leaf networks. A spoke is a functional, routing connection linking a VPC network, legacy on-premises network, or SD-WAN hybrid fabric back to the central hub. Spokes autonomously export and dynamically import BGP routes, facilitating true zero-touch connectivity.

The Two Primary Spoke Types

1. Google Cloud VPC Spokes

VPC spokes natively attach standard GCP Virtual Private Clouds directly to the centralized hub.

  • Simplified Connectivity: Radically obliterates the need for complex, unmanageable pair-wise VPC peering structures.
  • Route Exchange: VPC spokes inherently enable the seamless, real-time exchange of standard IPv4 and IPv6 routes between entirely isolated VPCs via the central hub's dynamic routing table.
  • Flexibility: Spokes can instantly connect VPCs situated within the identical project, different projects, or remarkably, across completely different GCP organizations.

2. Hybrid Spokes (Connecting the Edge)

Hybrid spokes are utilized when integrating GCP with your external networks.

  • They consist of dedicated Cloud Interconnect VLAN attachments, high-availability (HA) VPN IPsec tunnels, or third-party Router appliance VMs (like Cisco or Fortinet).
  • By attaching Hybrid Spokes to the Hub, your distinct VPC networks effectively act as a massive global enterprise Wide Area Network (WAN).

Pro-Tip: Never place Hybrid Spokes inside a standard "Workload VPC." Always engineer a dedicated, hardened "Routing VPC" strictly intended to house your Interconnects and VPNs before attaching that specific VPC to the NCC hub. This provides a definitive point of security filtering.

Topology Variants: Mesh vs. Star

NCC accommodates two distinct architectural shapes depending on your organization's security posture:

The Mesh Topology Variant

This is the default stance. It provides intense, high-scale network connectivity synchronously. All spokes can natively, autonomously connect to and route packets to every other attached spoke unconditionally. It is effectively a managed flat network.

The Star Topology Variant

This is utilized for strict regulatory compliance. Edge spokes and their localized subnets can reach only designated center spokes (often containing shared security services like firewalls). Edge spokes cannot communicate with other Edge spokes. This guarantees strict layer-3 isolation.

[Insert Image: A functional architecture diagram illustrating the Star Topology Variant. It shows two "Edge" VPC spokes routing traffic into a central "Security" VPC spoke containing Next-Gen Firewalls.]

Key Takeaways (And Critical Limitations)

  • VPC Peering Conflicts: You literally cannot utilize standard VPC Network Peering between two VPCs that are simultaneously attached as spokes to the identical NCC hub.
  • Dynamic Routing Requirement: Manual exchange of static IPv4 routes across VPC spokes is not supported. NCC relies entirely on automated dynamic BGP routing updates.
  • Overlapping Subnets: If two spokes contain overlapping CIDR IP ranges, you must strictly implement manual route export filters to prevent catastrophic BGP route hijacking.

Conclusion

The Hub-and-Spoke topology formalized in Google Cloud's Network Connectivity Center offers an extraordinarily scalable and fiercely manageable enterprise networking architecture. By abandoning legacy VPC Peering and centralizing core network route propagation, organizations can securely connect fragmented cloud footprints and sprawling on-premises environments, radically simplifying their global hybrid multi-cloud connectivity stance forever.

Further Reading