2081 12

CSC263 · 2081 · 5 marks

Assume a class C network and divide it into three subnets. What is the value of the new subnet?

Assume a class C network and divide it into three subnets. What is the value of the new subnet? [5]

Computer NetworksChapter 4: Network LayerIPv4 Addressing & Sub-nettingNumerical: subnetting class C network

Subnetting a Class C Network into Three Subnets

Given

  • Network Class: Class C
  • Default Subnet Mask: 255.255.255.0 (/24)
  • Network bits: 24, Host bits: 8
  • Required subnets: 3
  • Example network (for illustration, standard assumption): 192.168.1.0

No specific IP address is given in the question, so a representative network 192.168.1.0 is used only for demonstration.


Solution

Step 1: Bits to Borrow

Number of subnets = $2^n$, where $n$ = borrowed bits.

We need at least 3 subnets:

Borrowed bits $n$Subnets $2^n$Enough for 3?
12No
24Yes

So borrow $n = 2$ bits.

Step 2: New Subnet Mask

Remaining host bits = $8 - 2 = 6$.

$$ \text{New mask} = 11111111.11111111.11111111.\underline{11}000000 $$

$$ \boxed{255.255.255.192 ;(/26)} $$

Step 3: New Subnet Value (Block Size / Increment)

$$ \text{Block size} = 2^{\text{remaining host bits}} = 2^{6} = 64 $$

Alternatively, block size = $256 - 192 = 64$.

$$ \boxed{\text{Subnet value} = 64} $$

Step 4: Resulting Subnets (using 192.168.1.0)

SubnetNetworkHost RangeBroadcast
0192.168.1.0.1 - .62192.168.1.63
1192.168.1.64.65 - .126192.168.1.127
2192.168.1.128.129 - .190192.168.1.191
3192.168.1.192.193 - .254192.168.1.255

Three of these four subnets satisfy the requirement.

Step 5: Usable Hosts per Subnet

$$ 2^{6} - 2 = 64 - 2 = 62 \text{ hosts} $$


Summary

ParameterValue
Bits borrowed2
Subnets created4 (3 required)
New Subnet Mask255.255.255.192
New Subnet Value (block size)64
Usable hosts/subnet62

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.