Computer Networks

Mastering IP Addressing and Subnetting

Nov 15, 202512 min read
Back to All Strategy Articles
Subject:Computer Networks
Mastering IP Addressing and Subnetting
Official Exam Syllabus Alignment
Target Exam: Gujarat Police Wireless PSI (WPSI) Paper-2 & GSSSB Technical Assistant
Syllabus Module: Unit 3: IP Addressing, CIDR & Subnet Calculations
Topic Weightage: 8–12 Marks
Preparation Focus: Numerical & Calculation-Focused

IP addressing is a non-negotiable topic in the Gujarat Competitive Exams technical paper. You will almost certainly face numerical questions on this. Let's break down the fundamentals of IPv4 and subnetting.

1. IPv4 Classes

An IPv4 address is 32 bits long, divided into 4 octets. Historically, addresses were divided into classes:

  • Class A: Range 1-126. Default Subnet Mask: 255.0.0.0. Used for massive networks.
  • Class B: Range 128-191. Default Subnet Mask: 255.255.0.0. Used for medium-large networks.
  • Class C: Range 192-223. Default Subnet Mask: 255.255.255.0. Used for small networks (like home Wi-Fi).
  • Class D & E: 224-239 (Multicast) and 240-255 (Experimental/Reserved).

2. Subnetting Calculations

Subnetting allows you to divide a single large network into multiple smaller logical networks. It works by borrowing bits from the host portion of the IP address to create a subnet portion.

The Golden Formulas

Number of Subnets = 2^s (where s is the number of borrowed bits).
Number of Usable Hosts per Subnet = 2^h - 2 (where h is the remaining host bits). The '-2' accounts for the Network ID and Broadcast Address.

3. CIDR Notation

Classless Inter-Domain Routing (CIDR) replaced classful networks. An address like 192.168.1.0/24 means the first 24 bits represent the network, and the remaining 8 bits are for hosts.

High-Yield Practice Questions & Worked Examples

Test your understanding with these exam-standard questions specifically calibrated for the syllabus pattern:

Exam Practice MCQ 1 Target Syllabus Drill

Q: How many valid usable host addresses are available in a subnet with mask 255.255.255.224?

  • (A) 32
  • (B) 30
  • (C) 62
  • (D) 14

✓ Correct Answer: (B) 30

Detailed Explanation: 255.255.255.224 has 27 ones, leaving 5 host bits. Total IP addresses = 2^5 = 32. Usable hosts = 2^5 - 2 = 30 (excluding network ID and broadcast ID).

Exam Practice MCQ 2 Target Syllabus Drill

Q: Which of the following IP address ranges is reserved for Private Class B networks (RFC 1918)?

  • (A) 10.0.0.0 – 10.255.255.255
  • (B) 172.16.0.0 – 172.31.255.255
  • (C) 192.168.0.0 – 192.168.255.255
  • (D) 169.254.0.0 – 169.254.255.255

✓ Correct Answer: (B) 172.16.0.0 – 172.31.255.255

Detailed Explanation: Class B private space is 172.16.0.0/12 (172.16.0.0 to 172.31.255.255). 10.0.0.0/8 is Class A, and 192.168.0.0/16 is Class C.

Sharpen Your Exam Readiness on Mcqprepzone

Mastering technical formulas and theoretical concepts is only step one. Solving timed mock tests under exact exam conditions improves speed, eliminates negative marking, and reveals your weak spots.

Frequently Asked Questions

Why is 2 subtracted from 2^n when calculating usable hosts?

The first address in every subnet (all host bits 0) is reserved for the Network ID, and the last address (all host bits 1) is reserved as the Directed Broadcast Address.

What is the shortcut to find the block size of a subnet mask?

Subtract the non-255 octet from 256. For 255.255.255.240, block size is 256 - 240 = 16. Subnets increment in steps of 16 (0, 16, 32, 48...).

What is the default subnet mask for Class C IPv4 addresses?

The default Class C mask is 255.255.255.0 (/24), supporting up to 254 hosts per network.

Related Strategy & Syllabus Articles

Strengthen your exam preparation across adjacent subjects

All Posts

Never Miss an Exam Update

Join 50,000+ aspirants receiving our weekly Gujarat Police & GPSC strategy emails.