GATE / CS ARCHIVE

GATE CSE 2012 / QUESTION 23

Class C network-number count

Computer Networks · IP Addressing, Fragmentation & Address Resolution · Full GATE CSE 2012 paper

GATE 2012, Q23 1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 23, GATE 2012: In classful IPv4 addressing, how many Class C network numbers are allowed?
(A) 2^14 (B) 2^7 (C) 2^21 (D) 2^24.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Class C addresses begin with the three fixed bits 110. The first 24 bits identify the classful network, leaving 24−3=21 variable network-number bits. Thus the class has 221 network numbers, C. The last eight bits identify hosts within each network; this is historical classful counting, not modern CIDR allocation.

Check: There are 32 total address bits: three class-prefix bits, 21 variable network bits, and eight host bits. The question counts networks, not usable hosts, so subtracting network/broadcast host addresses from 28 is irrelevant.

Original paper, page 5 · Answer key