Virtual cloud networks
A network you define in software
A virtual cloud network is a logical IP network managed through a cloud control plane. A virtual network interface (NIC) connects a workload to a subnet; routes decide where packets go, and security rules decide which flows may pass. The provider implements forwarding; you still own address planning, policy and service design. Consider an online shop: expose the entry point, keep application servers private, and let the database accept connections only from the application tier. A private IP alone does not enforce that boundary. Everything below is an offline design, not an instruction to create cloud resources.
Draw the address and route boundaries
Reserve 10.60.0.0/16 for the fictional shop. Its edge, app and data subnets below do not overlap. The app subnet has a local route covering the whole network, a more specific route for an approved remote office, and a default route toward an outbound translation service. A route to 10.70.5.8 selects the office link; 10.60.3.20 selects the local route. A public destination selects NAT. In this model, the NAT service also needs an upstream internet path. The data subnet has only the local route. Use longest prefix matching here; provider-specific route priorities, policy routes and implicit routes are outside this model.
Shop 10.60.0.0/16edge 10.60.1.0/24 | app 10.60.2.0/24 | data 10.60.3.0/24 | endpoint 10.60.4.0/24app routes: 10.60.0.0/16 -> local; 10.70.0.0/16 -> office; 0.0.0.0/0 -> NATdata routes: 10.60.0.0/16 -> localSeparate a route from permission
The app NIC at 10.60.2.10 can route to data NIC 10.60.3.20, but the toy firewall only allows app-to-data TCP 5432, not edge-to-data. Return traffic for an allowed connection passes a stateful filter, provided the reverse route and other filters also permit it. A stateless filter checks each direction separately, including the reply to the client ephemeral port. NAT lets approved clients initiate outbound sessions in this design; it does not grant unsolicited internet ingress. A public subnet route is not sufficient for public reachability: addressing, public frontend and policy also matter.
Compare the provider boundaries
AWS VPC is regional and its subnets belong to a single availability zone. AWS security groups track connections; subnet network ACLs are stateless. Azure VNet is regional; subnets can carry route tables and network security groups (NSGs), which are stateful. Google Cloud VPC is global with regional subnets and stateful VPC firewall rules. A zone is a separate placement and failure domain within a region, not a guarantee of application availability. Do not copy AWS public-subnet or NAT next-hop assumptions into Google Cloud or Azure; their managed NAT and internet routing models differ. Check the current provider documentation for usable addresses, default rules, routing precedence and service scope before design approval.
Practice: mark the intended flow
Trace an app request to the database and an edge request to the same port. Both match the local route, but only the former passes the example policy. Now remove the data return route in a modified diagram: the forward permission is no longer sufficient. Label the NIC, route, security decision and return path at each step. Next, examine how public frontends and private endpoints change the request path.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Virtual cloud networks Quiz
Reason about cloud routing, service paths and fictional costs.
What does a cloud route decide?
Which scope matches Google Cloud VPC?
App traffic to 10.70.5.8 uses which toy route?
Edge to data TCP 5432 matches a local route. What does policy do?
Which AWS control requires separate return-direction rules?