Skip to main content

Subnet 202.70.91.0/24 for 25, 16, 29, 11

Short answer

VLSM: allocate largest block first, block sizes /27 for A,B,C (32 addresses) and /28 for D (16 addresses). C: 202.70.91.0/27, A: 202.70.91.32/27, B: 202.70.91.64/27, D: 202.70.91.96/28. Total wastage 23 host addresses.

Suppose we have 4 departments A, B, C and D having 25 hosts, 16 hosts, 29 hosts and 11 hosts respectively. You are given a network 202.70.91.0/24. Perform the subnetting in such a way that the IP address wastage in each department is minimum and find out the subnet mask, network address, broadcast address and usable host range in each department.

Method (VLSM): each department needs hosts + 2 addresses (network address and broadcast address cannot be given to hosts). Choose the smallest block 2ⁿ ≥ hosts + 2, where n is the number of host bits and prefix = 32 − n. Allocate the largest block first, one after another without overlap, so every block starts on a boundary that is a multiple of its size and the waste is minimum.

Step 1: Block size for each department

DeptHostsHosts + 2Block 2ⁿnPrefixSubnet mask
A2527325/27255.255.255.224
B1618325/27255.255.255.224
C2931325/27255.255.255.224
D1113164/28255.255.255.240

Step 2: Allocation (largest first) from 202.70.91.0/24

DeptNetwork addressUsable host rangeBroadcast addressMaskAssigned / spare range
C202.70.91.0/27202.70.91.1 – 202.70.91.30202.70.91.31255.255.255.224202.70.91.1 – 202.70.91.29 used; spare 202.70.91.30
A202.70.91.32/27202.70.91.33 – 202.70.91.62202.70.91.63255.255.255.224202.70.91.33 – 202.70.91.57 used; spare 202.70.91.58 – 202.70.91.62
B202.70.91.64/27202.70.91.65 – 202.70.91.94202.70.91.95255.255.255.224202.70.91.65 – 202.70.91.80 used; spare 202.70.91.81 – 202.70.91.94
D202.70.91.96/28202.70.91.97 – 202.70.91.110202.70.91.111255.255.255.240202.70.91.97 – 202.70.91.107 used; spare 202.70.91.108 – 202.70.91.110

Step 3: Wastage

DeptUsable addressesNeededWasted
C30291
A30255
B301614
D14113
Total1048123

Addresses allocated: 112 of 256. The remaining 144 addresses (202.70.91.112/28, 202.70.91.128/25) stay free for future departments and are not counted as wastage.

Answer: A: 202.70.91.32/27; B: 202.70.91.64/27; C: 202.70.91.0/27; D: 202.70.91.96/28. Total wastage = 23 host addresses.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 4 questions →