Interactive end-of-chapter exercises


Supplement to Computer Networking: A Top Down Approach 8th Edition


"Tell me and I forget. Show me and I remember. Involve me and I understand." Chinese proverb

Textbook Cover

Subnet Addressing

Consider the router and the three attached subnets below (A, B, and C). The number of hosts is also shown below. The subnets share the 23 high-order bits of the address space: 192.168.176.0/23


Assign subnet addresses to each of the subnets (A, B, and C) so that the amount of address space assigned is minimal, and at the same time leaving the largest possible contiguous address space available for assignment if a new subnet were to be added. Then answer the questions below.



Question List


1. Is the address space public or private?

2. How many hosts can there be in this address space?

3. What is the subnet address of subnet A? (CIDR notation)

4. What is the broadcast address of subnet A?

5. What is the starting address of subnet A?

6. What is the ending address of subnet A?

7. What is the subnet address of subnet B? (CIDR notation)

8. What is the broadcast address of subnet B?

9. What is the starting address of subnet B?

10. What is the ending address of subnet B?

11. What is the subnet address of subnet C? (CIDR notation)

12. What is the broadcast address of subnet C?

13. What is the starting address of subnet C?

14. What is the ending address of subnet C?




Solution


1. The address 192.168.176.0/23 is private.

2. Maximum number of hosts = 2^x - 2 = 2^9 - 2 = 510. The reason we have to subtract 2 from the final number is because there are always 2 addresses allocated for each address block: the subnet ID (the first address) and the broadcast address (the last address); for example, if you have 5 bits for hosts, you can have 30 hosts, because 2 of the addresses are for the subnet ID and the broadcast address which when added equals 32, which is 2^5.

3. Subnet A has 91 hosts, so it will need at least 93 addresses (for the subnet ID and broadcast address). The least number of bits that satisfy this is 7 bits. Knowing that, we take the prior subnet and add 128, the result of which is 192.168.177.0/25

4. The broadcast address of subnet A (192.168.177.0/25) is 192.168.177.127, because it is the last address in the IP range.

5. The first IP address of subnet A (192.168.177.0/25) is 192.168.177.1, found by adding 1 to the subnet address.

6. The last IP address of subnet A (192.168.177.0/25) is 192.168.177.126, found by subtracting 1 from the broadcast address (192.168.177.127).

7. Similar to the prior subnet, subnet B has 46 hosts, so it will need at least 48 addresses (for the subnet ID and broadcast address). The least number of bits that satisfy this is 6 bits. Knowing that, we take the prior subnet and add 64, the result of which is 192.168.177.128/26

8. The broadcast address of subnet B (192.168.177.128/26) is 192.168.177.191, because it is the last address in the IP range.

9. The first IP address of subnet B (192.168.177.128/26) is 192.168.177.129, found by adding 1 to the subnet address.

10. The last IP address of subnet B (192.168.177.128/26) is 192.168.177.190, found by subtracting 1 from the broadcast address (192.168.177.191).

11. Similar to the prior two subnets, subnet C has 152 hosts, so it will need at least 154 addresses (for the subnet ID and broadcast address). The least number of bits that satisfy this is 8 bits. Knowing that, we take the prior subnet and add 256, the result of which is 192.168.176.0/24

12. The broadcast address of subnet C (192.168.176.0/24) is 192.168.176.255, because it is the last address in the IP range.

13. The first IP address of subnet C (192.168.176.0/24) is 192.168.176.1, found by adding 1 to the subnet address.

14. The last IP address of subnet C (192.168.176.0/24) is 192.168.176.254, found by subtracting 1 from the broadcast address (192.168.176.255).



That's incorrect

That's correct

The answer was: private

Question 1 of 14

The answer was: 510

Question 2 of 14

The answer was: 192.168.177.0/25

Question 3 of 14

The answer was: 192.168.177.127

Question 4 of 14

The answer was: 192.168.177.1

Question 5 of 14

The answer was: 192.168.177.126

Question 6 of 14

The answer was: 192.168.177.128/26

Question 7 of 14

The answer was: 192.168.177.191

Question 8 of 14

The answer was: 192.168.177.129

Question 9 of 14

The answer was: 192.168.177.190

Question 10 of 14

The answer was: 192.168.176.0/24

Question 11 of 14

The answer was: 192.168.176.255

Question 12 of 14

The answer was: 192.168.176.1

Question 13 of 14

The answer was: 192.168.176.254

Question 14 of 14

Try Another Problem

We gratefully acknowledge the programming and problem design work of John Broderick (UMass '21), which has really helped to substantially improve this site.

Copyright © 2010-2021 J.F. Kurose, K.W. Ross
Comments welcome and appreciated: kurose@cs.umass.edu