Академический Документы
Профессиональный Документы
Культура Документы
8. Finding the number of Hosts and subnets available for a given subnet mask: Fo
r example, let us find the number of hosts and subnets available for an IP 156.2
33.42.56 with a subnet mask of 7 bits.
a. Class B network has the form N.N.H.H, the default subnet mask is 16 bits lon
g. There is additional subnet mask of 7 bits long.
b. 7 bits of subnet mask corresponds to (2^7-2)=128-2 = 126 subnets.
c. 9 bits (16-7) of host addresses corresponds to (2^9-2)=512-2 = 510 hosts.
Some times, the subnet mask is specified with the bits available in the default
subnet mask. In this case the bits available in default subnet mask is 16. There
fore, total number of bits available
in the subnet mask are 16+7=23. If you are given a subnet mask of 23 bits long f
or a class B address,
it is understood that it contains the bits from the default subnet mask as well
.
Hence, 126 subnets and 510 hosts are available.
9. The directed broadcast should reach all Hosts on the intended network (or sub
net, if sub netted). For example, the directed broadcast address for an IP netwo
rk 196.233.24.15 with default subnet mask is 196.233.24.255. This is arrived by
putting all 1s for the host potion of the IP address.
10. To find valid hosts given an IP address (say 156.16.3.52) and a subnet mask
(sat a 12-bit subnet). The valid hosts are determined as below:
A 12-bit subnet mask gives us 255.255.255.240; 4094 subnets, each with 14 hosts
. (Host addresses of all zeros and all 1s can't be assigned). The 156.16.3.52 is
in the 48 subnet range. The valid range is through 49 - 62. 63 is a broadcast a
ddress.
Here is how you get the subnet range:
1. Find the subnet mask. In this case, default subnet mask for Class B address i
s 255.255.0.0. There are additional; 12 bits in the subnet mask. Now the subnet
mask looks like:
11111111.11111111.11111111.11110000. This is equal to 255.255.255.240.0.2. Now,
deduct the lowest value octet (Which is non zero), from 256. Here, (256-240) =1
6.
This is the value that the subnets are incremented. Therefore, you will have ho
sts with values from:
156.16.3.1 to 156.16.3.14 (All 0s and all 1s host addresses can not be used)
156.16.3.17 to 156.16.3.30
156.16.3.33 to 156.16.3.46
156.16.3.49 to 156.16.3.62 and so on.
It is important to know that subnets are incrementing here by a factor of 16.
11. VLSM (Variable Length Subnet Masking) allows efficient use of IP addresses.
Networks implemented with VLSM can be summarized more efficiently due to manual
control. With a distance vector protocol such as RIP or IGRP, only one subnet ma
sk value can be used on a network, as subnet mask values are not sent in routing
updates.