Subnetting in Networking
Subnetting in Networking
In networking,
The process of dividing a single network into multiple sub networks is called as subnetting.
The sub networks so created are called as subnets.
Example-
Following diagram shows the subnetting of a big single network into 4 smaller subnets-
Advantages-
Subnet ID-
Each subnet has its unique network address known as its Subnet ID.
The subnet ID is created by borrowing some bits from the Host ID part of the IP Address.
The number of bits borrowed depends on the number of subnets created.
Types of Subnetting-
Fixed length subnetting also called as classful subnetting divides the network into subnets where-
Variable length subnetting also called as classless subnetting divides the network into subnets
where-
Subnetting Examples-
Example-01:
Consider-
For creating two subnets and to represent their subnet IDs, we require 1 bit.
So,
200.1.2.00000000 = 200.1.2.0
200.1.2.10000000 = 200.1.2.128
Example-02:
Consider-
For creating four subnets and to represent their subnet IDs, we require 2 bits.
So,
200.1.2.00000000 = 200.1.2.0
200.1.2.01000000 = 200.1.2.64
200.1.2.10000000 = 200.1.2.128
200.1.2.11000000 = 200.1.2.192
Example-03:
Consider-
The subnetting will be performed exactly in the same way as performed in Example-01.
For creating two subnets and to represent their subnet IDs, we require 1 bit.
So,
Finally, the given single network is divided into 3 subnets having IP Address-
200.1.2.0
200.1.2.128
200.1.2.192
Disadvantages of Subnetting-
Point-01:
During subnetting,
Point-02:
After subnetting, the communication process becomes complex involving the following 4 steps-
Problem-01:
Suppose a network with IP Address 192.16.0.0. is divided into 2 subnets, find number of hosts per
subnet.
1. Subnet Address
2. First Host ID
3. Last Host ID
4. Broadcast Address
Solution-
Problem-02:
Solution-
Problem-03:
In a class B, network on the internet has a subnet mask of 255.255.240.0. What is the maximum
number of hosts per subnet?
1. 4096
2. 4094
3. 4092
4. 4090
Solution-
Number of bits reserved for network ID in the given subnet mask = 20.
So, Number of bits reserved for Host ID = 32 – 20 = 12 bits.
Thus, Number of hosts per subnet = 212 – 2 = 4094.
In class B, 16 bits are reserved for the network.
So, Number of bits reserved for subnet ID = 20 – 16 = 4 bits.
Number of subnets possible = 24 = 16.
Thus, Option (B) is correct.