Question

Difficulty: MediumConfiguring Network Topology and VPC Infrastructure

An organization is operating three Virtual Private Cloud (VPC) networks in Google Cloud: vpc-frontend, vpc-hub, and vpc-backend. To centralize administration, vpc-frontend is peered with vpc-hub, and vpc-backend is also peered with vpc-hub. Compute Engine instances in vpc-frontend need to communicate directly with internal workloads in vpc-backend. Network administrators observe that traffic sent from vpc-frontend to vpc-backend is dropped, even though both networks are successfully peered with vpc-hub. Which network topology modification should be implemented to enable connectivity between vpc-frontend and vpc-backend?

  1. Establish a direct VPC Network Peering connection between vpc-frontend and vpc-backend.Answer
  2. B
    Enable custom route import and export flags on the existing VPC Network Peering connections attached to vpc-hub to allow transitive routing.
  3. C
    Replace the VPC Network Peering connections with HA VPN tunnels to vpc-hub, because HA VPN automatically enables transitive BGP routing between connected VPCs without extra configuration.
  4. D
    Configure a VPC Service Controls perimeter encompassing all three VPCs and add an ingress rule permitting inter-VPC traffic forwarding through vpc-hub.

Answer

Establish a direct VPC Network Peering connection between vpc-frontend and vpc-backend.
VPC Network Peering in Google Cloud is explicitly non-transitive. Traffic originating in one peered network cannot traverse a intermediate network to reach a third network. To allow direct communication between two spoke VPC networks, an explicit direct VPC Network Peering connection must be established between them.

Step-by-Step Solution

1
Identify the routing constraint in Google Cloud VPC Network Peering.
VPC Network Peering is strictly non-transitive. If VPC A is peered with VPC B, and VPC B is peered with VPC C, traffic from VPC A cannot reach VPC C through VPC B.
Google Cloud VPC routing rules suppress incoming peered traffic from being re-transmitted out through another peering interface.
2
Evaluate potential solutions to allow communication between vpc-frontend and vpc-backend.
Creating a direct VPC Network Peering link between vpc-frontend and vpc-backend allows both networks to exchange subnet routes directly.
Direct peering satisfies the non-transitive requirement while maintaining low-latency, internal Google network routing without performance bottlenecks.

Key Concept

VPC Network Peering Non-Transitivity
Rate this question