The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
84 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 ?

  1. 168.72.90.0/20
  2. 168.72.96.0/20
  3. 168.72.64.64/20
  4. 168.64.64.0/24
asked in Computer Networks by Loyal (8.6k points) | 84 views

1 Answer

0 votes

Anwer- B. 168.72.96.0/20

for n/w id, all the host id part should be 0. Since it has to support 4096 hosts, -> 2^12 => 12 bits represent host id.

Note- Here in question, it is mentioned to assign IP to 4096 hosts, so we would actually need 13 bits to support this many hosts.[ 1 for n/w id and another for broadcast]. But since, no option satisfies, therefore, it is obvious that they are neglecting these 2 addresses.So, consider 12 bits for host id.

Therefore, 32-12 = 20 bits represent n/w id. Now, we know the prefix-length, the remaining 12 bits should be all 0's which is only in option B.

Therefore this is the solution.

answered by (337 points)
0

@Ashish Goyal y not option A ?

0

@Shadan Karim, as i mentioned in the answer-

the remaining 12 bits should be all 0's

So, check for yourself. Clearly the last 8 bits are 0's in both A and B. You just need to check if the last 4 bits of the 3rd octet of the address(i.e.- 90 for A and 96 for B) are 0's.

Either you can convert them into binary and check or the easier way would be to check if they leaves any reminder when divided by 16(2^4).

Related questions

0 votes
1 answer
2
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
47,904 questions
52,285 answers
182,220 comments
67,721 users