CLOUD NETWORKING • VISUAL LEARNING

Inside an AWS VPC

Understand AWS Virtual Private Cloud architecture, public and private subnets, NAT Gateway, Internet Gateway, and secure network communication.

🌐 INTERNET External users and websites
↕
▣ YOUR AWS VPC CIDR: 10.0.0.0/16 | Region: us-east-1

AVAILABILITY ZONE A

☀ PUBLIC SUBNET

10.0.1.0/24
⚖️ Load Balancer Public Entry
🖥️ Bastion Host Admin Access

🔒 PRIVATE SUBNET

10.0.11.0/24
🖥️ App EC2 No Public IP
🛢️ Application Internal Service

AVAILABILITY ZONE B

☀ PUBLIC SUBNET

10.0.2.0/24
⚖️ Load Balancer High Availability
⇧ NAT Gateway Outbound Access

🔒 PRIVATE SUBNET

10.0.12.0/24
🖥️ App EC2 No Public IP
🗄️ Database Private Only
🚪 INTERNET GATEWAY (IGW)
VPC Internet Connection

🚀 How Traffic Flows

Example: A private EC2 instance needs to download software updates from the internet.

01 - PRIVATE EC2 Initiates outbound request
02 - ROUTE TABLE Default route points to NAT Gateway
03 - NAT GATEWAY Translates private source IP
04 - INTERNET GATEWAY Routes traffic outside AWS VPC
05 - INTERNET Response returns through NAT
Important: NAT Gateway allows private EC2 instances to initiate outbound IPv4 internet connections. It does not allow unsolicited inbound internet connections. The NAT Gateway must be in a public subnet with a route to the Internet Gateway.

🧩 Core AWS VPC Components

Understand the important building blocks of AWS networking.

🧱

VPC & CIDR

Your logically isolated network inside AWS. Example: 10.0.0.0/16 defines the IP address range.

🧩

Subnets

Smaller IP ranges inside a VPC. Public and private subnets organize resources.

🧭

Route Tables

Control where network traffic goes. Public subnet routes to IGW. Private subnet routes to NAT Gateway.

🚪

Internet Gateway

Connects your VPC to the internet when routing and public addressing are configured.

⇧

NAT Gateway

Allows private subnet resources to access external IPv4 destinations without direct inbound access.

🛡️

Security Groups & NACLs

Security Groups are stateful. Network ACLs are stateless. Both control network traffic.

☀ Public vs 🔒 Private Subnet

☀ Public Subnet

Its route table contains a route to an Internet Gateway. Resources need appropriate public addressing and security rules to communicate directly with the internet.

🔒 Private Subnet

Does not have a direct route to the Internet Gateway. Uses NAT Gateway for outbound IPv4 internet access or VPC endpoints for private AWS access.

🏗️ High Availability

Deploy workloads across multiple Availability Zones. Using one NAT Gateway per AZ improves availability and avoids cross-AZ NAT traffic.