Skip to content
Official PYQ · 2008

GATE CS 2008 Q57 — Fragmentation and IP Addressing, IPv4, CIDR

Explain with AI

If a class BB network on the Internet has a subnet mask of 255.255.248.0255.255.248.0, what is the maximum number of hosts per subnet?

Choose one option
View worked solution

Answer: C

To find the maximum number of hosts per subnet, we need to determine the number of host bits available in the given subnet mask.

Step 1: Analyze the Subnet Mask
The given subnet mask is 255.255.248.0. Let's convert this mask into its binary representation: 255.255.248.0=11111111.11111111.11111000.00000000255.255.248.0 = 11111111.11111111.11111000.00000000

Step 2: Count the Host Bits
The host bits are represented by the trailing 0s in the subnet mask:

  • Third octet (248): 11111000211111000_2 contains 33 zeros.
  • Fourth octet (0): 00000000200000000_2 contains 88 zeros.
Total host bits (hh) = 3+8=113 + 8 = 11 bits.

Step 3: Calculate the Maximum Number of Hosts per Subnet
For hh host bits, the total number of usable host addresses is 2h−22^h - 2 (subtracting 22 for the network address and the directed broadcast address): Maximum hosts per subnet=211−2=2048−2=2046\text{Maximum hosts per subnet} = 2^{11} - 2 = 2048 - 2 = 2046

Therefore, the correct option is C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Fragmentation and IP Addressing, IPv4, CIDR questions