Back to the 2016 paper

Module 3: Network Layer & Routing

20167m

The address of a class B host is to be split into subnets with a 6-bit subnet number: What is the maximum number of subnets and the maximum number of hosts in each subnet? What is the number of networks allowed under Class B addresses?

Worked SolutionAI Assisted

Subnetting a Class B Address with a 6-bit Subnet Field

Given: the address of a Class B host is to be divided into subnets using a 6-bit subnet number.

A classful Class B address has 16 network bits and 16 host bits:

| network id : 16 bits | host id : 16 bits |
| network id : 16 bits | subnet : 6 bits | host : 16 - 6 = 10 bits |

1. Maximum number of subnets

Subnet bits are borrowed from the host id, so

Nsubnets=26=64 subnetsN_{subnets} = 2^{6} = \mathbf{64}\ \text{subnets}

(If the all-zeros subnet and the all-ones subnet are not usable, as in the old classful rules, only 64−2=6264 - 2 = 62 subnets are usable, but the maximum count is 26=642^6 = 64.)

2. Maximum number of hosts in each subnet

Host bits left after borrowing 6 bits:

h=16−6=10 bitsh = 16 - 6 = 10\ \text{bits}

Nhosts=210−2=1024−2=1022 hosts per subnetN_{hosts} = 2^{10} - 2 = 1024 - 2 = \mathbf{1022}\ \text{hosts per subnet}

The subtraction of 2 removes the subnet's network address (all host bits 0) and its broadcast address (all host bits 1).

3. Number of networks allowed under Class B addresses

Class B reserves a 2-bit class prefix (10), leaving a 14-bit network id:

Nnetworks=214=16384 Class B networksN_{networks} = 2^{14} = \mathbf{16384}\ \text{Class B networks}

Final answers: maximum subnets = 64, maximum hosts per subnet = 1022, number of Class B networks = 16384.

Similar questions

Computer NetworksAn ISP is granted a block of addresses starting with 120.60.4.0/22. The ISP wants to distribute these blocks to 100 organizations with each organization receiving just eight addresses. Design the sub-blocks and give the slash notation for each sub-block. Find out how many addresses are still available after these allocations.20217mComputer NetworksAn ISP is granted a block of addresses—starting with 190.100.0.0/16 (65,536 addresses). The ISP needs to distribute these addresses to three groups of customers as follows: a. The first group has 64 customers; each needs 256 addresses. b. The second group has 128 customers; each needs 128 addresses. c. The third group has 128 customers; each needs 64 addresses. Design the subblocks and find out how many addresses are still available after these allocations.20247mComputer NetworksAn ISP is granted the block 80.70.56.0/21. The ISP needs to allocate addresses for two organizations each with 500 addresses, two organizations each with 250 addresses, and three organizations each with 50 addresses. (a) Find the number and range of addresses in the ISP block. (b) Find the range of addresses for each organization and the range of unallocated addresses.202214mComputer NetworksAn ISP is granted the block 80.70.56.0/21. The ISP needs to allocate addresses for two organizations each with 500 addresses, two organizations each with 250 addresses, and three organizations each with 50 addresses. (a) Find the number and range of addresses in the ISP block.20237m
AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.