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

An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: $$. The ISP wants to give half of this chunk of addresses to Organization $A$, and a quarter to Organization $B$, while retaining the remaining with itself. Which of the following is a valid allocation of addresses to $A$ and $B$?

  1. $ \text{ and }$
  2. $ \text{ and }$
  3. $ \text{ and }$
  4. $ \text{ and }$
asked in Computer Networks by Boss (18.1k points) | 4.7k views
ip is starts from not

7 Answers

+28 votes
Best answer

Correct option will be A

answered by (193 points)
edited by
Yes its a correct division . Even i am geeting the same :D

Range of A will be till Seems like typing error.

+14 votes

The different subnet splittings possible are shown above. So, the answer would be $(A)$

answered by Active (4.3k points)
edited by
There are 4 possible ways.

(1) and

(2) and

(3) and

(4) and

Option (A) is the correct answer.
Thanks for pointing out. I mistyped. I'll correct it ;)

(2) and  

Shouldn't this be and

Yup...u r right.

Corrected now.
+13 votes
ans should be a) , the mask are /21 and/22 respectively, acc. to the half and quarter chunks requirement... and option b) can creat problem as address can get clashed between the two..
answered by Active (1.1k points)
+11 votes

20 bit net id  so 12 bit host id  

Address allocation to A is $2^{12}/2 = 2^{11}$

Address allocated to B is $2^{12}/4 = 2^{10}$

set  12th bit to 1 so address for A is

now for B set 12th bit and 13th bit to 0 so address for B is as in option A. 

Option B is wrong as host addresses are overlapping. 

answered by Boss (31.4k points)

The ramaining half (other than B and retained by ISP) is the n/w Am I right?

If I am right then this also could be an answer because ISP and B both have equal quarters and so we can give them any of the two quarters. BTW there is no option including and


AS per given option range could be like this :-

B range could be (128 to 131)               //means 128.0 to 131.255 

A range could be (132 to 138)               // means 131.0 to 138.255

rest chuck range could be (139 to 255)  // means 139.0 to 255.255 


@pooja mam 
why we  set 12th bit and 13th bit to  0  for B  ?

To divide the n/w into two halves we choose 1 bit from host id part i.e the part A. and to divide the half into another half we choose 2 bit from host i/d part as subnet id and it coosen as 00 because of the option  i think .if you choose 01 then 132,if 10 then 136 ,if  11 then 140.
There are 4 possible ways.

(1) and

(2) and

(3) and

(2) and

Option (A) is the correct answer.
@Warrior please explain it more .
+9 votes

The prefix is given is 20. So, the first 20 bits denote the network id bits, and the next 12 bits indicate host bits. To divide the network into two halves, we borrow bits from the host bits. Hence, for half (2 partitions), the prefix will be 20 + 1 and for 4 partitions, the prefix will be 20 + 2 = 22. So prefix for A will be 21 and prefix for B will be 22. This eliminates options C and D.

For A, we need to consider the 21st bit. It can have values 0 or 1. Let's take its value as 1. So, the network id becomes

For B, we need to consider the 21st and 22nd bits. We can have four possibilities: 00, 01, 10, 11. Out of these, 10, and 11 belong to network A. So, we take 00 ie (Network B) and 01 as

Option A

answered by Active (1.4k points)
+3 votes

If take ip : then B have choice : or

if A ip : then B have choice : or


So, correct answer A

answered by (65 points)
+2 votes

Answer is A

Duplicate of GATE 2012 -34

answered by Boss (34.4k 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

38,053 questions
45,543 answers
48,881 users