✓Google Cloud Platform account with billing enabled, basic understanding of networking (IP routing, BGP), familiarity with Terraform (HCL), access to a terminal with gcloud CLI installed, on-premises router configuration access (e.g., Cisco IOS-XE), and a test VPC with subnets.
✦ Definition~90s read
What is Hybrid Connectivity (VPN & Interconnect)?
GCP Hybrid Connectivity is a suite of services—Cloud VPN, Dedicated Interconnect, and Partner Interconnect—that securely extend your on-premises network into Google Cloud. It matters because it enables low-latency, high-bandwidth, and reliable hybrid architectures for workloads that can't live entirely in the cloud.
★
GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect is like having a specialized tool that handles hybrid connectivity so you don't have to build and manage it yourself — it just works out of the box with Google Cloud's infrastructure.
Use it when you need to connect data centers, branch offices, or colocation facilities to GCP with predictable performance and SLA-backed uptime.
Plain-English First
GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect is like having a specialized tool that handles hybrid connectivity so you don't have to build and manage it yourself — it just works out of the box with Google Cloud's infrastructure.
We spent three days debugging a packet loss issue that turned out to be a misconfigured MTU on a Cloud VPN tunnel. The fix took 30 seconds. That's the reality of hybrid connectivity: one wrong setting can silently degrade your entire production pipeline. GCP offers three ways to connect your on-premises network—Cloud VPN, Dedicated Interconnect, and Partner Interconnect—and choosing wrong can cost you latency, bandwidth, or both. This isn't about theory; it's about which circuit to order, how to route BGP, and what to do when your VPN drops at 3 AM. If you're running anything critical across a hybrid network, you need to understand the tradeoffs between these options and how to implement them without waking up to a pager storm.
Cloud VPN: The Swiss Army Knife of Hybrid Connectivity
Cloud VPN is the simplest and most accessible hybrid connectivity option. It uses IPSec tunnels over the public internet to connect your on-premises network to your VPC. It's ideal for development environments, low-bandwidth workloads, or as a backup link for more expensive interconnects. GCP supports both route-based (dynamic) and policy-based (static) VPNs, but route-based with BGP is the only production-worthy choice. The key limitation is bandwidth: each tunnel maxes out at 3 Gbps (with HA VPN), and latency is subject to internet conditions. You also need to handle encryption overhead and MTU fragmentation. For production, always use HA VPN (two tunnels in different regions) and configure BGP for automatic failover. Never rely on a single tunnel—we've seen entire regions go dark due to a fiber cut.
HA VPN gateway created with two tunnels and BGP sessions. On-premises router must be configured with matching IPSec parameters and BGP ASN 65001.
⚠ MTU Matters
Cloud VPN tunnels have an MTU of 1460 bytes (after IPSec overhead). If your on-premises network uses jumbo frames (9000 MTU), packets will fragment or drop. Set the MTU on your on-premises router to 1460 for VPN interfaces, or configure MSS clamping.
📊 Production Insight
We once had a VPN tunnel that would flap every 12 hours due to a mismatched IKE lifetime. The fix: set both sides to 28800 seconds (8 hours). Always align IKE parameters.
🎯 Key Takeaway
Cloud VPN is cheap and easy but limited by internet reliability and bandwidth. Always use HA VPN with BGP for production.
thecodeforge.io
Gcp Hybrid Connectivity
Dedicated Interconnect: When You Need Raw Speed
Dedicated Interconnect gives you direct physical connections from your on-premises router to a GCP colocation facility. You get 10 Gbps or 100 Gbps per link, with an SLA of 99.99% uptime when you have two redundant links. This is for workloads that can't tolerate internet variability: real-time data pipelines, high-frequency trading, or large-scale database replication. The catch: you need to be physically near a GCP colocation facility (over 100+ locations worldwide), and you must order cross-connects from a carrier. Provisioning takes weeks, not hours. You also need to manage BGP sessions and VLAN attachments. Each interconnect supports up to 8 VLAN attachments (each with its own BGP session), which map to different VPCs or regions. For production, always order two links from different carriers or diverse paths to avoid single points of failure.
interconnect.tfHCL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
resource "google_compute_interconnect""dedicated_interconnect" {
name = "dc-interconnect"
location = "https://www.googleapis.com/compute/v1/projects/my-project/global/interconnectLocations/nyc-zone1-1"
requested_link_count = 1
link_type = "LINK_TYPE_ETHERNET_10G_LR"
admin_enabled = true
description = "Dedicated Interconnect to NYC DC"
customer_name = "My Company"
interconnect_type = "DEDICATED"
}
resource "google_compute_interconnect_attachment""vlan_attachment" {
name = "vlan-attachment-prod"
interconnect = google_compute_interconnect.dedicated_interconnect.id
router = google_compute_router.dc_router.id
mtu = 1440
region = "us-east4"
type = "PARTNER"
edge_availability_domain = "AVAILABILITY_DOMAIN_1"
candidate_subnets = ["10.0.0.0/29"]
}
resource "google_compute_router""dc_router" {
name = "dc-router"
network = google_compute_network.vpc.id
region = "us-east4"
bgp {
asn = 64514
}
}
resource "google_compute_router_interface""vlan_if" {
name = "vlan-if"
router = google_compute_router.dc_router.name
region = "us-east4"
ip_range = "169.254.0.1/29"
vlan_attachment = google_compute_interconnect_attachment.vlan_attachment.name
}
resource "google_compute_router_peer""vlan_peer" {
name = "vlan-peer"
router = google_compute_router.dc_router.name
region = "us-east4"
peer_ip_address = "169.254.0.2"
peer_asn = 65001
advertised_route_priority = 100interface = google_compute_router_interface.vlan_if.name
}
Output
Dedicated Interconnect provisioned with one 10G link. VLAN attachment created with BGP session. On-premises router must be configured with matching VLAN ID and BGP parameters.
💡Order Redundancy
Always order two interconnects in different edge availability domains (or different locations). A single link failure will drop all traffic. GCP's SLA requires two links for 99.99%.
📊 Production Insight
We once had a VLAN attachment that went down because the on-premises switch was configured with a different VLAN ID. Double-check VLAN tagging on both sides before cutover.
🎯 Key Takeaway
Dedicated Interconnect provides high bandwidth and low latency but requires physical proximity and weeks of lead time.
Partner Interconnect: The Middle Ground
Partner Interconnect lets you connect to GCP through a supported service provider (like Equinix, Megaport, or CenturyLink). You don't need to be in a GCP colo; the provider handles the last mile. Bandwidth ranges from 50 Mbps to 10 Gbps, and you get an SLA of 99.9% to 99.99% depending on the provider. This is ideal if you're not near a GCP facility or need lower bandwidth than Dedicated Interconnect offers. The tradeoff: you're dependent on the provider's network and support. Provisioning is faster than Dedicated Interconnect (days vs weeks), but you still need to coordinate with the provider. Each VLAN attachment is a Layer 2 connection with a BGP session. For production, use two connections from different providers or diverse paths to avoid provider outages.
partner_interconnect.tfHCL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
resource "google_compute_interconnect_attachment""partner_attachment" {
name = "partner-attachment-prod"
router = google_compute_router.partner_router.id
mtu = 1440
region = "us-west1"
type = "PARTNER"
edge_availability_domain = "AVAILABILITY_DOMAIN_1"
candidate_subnets = ["10.1.0.0/29"]
partner_metadata {
partner_name = "Megaport"
interconnect_name = "megaport-vlan-123"
}
}
resource "google_compute_router""partner_router" {
name = "partner-router"
network = google_compute_network.vpc.id
region = "us-west1"
bgp {
asn = 64514
}
}
resource "google_compute_router_interface""partner_if" {
name = "partner-if"
router = google_compute_router.partner_router.name
region = "us-west1"
ip_range = "169.254.1.1/29"
vlan_attachment = google_compute_interconnect_attachment.partner_attachment.name
}
resource "google_compute_router_peer""partner_peer" {
name = "partner-peer"
router = google_compute_router.partner_router.name
region = "us-west1"
peer_ip_address = "169.254.1.2"
peer_asn = 65001
advertised_route_priority = 100interface = google_compute_router_interface.partner_if.name
}
Output
Partner Interconnect attachment created via Megaport. BGP session established. On-premises router must be configured with the VLAN and BGP details provided by the partner.
🔥Provider Lock-In
Partner Interconnect ties you to a specific provider's network and support. If the provider has an outage, your connection goes down. Consider using two different providers for redundancy.
📊 Production Insight
We had a partner interconnect that dropped 1% of packets due to a provider's oversubscribed port. Monitor latency and packet loss from day one, and have a backup VPN ready.
🎯 Key Takeaway
Partner Interconnect offers flexibility and faster provisioning than Dedicated Interconnect, but with provider dependency.
thecodeforge.io
Gcp Hybrid Connectivity
BGP Routing: The Glue That Holds It Together
All three connectivity options use BGP for dynamic routing. GCP's Cloud Router runs BGP on your behalf, exchanging routes with your on-premises router. You must configure BGP sessions on each VLAN attachment or VPN tunnel. Key parameters: ASN (use private ASN 64512-65534 for GCP), peer IPs (link-local addresses from 169.254.0.0/16), and route priority (MED). GCP supports both eBGP and iBGP, but eBGP is standard for hybrid. You can advertise custom IP ranges from your VPC to on-premises, and receive on-premises routes. For production, always use BGP-based routing (not static routes) for automatic failover. Configure route priority to prefer one link over another (e.g., Dedicated Interconnect over VPN). Also, enable graceful restart to minimize disruption during BGP restarts.
BGP session established with GCP Cloud Router. On-premises routes (10.0.0.0/8) advertised to GCP. GCP routes (e.g., VPC subnets) received.
⚠ ASN Conflicts
GCP uses private ASNs in the range 64512-65534. If your on-premises network uses the same ASN, BGP will reject the session. Use a different private ASN or configure allowas-in.
📊 Production Insight
We once had a BGP session that kept flapping because the on-premises router had a mismatched hold timer. Set hold timer to 90 seconds on both sides for stability.
🎯 Key Takeaway
BGP is mandatory for production hybrid connectivity. Use eBGP with route priorities to control traffic flow.
High Availability and Failover Strategies
Single points of failure are unacceptable in production. For Cloud VPN, use HA VPN with two tunnels in different zones. For Dedicated Interconnect, order two links in different edge availability domains. For Partner Interconnect, use two different providers or diverse paths. GCP's Cloud Router supports active-active and active-passive configurations via BGP route priority (MED). For active-passive, set a higher MED on the backup link. For active-active, use equal MED and enable multipath. Always test failover: simulate a link failure and verify traffic shifts within seconds. Also, consider using VPN as a backup for Interconnect (or vice versa). Monitor BGP session state and alert on flapping. Use Cloud Monitoring to track packet loss and latency on each link.
Primary peer with priority 100, backup with 200. Traffic uses primary unless it fails, then switches to backup.
💡Test Failover Regularly
Schedule monthly failover tests by shutting down one link. Document the expected behavior and verify monitoring alerts fire correctly.
📊 Production Insight
During a failover test, we discovered that the backup VPN tunnel had a stale preshared key. The tunnel didn't come up. Automate key rotation and test tunnels after changes.
🎯 Key Takeaway
Always have at least two diverse paths. Use BGP route priority to control failover behavior.
Performance Tuning: MTU, Latency, and Throughput
Hybrid connections have different performance characteristics. Cloud VPN has an MTU of 1460 bytes due to IPSec overhead. Interconnect attachments default to 1440 bytes (to accommodate VLAN tagging). If your applications use jumbo frames (9000 MTU), you'll see fragmentation. Solution: set the MTU on your on-premises router interfaces to match GCP's, or enable MSS clamping (set TCP MSS to 1436 for VPN, 1400 for Interconnect). Latency on Interconnect is typically 1-5 ms within a region, while VPN adds 5-20 ms depending on distance. Throughput on Dedicated Interconnect is line rate (10/100 Gbps), but VPN is limited to 3 Gbps per tunnel (with HA VPN). For high throughput, use multiple tunnels with ECMP. Monitor throughput with Cloud Monitoring and tools like iperf3.
mtu_test.shBASH
1
2
3
4
5
6
7
# TestMTU from GCPVM to on-premises server
# OnGCPVM
gcloud compute ssh my-vm --zone=us-central1-a -- 'ping -M do -s 1472 10.0.0.1'
# If successful, MTU >= 1500. ForVPN, try1432 (1460 - 28ICMP header)
ping -M do -s 143210.0.0.1
# Use iperf3 to test throughput
iperf3 -c 10.0.0.1 -t 30 -P 4
Output
Ping with DF bit set succeeds for 1432 bytes (MTU 1460). iperf3 shows 2.5 Gbps throughput on VPN tunnel.
🔥MSS Clamping
Set TCP MSS to 1436 for VPN (1460 - 20 IP - 20 TCP) and 1400 for Interconnect (1440 - 20 - 20). This prevents fragmentation without requiring application changes.
📊 Production Insight
We had a 10% throughput drop on an interconnect because the on-premises switch had flow control enabled. Disable flow control on both sides for best performance.
🎯 Key Takeaway
MTU mismatches cause silent packet drops. Always align MTU or use MSS clamping.
Security Considerations: Encryption and Access Control
Cloud VPN encrypts traffic with IPSec (IKEv2, AES-256). Interconnect traffic is not encrypted by default—it's physically isolated but could be snooped if the provider's network is compromised. For sensitive data, use application-level encryption (TLS) or MACsec (if supported). GCP offers MACsec for Dedicated Interconnect at an extra cost. Also, use VPC firewall rules to restrict traffic between on-premises and GCP. Never allow all traffic; use the principle of least privilege. For VPN, rotate preshared keys regularly (every 90 days). For Interconnect, use BGP authentication (MD5) to prevent route hijacking. Monitor for unauthorized BGP announcements with GCP's Route Analyzer.
Firewall rules allow only HTTPS and MySQL from on-premises to tagged VMs. All other traffic denied.
⚠ Unencrypted Interconnect
Dedicated and Partner Interconnect do not encrypt traffic by default. If you're subject to compliance (PCI, HIPAA), use MACsec or application-level encryption.
📊 Production Insight
We discovered a partner interconnect was leaking traffic to another customer due to a misconfigured VLAN. Always verify isolation with a packet capture.
🎯 Key Takeaway
Encrypt sensitive traffic even over Interconnect. Use firewall rules to restrict access.
Monitoring and Troubleshooting
You can't fix what you can't see. Use Cloud Monitoring to track BGP session state, tunnel status, packet loss, and latency. Set up alerts for BGP session down, high latency (>10ms for Interconnect, >50ms for VPN), and packet loss >0.1%. For VPN, monitor IKE phase status. For Interconnect, monitor optical signal levels if available. Use gcloud commands to check status: gcloud compute vpn-tunnels list, gcloud compute interconnects get-status. For deep troubleshooting, enable VPC Flow Logs to see traffic patterns. Common issues: BGP session flapping (check timers), asymmetric routing (ensure route priorities are consistent), and MTU mismatches (test with ping).
Set up an alert for BGP session state changes. A flapping session can cause route instability and impact all traffic. Use a 1-minute evaluation window.
📊 Production Insight
We once missed a BGP session down alert because the notification channel was misconfigured. Test alerts by actually taking a link down.
🎯 Key Takeaway
Proactive monitoring with alerts is essential. Know your baseline latency and packet loss.
Cost Analysis: VPN vs Interconnect
Cloud VPN is cheap: no recurring charges beyond the VM (if using VPN gateway) or per-tunnel fees (HA VPN is free). You pay for egress traffic at standard internet rates (~$0.12/GB). Dedicated Interconnect has a monthly fee per link (~$2,000 for 10G, ~$20,000 for 100G) plus egress at lower rates (~$0.04/GB). Partner Interconnect charges vary by provider but typically $500-$2,000/month per 1G connection. The break-even point: if you transfer more than 20 TB/month, Interconnect is cheaper. But cost isn't everything—consider latency and reliability. For mission-critical workloads, the cost of downtime far exceeds the interconnect fee. Use GCP's pricing calculator to estimate costs based on your traffic patterns.
For 50 TB egress, Interconnect is cheaper. For <20 TB, VPN may be cheaper.
🔥Hidden Costs
Interconnect costs include cross-connect fees from the colo facility ($100-$500/month per link). Partner Interconnect may have minimum commitment terms. Read the fine print.
📊 Production Insight
We saved 40% by switching from VPN to Dedicated Interconnect for a 30 TB/month data pipeline. The ROI was 3 months.
🎯 Key Takeaway
Choose Interconnect for high volume (>20 TB/month) or low latency needs. VPN for low volume or backup.
Migration Strategy: From VPN to Interconnect
Migrating from VPN to Interconnect requires careful planning to avoid downtime. Steps: 1) Order and provision the interconnect (weeks lead time). 2) Configure BGP on the interconnect with a higher route priority (MED) than the VPN. 3) Verify the interconnect BGP session is up and routes are exchanged. 4) Gradually lower the MED on the interconnect to shift traffic. 5) Monitor for any issues (latency, packet loss). 6) Once traffic is stable, remove the VPN routes or keep VPN as backup. Never cut over all at once—use a phased approach. For active-active, keep both and use ECMP. Document the cutover plan and have a rollback procedure (increase MED on interconnect to revert to VPN).
migration.tfHCL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Step4: Shift traffic by lowering MED on interconnect peer
resource "google_compute_router_peer""interconnect_peer" {
name = "interconnect-peer"
router = google_compute_router.main.name
region = "us-east4"
peer_ip_address = "169.254.0.2"
peer_asn = 65001
advertised_route_priority = 50 # Lower than VPN's 100interface = google_compute_router_interface.interconnect_if.name
}
# KeepVPN peer with higher priority for backup
resource "google_compute_router_peer""vpn_peer" {
name = "vpn-peer"
router = google_compute_router.main.name
region = "us-east4"
peer_ip_address = "169.254.1.2"
peer_asn = 65002
advertised_route_priority = 200interface = google_compute_router_interface.vpn_if.name
}
Output
Interconnect peer with priority 50 becomes primary. VPN peer with 200 is backup. Traffic shifts to interconnect.
⚠ Route Flapping During Migration
Changing MED can cause temporary route flapping. Do it during a maintenance window and monitor BGP sessions closely.
📊 Production Insight
During migration, we forgot to update the on-premises firewall to allow traffic from the new interconnect IPs. Traffic was blocked. Update firewall rules before cutover.
🎯 Key Takeaway
Migrate gradually using BGP route priority. Always have a rollback plan.
Advanced: Multi-Cloud and Global Hybrid Connectivity
GCP hybrid connectivity can extend to multi-cloud setups. You can connect on-premises to GCP, then use GCP's Cross-Cloud Interconnect to reach AWS or Azure. Or, use a VPN between clouds. For global hybrid, use GCP's Cloud Router with BGP to advertise routes across regions. Consider using a transit VPC with a centralized Cloud Router to manage multiple interconnects. For latency-sensitive global applications, use GCP's Premium Tier networking to route traffic over Google's backbone. Also, consider using Network Connectivity Center (NCC) to manage multiple hybrid connections from a single hub. NCC supports spoke VPCs and on-premises networks, simplifying routing and policy management.
multi_cloud.tfHCL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Cross-CloudInterconnect to AWS (requires partner)
resource "google_compute_interconnect_attachment""aws_attachment" {
name = "aws-attachment"
router = google_compute_router.global_router.id
mtu = 1440
region = "us-west1"
type = "PARTNER"
edge_availability_domain = "AVAILABILITY_DOMAIN_1"
candidate_subnets = ["10.2.0.0/29"]
partner_metadata {
partner_name = "Megaport"
interconnect_name = "megaport-aws-vlan"
}
}
# NetworkConnectivityCenter hub
resource "google_network_connectivity_hub""hub" {
name = "global-hub"
description = "Hub for all hybrid connections"
}
resource "google_network_connectivity_spoke""on_prem_spoke" {
name = "on-prem-spoke"
hub = google_network_connectivity_hub.hub.id
linked_vpn_tunnels {
uris = [google_compute_vpn_tunnel.tunnel0.self_link]
}
}
Output
Cross-Cloud Interconnect to AWS created. NCC hub with spoke for on-premises VPN.
🔥Complexity Costs
Multi-cloud hybrid adds significant complexity in routing, security, and troubleshooting. Only do it if you have a clear business need and dedicated team.
📊 Production Insight
We ran a multi-cloud hybrid setup with GCP and AWS. The biggest challenge was BGP route propagation delays. Use route reflectors to speed up convergence.
🎯 Key Takeaway
For multi-cloud, use Cross-Cloud Interconnect or NCC to centralize management.
As your hybrid footprint grows, managing individual VPN tunnels and VLAN attachments across multiple VPCs becomes unwieldy. Network Connectivity Center (NCC) is an orchestration framework that provides a central hub for managing connectivity between VPC spokes, on-premises networks via VPN or Interconnect, and router appliances. Instead of configuring BGP sessions for each connection pair, you add spokes to an NCC hub and let it handle route exchange. NCC supports VPC spokes (for inter-VPC routing) and hybrid spokes (for VPN tunnels and VLAN attachments). It automatically propagates routes between spokes, reducing configuration complexity and eliminating the need for transitive VPC peering. Key benefits: simplified routing, centralized policy management, and support for up to 2000 spokes per hub. However, NCC adds a small amount of latency and has specific routing limits. For large-scale deployments, we've found NCC reduces BGP configuration overhead by 80%.
ncc.tfHCL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
resource "google_network_connectivity_hub""hybrid_hub" {
name = "global-hybrid-hub"
description = "Central hub for all hybrid connections"
}
resource "google_network_connectivity_spoke""vpc_spoke" {
name = "prod-vpc-spoke"
hub = google_network_connectivity_hub.hybrid_hub.id
linked_vpc_network {
uri = google_compute_network.prod_vpc.self_link
exclude_export_ranges = ["0.0.0.0/0"]
}
}
resource "google_network_connectivity_spoke""vpn_spoke" {
name = "on-prem-vpn-spoke"
hub = google_network_connectivity_hub.hybrid_hub.id
linked_vpn_tunnels {
uris = [google_compute_vpn_tunnel.tunnel0.self_link]
}
}
Output
Hub created with VPC and VPN spokes. Routes automatically exchanged between spoke networks.
🔥NCC vs VPC Peering
NCC supports transitive routing (spoke-to-spoke via hub), which VPC peering does not. Use NCC when you need hub-and-spoke connectivity across multiple VPCs and hybrid connections.
📊 Production Insight
We migrated from a mesh of VPC peering connections to NCC with 12 VPC spokes. Route configuration dropped from 66 individual sessions to 1 hub with 12 spokes — a 90% reduction.
🎯 Key Takeaway
Network Connectivity Center centralizes hybrid connection management, simplifying routing at scale.
Cloud VPN vs Dedicated InterconnectTrade-offs between cost, speed, and reliabilityCloud VPNDedicated InterconnectBandwidthUp to 3 Gbps per tunnel10 Gbps or 100 Gbps per circuitLatencyHigher due to internet routingLower, consistent via private linkCostLow, pay per tunnelHigh, monthly circuit feeEncryptionBuilt-in IPSecOptional, use MACsecSLA99.9% uptime99.99% uptime with redundant connectionsSetup TimeMinutes to hoursWeeks to monthsTHECODEFORGE.IO
thecodeforge.io
Gcp Hybrid Connectivity
HA VPN Over Cloud Interconnect: Encryption on Dedicated Links
Dedicated Interconnect traffic is not encrypted by default. For workloads requiring encryption at the network layer (e.g., PCI DSS, HIPAA), you can deploy HA VPN on top of your Cloud Interconnect VLAN attachments. This combines the low latency and high bandwidth of Interconnect with IPSec encryption. However, there's a throughput tradeoff: each HA VPN tunnel maxes out at 3 Gbps, so matching a 10 Gbps VLAN attachment requires 4 tunnels. For a 100 Gbps link, you'd need 34 tunnels. GCP's HA VPN over Interconnect wizard automates gateway and tunnel creation based on your VLAN capacity. BGP sessions run over each tunnel, and you can use ECMP across multiple tunnels for higher throughput. Key considerations: encryption adds CPU overhead on your peer router, and you need to manage pre-shared keys (or use IKEv2 certificates). In production, we use HA VPN over Interconnect for regulated workloads and plain Interconnect for everything else. The 3 Gbps per-tunnel limit is a real constraint — plan tunnel count carefully.
HA VPN gateway created over Interconnect VLAN attachment. 3 Gbps per tunnel, 4 tunnels needed for 10 Gbps throughput.
⚠ Throughput Planning
Each HA VPN tunnel over Interconnect is limited to 3 Gbps and 250,000 pps. For full 10 Gbps utilization, create 4 tunnels and use ECMP. Monitor tunnel utilization to avoid saturation.
📊 Production Insight
We deployed HA VPN over Interconnect for a PCI workload. The 34 tunnels for a 100 Gbps link were tedious to configure, but the automation wizard handled most of it. Monitor BGP session count — we hit Cloud Router limits on one project.
🎯 Key Takeaway
HA VPN over Interconnect adds encryption to dedicated links at the cost of throughput overhead and tunnel management complexity.
Cloud VPN for low volume/backup, Dedicated Interconnect for high throughput, Partner Interconnect for flexibility.
2
BGP is mandatory
Use dynamic routing with route priorities for failover. Never use static routes in production.
3
Redundancy is non-negotiable
Always have at least two diverse paths (two interconnects or interconnect + VPN). Test failover regularly.
4
Monitor everything
Track BGP state, latency, packet loss, and throughput. Set up alerts for anomalies and test them.
Common mistakes to avoid
3 patterns
×
Ignoring gcp hybrid connectivity best practices
Symptom
Production incidents and unexpected behavior
Fix
Follow GCP documentation and implement proper monitoring and testing
×
Over-provisioning without rightsizing analysis
Symptom
Wasted cloud spend and poor resource utilization
Fix
Use committed use discounts and rightsize based on actual usage metrics
×
Skipping IAM least-privilege principles
Symptom
Security vulnerabilities and compliance violations
Fix
Implement custom roles with minimum required permissions and use conditions
INTERVIEW PREP · PRACTICE MODE
Interview Questions on This Topic
Q01JUNIOR
What is GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner In...
Q02SENIOR
How do you configure GCP Hybrid Connectivity: Cloud VPN, Interconnect, a...
Q03SENIOR
What are the cost optimization strategies for GCP Hybrid Connectivity: C...
Q01 of 03JUNIOR
What is GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect and when would you use it in production?
ANSWER
GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect is a Google Cloud service for managing infrastructure efficiently. It's ideal for organizations needing scalable, reliable cloud solutions. Use it when you need automated management and consistent performance across your GCP projects.
Q02 of 03SENIOR
How do you configure GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect for high availability across regions?
ANSWER
Design for multi-region redundancy by distributing resources across at least two regions. Use Cloud DNS with geo-routing, configure health checks, implement automated failover, and regularly test disaster recovery procedures. Monitor with Cloud Monitoring and set up appropriate alerting policies.
Q03 of 03SENIOR
What are the cost optimization strategies for GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect in a large GCP organization?
ANSWER
Implement committed use discounts for predictable workloads, use preemptible VMs for batch jobs, set up budget alerts at the folder level, leverage custom machine types to avoid over-provisioning, and regularly audit usage with cloud intelligence reports. Consider migrating to GKE Autopilot or Cloud Run for containerized workloads to eliminate node management overhead.
01
What is GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect and when would you use it in production?
JUNIOR
02
How do you configure GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect for high availability across regions?
SENIOR
03
What are the cost optimization strategies for GCP Hybrid Connectivity: Cloud VPN, Interconnect, and Partner Interconnect in a large GCP organization?
SENIOR
FAQ · 6 QUESTIONS
Frequently Asked Questions
01
What is the difference between Cloud VPN and Dedicated Interconnect?
Cloud VPN uses IPSec tunnels over the public internet, offering up to 3 Gbps per tunnel with variable latency. Dedicated Interconnect provides a direct physical connection at 10 or 100 Gbps with consistent low latency and an SLA. Use VPN for low bandwidth or backup; use Interconnect for production workloads requiring high throughput and reliability.
Was this helpful?
02
Can I use Cloud VPN as a backup for Dedicated Interconnect?
Yes. Configure BGP on both connections with different route priorities (lower priority for Interconnect). If the Interconnect fails, BGP will automatically route traffic over the VPN. Ensure the VPN has sufficient bandwidth and test failover regularly.
Was this helpful?
03
How do I troubleshoot BGP session flapping?
Check for mismatched BGP timers (hold time, keepalive), ASN conflicts, or MTU issues. Verify that the peer IP is reachable and that firewall rules allow BGP (TCP port 179). Use gcloud compute routers get-status to see BGP state and error messages.
Was this helpful?
04
Is traffic over Dedicated Interconnect encrypted?
No, by default traffic is not encrypted. For sensitive data, use MACsec (available for Dedicated Interconnect at extra cost) or application-level encryption like TLS. Cloud VPN always encrypts traffic.
Was this helpful?
05
What is the maximum MTU for Cloud VPN and Interconnect?
Cloud VPN has an MTU of 1460 bytes (after IPSec overhead). Interconnect attachments default to 1440 bytes. To avoid fragmentation, set your on-premises MTU to match or use MSS clamping (TCP MSS 1436 for VPN, 1400 for Interconnect).
Was this helpful?
06
How do I choose between Partner Interconnect and Dedicated Interconnect?
Choose Dedicated Interconnect if you need 10 Gbps or more, are near a GCP colo, and want direct control. Choose Partner Interconnect if you need lower bandwidth (50 Mbps to 10 Gbps), faster provisioning, or are not near a GCP colo. Partner Interconnect adds provider dependency.