in Computer Networks edited by
36 views
0 votes
0 votes
Consider a class $\mathbf B$ network subnet mask for a network is $255.255.255.240$. The number of hosts per subnet is:

(a)$2^2-2$

(b)$2^4-2$

(c)$16$

(d)$2^3-2$

I am trying to do it this way:

NID + SID = Number of 1’s

In class B network, NID has: 16 Ones.

$\therefore 16 + SID = 28\\\Rightarrow \text{SID} = 12$

Now, $16 + 12 = 28$ bits are fixed.

On substituting, all $0’\text{s}$ in rest $4$ parts.

Number of SIDs $=2^{4}-2$

Am I right?
in Computer Networks edited by
by
191 points
36 views

2 Comments

yes..! looks correct

but discussion over https://gateoverflow.in/1265/gate2007-67-isro2016-72, confuses whether to subtract 2 or not! 

new and old conventions :( 

0
0
Don't worry about conventions if options provided, but if not provided always subtract 2..IIT's are outdated
0
0

Please log in or register to answer this question.

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
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.