Cloud Network Design
IntermediateLesson 2 of 8 in Cloud Architecture and Administration Course
What you will learn
- Choose private address ranges that don't collide when networks are connected, and divide each virtual network into subnets sized for its tiers, zones and special services.
- Choose non-overlapping address ranges for every networkReserve and record private ranges for all virtual networks so they can later be peered, routed through a hub and connected to on-premises sites without conflicts.
- Divide a network into subnets for tiers, zones and servicesSplit a network's range into subnets by role and availability zone, count the usable addresses after each provider's reservations, and set aside space for gateways and growth.
- Choose non-overlapping address ranges for every network
- Decide which subnets face the internet, control every path with route tables, and give private workloads outbound internet access without exposing them.
- Separate public and private subnetsExplain what makes a subnet public or private, place each tier of an application in the right kind of subnet, and combine routing with security rules.
- Read and design route tablesPredict which route a packet uses by longest prefix match, design route tables for each subnet role, and steer traffic through gateways and firewalls.
- Give private subnets outbound access with NATUse managed NAT so private workloads can start connections to the internet while staying unreachable from it, and design NAT for resilience and cost.
- Separate public and private subnets
- Link virtual networks with peering, recognize when peering stops scaling, and design hub-and-spoke topologies with central routing, inspection and shared connections.
- Peer two virtual networksSet up peering between two virtual networks, add the routes and rules it needs, and explain why peering isn't transitive.
- Design hub-and-spoke topologiesBuild a hub that routes, inspects and shares connections for many spoke networks, and choose between a managed transit service and a peered hub with a firewall.
- Peer two virtual networks
- Connect workloads to managed cloud services such as storage and databases without crossing the internet, and choose between route-based endpoints and private endpoints with their DNS.
- Use service endpoints and gateway endpointsSend traffic from a network's subnets to a provider service over the backbone with free, route-based endpoints, and lock the service down to that network.
- Use private endpoints and Private LinkGive a service a private IP address inside your network, make DNS return that address, and publish your own services privately to other networks.
- Use service endpoints and gateway endpoints
- Choose between encrypted VPN tunnels and dedicated private connections, design them for resilience, and exchange routes between on-premises and cloud networks.
- Choose between a site-to-site VPN and a dedicated connectionCompare VPN tunnels and dedicated links on bandwidth, latency, security, lead time and cost, and design redundant hybrid connections.
- Exchange routes between on-premises and cloud networksChoose static or dynamic routing, use BGP to advertise and prefer paths, and keep routing symmetric when a primary link fails over to a backup.
- Choose between a site-to-site VPN and a dedicated connection
- Design private and hybrid DNS, choose and place load balancers, and trace a connection hop by hop to find where and why it fails.
- Design DNS for private and hybrid networksUse the provider's resolver and private zones, resolve names in both directions between on-premises and cloud, and use DNS records and routing policies correctly.
- Choose and place load balancersPick a layer 4 or layer 7 load balancer, public or internal, regional or global, and place it with its health probes and targets in the right subnets.
- Trace and troubleshoot a connection end to endFollow one connection hop by hop through DNS, routes, security rules, gateways and the return path, and use the providers' diagnostic tools to find the fault.
- Design DNS for private and hybrid networks
Cloud Network Design study guide
1Plan addresses and subnet capacity
An address plan has to survive new regions, more workloads, and connections to networks owned by other teams. Start with the whole estate, then work down to each subnet's role and capacity. The provider changes where you assign ranges and how zones use subnets, so a sound plan records both the addresses and the platform rules. That record also gives hybrid routers a small, stable set of prefixes to exchange.
1.1 Address ranges that can grow together
Two isolated networks can use the same addresses without noticing each other. Connecting them reveals the problem: a destination such as 10.65.4.10 must identify one location. Networks that will exchange traffic need non-overlapping ranges, including networks connected through a hub, a VPN, or a partner.
Start with the whole estate
Inventory offices, data centers, partners, existing cloud networks, client VPN pools, and default networks. Reserve a cloud block outside all those allocations. Divide it by region and environment, then record each assignment in IP address management (IPAM) before deployment. A spreadsheet can hold the record; an IPAM service can also track allocations and enforce the plan.
Use RFC 1918 private space: 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16. The major providers also accept shared space 100.64.0.0/10, and owned public ranges are another option. Loopback 127.0.0.0/8, link-local 169.254.0.0/16, and multicast 224.0.0.0/4 cannot serve as ordinary virtual-network ranges.
Build a plan that summarizes
The sites use 10.0.0.0/16 and 10.1.0.0/16, summarized as 10.0.0.0/15. Reserve cloud space 10.64.0.0/12: it runs through 10.79.255.255 and contains sixteen /16 blocks.
| Allocation | Range |
|---|---|
| Shared-services hub | 10.64.0.0/16 |
| Production | 10.65.0.0/16 |
| Staging | 10.66.0.0/16 |
| Development | 10.67.0.0/16 |
Twelve /16 blocks remain for growth. On-premises routers can send the cloud summary 10.64.0.0/12 toward the cloud; cloud routers can send 10.0.0.0/15 toward the sites. Inside the estate, more specific routes select individual networks.
Match the provider's address model
| Provider | Where ranges belong | Geographic scope |
|---|---|---|
| AWS | A VPC has one or more CIDR blocks; subnets use parts of them. | VPC: one region |
| Azure | A VNet has address ranges; subnets use parts of them. | VNet: one region |
| Google Cloud | Each subnet receives a range directly; the VPC has no overall CIDR. | VPC: global; subnet: one region |
An AWS VPC IPv4 block can be /16 through /28. An existing block cannot be resized, but you can add secondary blocks. Azure supports changing VNet address ranges, with peering synchronization after a change. A /16 gives a large production network room to grow; a small isolated test network may need much less.
Default addresses deserve the same review as custom ones. AWS default VPCs commonly use 172.31.0.0/16; tutorials often reuse 10.0.0.0/16. Home networks using 192.168.0.0/24 or 192.168.1.0/24 can collide with remote-access VPN destinations. Also avoid AWS's discouraged 172.17.0.0/16, used by some services and Docker's default bridge.
Count platform ranges too. EKS with the default VPC CNI assigns pod addresses from node subnets; AKS with Azure CNI Overlay uses a separate pod range. Record the model's node, pod, and service needs in IPAM. Provider-assigned IPv6 prefixes are unique, but self-chosen ranges such as private fd00::/8 still need coordination. AWS can assign a /56 divided into /64 subnets; Azure IPv6 subnets are /64. Dual-stack workloads still need their IPv4 plan.
Key Takeaways
- Inventory connected networks and VPN pools before reserving cloud space.
- Allocate every network from one IPAM record, including future connections.
- Use summaries for the estate and specific prefixes for networks within it.
- Google Cloud assigns ranges to subnets without a VPC-wide CIDR.
- Include pod addressing and self-chosen IPv6 ranges in the plan.
1.2 Subnets sized for tiers, zones, and growth
A subnet gives a group of resources a shared routing role. Separate entry points, application servers, and databases so each tier can have the paths it needs. Then size each subnet for the addresses its resources actually consume.
Place the tiers across zones
In AWS, every subnet belongs to one availability zone. Three tiers across three zones therefore use nine subnets: three public, three application, and three data subnets. In Azure and Google Cloud, a subnet spans its region's zones; spread the resources across zones within the tier's subnet.
Resources in an AWS subnet share a route table and network ACL, although their interfaces can have different security groups. Azure subnets use system routes plus any associated user-defined routes. Google Cloud routes belong to the VPC. These differences matter when transferring a design between platforms.
Count usable addresses
An IPv4 /p block contains a power-of-two total. Subtract the provider's reservations:
AWS and Azure reserve five addresses; Google Cloud reserves four in a primary subnet range.
| Prefix | Total | AWS or Azure usable | Google Cloud usable |
|---|---|---|---|
| /24 | 256 | 251 | 252 |
| /26 | 64 | 59 | 60 |
| /27 | 32 | 27 | 28 |
| /28 | 16 | 11 | 12 |
Azure also permits /29 IPv4 subnets: eight total addresses leave only three usable. In AWS 10.65.16.0/20, the reserved addresses are 10.65.16.0, .1, .2, .3, and 10.65.31.255. Google Cloud instead reserves the first two and last two addresses of its primary range.
Work from demand to prefix
Include VMs, directly addressed containers or pods, endpoint interfaces, load balancer nodes, and gateways. An application tier using 1,500 addresses with room to double needs 3,000. A /21 has 2,048 total and 2,043 usable addresses in AWS, so it fails. A /20 has 4,096 total and 4,091 usable, so it fits.
For production 10.65.0.0/16, one three-zone AWS layout is:
- Public:
10.65.0.0/24,10.65.1.0/24,10.65.2.0/24. - Application:
10.65.16.0/20,10.65.32.0/20,10.65.48.0/20. - Data:
10.65.64.0/24,10.65.65.0/24,10.65.66.0/24.
Each /20 starts at a multiple of 16 in the third octet. The blocks do not overlap. Their 13,824 addresses use about 21% of the /16, leaving space for later subnets. Do not fill that space with unused allocations just to complete the diagram.
Reserve service space early
Azure gateways need a dedicated subnet named GatewaySubnet, /27 or larger for non-Basic SKUs. Azure Firewall needs AzureFirewallSubnet of /26; Azure Bastion needs AzureBastionSubnet of /26 or larger. Keep unrelated workloads out of dedicated service subnets. AWS NAT gateways, load balancer nodes, and interface endpoints also consume subnet addresses.
A /28 cannot hold 16 AWS servers: only 11 addresses are usable. Giving every tier that same size ignores their different demands. Resizing later can mean a move: AWS subnet IPv4 ranges are fixed after creation, while Google Cloud primary ranges can expand but cannot shrink.
Key Takeaways
- AWS needs a separate subnet per tier per zone; Azure and Google Cloud subnets span regional zones.
- Subtract five reserved addresses in AWS or Azure and four in Google Cloud primary ranges.
- Size each tier for all address consumers plus growth.
- Keep dedicated service subnets and unallocated growth space in the design.
- AWS subnet IPv4 ranges cannot be resized after creation.
- Different security groups within one subnet do not provide different subnet routes.
2Control internet and private traffic paths
A private application still needs planned paths for updates, managed services, and replies to users. Work from the destination to the route that wins, then check the gateway and the rules along that path. Public access, outbound translation, and filtering solve different parts of the connection. Provider differences are especially important here: AWS uses subnet route tables, while Azure and Google Cloud attach outbound behavior in other ways.
2.1 Public entry points and private workloads
A private address such as 10.65.20.10 tells you the address type, not the resource's internet exposure. Inspect its route, public frontend, and rules. A subnet named private-app can still have the wrong route attached.
Apply the provider's meaning of private
In AWS, a public subnet has a route to an internet gateway for internet destinations: 0.0.0.0/0 for IPv4 or ::/0 for IPv6. A private subnet has no direct internet-gateway route. A server using public IPv4 access also needs a public IPv4 address or Elastic IP; the internet gateway maps it to the server's private address. A public route by itself does not give an unaddressed server direct inbound access.
| Provider | Internet-path design |
|---|---|
| AWS | Attach an internet gateway to the VPC and route public subnets to it. Private IPv4 workloads can use NAT for outbound traffic. |
| Azure | A public IP or public load balancer supplies an inbound frontend. A private subnet disables implicit outbound access. |
| Google Cloud | Routes belong to the VPC; a VM can use an external IP, or Cloud NAT for outbound access without one. |
Azure's private-subnet setting does not prohibit an allowed public frontend. New VNets created using the API version released after March 31, 2026 default to private subnets, as the portal already does. Older API versions retain the earlier default, and existing VNets are unchanged. Plan an explicit outbound method: NAT Gateway, a firewall, a VM public IP, or public load balancer outbound rules.
Google Cloud normally has a default internet-gateway route. Whether an individual VM can use it for IPv4 internet access depends on its external address or Cloud NAT configuration. Two VMs in one subnet can therefore have different internet access.
Put the public boundary at the load balancer
For an online store, place an internet-facing AWS Application Load Balancer in public subnets in two zones. Put web and API servers in private application subnets, and PostgreSQL in private data subnets. The user connects to the load balancer, which forwards to a healthy private server. That server opens a separate database connection.
Allow the application tier's database traffic on port 5432, and restrict the database's rule to the application tier. The database needs no public IP for this: the VPC's local route already reaches other subnets. Administrators can use a managed session service or bastion instead of assigning public addresses to every server.
The private tiers can still receive application traffic from the public load balancer. Their lack of a direct internet route protects the direct path; it does not remove deliberately configured frontend paths.
Check routing and filtering separately
Routes select a next hop. AWS security groups, Azure network security groups, and Google Cloud firewall rules decide which traffic is allowed. Both layers must support the intended flow. A public frontend with restrictive rules and a private database with permissive internal rules have different risks; the word "private" never replaces the rules.
Plan outbound access by destination. Updates and external APIs can use NAT. Provider-managed services can use service or private endpoints. An isolated data tier may need only private service access and no general internet path at all.
Key Takeaways
- In AWS, classify the subnet from its internet-gateway route, then check the resource address and rules.
- Azure private subnets disable implicit outbound access; public frontend access is a separate setting.
- Use public load balancers with private application and data tiers.
- Local routing lets private tiers communicate without public addresses.
2.2 Find the route that actually wins
A route pairs a destination prefix with a next hop. For each packet, start with the destination address and find the most specific applicable route. The route's position in the display does not give it priority.
Know which table applies
Each AWS subnet uses exactly one route table. An explicit association selects it; otherwise the subnet uses the VPC's main table. One table can serve several subnets. Keep the main table private so new subnets do not gain public routes by accident.
Azure gives every subnet system routes, then adds any associated user-defined routes (UDRs) and learned routes. Google Cloud routes belong to the VPC; supported routes can target selected VMs through network tags. Use effective routes to inspect the resulting configuration, including automatically added routes.
AWS creates a local route for each VPC CIDR. Azure adds a Virtual network system route for each VNet address range. Google Cloud creates subnet routes. These paths support communication inside the network without an internet gateway.
Apply longest prefix match
Consider the production application's AWS table:
| Destination | Target |
|---|---|
10.65.0.0/16 | local |
10.0.0.0/8 | transit gateway |
10.67.0.0/16 | peering connection |
0.0.0.0/0 | NAT gateway |
10.65.5.10 matches /16, /8, and /0; the local /16 wins. 10.1.2.3 matches /8 and /0, so it goes to transit. 10.67.4.20 uses the peering /16. 198.51.100.7 uses the default /0. Staging destination 10.66.9.9 goes to transit because no narrower staging route is present.
At equal prefixes, AWS static routes beat propagated routes. For routes propagated to a virtual private gateway, Direct Connect BGP routes take precedence over VPN static routes, then VPN BGP routes. Azure normally prefers UDR, then BGP, then system routes. Its VNet, peering, and service endpoint system routes have priority over BGP even when BGP is more specific; service endpoint routes cannot be overridden by a UDR.
Design the forward and return paths
Use a public AWS table with default route to the internet gateway; private tables with defaults to each zone's NAT gateway; and isolated data tables without general internet routes. Add routes to peers and on-premises wherever the tier needs them. AWS peering requires routes on both sides.
For central inspection, an Azure UDR can send 0.0.0.0/0 to firewall IP 10.64.2.4 with next hop Virtual appliance. AWS routes target the appliance's network interface ID or a Gateway Load Balancer endpoint. Enable Azure IP forwarding or disable the AWS interface's source/destination check so the appliance can forward traffic addressed to other hosts.
A stateful firewall must see both directions of a connection. Trace the reply independently; a more specific route can send it around the firewall even when the forward route looks correct.
Include learned routes and failed targets
Route propagation brings gateway-learned routes into the tables that need them. In AWS this is enabled for a virtual private gateway on the subnet table, or configured through transit gateway propagation. Azure propagates gateway routes unless the subnet route table disables it. If you disable propagation to force inspection, add the required replacement routes.
Deleting a NAT gateway does not remove every route that pointed to it. AWS can leave a blackhole route that drops matching packets. Check the attached table and target state, not just the intended diagram.
Key Takeaways
- Find all matching routes, then select the longest applicable prefix.
- Use provider tie-break rules only after comparing prefix lengths.
- Azure has preferred system-route exceptions, especially service endpoints.
- Inspect the source interface’s effective routes and the route target state.
- Provide a valid return path through any stateful inspection device.
- An AWS appliance route targets an interface or endpoint, not just a private IP.
- Disabling propagation requires replacement routes for the needed destinations.
2.3 Outbound access through managed NAT
Outbound source NAT replaces a private source address with a public one and remembers the connection. Replies are mapped back to the private sender. The gateway admits replies to an inside-initiated connection; it does not publish the server for new connections initiated on the internet.
Choose the provider's attachment model
| Service | How private workloads use it |
|---|---|
| AWS zonal NAT gateway | A private subnet's default route targets a NAT gateway in a public subnet. That subnet routes to the internet gateway. |
| AWS regional NAT gateway | Private route tables target one regional gateway ID; no hosting public subnet is needed. |
| Azure NAT Gateway | Associate it with subnets in one VNet. It supplies outbound translation without a NAT route entry. |
| Google Cloud Cloud NAT | Configure regional NAT using Cloud Router for the selected subnet ranges. |
For AWS zonal NAT, give each zone its own gateway and keep traffic in its zone. Sharing one gateway creates a zone dependency and can add cross-zone transfer charges. The regional type, available since November 2025, expands with workload presence across zones. Expansion into a new zone can take time, with traffic temporarily processed in an existing zone. Private-to-private NAT still uses the zonal type.
Azure NAT Gateway supports up to 16 public IPv4 addresses or a public prefix. It takes precedence over VM public IPs and load balancer outbound rules for new outbound connections. A UDR to a firewall or gateway overrides that direct outbound path. Standard is zonal; StandardV2 is zone-redundant. Do not associate NAT Gateway with GatewaySubnet.
Compare cost and failure exposure
Use illustrative rates of $0.045 per gateway hour and $0.045 per GB processed. Three zonal gateways for 730 hours cost $98.55 in gateway hours. Processing 2,000 GB costs $90.00, for $188.55 total. A single shared gateway lowers hourly charges but changes the failure boundary; it can also add transfer costs between zones.
Move eligible object-storage traffic to a gateway endpoint to reduce NAT processing. The hourly gateway cost remains while the gateways continue running.
Size connections as well as bandwidth
One AWS NAT public IP supports about 55,000 simultaneous connections to the same destination IP, port, and protocol. Azure supports up to 50,000 to one destination per public IP; its total SNAT port inventory is 64,512 per IP. These are different limits. Many short-lived connections to one API can exhaust capacity even with modest throughput. Add public IPs or reuse application connections.
A NAT instance is a VM you manage yourself. It can suit a tiny workload, but patching, capacity, monitoring, and failover become your work. Managed NAT gateways handle service scaling and recovery.
Separate IPv6 access from translation
Globally routable IPv6 endpoints can communicate without address translation. AWS's egress-only internet gateway supplies outbound-only IPv6 access by allowing inside-initiated flows and their replies. IPv6-only clients reaching IPv4-only services need NAT64 plus DNS64. AWS supplies the NAT64 path through NAT gateways and DNS64 through Route 53 Resolver. Azure StandardV2 supports NAT64, but requires a separately deployed DNS64 solution.
If an AWS zonal NAT gateway has no internet path of its own, private servers cannot use it for updates. Check both route tables: private subnet to NAT, then the NAT's public subnet to the internet gateway.
Key Takeaways
- Source NAT permits outbound connections and replies without publishing private servers.
- AWS zonal NAT needs a public subnet; regional NAT does not.
- Azure associates NAT with subnets, while a UDR can direct traffic elsewhere.
- Compare gateway hours, processing volume, cross-zone costs, and failure boundaries.
- Connection concentration on one destination can exhaust SNAT capacity.
- IPv6-to-IPv4 access needs both NAT64 and DNS64.
3Connect networks with peering and hubs
As the estate grows, network connections become an operating problem as well as a routing problem. A direct peering is simple for a few stable relationships, but a mesh creates many links to maintain. A hub can share hybrid connections and inspection across workloads. Its route tables must deliberately allow or separate traffic, and its forwarding services need enough capacity and redundancy for every spoke that depends on them.
3.1 Direct connections with peering
Peering gives two virtual networks a private path across the provider's backbone. It does not build a VPN tunnel or route through the public internet. Networks can belong to different accounts, subscriptions, or regions: AWS calls the regional case inter-region peering, and Azure calls it global peering.
Establish the complete connection
The ranges must not overlap, both owners must agree, and the routes and security rules must permit the intended traffic. AWS uses a request and acceptance, followed by routes to the peer CIDR on both sides. Azure creates a peering link on each VNet and supplies system routes for the peer ranges. Google Cloud VPC Network Peering also requires a configuration on each side.
Do not stop at a successful peering status. A source can have a route to its peer while the destination lacks a return route or an allowing rule. Check the two interfaces' effective paths for the actual destination and port.
Understand the missing third link
Production 10.65.0.0/16 peers with staging 10.66.0.0/16. Staging peers with development 10.67.0.0/16. Production still cannot reach development through staging: peering is non-transitive. The staging network does not become a router between its peering connections.
For direct communication, add production–development peering. In AWS, add 10.67.0.0/16 toward that peering in production and 10.65.0.0/16 toward it in development. Allow the flow in the security rules. Adding only a route through staging does not create a forwarding function.
AWS also blocks using a peer's internet gateway, NAT gateway, VPN connection, or Direct Connect connection as an edge-to-edge path. Azure gateway transit is a specific sharing feature for a hub's VPN or ExpressRoute gateway; it does not turn every peering into general transit.
Count the links before choosing a mesh
A full mesh connects every pair of networks. For n networks:
Four networks need six peerings, ten need 45, and twenty need 190. Each new network requires links to all existing networks, plus the corresponding route and rule work. A small estate with a few fixed relationships can use peering well; frequent additions and common inspection needs favor a hub.
Keep performance and ownership visible
| Consideration | Design consequence |
|---|---|
| Private backbone transport | Private addresses can communicate without a public frontend. |
| Cross-region traffic | Account for additional latency and usually higher transfer charges. |
| Encryption policy | Use application TLS when encryption is required; peering is not itself a VPN. |
| Overlapping address space | Re-address for network-wide connectivity, or publish selected services with Private Link. |
Same-region Azure peering has latency comparable to communication within a VNet. AWS peering does not introduce a central gateway bottleneck or single appliance failure point. Those benefits do not remove per-GB transfer costs.
In Google Cloud, several projects may need to use one network under a shared owner. Shared VPC lets a host project share its VPC subnets with service projects. Choose that model when the need is shared network administration, instead of creating separate networks and then peering them back together.
Key Takeaways
- Peering needs non-overlapping ranges, agreement on both sides, routes, and allowing rules.
- Ordinary peering does not forward traffic between a peer’s other connections.
- A full mesh needs n(n − 1) / 2 peerings.
- Azure gateway transit is a specific gateway-sharing feature.
- Use Google Cloud Shared VPC when projects need one shared network.
3.2 Shared routing and inspection through a hub
A hub-and-spoke topology puts shared network services in a hub and workloads in spokes. The hub holds hybrid gateways, DNS resolvers, inspection, and administrative access. It gives these services a shared home without mixing them with application deployments owned by separate teams.
Supply a real forwarding function
| Hub model | What forwards between spokes |
|---|---|
| Managed transit router | AWS Transit Gateway, an Azure Virtual WAN hub, or Google Cloud Network Connectivity Center routes supported attachments. |
| Peered hub network | A firewall or network virtual appliance forwards traffic sent to it by spoke routes. |
Peering spokes to a common network does not supply transit by itself. In the appliance model, configure the next hop, allow forwarding, and set a firewall policy that permits only the needed spoke flows. In the managed-router model, route tables decide which attachments can reach which destinations. Isolation is a configured result, not an automatic property of drawing spokes around a hub.
Segment with transit route tables
An AWS Transit Gateway attachment connects a VPC, VPN, Direct Connect gateway, or another transit gateway through a peering. An attachment is associated with one transit route table: that table selects destinations for traffic arriving through the attachment. Propagation adds the attachment's advertised prefixes to one or more route tables.
For production and development isolation, let each attachment's associated table reach shared services and on-premises but omit a route to the other workload segment. Check propagation carefully: automatically adding every spoke prefix to one shared table can defeat the intended separation.
Configure an Azure peered hub
Enable gateway transit on the hub peering and use remote gateways on the spoke peering. A spoke using a remote gateway cannot also have its own gateway. This shares the hub's VPN or ExpressRoute gateway with the spoke.
For inspected production–development traffic, production 10.65.0.0/16 sends 10.67.0.0/16 to firewall 10.64.2.4. Development sends 10.65.0.0/16 back to the same firewall. Allow forwarded traffic on the peerings, enable appliance forwarding, and permit only the intended deployment ports in the firewall policy.
A broad 10.0.0.0/8 UDR may lose to a more specific peering route. Use the required spoke prefixes so inspection is actually selected. For on-premises flows, the gateway subnet may also need spoke routes toward the firewall. Preserve a valid, symmetric path in both directions.
Compare scale, cost, and resilience
Twelve VNets in a full mesh need 66 peerings. One hub and eleven spokes need eleven hub–spoke peerings. Azure Virtual Network Manager can maintain hub-and-spoke or mesh connectivity across a large estate.
Central outbound inspection sends spoke defaults to the hub firewall and onward to the hub's NAT path. It concentrates public egress addresses and logs, but also processing charges, load, and failure exposure. Size firewall and transit capacity for aggregate spoke traffic and span zones where the service supports it. One small firewall in one zone can become the outage point for every spoke.
Use a hub per region for a multi-region estate, then connect the hubs. AWS supports transit gateway peering; Azure Virtual WAN hubs in the same virtual WAN connect automatically. Keep the inter-hub paths and the policies for allowed cross-region traffic explicit.
Key Takeaways
- A hub needs a transit router or a forwarding appliance to carry spoke-to-spoke traffic.
- Transit Gateway association selects the table used by incoming attachment traffic.
- Propagation controls which tables learn an attachment’s prefixes.
- Azure gateway sharing requires gateway transit and use remote gateways.
- Use sufficiently specific routes and symmetric paths to keep traffic through inspection.
- Central services need capacity and resilience for their combined spoke load.
4Reach managed services over private paths
A managed service can keep a public address while its traffic stays on the provider's network, or it can appear as a private address inside your own subnet. Those designs differ in reach, cost, and DNS work. Choose the path from the client's location and the service's access requirements, then restrict the resource itself. A private endpoint is useful only when clients resolve its name and can reach its address through the intended route and rules.
4.1 Service access without NAT processing
A private workload often reaches a managed service at a public endpoint. In an AWS private subnet, that can send high-volume object-storage traffic through a billed NAT gateway. Service-access features can give the traffic a provider-network path without assigning a private endpoint interface.
Compare the provider features
| Feature | How it selects traffic | Service address and reach |
|---|---|---|
| Azure service endpoint | Enable a service type on a subnet; allow that subnet in the resource's virtual network rule. | Service keeps a public address; only enabled source subnets use the endpoint. |
| AWS gateway endpoint | Associate route tables; AWS adds a service prefix-list route to the endpoint. | S3 or DynamoDB in the same region, from the VPC's own subnets. |
| Google Cloud Private Google Access | Enable it on a subnet for VMs without external IPs. | Eligible Google APIs and services remain reachable over Google's network. |
Azure service endpoints identify the source subnet to services such as Microsoft.Storage and Microsoft.Sql. Enabling the endpoint alone does not finish the resource restriction: configure the service firewall's virtual network rule too. The feature has no additional endpoint charge.
AWS gateway endpoints support Amazon S3 and DynamoDB and have no endpoint charge. The route destination is a regional service prefix list, a provider-maintained group of address ranges. The target is the endpoint. Outbound rules must also allow the service, for example HTTPS to the S3 prefix list.
Let specific service routes win
A private AWS subnet can have both 0.0.0.0/0 toward NAT and an S3 prefix-list route toward the endpoint. Matching same-region S3 traffic selects the service route; unrelated internet traffic still selects NAT. Attach the endpoint to every route table whose subnets should use it. A table left out keeps its previous path.
An AWS regional gateway endpoint does not carry requests to S3 in another region. Check the service region as well as the service name when traffic unexpectedly remains on NAT. Azure service endpoint routes also take precedence over default routes to a firewall or gateway; they cannot be overridden with a UDR.
Work through the cost change
At illustrative rates, three NAT gateways cost $98.55 per month in hours, and 2,000 GB at $0.045 per GB adds $90.00. Total NAT cost is $188.55.
If 1,500 GB is same-region S3 traffic, a gateway endpoint removes that volume from NAT processing. The saving is $67.50; the remaining NAT bill is $121.05. Gateway hours remain because the gateways still serve other internet traffic. The endpoint itself adds no gateway-endpoint charge.
Restrict destinations and check the client location
An AWS endpoint policy can limit the buckets or tables reachable through the endpoint. An S3 bucket policy can require a particular endpoint using aws:SourceVpce. Azure service endpoint policies can restrict the storage accounts reachable from an enabled subnet. These controls help prevent an approved path from being used to copy data to an unauthorized resource.
On-premises clients cannot borrow a VPC's gateway endpoint through a VPN, transit gateway, or peering. Azure service endpoints also apply to enabled VNet subnets, not on-premises sources. Use a reachable private endpoint for that hybrid requirement.
A public service address and an internet path are different facts. Azure service endpoint traffic and eligible Private Google Access traffic can use public destination addresses while staying on the provider's network. Inspect the actual selected path before attributing its cost or exposure.
Key Takeaways
- AWS gateway endpoints provide free endpoint paths to same-region S3 and DynamoDB.
- Associate all required AWS route tables; the service prefix-list route wins over the default.
- Azure service endpoints retain public service addresses and require resource-side subnet rules.
- Gateway and service endpoints cannot be shared with on-premises clients.
- Endpoint and resource policies can restrict approved paths to approved destinations.
4.2 Private service addresses and the DNS they need
A private endpoint represents a service at a private address in your network. The client uses a familiar service name, resolves that name to the private address, and reaches the endpoint through the network's private routes. Connectivity still needs allowing rules and service authorization.
Identify what the endpoint represents
| Provider feature | Representation |
|---|---|
| Azure Private Endpoint | One resource and sub-resource, such as one storage account's blob service. |
| AWS interface VPC endpoint | A regional AWS service or a privately published endpoint service, through AWS PrivateLink. |
| Google Cloud Private Service Connect endpoint | A supported service reached through an endpoint address in the consumer's network. |
Unlike an AWS gateway endpoint, an interface endpoint takes subnet addresses and can be reached from connected networks. Peered clients, hub spokes, and on-premises sites can use a supported endpoint when the route, DNS, security controls, and service permissions allow it. Disable public network access on the managed resource when it must have no public entry path; creating an endpoint alone does not close its public endpoint.
Follow the DNS chain
For Azure blob storage, the normal name mystore.blob.core.windows.net points by CNAME to mystore.privatelink.blob.core.windows.net. A private DNS zone named privatelink.blob.core.windows.net holds an A record for mystore, such as 10.65.70.5.
Link the zone to each VNet that resolves through Azure-provided DNS, or use a central resolver that can see the zone. A client then resolves the private IP while keeping the normal service name in its application configuration. An unlinked client can still resolve a public answer and fail when public access is disabled.
For AWS interface endpoints, enable private DNS and the VPC's DNS support and DNS hostnames attributes. The default service name, such as sqs.eu-west-1.amazonaws.com, then resolves to endpoint interface addresses within that VPC. Connected clients need an appropriate DNS resolution path as well as IP routing.
Build the hybrid service path
Place the database's endpoint in production subnet 10.65.70.0/24. Link its private zone to the client VNets and disable public network access. On-premises DNS forwards the service's public domain to a hub resolver inbound endpoint. A site client receives the private endpoint address and reaches it over the VPN or dedicated connection.
Verify the lookup from both the spoke and the site. A static hosts-file override can help a short test, but it becomes stale when an endpoint changes. Keep one coordinated DNS view for shared service names so separate copies do not drift.
Publish and inspect services deliberately
AWS publishers can put a service behind a Network Load Balancer, create an endpoint service, and approve consumer interface endpoints. Azure Private Link service uses a Standard Load Balancer. Consumer and publisher ranges can overlap because the service connection presents local addresses on each side; this does not create general routing between the overlapping networks.
Gateway Load Balancer endpoint services have a different purpose: consumers steer packets to Gateway Load Balancer endpoints with routes for appliance inspection. They do not use ordinary interface endpoints for that insertion path.
In Azure, enable the needed private endpoint network policies on the endpoint subnet before applying NSGs or UDR-based inspection to endpoints. Check the resulting effective path rather than assuming ordinary subnet policies already apply.
Interface and private endpoints add hourly and data-processing charges; AWS interface endpoint hours depend on the zones with interfaces. Same-VPC S3 access usually favors a free gateway endpoint. Hybrid S3 access needs an interface endpoint's reach, plus its DNS design.
Key Takeaways
- Private endpoints present services at private addresses, with rules and authorization still required.
- Configure private DNS and test resolution from every client network.
- Disable the resource’s public network access to close the public entry path.
- Private Link can publish selected services across overlapping ranges without general network transit.
- AWS interface endpoints and Gateway Load Balancer endpoints serve different connection models.
- Azure endpoint inspection needs the relevant private endpoint network policies enabled.
- Include endpoint hours, zones, and processing charges in the choice.
5Connect sites and exchange routes
A hybrid design needs a transport path and a routing plan that agree. Select VPN or dedicated connectivity from bandwidth, latency, encryption, deployment time, and failure requirements. Then decide which prefixes each side advertises and which path each side prefers. A backup link helps only if it can carry the required workload and the routes move to it when the primary fails, with replies following a compatible path.
5.1 VPNs, dedicated links, and backup paths
A hybrid connection extends private reach between on-premises sites and the cloud. The service choice changes the transport, delivery time, and capacity; it does not repair overlapping address ranges. Resolve the address plan before joining the networks.
Compare transport options
| Choice | Transport and encryption | Operating trade-off |
|---|---|---|
| Site-to-site VPN | IPsec tunnels, usually over the internet; encrypted by design. | Quick deployment, lower entry cost, variable latency and limited tunnel capacity. |
| Dedicated connection | Private circuit to the provider's edge, directly or through a partner; not encrypted by default. | Stable latency and high capacity, with circuit lead time and location planning. |
AWS calls the dedicated service Direct Connect; Azure uses ExpressRoute; Google Cloud uses Cloud Interconnect. Dedicated ports include capacities such as 1, 10, and 100 Gbps; partners can provide smaller connections. Installation usually takes weeks, so a VPN can provide an interim path during a migration.
A site-to-site VPN joins networks. A point-to-site or client VPN joins individual devices. Reserve a non-overlapping client address pool for staff laptops so the remote device's addresses do not collide with the cloud or office networks.
Know the gateway and tunnel model
AWS represents the on-premises device as a customer gateway and terminates the cloud side on a virtual private gateway or transit gateway. Azure uses a local network gateway representation and an Azure VPN gateway. Google Cloud provides Cloud VPN.
Each AWS Site-to-Site VPN connection has two tunnels to separate AWS endpoints. Configure both. A standard tunnel supports up to 1.25 Gbps; large-bandwidth tunnels support up to 5 Gbps. Actual throughput depends on the traffic and path. AWS Transit Gateway can combine several tunnels with equal-cost multipath (ECMP) when they use BGP; a virtual private gateway does not provide that aggregation. Azure gateway throughput depends on SKU; active-active mode maintains tunnels from both instances.
Work a capacity decision
A replication workload needs a steady 3 Gbps and stable latency. At a standard-tunnel upper bound of 1.25 Gbps, three tunnels are the minimum arithmetic capacity: two provide only 2.5 Gbps. Aggregation needs a transit gateway with BGP and ECMP, and internet conditions still affect performance. A 10 Gbps dedicated link fits the steady-latency requirement with capacity headroom.
A branch needing 50 Mbps for ordinary file and email access can use a site-to-site VPN. The smaller requirement does not justify the lead time and circuit commitment of the larger design.
Separate privacy, encryption, and resilience
A dedicated link's private transport does not encrypt the application data by default. Use supported MACsec for link encryption or IPsec over the dedicated path when required, and TLS between applications. Do not claim encrypted delivery merely because the circuit avoids public internet transit.
A single circuit is still one failure point. Options include a VPN backup, dedicated connections at two separate provider locations, or two connections at each of two locations for critical services. The backup's capacity must meet the reduced or full workload requirement during failure.
Terminate shared hybrid connectivity at the hub. AWS Transit Gateway can share VPN reach among VPCs. A Direct Connect gateway shares Direct Connect through associated virtual private gateways or transit gateways; it does not carry VPN connections. Keep the independent transport paths and shared gateway dependencies visible in the failure plan.
Key Takeaways
- A VPN is encrypted by design; a dedicated private connection needs an explicit encryption choice.
- Configure both AWS VPN tunnels and plan for the loss of one path.
- AWS VPN ECMP aggregation requires Transit Gateway and dynamic routing.
- Choose capacity together with latency, lead time, and backup requirements.
- Share VPNs through a transit gateway; a Direct Connect gateway shares Direct Connect.
5.2 Advertisements, path preferences, and failover
A circuit carries packets only when both sides know where to send them. Static routing records prefixes manually. Border Gateway Protocol (BGP) exchanges prefixes dynamically and withdraws them when the advertising path fails.
Choose how routes arrive
Static VPN routes can work for a small, stable set of prefixes. Configure on-premises ranges on the cloud side and cloud ranges on the site device. Static tunnel failover can use health checks and route tracking; it is not restricted to manual recovery.
BGP is useful for changing networks and failover between separate paths, such as a dedicated link and backup VPN. Dedicated connections use BGP. AWS ECMP across VPN tunnels also needs BGP.
Each BGP speaker has an autonomous system number (ASN). Private 16-bit ASNs run from 64512 through 65534. An AWS virtual private gateway defaults to 64512. Azure VPN Gateway defaults to 65515 and must keep that ASN when coexisting with ExpressRoute. Give the site device its own different ASN.
Advertise the estate in useful blocks
Advertise cloud summary 10.64.0.0/12 toward the sites and site summary 10.0.0.0/15 toward the cloud. The address plan makes these summaries possible. They reduce route changes when a new subnet is added within an allocated block.
Route limits make this operationally useful: an AWS virtual private gateway accepts at most 100 dynamically advertised customer routes. Advertising each subnet separately can exhaust that limit even when a few summaries would cover the same estate.
Learning a route at a gateway is only one part of delivery. Enable virtual private gateway propagation in the AWS subnet route tables that need the routes, or configure propagation into the appropriate transit gateway tables. Azure normally propagates gateway routes into effective subnet routes. Disabling propagation on a workload subnet for firewall steering requires replacement routes; do not disable it on GatewaySubnet.
Apply prefix length before link preference
On-premises advertises 10.0.0.0/15 over Direct Connect and a backup VPN. For the same prefix, AWS prefers Direct Connect; Azure similarly prefers ExpressRoute over VPN. Set the site side to prefer the dedicated path too, for example with higher local preference or backup-path AS prepending.
When the circuit fails, its BGP route is withdrawn and the remaining VPN route carries traffic. No manual change is needed to select the surviving advertisement, although convergence takes time.
Now add 10.0.5.0/24 over the VPN only. Packets to that subnet use the VPN even while the dedicated link is healthy: /24 is longer than /15. Increasing a general preference for the dedicated link does not overcome a more specific destination route.
Keep the reply compatible
A stateful firewall records the connection it sees. If requests cross it but replies bypass it, sessions can fail. Check both the cloud-side and site-side path choices under normal operation and failure. A backup test should verify a new connection and useful application traffic, not just a tunnel-up status.
Forced tunneling sends cloud internet traffic toward an on-premises firewall, often using an advertised 0.0.0.0/0. It centralizes inspection but adds latency and dependency on the hybrid link. Cloud-hub inspection keeps that function nearer the workloads. In either design, a narrower route can select a different path, so inspect the effective destinations that matter.
Key Takeaways
- BGP exchanges and withdraws prefixes; static routing can still use tracked tunnel failover.
- Summarize planned estate ranges to reduce route volume and update work.
- Ensure learned routes propagate into the tables used by the workloads.
- A more specific prefix wins before same-prefix dedicated-link preference.
- Align return-path preferences when a stateful device must see both directions.
- Forced tunneling adds a dependency on the on-premises inspection path.
6Resolve names, distribute traffic, and find faults
A valid route to an address does not guarantee that an application uses that address or that its server is ready. DNS chooses the destination clients see; load balancers choose healthy backends; troubleshooting checks the whole conversation. Connect these layers by following one named service from lookup through the frontend, target, and reply. Evidence from the failing client and the effective configuration makes each diagnosis testable.
6.1 Private names and hybrid resolution
DNS design determines whether a client reaches a public frontend, an internal load balancer, or a private endpoint. Test the service's normal name from each kind of client. The same name can legitimately give different answers inside and outside the estate.
Place records in the right visibility boundary
A public zone serves internet clients. A private zone serves associated or linked networks: AWS Route 53 private hosted zones, Azure private DNS zones, and Google Cloud Cloud DNS private zones. Azure links can enable auto-registration of VM records.
With split-horizon DNS, app.example.com points to a public load balancer in the public view and an internal load balancer in the private view. The client keeps the same name while using a reachable frontend for its location. Link the private zone to every network that needs that view, or resolve through a shared service that can see it.
Built-in resolver addresses include AWS's VPC base plus two (10.65.0.2 in production, also 169.254.169.253), Azure's 168.63.129.16, and Google Cloud's metadata server 169.254.169.254. These built-in paths serve cloud clients; on-premises DNS needs a reachable resolver interface instead of querying the special platform address directly.
Design each forwarding direction
| Lookup direction | Resolver design |
|---|---|
| On-premises to cloud private names | Site DNS conditionally forwards the cloud domain to an inbound resolver endpoint in the cloud network. |
| Cloud to on-premises names | An outbound resolver endpoint and forwarding rules send the site domain to on-premises DNS. |
AWS uses Route 53 Resolver inbound and outbound endpoints with rules. Azure uses DNS Private Resolver endpoints and a forwarding ruleset. Network routes and rules must allow the DNS exchanges too. Avoid a pair of forwarders that send the same suffix back to each other indefinitely.
An analyst on-premises requests mystore.blob.core.windows.net. Site DNS forwards blob.core.windows.net to hub inbound endpoint 10.64.4.4. The resolver follows the CNAME to mystore.privatelink.blob.core.windows.net, finds private-zone A record 10.65.70.5, and returns it. The application then reaches that IP over ExpressRoute. If site DNS uses only public resolution, it can return a public address that fails when the storage account disables public access.
Choose records and caching behavior
An A record gives IPv4; AAAA gives IPv6. A CNAME points to another DNS name and cannot sit at the zone apex. Provider alias records can reference supported resources at the apex and follow their address changes. Use an alias for example.com when targeting a supported load balancer resource.
The time to live (TTL) sets how long answers may remain cached. Lower it before a planned change, early enough for existing longer-lived answers to expire. Lowering it at the instant of the change does not shorten copies already cached with the old TTL.
DNS routing can distribute lookups using weighted, latency/performance, failover/priority, geographic, and other provider policies. Route 53 also has simple, geoproximity, IP-based, and multivalue answer policies; Traffic Manager has multivalue and subnet methods. A 90/10 weighted release distributes DNS answers, not an exact fraction of application requests. Health checks can steer answers away from unhealthy destinations, but cached answers delay the change and all-unhealthy behavior depends on the service policy.
Key Takeaways
- Private-zone visibility depends on network links or a resolver that can see the zone.
- Use inbound resolver endpoints for site-to-cloud lookups and outbound forwarding for cloud-to-site lookups.
- Keep forwarding rules directional to avoid loops.
- A CNAME cannot occupy the zone apex; supported alias records can.
- TTL caching delays DNS changes and failover.
- Weighted DNS distributes answers, so request traffic will not necessarily match the configured percentages.
6.2 Load balancers and useful health probes
A load balancer gives clients a stable frontend, receives traffic on a listener, and selects a backend from its pool or target group. Its type determines what it can inspect; its health probes determine which targets it considers ready.
Choose from the routing requirement
| Requirement | Suitable type and examples |
|---|---|
| TCP or UDP flows by address and port | Layer 4: AWS Network Load Balancer, Azure Load Balancer, Google Cloud passthrough Network Load Balancer. |
| HTTP host, path, header routing, or WAF integration | Layer 7: AWS Application Load Balancer, Azure Application Gateway, Google Cloud Application Load Balancer. |
Layer 4 can serve non-HTTP protocols such as UDP game traffic, MQTT, or SMTP. It can support high throughput, low latency, and source-address preservation, depending on the product. Layer 7 understands HTTP requests and can route /api/* separately from a website.
TLS termination alone does not require layer 7. An AWS NLB can terminate TLS with a TLS listener. Choose layer 7 when the balancer needs HTTP-aware behavior. Transparent insertion of third-party inspection appliances uses a gateway load balancer, such as AWS Gateway Load Balancer with GENEVE encapsulation, or Azure Gateway Load Balancer.
Separate frontend exposure from backend placement
A public frontend serves internet clients. In AWS, internet-facing load balancer nodes use public subnets. An internal frontend uses a private address for private clients, including on-premises users over hybrid connectivity. In the common tiered design, both types forward to targets in private subnets; the targets do not need public IPs.
An online store's ALB listens on HTTPS port 443 with the site's certificate. It sends /api/* to an API target group and other paths to web targets. A /health request every 30 seconds can check for HTTP 200. Targets allow the load balancer's security group on the application and probe ports.
Make health tests reach the right process
A probe must pass the network rules and receive a useful response. For Azure Load Balancer, probes originate from 168.63.129.16, represented by the AzureLoadBalancer service tag. A custom deny rule can block them. Azure Application Gateway probes instead come from its instances in the Application Gateway subnet; allow that subnet at the backends.
A health path that requires login can mark an otherwise working application unhealthy. A path that checks nothing meaningful can keep broken instances in rotation. Choose a lightweight readiness signal that reflects the service clients need, without making every slow optional dependency take all targets out of service.
Spread traffic across zones and regions
Use targets in at least two zones. Azure Standard Load Balancer can have a zone-redundant frontend. AWS ALB enables cross-zone balancing by default; NLB disables it by default. An NLB with uneven target counts can overload the smaller zone if traffic stays zonal.
Regional balancers serve a region. Multi-region entry can use Google Cloud's global external Application Load Balancer, Azure Front Door, or AWS Global Accelerator in front of regional endpoints. Route 53 and Azure Traffic Manager make DNS-based decisions; caching affects how quickly those decisions reach clients.
Private backends still need explicit outbound access for updates and APIs. An Azure internal Standard Load Balancer does not supply internet egress by itself; a subnet NAT gateway is one way to provide it.
Key Takeaways
- Choose layer 7 for HTTP-aware routing; layer 4 supports TCP and UDP flow routing.
- TLS termination by itself does not require layer 7.
- Public and internal frontends can both use private backends.
- Allow the correct probe source and test a meaningful, unauthenticated readiness path.
- Check cross-zone behavior when targets are uneven across zones.
- A regional backend still needs its own outbound path when it calls internet services.
6.3 Trace one failing conversation
Start with one client, destination name, protocol, and port. Record whether the failure is consistent and where it occurs. A broad report such as "the network is down" hides the differences between DNS failure, dropped connections, and a slow application.
Use a repeatable sequence
- Name: resolve from the failing client and compare the answer with the intended public or private address.
- Route: inspect the client's effective route to that destination and the state of its next hop.
- Rules: check source outbound and destination inbound rules for the actual protocol and port. Stateless network ACLs also need the return traffic, including the client's ephemeral ports.
- Middle: check every NAT gateway, firewall, transit router, and hybrid gateway on the selected path.
- Return: trace the reply separately, including any stateful inspection requirement.
- Service: confirm that the application listens on the expected port and that its readiness check works.
A connection timeout often points to dropped packets or a missing path. A response timeout after a connection opens points toward the application or a dependency. Connection refused indicates an active rejection or no listener at the reached endpoint. NXDOMAIN and unexpected lookup answers direct the investigation to DNS. Use the symptom to choose evidence, not as a complete diagnosis by itself.
Repair the missing NAT hop
A private AWS server resolves packages.example.com correctly and its default route targets a zonal NAT gateway. The NAT's subnet lacks an internet-gateway route. The first hop exists, but the gateway has no onward internet path.
If that subnet holds only the NAT gateway, associate the intended public route table or add 0.0.0.0/0 toward the internet gateway. If private servers share it, do not turn their subnet into the public NAT subnet: create the NAT gateway in a proper public subnet and update the private defaults, or use regional NAT. A zonal NAT gateway cannot be moved to another subnet.
Catch a reply that bypasses inspection
An Azure site's requests reach a spoke through the hub firewall, but replies select a gateway-learned route directly to on-premises. The firewall sees only half the conversation. Add spoke routes for the on-premises prefixes toward the firewall, and gateway-subnet routes for the spoke prefixes toward the firewall. Use effective routes to ensure neither direction bypasses inspection. Disabling workload-subnet propagation is another option only when replacement routes preserve all needed paths.
Separate DNS and backend faults
One spoke reaches an Azure private endpoint while another resolves the service to a public address. Compare the private-zone links and resolver paths. Link the missing VNet or provide the hub resolution path; changing a route cannot fix the wrong DNS answer.
If every load balancer target is unhealthy, inspect the probe port, path, listener, and permitted probe source. If failures are intermittent, compare target health and capacity by zone before blaming DNS.
Use the provider's evidence
AWS Reachability Analyzer checks configured paths; VPC Flow Logs can record ACCEPT or REJECT decisions. Azure Network Watcher provides next-hop, effective-route, effective-rule, IP flow verify, and connection tools. Google Cloud Connectivity Tests examines paths; VPC Flow Logs samples traffic metadata, while Firewall Rules Logging supplies firewall decisions. Flow logs are not packet payload captures, and an absent sampled record does not establish that no packet was sent.
Change one identified setting, then repeat the same flow test. Keeping the client, destination, and port fixed makes the effect of the repair visible.
Key Takeaways
- Trace name, route, rules, middle devices, return path, and service for one defined flow.
- Distinguish a connection failure from an application response delay.
- Inspect effective configuration, including the return path through stateful devices.
- Correct private DNS visibility before changing routes to a wrongly resolved public address.
- Use diagnostic tools and log types for the evidence they actually provide.
- Change one setting and retest the same conversation.
Cloud Network Design examples
1Build an address plan that survives growth
12 steps
- 1IntroductionStart outside the cloud
An address plan begins with every network that may connect, including site networks, partners, and VPN client pools. Two teams can deploy working isolated networks and discover their overlap only when they join them.
We will reserve cloud space first, then size and place production subnets. The aim is a plan that supports new environments without renumbering existing workloads.
- 2ExplanationInventory before allocating
Record all existing and reserved ranges in IPAM. Include defaults and platform ranges, not just networks already attached to the hub. A remote worker's home subnet or a pod network can become part of the routing problem.
Select a cloud reservation that overlaps none of the networks it must reach. New allocations then come from that reservation and are recorded before deployment.
- 3ExampleReserve the cloud block
The sites occupy
10.0.0.0/16and10.1.0.0/16, summarized as10.0.0.0/15. Reserve10.64.0.0/12for cloud networks.Its second octet runs from 64 through 79, so it contains sixteen /16 blocks and avoids both site ranges. The broad cloud prefix can later be advertised toward the sites while internal routes select individual environments.
- 4ExampleAllocate environments and leave room
Allocate
10.64.0.0/16to the hub,10.65.0.0/16to production,10.66.0.0/16to staging, and10.67.0.0/16to development.Four of sixteen blocks are used, leaving twelve for later regions. Reserve them in IPAM without creating empty networks. This keeps future space visible to other teams and preserves the estate's summary route.
- 5ChallengeCheck an apparently new range
A partner already uses
10.69.0.0/16. Another team proposes10.69.128.0/17for a cloud network that must connect to that partner. Is the new range usable?---reveal---
No. The /17 lies inside the partner's /16, so the ranges overlap. Allocate a distinct block and record the partner range in IPAM. A longer route prefix cannot make identical addresses identify two different network locations.
- 6ConnectionApply the right provider model
In AWS and Azure, assign a regional VPC or VNet address space, then take subnet ranges from it. Google Cloud instead assigns ranges directly to regional subnets inside a global VPC.
The organizational reservation still helps across all three providers, but it does not become a VPC-wide CIDR in Google Cloud. Record the same ownership and overlap checks at the actual allocation boundary.
- 7ExplanationCount everything that needs an IP
For the production application tier, include VMs, directly addressed pods or container tasks, endpoint interfaces, and other resources that consume subnet IPs. Add the growth allowance to that combined demand.
With EKS's default VPC CNI, pods use node-subnet addresses. An overlay design can use a separate pod range, so confirm the chosen model before counting.
- 8ExampleTurn demand into a subnet size
Suppose an application tier needs 1,500 addresses and must support doubling. The planned demand is 3,000 addresses.
In AWS, a /21 has 2,048 total addresses, then loses five reservations: 2,043 usable, too few. A /20 has 4,096 total and 4,091 usable, so it covers the demand. Compare usable capacity with demand; the total alone overstates what workloads can receive.
- 9ExamplePlace the application blocks
In production
10.65.0.0/16, use application blocks10.65.16.0/20,10.65.32.0/20, and10.65.48.0/20in three AWS zones. Each begins on a /20 boundary and stays outside the public and data blocks.In Azure or Google Cloud, the tier's regional subnet can contain resources from several zones. Resource placement supplies the zone spread there.
- 10ChallengeCheck a capacity claim
A team chooses an AWS /28 for 14 servers because it contains 16 addresses. Does the plan fit?
---reveal---
No. AWS reserves five of the 16 addresses, leaving only 11 for resources. A /27 supplies 27 usable addresses and can fit those 14 servers, though the team must also count any other subnet consumers and the growth allowance before final selection.
- 11ChallengeCombine allocation and placement
A new two-zone AWS tier needs a larger subnet in each zone. The only free planned block overlaps a partner, and the team proposes one large subnet for both zones. What must change?
---reveal---
Choose non-overlapping space first, then allocate a separate adequately sized subnet for each AWS zone. More addresses do not repair overlap, and one AWS subnet cannot span the two zones. Leave space for service subnets and later growth.
- 12RecapCheck the plan before creating resources
Before deployment, verify the IPAM reservation, all future connected ranges, usable capacity, zone placement, and dedicated service space. Check both the estate summary and the individual subnet boundaries against the recorded plan.
2Trace an outbound packet through routes and NAT
15 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionFollow one application connection
- 2ExplanationSeparate exposure from subnet names
- 3ExamplePlace each tier at its boundary
- 4ChallengeRead the route, then the address
- 5ConnectionTransfer the design to Azure
- 6ExplanationSelect the applied route table
- 7ExampleCompare matching prefixes
- 8ChallengeChoose a destination path
- 9Key InsightKeep inspection on the reply path
- 10ExplanationTranslate the outgoing sender
- 11ExampleBuild both AWS zonal NAT hops
- 12ConnectionUse association where the provider requires it
- 13ChallengeRepair the gateway’s onward path
- 14ChallengeDesign for a zone failure
- 15RecapVerify egress as a complete path
3Replace a growing mesh with controlled transit
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMake connection growth manageable
- 2ExplanationComplete both sides of peering
- 3ExampleFind the missing relationship
- 4ChallengeTest an attempted gateway shortcut
- 5ExampleCount the growing mesh
- 6ExplanationChoose the forwarding model
- 7ExampleSeparate association and propagation
- 8ChallengeKeep development out of production routes
- 9ConnectionBuild the Azure return path
- 10ChallengeReview the whole hub design
- 11RecapCheck connectivity and separation
4Choose and verify a private service path
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the client’s location
- 2ExplanationMatch service traffic with a route
- 3ExampleKeep other internet traffic on NAT
- 4ChallengeCheck a hybrid shortcut
- 5ConnectionCompare Azure’s service endpoint
- 6ExplanationRepresent the service in your subnet
- 7ExampleCreate the private storage record
- 8ExampleBring the site into the DNS path
- 9ChallengeDiagnose the second spoke
- 10Key InsightExpose a service across overlapping ranges
- 11ChallengeChoose two paths for two client groups
- 12RecapVerify the chosen service boundary
5Build a hybrid link with a working backup
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionConnect transport to route behavior
- 2ExplanationCompare timing, latency, and encryption
- 3ExampleCheck the workload’s capacity need
- 4ChallengeReview a circuit’s backup
- 5ConnectionShare the right hybrid service
- 6ExplanationAdvertise the planned summaries
- 7ExampleDeliver learned routes to workloads
- 8ChallengeFind the missing route after learning
- 9ExamplePrefer the primary for equal prefixes
- 10ExampleTest withdrawal and the narrower exception
- 11ChallengeCombine transport and return-path checks
- 12RecapExercise the failure plan
6Follow a named service from lookup to reply
17 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionDefine the conversation first
- 2ExplanationChoose the DNS view clients need
- 3ExampleResolve cloud names from the site
- 4ChallengePlan a DNS cutover
- 5Key InsightDistinguish lookup share from request share
- 6ExplanationChoose routing from the protocol
- 7ExampleBuild the frontend and target path
- 8ChallengeFind the probe’s actual source
- 9ConnectionCheck zones and the global entry point
- 10ExplanationTrace the configured path in order
- 11ExampleSeparate the network from the lookup
- 12ChallengeFind a missing NAT hop
- 13TipRead the symptom before choosing evidence
- 14ExplanationMatch the log to the question
- 15ChallengeDiagnose two layers without mixing them
- 16ChallengeReview the full conversation
- 17RecapRetest the same flow after repair
Cloud Network Design practice questions
Set 1: Allocate space and choose traffic paths10 Practice Questions
Question 1 of 10
10.72.0.0/16. A proposed new region uses 10.72.128.0/17. What must change before ordinary private routing can join them?Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
10.64.0.0/12. The existing hub and three environments occupy 10.64.0.0/16 through 10.67.0.0/16. What is a valid next allocation?Show answerHide answer
Question 4 of 10
0.0.0.0/0 to an attached internet gateway. What is that subnet's routing classification?Show answerHide answer
Question 5 of 10
10.64.0.0/12 to transit, 10.66.0.0/16 to peering, and 0.0.0.0/0 to NAT. Where does traffic for 10.66.90.12 go?Show answerHide answer
Question 6 of 10
0.0.0.0/0 to a hub firewall. No more specific route matches an external API. What next hop does the application use?Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Connect workloads and managed services10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
10.65.0.0/16 sends development 10.67.0.0/16 to the hub firewall. Development has a 10.0.0.0/8 UDR to that firewall and a 10.65.0.0/16 peering system route. Sessions bypass inspection on replies. What routing repair is needed in development?Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Carry routes and names across hybrid links10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
10.0.0.0/15, while a VPN advertises 10.1.40.0/24. What path is selected for 10.1.40.9 when both links are healthy?Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
portal.example.com is two hours. A team lowers it to 60 seconds and changes the destination immediately. Why can a client keep the old address for much longer than 60 seconds?Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
10.0.0.0/15 through Direct Connect and VPN, plus 10.0.44.0/24 through VPN only. The site always sends cloud replies through Direct Connect, where a firewall inspects traffic. General site traffic works, but sessions to 10.0.44.9 fail. What change restores the intended dedicated path?Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
/reports/* and /upload/* to different backend pools. What load balancer capability is required?Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
/ and 200 from /ready; the probe uses / and expects 200. What complete backend health repair is needed?Show answerHide answer
Save this lesson to see this answer.
Set 4: Diagnose routes, egress, and service health10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
billing.example.com. What layer should be investigated first?Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
10.66.0.0/16 directly by peering. The spoke learns site 10.0.0.0/15 through the gateway and has a firewall default. The site firewall and hub firewall are healthy. What route changes place both directions through the hub firewall?Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
corp.example.com to site DNS, and site DNS forwards that same suffix back to the cloud resolver. What fault does this create?Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Review complete network designs10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
10.0.0.0/15. After circuit failure, one subnet still works. Another subnet's effective table contains only VPC-local 10.65.0.0/16 and 0.0.0.0/0 to NAT; its gateway still knows the VPN /15. What repair follows from comparing these paths?Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Address overlap
Address space
Alias record
example.com to the application load balancer without an apex CNAME.ASN
Asymmetric routing
Availability zone
B
Backend pool
BGP
Blackhole route
C
Central inspection
Conditional forwarder
Connection refused
Connection timeout
Cross-zone load balancing
Customer gateway
D
Dedicated connection
Dedicated service subnet
DNS64
Dual stack
E
ECMP
Effective routes
Egress-only internet gateway
Endpoint policy
Explicit outbound access
F
Flow log
Forced tunneling
Full mesh
G
Gateway endpoint
Gateway transit
GatewaySubnet
GatewaySubnet before deploying the production hybrid gateway.Growth allowance
H
Health probe
Hub-and-spoke topology
I
Inbound resolver endpoint
Interface VPC endpoint
Internal load balancer
Internet gateway
IP forwarding
IPAM
L
Layer 4 load balancer
Layer 7 load balancer
/api/* to API servers and other website paths to the web pool.Listener
Local preference
Longest prefix match
M
MACsec
N
NAT64
Next hop
Non-transitive peering
O
Outbound resolver endpoint
corp.example.com queries to the company's site DNS servers.Overlay network
P
Prefix list
Private DNS zone
Private endpoint
Private endpoint network policies
Private Google Access
Private Link service
Private Service Connect
Private subnet
Public frontend
Public subnet
R
Reachability Analyzer
Regional NAT gateway
Response timeout
Route propagation
Route summarization
10.0.0.0/15 instead of the two individual /16 ranges that prefix contains.Route table
Route withdrawal
Route-table association
S
Service endpoint
Shared VPC
Site-to-site VPN
SNAT port exhaustion
Source NAT
Split-horizon DNS
Static route
Sub-resource
Subnet boundary
10.65.32.0/20.T
Transit Gateway attachment
Transit router
TTL
U
Usable address count
User-defined route
V
VPC peering
Z
Zonal NAT gateway
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.