BeginnerLesson 1 of 10

Networking Fundamentals

Start with the minimum networking concepts needed to design and troubleshoot Azure environments: packets, IP addresses, routing, public/private reachability, and CIDR notation.

What Is It? (Simple Explanation)

Networking is how computers talk to each other. Think of each computer as a house and each IP address as a postal address. Data is split into packets, and routers move packets between addresses.

Why Do We Need It?

Real-world Analogy

A city has streets, traffic signals, and address numbers. If addresses are duplicated or roads are blocked, deliveries fail. Cloud networking works exactly the same way for application traffic.

How It Works (Technical)

ConceptMeaningAzure Relevance
IP addressUnique address for a network interfaceAssigned to NICs, VMs, load balancers, gateways
PortLogical endpoint on a host (80, 443, 22)Controlled by NSG rules and firewall policies
RoutingPath selection from source to destinationSystem routes + user-defined routes in VNets
NATAddress translation between private/public spacesUsed by Azure LB outbound SNAT, NAT Gateway

Private vs Public IP

CIDR Basics

CIDR tells how many addresses are in a network block.

CIDRAddressesTypical Use
/24256Small subnet
/204096Medium VNet section
/1665536Large VNet space

Visual Representation

Packet Path
Client
Public IP
Sends HTTPS 443
Edge Entry
Public endpoint
Routes request
Private Network
VNet + Subnet
Private IP traffic
Backend
App VM / PaaS
Responds to client

Hands-on Commands

Azure CLI
# Create resource group
az group create --name rg-net-basics --location eastus

# Create a basic VNet and subnet
az network vnet create \
  --resource-group rg-net-basics \
  --name vnet-basics \
  --address-prefix 10.10.0.0/16 \
  --subnet-name snet-app \
  --subnet-prefix 10.10.1.0/24

# List VNet and subnet ranges
az network vnet show --resource-group rg-net-basics --name vnet-basics \
  --query "{vnet:addressSpace.addressPrefixes,subnets:subnets[].addressPrefix}"

Real-world Use Case

A three-tier web app uses one VNet with separate subnets for web, app, and data tiers. Public access is only allowed to the web entry point; app and data traffic remain private.

Debugging Scenario

Issue: App cannot reach database.

Interview Questions

Beginner

What is an IP address?

A unique address assigned to a network interface so packets can be sent to and from it.

Difference between private and public IP?

Private IP is internal-only. Public IP is internet-routable and externally reachable.

Intermediate

Why use CIDR blocks?

To define scalable address ranges and subnet boundaries efficiently for routing and policy control.

What is NAT in Azure context?

NAT translates private source addresses to a public address for outbound internet traffic.

Scenario-based

Users can access frontend but API calls fail intermittently.

Check port-level rules, route consistency, and whether API backend has stable private connectivity and healthy endpoints.

Summary

Networking fundamentals are the base layer for every Azure design. Get IP planning, routing, and reachability right first; security and scale become much easier afterward.