Network Architecture

Loading concept...

πŸ™οΈ Building Your Own City in the Cloud

Imagine you’re a kid who wants to build the coolest city ever using toy blocks. But instead of plastic blocks, you’re using internet magic to create a city where computer programs can live, talk to each other, and connect to the outside world!

This is exactly what Network Architecture in cloud computing is all about. Let’s explore how to build your very own cloud city!


🏰 Virtual Private Cloud (VPC): Your Private Kingdom

What Is It?

Think of a VPC as your own private playground that’s fenced off from everyone else’s playgrounds. Even though you’re in a huge park (the cloud), your area is just for you!

Simple Example:

  • The cloud is like a giant shopping mall
  • Your VPC is like renting your own store inside that mall
  • You decide who can come in and what happens inside
  • Other stores can’t peek into yours!

Why It Matters

Without a VPC, your computers would be out in the open where anyone could bother them. With a VPC, you create a safe, private space.

graph TD A[☁️ The Big Cloud] --> B[🏠 Your VPC] A --> C[🏠 Someone Else's VPC] A --> D[🏠 Another VPC] B --> E[Your Safe Computers] C --> F[Their Computers]

πŸ”’ CIDR Notation: Naming Your Neighborhoods

What Is It?

CIDR (say it like β€œcider” 🍎) is a special way to write addresses for groups of houses in your cloud city.

Think of it like this: Instead of writing down every single house address, you write ONE address that covers a whole neighborhood!

The Magic Numbers

A CIDR looks like this: 10.0.0.0/16

Part What It Means
10.0.0.0 Starting address
/16 How BIG the neighborhood is

The smaller the number after /, the BIGGER the neighborhood!

CIDR Size Like…
/8 16 million addresses 🌍 A whole country!
/16 65,536 addresses πŸ™οΈ A big city
/24 256 addresses 🏘️ One neighborhood
/28 16 addresses 🏠 A small street

Real Example

Your VPC: 10.0.0.0/16
         ↓
This means you have addresses from
10.0.0.0 to 10.0.255.255
         ↓
That's 65,536 possible addresses!

🧱 Subnets: Dividing Your City into Neighborhoods

What Is It?

A Subnet is like dividing your big city into smaller neighborhoods. Each neighborhood has its own rules and purposes!

Simple Example:

  • Your VPC city = 10.0.0.0/16 (the whole city)
  • Web Server Neighborhood = 10.0.1.0/24 (256 houses)
  • Database Neighborhood = 10.0.2.0/24 (256 houses)
  • Office Neighborhood = 10.0.3.0/24 (256 houses)

Why Split Things Up?

  1. Organization - Know where everything is
  2. Safety - Keep dangerous things separate
  3. Control - Different rules for different areas
graph TD A[πŸ™οΈ VPC: 10.0.0.0/16] --> B[🌐 Public Subnet<br>10.0.1.0/24] A --> C[πŸ”’ Private Subnet<br>10.0.2.0/24] A --> D[πŸ’Ύ Database Subnet<br>10.0.3.0/24]

🌐 Public vs Private Subnets: Front Yard vs Backyard

Public Subnet: The Front Yard

A public subnet is like your front yard - anyone walking by can see it!

  • βœ… Has a path to the internet
  • βœ… Computers here get public addresses
  • βœ… Good for: Websites, apps users visit

Private Subnet: The Backyard

A private subnet is like your backyard - hidden behind a fence!

  • πŸ”’ No direct path to the internet
  • πŸ”’ Computers here have private addresses only
  • πŸ”’ Good for: Databases, secret stuff

Real Life Example

What Where Why
Website Public Subnet People need to visit it!
Database Private Subnet Keep passwords safe!
Admin Tools Private Subnet Only staff should access
graph LR A[🌍 Internet] --> B[🌐 Public Subnet] B --> C[πŸ”’ Private Subnet] C -.->|❌ Can't reach directly| A

πŸ—ΊοΈ Route Tables: The City’s Road Map

What Is It?

A Route Table is like a map that tells traffic where to go. It says β€œIf you want to go HERE, use THIS road!”

How It Works

Think of it like directions:

  • Want to go to the bakery? Take Main Street!
  • Want to go to school? Take Oak Avenue!
  • Want to go ANYWHERE else? Take the highway!

Example Route Table

Destination Where to Go Meaning
10.0.0.0/16 Local Stay in the VPC
0.0.0.0/0 Internet Gateway Go to the internet

0.0.0.0/0 means β€œeverywhere else” - it’s the default route!

graph TD A[πŸ“¦ Data Packet] --> B{Where to go?} B -->|10.0.x.x| C[Stay in VPC] B -->|Anywhere else| D[Internet Gateway]

πŸšͺ Internet Gateway: The Main Door

What Is It?

An Internet Gateway is like the main door of your city that connects to the outside world!

Simple Example:

  • Your VPC is a shopping mall
  • The Internet Gateway is the main entrance
  • Without it, no one from outside can come in
  • And no one inside can go out!

Key Points

  • βœ… Only ONE per VPC
  • βœ… Allows two-way traffic (in AND out)
  • βœ… Free to use!
  • βœ… Attach it to public subnets
graph LR A[🌍 The Internet] <-->|πŸšͺ| B[Internet Gateway] B <--> C[🌐 Public Subnet] C <--> D[πŸ–₯️ Your Web Server]

πŸ›‘οΈ NAT Gateway: The Secret Messenger

What Is It?

A NAT Gateway (Network Address Translation) is like a secret messenger who can go outside to get things, but nobody outside knows where they really came from!

Why Do We Need It?

Private subnets can’t reach the internet directly. But sometimes computers in private subnets need to:

  • Download software updates
  • Get the current time
  • Fetch data from websites

The NAT Gateway helps with this!

How It Works

  1. Computer in private subnet: β€œI need updates!”
  2. NAT Gateway: β€œI’ll get them for you!”
  3. NAT Gateway goes to internet (using its public address)
  4. Gets the updates
  5. Brings them back to the private computer
  6. Outside world never sees the private computer!
graph LR A[πŸ”’ Private Server] --> B[πŸ›‘οΈ NAT Gateway] B --> C[πŸšͺ Internet Gateway] C --> D[🌍 Internet] D -.->|❌ Can't reach| A

Public vs Private: The Key Difference

Type Can REACH internet? Can BE reached?
Public Subnet βœ… Yes βœ… Yes
Private + NAT βœ… Yes ❌ No
Private alone ❌ No ❌ No

πŸ“ Elastic IP Addresses: Your Permanent Phone Number

What Is It?

An Elastic IP is like having a permanent phone number that you can move to any phone!

Normally, cloud computers get new addresses when they restart (like getting a new phone number every day - confusing!). Elastic IPs solve this.

Why It Matters

Without Elastic IP:

  • Server restarts β†’ New address β†’ Users can’t find you!

With Elastic IP:

  • Server restarts β†’ Same address β†’ Users always find you!

Key Rules

Rule Details
Cost Free while attached to running computer
Cost πŸ’° Costs money if NOT attached!
Limit 5 per region (can request more)
Portability Move between computers instantly

Real Example

Your Website: www.awesome.com

DNS points to: 54.123.45.67 (your Elastic IP)

Server crashes? No problem!
1. Launch new server
2. Attach same Elastic IP
3. Users still reach you!

🎯 Putting It All Together

Let’s build a complete cloud city!

graph TD subgraph VPC[πŸ™οΈ VPC: 10.0.0.0/16] subgraph Public[🌐 Public Subnet: 10.0.1.0/24] WEB[πŸ–₯️ Web Server<br>Elastic IP: 54.x.x.x] NAT[πŸ›‘οΈ NAT Gateway] end subgraph Private[πŸ”’ Private Subnet: 10.0.2.0/24] DB[πŸ’Ύ Database] APP[πŸ“± App Server] end end INET[🌍 Internet] <--> IGW[πŸšͺ Internet Gateway] IGW <--> WEB IGW <--> NAT NAT --> DB NAT --> APP

The Complete Picture

Component Address Purpose
VPC 10.0.0.0/16 Your private kingdom
Public Subnet 10.0.1.0/24 Front-facing services
Private Subnet 10.0.2.0/24 Protected resources
Internet Gateway - Main door to internet
NAT Gateway In public subnet Lets private talk out
Web Server Elastic IP Users visit here
Database Private IP only Safe from attacks

πŸš€ Quick Recap

Concept One-Line Summary
VPC Your private fenced playground in the cloud
CIDR A short way to write many addresses at once
Subnet Neighborhoods inside your city
Public Subnet Front yard - visible to everyone
Private Subnet Backyard - hidden from outsiders
Route Table The road map showing where traffic goes
Internet Gateway Main door connecting to the world
NAT Gateway Secret messenger for private subnets
Elastic IP Permanent phone number for your server

πŸ’‘ Remember This!

Building a cloud network is like building a city:

  1. Start with your VPC (the city boundaries)
  2. Divide into subnets (neighborhoods)
  3. Add an Internet Gateway (the main door)
  4. Add a NAT Gateway (for private areas to reach out)
  5. Use Elastic IPs (permanent addresses for important things)
  6. Configure Route Tables (the road signs)

You’re now ready to be a Cloud City Architect! πŸ—οΈβ˜οΈ

Loading story...

No Story Available

This concept doesn't have a story yet.

Story Preview

Story - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

Interactive Preview

Interactive - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

No Interactive Content

This concept doesn't have interactive content yet.

Cheatsheet Preview

Cheatsheet - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

No Cheatsheet Available

This concept doesn't have a cheatsheet yet.

Quiz Preview

Quiz - Premium Content

Please sign in to view this concept and start learning.

Upgrade to Premium to unlock full access to all content.

No Quiz Available

This concept doesn't have a quiz yet.