3,483 views
2 votes
2 votes
If Direct Broadcast Address of subnet is 201.15.16.31. Which of the following will be subnet mask ?

1. 255.255.255.240

2. 255.255.255.192

3. 255.255.255.198

4. NOTA

Explain your answer

3 Answers

14 votes
14 votes

There will be multiple answer for this..like 255.255.255.224, 255.255.255.240, 255.255.255.248 ans so on till /31

3 votes
3 votes

For a Direct Broadcast Address host bits will always be 1's.

We have DBA 201.15.16.31 so we can guess that There would a class C IP address 201.15.16.X and Definitely We have done subnetting there otherwise as default mask for class C is 255.255.255.0 so in that way last octet is for host and for DBA all host bits would be converted to 1 so in that way last octet becomes 255 but as it's 31 so certainly subnetting is done and subnet bits are borrowed from host portion.

Now if we borrowed 1 bit from host portion (we borrow from left) then DBA last octet will have at least last 7 bits 1 but in 31 it's not the case

now if we borrowed 2 bit from host portion then DBA last octet will have at least last 6 bits will be 1 but that's also not the case (31 =>00011111)

Now if we borrowed 3 bits from host portion then DBA last octet will have at least last 5 bits will be 1 and yes in our given DBA last 5 bits are 1 so subnet mask can be 255.255.255.224 (/27)

Now if we borrowed 4 bits from the host portion then DBA last octet will have at least last 4 bits will be 1 so that's also possible.

and so on.

1 votes
1 votes

DBA is represented as valid Network ID + all hosts bits will be 1's (i.e series of 1's)
I am representing last 2 octet in binary here to decide the network/subnet bits and hosts bits 

201.15.16.31 = 201.15.00010000.00011111

So definitely if it is a DBA then at most last 5 bits can be host bits

So here we can have these possible answers 

Network/Subnet ID    Network/Subnet Mask    Hosts configured

201.15.16.0                 255.255.255.224              30 hosts
201.15.16.16               255.255.255.240              14 hosts          
201.15.16.24               255.255.255.248              6 hosts
201.15.16.28               255.255.255.252              2 hosts
201.15.16.30               255.255.255.254              0 hosts

Related questions

2 votes
2 votes
1 answer
1
Na462 asked Dec 8, 2018
2,143 views
An ISP has assigned an address block to user in which 4096 hosts can be assigned IP addresses. Which of the following can be the network ID ?168.72.90.0/20168.72.96.0/201...
2 votes
2 votes
0 answers
2
Sambhrant Maurya asked Sep 16, 2018
718 views
A host in a subnet has the IP address 130.83.126.10. How many hosts can be addressed in the network?
5 votes
5 votes
2 answers
4
Ahsanul Hoque asked Mar 23, 2018
1,985 views
$\text{If Direct Broadcast Address of subnet is}$ $201.15.16.31$.$\text{Which of the following is subnet mask?}$$255.255.255.240$$255.255.255.192$$255.255.255.198$$\text{...