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.
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:
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).
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.
Recommended Deep Dives & Related Study Notes
Explore connected topics in the official Gujarat WPSI & GPSC syllabus
Top 50 Repeated Questions in Computer Networks
OSI layers, routing protocols, and socket architecture
Related Guide →Transport Layer Protocols: TCP vs. UDP
Reliability vs speed comparison for competitive exams
Related Guide →Network Topologies Guide
Physical and logical architectures in network design
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.
MCQ Prep Zone Study Hub & Quick Links
Practice syllabus questions, mock exams, and download study notes
Topic-Wise MCQs
Unit-wise practice with detailed explanations.
Mock Tests →Full-Length Mocks
Simulated test papers with negative marking.
Exams Hub →Govt Exams Guides
Gujarat WPSI, GPSC AE, and CCE notifications.
Formulas →Study Notes & PDFs
Concise formula sheets for rapid revision.
Daily Drill →Daily MCQ Challenge
Compete daily, earn points, and build streaks.
Membership →Test Series Plans
Unlock all sectional tests & ranking analytics.
Related Strategy & Syllabus Articles
Strengthen your exam preparation across adjacent subjects
