Project ForgeSign up free
Computer Networks
Transport Protocols & IP Addressing
GATE 2008
Hard

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

2046

Explanation

255.255.248.0 in binary for the last two octets is 11111000.00000000 — 5 subnet bits (from the third octet) plus 0 from the fourth, leaving 16-5=11 host bits. Maximum hosts = 2¹¹ - 2 = 2048 - 2 = 2046 (excluding the all-0s network and all-1s broadcast addresses).

Source: GATE CS 2008 (2008)

This question is part of a 15-day revision cycle — sign in and Project Forge will bring it back the day before you'd forget it.

Start revising free