Redirected
5,354 views
4 votes
4 votes
In class C network 3 bits are 3 bits are borrowed for subnetting host id parts.Total possible number of subnet masks are ______ ?

2 Answers

7 votes
7 votes
According to your question,In class C network ,we have 24 bit Network Part and 8 bit host part.Now3 bits are borrowed from Host part(logically it will be borrowed from the host part only to create a subnet).then if we follow convention then there is only 1 subnet mask possible (convention is to take 3 bit borrowed from host is from msb of host) .

subnet mask $\Rightarrow$$\underbrace{11111111.11111111.11111111.111}\underbrace{00000}$(24 bit+3 bit=27 bit network part and 5 bit host part)

If you go by convention,i.e only possible subnet mask is $11111111.11111111.11111111.11100000$

here is the reference

http://www.subnet-calculator.com/subnet.php?net_class=C

but if you don't follow the convention i.e select 3 bit '1' from any one of 8 bit's host part we have $\binom{8}{3}*\binom{3}{3}$(selected 5 bit from 8 bit and then selecting 3 bit from remaining 3 bit)=56 possible subnet mask
edited by
1 votes
1 votes

According to standard convention, there should be exactly 1 subnet mask.

It is a Class C network, therefore, 24 Most Significant bits are for Network ID part and Remaining 8 bits are for Host ID part. Now, in the question, 3 bits from Host ID part are taken for subnetting.

So Subnet Mask has to be 11111111.11111111.11111111.11100000

But, it is not mentioned as to which 3 bits of the 8 bits (Host ID part) are used for subnetting. So Mathematically, we have $^{8}C_{3}$ choices to make and thus $^{8}C_{3}$ = 56 subnet mask are possible.

Edit: The question does not mention about continuous/discontinues bit.  If use of continious bits are not allowed then answer will be less then 56.

The question should have been more described. I would have gone for 1 as answer had this been an actual GATE question.

edited by

Related questions

0 votes
0 votes
1 answer
1
1 votes
1 votes
1 answer
2
amiteshKeshari asked Oct 23, 2023
646 views
In a Class C network,if subnet mask is 255.255.255.244 then how many number of host in each subnet?
0 votes
0 votes
0 answers
3
54Y4N asked Oct 9, 2023
231 views
A 1 kilometer long CSMA/CD (not 802.3) has a propagation speed of 200m/ìsec. Repeaters are not allowed in this system Data frames are 256 bits long, including 32 bits of...