🧮 IP Addressing Fundamentals: IANA, Classes & NID/HID

🌍 Who controls IP Addresses? (IANA)

IANA (Internet Assigned Numbers Authority) is the global coordinator for IP address management.


🧬 Anatomy of an IP Address (NID vs HID)

Every IPv4 address (e.g., 192.168.1.5) is divided into two parts. Think of it like a Street Name and a House Number.

1. NID (Network ID)

2. HID (Host ID)

Who decides which part is NID or HID?
The Subnet Mask (or Class) decides where the line is drawn.


📦 Classful Addressing System

In the early days, the internet was divided into 5 "Classes" to make routing easier. Each class has a fixed number of Network bits (NID) and Host bits (HID).

Overview Cheat Sheet

ClassFirst Octet RangeDefault Subnet MaskNID / HID BitsUse Case
A1 - 126255.0.0.0 (/8)N.H.H.H (8/24)Huge Corps / Govts
B128 - 191255.255.0.0 (/16)N.N.H.H (16/16)Large Universities
C192 - 223255.255.255.0 (/24)N.N.N.H (24/8)Small Offices / Home
D224 - 239N/AN/AMulticasting
E240 - 255N/AN/AExperimental (R&D)

Note: 127.x.x.x is reserved for Loopback (Localhost testing) and is not part of Class A.

🔍 Deep Dive Details

Class A (The Giants)

Class B (The Mid-Range)

Class C (The Commoners)

ASCII Diagram (Bit Structure)

Class A:  [Network(8)] [Host(8)] [Host(8)] [Host(8)]
          (Few Networks, Many Hosts)

Class B:  [Network(8)] [Network(8)] [Host(8)] [Host(8)]
          (Balanced)

Class C:  [Network(8)] [Network(8)] [Network(8)] [Host(8)]
          (Many Networks, Few Hosts)

🔒 Private IP Ranges (RFC 1918)

Within these classes, IANA reserved specific blocks for Private Use (Internal LANs). These are NOT routable on the internet.

Cloud Tip: When you create an Azure VNet, you usually pick one of these private ranges.


💡 Hinglish Explanation (Pincodes)

1. IANA (Government)

2. NID vs HID (Shehar vs Ghar)

3. Classes (Plot Size)


⚡ Exam Tips for AZ-900

  1. Loopback: 127.0.0.1 is used to test your own network card. It's not a valid IP for a VM.
  2. Private Ranges: Memorize 10.x.x.x, 172.16.x.x, and 192.168.x.x. You will see these in every Azure VNet exam question.
  3. CIDR: Classful addressing is old. Modern clouds use Classless (CIDR), which lets you slice these classes into whatever size you need (Subnetting).