GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 27

Sixty-four subnets of a class B network

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

GATE 2005, Q27 1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 27, GATE 2005: A class-B network needs 64 departmental subnets. Mask? A255.255.0.0; B255.255.64.0; C255.255.128.0; D255.255.252.0.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step through it (3 steps)

Starting with a /16 class-B network, borrow 6 bits to obtain 26=64 subnets. The /22 mask is 255.255.252.0, D. This uses all subnet numbers; the obsolete convention excluding all-zero/all-one subnets would require a different count and is not applied.

A class-B prefix starts with 16 network bits. Six additional subnet bits give 64 patterns, leaving 10 host bits. The resulting prefix length 22 has mask 11111111.11111111.11111100.00000000, or 255.255.252.0. This uses all 64 subnet numbers under the modern convention, rather than subtracting two obsolete reserved subnet patterns.

Original paper, page 3