GCP Network Professional Exam: Regional vs. Global Dynamic Routing Mode

A critical decision in designing hybrid and multi-region network architectures on Google Cloud Platform is selecting the dynamic routing mode for your Cloud Routers. This choice dictates how IP routes are exchanged between your on-premises network and your GCP VPC, directly impacting traffic flow, latency, cost, and complexity. This guide provides a comprehensive deep-dive into regional and global dynamic routing strategies, essential for the GCP Network Professional exam.

1. Introduction to Cloud Router and Dynamic Routing Modes

Cloud Router is a fully distributed, managed service in GCP that uses Border Gateway Protocol (BGP) to exchange routes between your GCP VPC network and your on-premises networks (via Cloud VPN or Cloud Interconnect), or to other peered VPC networks.

Unlike static routes, dynamic routing automatically propagates network topology changes, making your hybrid network more resilient and easier to manage. Cloud Router operates in two primary dynamic routing modes: Regional and Global .

The dynamic routing mode is configured at the VPC Network level . All Cloud Routers within that VPC network will adhere to the selected mode.


# Setting the dynamic routing mode for a VPC network
gcloud compute networks update my-vpc --bgp-routing-mode=GLOBAL

# Checking the current routing mode
gcloud compute networks describe my-vpc --format="value(routingConfig.routingMode)"
            

2. Regional Dynamic Routing Mode

2.1. Definition

In Regional dynamic routing mode , a Cloud Router only advertises specific routes and learns specific routes related to the region in which it is deployed.

2.2. Traffic Flow and Implications

If an on-premises host needs to reach a VM in a different region of your VPC network, and you are using Regional dynamic routing mode, the traffic must "hairpin" through the GCP region where your Cloud Router (and corresponding Cloud Interconnect VLAN attachment or Cloud VPN tunnel) is located.

This means:

  1. On-premises traffic travels to Cloud Router in Region A.
  2. Cloud Router in Region A routes traffic into the VPC.
  3. Traffic then travels across Google's backbone *within* your VPC from Region A to Region B.
  4. Return traffic from Region B to on-premises will follow the reverse path back through Region A.

Regional Dynamic Routing Mode Flow

Mermaid Diagram 1

2.3. When to Choose Regional Mode

3. Global Dynamic Routing Mode

3.1. Definition

In Global dynamic routing mode , a Cloud Router advertises and learns routes for all subnets in the entire GCP VPC network, regardless of the region in which the Cloud Router is deployed.

3.2. Traffic Flow and Implications

If an on-premises host needs to reach a VM in a different region of your VPC network (e.g., Region B, having connected to Cloud Router in Region A), the traffic will traverse Google's low-latency, high-bandwidth global backbone *within* your VPC.

This means:

  1. On-premises traffic travels to Cloud Router in Region A.
  2. Cloud Router in Region A routes traffic into the VPC.
  3. Traffic is then directed across Google's backbone *directly* to the destination subnet in Region B. It does not hairpin.
  4. Return traffic from Region B to on-premises will likely follow a similar optimized path, directly from Region B through Google's backbone to the Cloud Router's origin PoP and then to on-premises.

Global Dynamic Routing Mode Flow

Mermaid Diagram 2

3.3. When to Choose Global Mode

4. Comparison Table: Regional vs. Global Dynamic Routing

Feature Regional Dynamic Routing Global Dynamic Routing
Route Advertisement Scope (GCP to On-Prem) Only subnets in the Cloud Router's local region. All subnets in the entire VPC network (all regions).
Route Learning Scope (On-Prem to GCP) Learned routes apply only to instances in the Cloud Router's local region. Learned routes apply to instances across all regions of the VPC network.
Inter-Region Traffic Path (from On-Prem) Hairpins through the Cloud Router's region. Directed path within GCP's backbone to the destination region.
Latency for Inter-Region Traffic Higher (due to hairpinning). Lower, optimized (direct path through Google's backbone).
Complexity Simpler to reason about for contained regional deployments. More complex for multi-region. More complex initial routing table globally, but simpler for multi-region traffic flow.
Data Residency Control Inherently limits route advertisement to specific regions. Advertises all VPC routes globally, requiring additional filtering if residency is strict.
Primary Use Case Single-region deployments, strict regional traffic containment needs. Multi-region deployments, active/active or active/passive DR, distributed applications.

5. Advanced Scenarios & Considerations

6. GCP Network Professional Exam Tips