in GATE retagged by
790 views
6 votes
6 votes

An Internet Service Provider $(ISP)$ is granted a block of addresses starting with $145.75.0.0/16$.  The $ISP$ needs to distribute these addresses to three groups of customers as follows:

  1. The first group has $128$ customers; each needs $256$ addresses.
  2. The second group has $128$ customers; each needs $64$ addresses.
  3. The third group has 64 customers; each needs $128$ addresses.

Find the first address of $128$$^{th}$ customer of 2nd group and how many addresses are still available with $ISP$ after these allocations.

  1. $145.75.127.128/24$,  $32768$
  2. $145.75.159.192/26$,  $16384$
  3. $145.75.159.192/26$,  $32768$
  4. $145.75.191.128/25$,  $16384$
in GATE retagged by
by
790 views

1 Answer

8 votes
8 votes
Best answer
Given 145.75.0.0/16 is the starting address. So, we have 216 = 65,536 addresses with the ISP initially.
For the 1st group, each customer needs 256 addresses. So, 8 bits are needed to define each host. The prefix length is 32 – 8 = 24. Therefore the addresses of 1st group are:
1st customer ---> 145.75.0.0/24 to 145.75.0.255/24
2nd customer ---> 145.75.1.0/24 to 145.75.1.255/24

128th customer  145.75.127.0/24 to 145.75.127.255/24

So, for 1st group the ISP has allocated 128*256 = 32768 addresses

For the 2nd group, each customer needs 64 addresses. So, 6 bits are needed to define each host. The prefix length is 32 – 6 = 26. Therefore the addresses of 2nd group are:
1st customer  145.75.128.0/26 to 145.75.128.63/26
2nd customer  145.75.128.64/26 to 145.75.128.127/26
3rd customer  145.75.128.128/26 to 145.75.128.191/26
4th customer  145.75.128.192/26 to 145.75.128.255/26

128th customer  145.75.159.192/26 to 145.75.159.255/26

So, for 2nd group the ISP has allocated 128*64 = 8192 addresses

For the 3rd group, each customer needs 128 addresses. So, 7 bits are needed to define each host. The prefix length is 32 – 7 = 25. Therefore the addresses of 3rd group are:
1st customer  145.75.160.0/25 to 145.75.160.127/25
2nd customer  145.75.160.128/25 to 145.75.160.255/25
64th customer  145.75.191.128/25 to 145.75.191.255/25

So, for 3rd group the ISP has allocated 64*128 = 8192 addresses.

Hence the total no.of addresses available after allocating is 65536 – (32768 + 8192 + 8192) = 16384 addresses
selected by

4 Comments

@Bikram. Dont we add 2 addresses for subnet address and broadcast address to host part? So, for 1st group, we need 256 addresses for each customer and therefore, wont we need 9 bits for host part?
0
0
Or is this modern development that we can use both addresses as well?
2
2
edited by

each needs 256 addresses.. means possible 256 address. to which purpose NOT needed So full spectrum and NO minus 2


 one more possible way to do.

7
7

@Debashish Deka

Small correction needed,

2nd and 3rd parts,

1 0/1 _ _ _ _ _      _ _ _ _ _ _ _ _

1
1
Answer:

Related questions

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

64.3k questions

77.9k answers

244k comments

80.0k users