1,280 views
2 votes
2 votes
I stumbled upon this note on vlsm.

The question goes like:

An isp is granted block of addresses starteing with 190.100.0.0/16 (65,536 adds). The isp needs to distribute the addresses to 3 groups of customers:

Group 1. 64 customers; each needs 256 address

Group 2. 128 customers; each needs 128 address

Group 3. 128 customers; each needs 64 address

Design the subblocks.

 

Okay. I got the solution. It goes like this

Group 1:

190.100.0.0 to 190.100.63.255

Group 2:

190.100.64.0 to 190.100.127.255

Group 3:

190.100.128.0 to 190.100.159.255

And there are some available addresses.

 

Looks alright? No problem? Ok now is my real question:

I know the above range include network and broadcast address. And I know how to calculate it TEDIOUSLY.

 

For example for group 1:

190.100.0.0 to 190.100.63.0

Where do i get that 63?

I mean, ok thats fine i have 64 subnets which means number of subnet 0 to 63 is 64. And every customer needs 256. Okay i understand. Now proceed to group 2.

 

Group 2:

190.100.64.0 to 190.100.127.255

How do i get the 127?

I know how to get the 64 and i can calculate it but i have to calculate for all of the customers. Like 128 customers.

1st customer:

Network address:

190.100.64.0/25

Broadcast address:

190.100.64.127

 

 Bla bla bla...

 

128th customer:

Network address:

190.100.127.128/25

Broadcast address:

190.100.127.255/25

 

I LITERALLY calculate on the (Bla bla bla...) section. (See above).

Aint nobody got time for that.

If I was given 5 minute to answer a question similar to the above question, I would shit my pants having to list all of the customers.

Is there a shortcut to get to the 127?

This applies to group 2 too.

The above question is just an example. My brain fogs whenever I have to calculate octets other than the last octet.

I've been questioning my life for several semester for this. Please help me. Isn't there any simpler answer? I don't want to waste my time too much on this.

1 Answer

Best answer
6 votes
6 votes

Starting address $ = 190.100.0.0/16\space\rightarrow\space$ which means that the first $16$ bits are used for identifying network and next $16$ bits are available for host addresses. So the available addresses are from $190.100.0.0$ to $190.100.255.255$.

We have $3$ groups. So we can make use of the leftmost $2$ bits of the available address to identify a group. I am taking $00, 01$ and $10$ for these groups.

Group $1\space\rightarrow\space00\space\rightarrow64\space$Customers, $256\space$Addresses each.

For $256$ Addresses we need $8$ bits. So final $8$ bits are given for the addresses. For $64$ customers we can make use of the preceding $6$ bits. Hence this group would be,

ie; $190.100.0.0$ to $190.100.63.255$

Group $2\space\rightarrow\space01\space\rightarrow128\space$Customers, $128\space$Addresses each.

$7$ bits are needed for $128$ addresses and preceding $7$ bits are needed for $128$ customers.

So, this group is: $190.100.64.0$ to $190.100.127.255$.

Group $3\space\rightarrow\space10\space\rightarrow128\space$Customers, $64\space$Addresses each.

This group is identified with $10$ and after reserving $6$ bits for $64$ addresses, and $7$ bits for $128$ customers, we still have $1$ bit left. This goes partially unused, and here it can be either $0$ or $1$. I am taking $0$.

Therefore addresses in this group is : $190.100.128.0$ to $190.100.159.255$.

Hope this helps.

selected by

Related questions

2 votes
2 votes
2 answers
1
Na462 asked Dec 4, 2018
2,505 views
Given an IP address 156.233.42.56 with a subnet mask of 7 bits. How many hosts and Subnets are Possible ?126 hosts and 510 subnet128 host and 512 subnet510 hosts and 126 ...
3 votes
3 votes
2 answers
2
radha gogia asked Apr 6, 2018
1,466 views
Interface $A - 255.255.255.128$Interface $B -255.255.255.192$Interface $C -255.255.255.224$ 1) which one of the following IP addresses belong to interface $B$ ?$200.200.2...
1 votes
1 votes
1 answer
4
admin asked Mar 31, 2020
1,869 views
There is a need to create a network that has $5$ subnets, each with at least $16$ hosts. Which one is used as classful subnet mask ?$255.255.255.192$$255.255.255.248$$255...