1. how many subnet bits are required to create 20 Subnets?

2. If # of SN bits is 5,
• What is the length of the prefix in a class C network?
• What is the length of the prefix in a class B network?

3. If # of SN bits is 5, then in a class C network
• what is the length of the suffix?
• what is the block size?
• what is the # of hosts in each SN?

To answer the questions related to subnetting, you need to understand the concept of subnetting and how it works. Subnetting is the process of dividing a network into smaller subnetworks, known as subnets.

1. To determine the number of subnet bits required to create a specific number of subnets, you can use the formula 2^n ≥ number of subnets, where n represents the number of subnet bits.

In this case, you want to create 20 subnets. To find the minimum number of subnet bits needed, you can calculate 2^n ≥ 20. By trying different values of n, you'll find that the smallest number that satisfies the equation is n = 5. Therefore, you would need 5 subnet bits to create 20 subnets.

2. The prefix length in a class C or class B network depends on the number of subnet bits.

- For a class C network with 5 subnet bits, the length of the prefix is obtained by adding the number of subnet bits to the default prefix length of a class C network, which is 24. Hence, the prefix length would be 24 + 5 = 29.
- For a class B network with 5 subnet bits, the default prefix length is 16. Adding the 5 subnet bits to the default prefix length of a class B network gives a prefix length of 16 + 5 = 21.

3. In a class C network with 5 subnet bits:

- The length of the suffix is calculated by subtracting the prefix length from the total number of bits in an IP address, which is 32. Hence, the suffix length would be 32 - 29 (prefix length) = 3.
- The block size defines the range of IP addresses in each subnet. It can be calculated using the formula 2^m, where m represents the number of host bits. In this case, since there are 3 suffix bits, the block size would be 2^3 = 8.
- The number of hosts in each subnet is obtained by subtracting 2 (representing the network and broadcast addresses) from the block size. In this case, the number of hosts per subnet would be 8 - 2 = 6.

So, in a class C network with 5 subnet bits, the length of the suffix is 3, the block size is 8, and there are 6 hosts per subnet.