CLOUD CONCEPT

Network Peering

Network peering connects independently managed networks so their resources can communicate through explicitly configured routes and access controls.

Cloud Concepts Hub →

What is Network Peering

Peering provides direct network-to-network connectivity without combining the networks into a single administrative domain. In cloud architectures, it commonly enables private communication between virtual networks, but its routing limitations, address requirements, and traffic charges influence whether direct peering or a transit topology is the better design.

Network peering establishes connectivity between separate networks while preserving their administrative boundaries. In cloud environments, this usually means connecting virtual networks so workloads can communicate using private IP addresses rather than public endpoints. Connections may span accounts, subscriptions, projects, or regions when the provider supports those combinations. Peering provides network reachability; it does not merge identity policies, automatically authorize application access, or make every resource reachable.

A working connection requires compatible address ranges, appropriate routes, and security rules that permit the intended traffic. For example, an application network using 10.10.0.0/16 might peer with a shared-services network using 10.20.0.0/16. The application subnet needs a route toward the shared-services destination, and the shared-services subnet needs a return route. Security groups, network security groups, firewalls, and network ACLs must also allow the relevant flows. Some providers install peering routes automatically, while others require explicit route-table updates.

Overlapping address ranges are a common obstacle because the routing system cannot reliably distinguish local destinations from remote destinations using the same addresses. AWS VPC peering rejects overlapping IPv4 CIDR blocks. Plan address allocation before connecting environments, especially after acquisitions or when teams create networks independently. When overlap cannot be removed, consider a deliberately designed translation solution or service-level private connectivity instead of assuming that peering will resolve it.

A critical distinction is direct connectivity versus transit connectivity. Many cloud peering implementations are non-transitive. If network A peers with B and B peers with C, A does not automatically gain access to C through B. With AWS VPC peering, adding routes does not turn B into a transit network. A peer also cannot simply use another VPC's internet gateway, NAT gateway, VPN connection, or Direct Connect connection as its gateway to external networks. Azure supports specific gateway-transit configurations, illustrating why these details must be checked for each platform.

Topology strongly affects cost and operational effort. Two networks with sustained private traffic may benefit from direct peering because it avoids a central transit service's attachment and processing charges. However, a full mesh of n networks requires n(n−1)/2 connections. Ten networks therefore require 45 peerings if every pair needs direct connectivity. A managed transit hub can simplify routing and centralized inspection at scale, but introduces its own service charges and routing configuration.

For AWS cost comparisons, VPC peering has no hourly connection charge, but applicable data-transfer charges still matter. Same-Availability-Zone traffic over same-Region VPC peering has no data-transfer charge; cross-Availability-Zone and inter-Region traffic can incur charges. AWS Transit Gateway commonly adds attachment-hour and data-processing charges. Compare actual traffic paths, volumes, regions, and Availability Zones rather than assuming either design is always cheaper.

Finally, private connectivity is not equivalent to application encryption or automatic DNS integration. Encryption characteristics and DNS resolution behavior depend on the platform and configuration. Apply TLS where required, configure private-name resolution separately, and test both forward and return paths. Route tables, flow logs, and reachability diagnostics help distinguish routing failures from firewall, DNS, or application failures.

Key aspects of Network Peering

Effective peering depends on compatible addressing, complete routing, explicit security controls, and a topology chosen for both traffic cost and operational scale.

Independent networks with explicit connectivity

Peering connects networks without merging their ownership or security administration. Treat the connection as a routing relationship, not as authorization to access every workload.

Address compatibility and return routing

Non-overlapping address space is generally required for cloud virtual-network peering. Verify destination routes and return paths, accounting for whether the provider creates routes automatically.

Non-transitive routing boundaries

Two peering connections do not generally create an indirect route between their outer networks. Use a supported transit architecture when workloads require communication through a central network.

Topology and operational scale

Direct peering is straightforward for a small number of communicating networks, but a full mesh grows quadratically. Selective peering or a managed transit hub can reduce connection and route-management complexity.

Traffic-aware cost optimization

Compare connection charges, transit processing, and regional or zonal data transfer for the actual traffic pattern. A connection with no hourly fee can still generate significant transfer costs.

Separate security, DNS, and encryption controls

Peering does not replace firewall policies, private DNS configuration, or application encryption. Validate these controls independently and restrict permitted sources, destinations, and ports.

Cloud services for Network Peering

Amazon VPC, Azure Virtual Network, and Google Cloud VPC implement direct peering within their respective platforms; these mechanisms do not directly peer virtual networks across different cloud providers. For an AWS estate with a few communicating VPCs, direct VPC peering can avoid transit attachment and processing charges. As connectivity requirements grow, AWS Transit Gateway can replace selected mesh connections with centrally controlled transit routing. These approaches can coexist, but routes must deliberately select the intended path. Across all platforms, address planning, security policies, DNS, and traffic-based cost analysis remain necessary.

Virtual private cloud VPC_32 image Amazon VPC

Amazon VPC implements direct connectivity through VPC peering connections, including supported cross-account and inter-Region configurations. VPC peering requires non-overlapping address space, explicit subnet routing, and appropriate security rules, and does not support transitive routing.

Open Amazon VPC →
AWS Transit Gateway image AWS Transit Gateway

AWS Transit Gateway provides a managed transit hub when many VPCs or hybrid networks need routed connectivity, offering an alternative to a large peering mesh. Transit gateways can also use peering attachments to connect to other transit gateways; assess attachment, processing, and transfer charges for the selected topology.

Open AWS Transit Gateway →