30,281 views
65 votes
65 votes

An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available with it: $245.248.128.0/20$. 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. $245.248.136.0/21 \text{ and } 245.248.128.0/22$
  2. $245.248.128.0/21 \text{ and }  245.248.128.0/22$
  3. $245.248.132.0/22 \text{ and }  245.248.132.0/21$
  4. $245.248.136.0/24 \text{ and }  245.248.132.0/21$

9 Answers

0 votes
0 votes

$245.248.128.0/20$

 

Underlined is NID; rest is HID

$\underline{245.248.1000}0000.00000000$


To give half the chunk to someone, we'd need $1$ Subnet bit.

 

First portion is NID, Mid portion (single bit) is SID, last portion is HID.

$\underline{245.248.1000}\ \ \underline0 \ \  \underline{000.00000000}$

 

If I don't touch the SID bit; I get $245.248.128.0/21$ as the address.

If I change the bit to 1, I get: $245.248.136.0/21$ as the address.

 

Since $245.248.132.0/21$ isn't even possible, Options C and D are out of consideration.

And Option B is just the same address, it isn't really possible to give them to two different organisations.

So, Option A is the answer.

 

But, let's see further.


Now, for giving away a quarter of the chunk, I need $2$ SID bits.

So,

$\underline{245.248.1000}\ \ \underline{00} \ \  \underline{00.00000000}$

 

If I keep my SID as $10$, I get

$245.248.136.0/22$

 

Hence, Option A.

Answer:

Related questions

2 votes
2 votes
1 answer
1
gatecse asked Dec 17, 2017
2,548 views
Generally, TCP is reliable and UDP is not reliable. DNS which has to be reliable uses UDP becauseUDP is slower.DNS servers has to keep connections.DNS requests are genera...
40 votes
40 votes
5 answers
2
Kathleen asked Sep 22, 2014
43,630 views
What is the maximum height of any AVL-tree with $7$ nodes? Assume that the height of a tree with a single node is $0$.$2$$3$$4$$5$