The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes

A network on the Internet has a subnet mask of $$. What is the maximum number of hosts it can handle ? 

  1. $1024$
  2. $2048$
  3. $4096$ 
  4. $8192$ 
asked in Computer Networks by Boss (40k points)
recategorized by | 2k views

3 Answers

+2 votes

Subnet Mask : -

$\underbrace{11111111 . 11111111 . 1111 }_{net\ id }\underbrace{0000.00000000 }_{host \ id}$

It is a class B network.For a class B network, the upper 16 bits form the network address and lower 16 bits are subnet and host fields.

of the lower 16 bits most significant 4 bits are 1111.This leaves 12 bits for the host number.So,4096(212) host address exists.

First and Last address are special so the maximum number of address


answered by Boss (40k points)
edited by
0 votes

The given subnet mask's encoded IP address is 
12 bits are available for the hostid ==> 2^12 possible hostids.

so the maximum number of hosts on this subnet is 2^12 = 4096 hosts.

answered by Active (1.3k points)
Host bits all zero's and all one's can't be used (one for netid and one for dba)  so 4096-2=4094
0 votes
  • maximum number of host=2^n-2 .
  • we need to subtract 2 becz one is used for subnet id and other is used for DBA.
answered by Boss (14.3k points)

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

36,157 questions
43,608 answers
42,860 users