Analyze Existing Subnet Masks 1
This post asks you to analyze the choice of subnet mask in a network. If a company uses one subnet mask for all subnets of one classful network, you can analyze the address structure as three parts: Network, Subnet, and Host. Then, you can calculate the number of subnets possible with these design choices. You can also determine the size of each subnet.
For those who care to pass Cisco certifications, you should strive to get the answer to each problem in about 15 seconds. This post gives you five problems. Get a stopwatch or clock app open and get ready to practice!
Videos: How to and More Practice
The left video discusses the design approach to subnet masks, which begins with the choice to use only one subnet mask within the entire classful network. Then, you consider the number of subnets the design requires, plus the size needed for each subnet, to determine which masks will work—and then choose among those masks.
The right video provides some practice with the process.
Five Practice Problems (Hidden)
You may make the following assumptions:
- All subnets of the network use the same mask (as listed with the problem).
- All subnets can be used, including the zero subnet and broadcast subnet.
Each problem supplies a classful network (a class A, B, or C network) and the mask used by all subnets. Your job:
- Analyze the address structure to determine the number of Network, Subnet, and Host bits.
- Calculate the number of subnets in the design.
- Calculate the size of each subnet.
For any values that use a power of 2 above 2^16, you may leave your answer in exponential form.
Problem | Classful Network | Mask |
---|---|---|
1 | 9.0.0.0 | /17 |
2 | 100.0.0.0 | /21 |
3 | 151.151.0.0 | /22 |
4 | 201.201.201.0 | /27 |
5 | 223.223.221.0 | /30 |
The following table supplies the powers of 2 and their decimal equivalents.
2^x | Decimal | 2^x | Decimal |
---|---|---|---|
2^0 | 1 | 2^9 | 512 |
2^1 | 2 | 2^10 | 1024 |
2^2 | 4 | 2^11 | 2048 |
2^3 | 8 | 2^12 | 4096 |
2^4 | 16 | 2^13 | 8192 |
2^5 | 32 | 2^14 | 16,384 |
2^6 | 64 | 2^15 | 32,768 |
2^7 | 128 | 2^16 | 65,536 |
2^8 | 256 | 2^17 | 131,072 |
Answers and Explanations for Each Problem
First, determine the number of network, subnet, and host bits. You already know the prefix mask (/P) per each problem statement. From there:
- Determine the number of network bits per class A, B, and C rules
- Determine the number of subnet bits (S), which is the different between the prefix (P) and network bits (N): S = P – N
- Determine the number of host bits, which is 32 – P.
Table 1 lists the structure of addresses for each problem, while Table 2 lists the calculated number of subnets and hosts/subnet.
Problem | Class | Network Bits (N) | Subnet Bits (S = P – N) |
Host Bits (32 – P) |
1 |
A |
8 |
9 |
15 |
2 |
A |
8 |
13 |
11 |
3 |
B |
16 |
6 |
10 |
4 |
C |
24 |
3 |
5 |
5 |
C |
24 |
6 |
2 |
Table 1: Network, Subnet, and Host Bits for Each Problem
Problem |
Number of Subnets |
Number of Hosts |
1 |
2^9 = 512 |
2^15 – 2 = 32,766 |
2 |
2^13 = 8192 |
2^11 – 2 = 2046 |
3 |
2^6 = 64 |
2^10 – 2 = 1022 |
4 |
2^3 = 8 |
2^5 – 2 = 30 |
5 |
2^6 = 64 |
2^2 – 2 = 2 |