What is Subnetting | Subnet Mask

what is subnetting

Read Time2 Minute, 6 Second

As you have seen the IP address classes for the classes, we will see what is subnetting in this article. First of all we will see what is subnet mask.

What is Subnetting | Subnet Mask

The IP address consists of two parts. Host ID and Network ID. Depending upon IP address classes, network ID and host ID can be determined. This is because of the default subnet masks for the classes.

Let us see an example. Consider an IP address now, in this address, we can see is network id and is host id Computer determines this by using the AND operation of IP address and subnet mask (in their binary format i.e. 0/1).

For classes, the default subnet masks are:

  • Class A:
  • Class B:
  • Class C:

Now we’ll see subnetting.

What Is Subnetting

Suppose we want to make different units inside the organization. That means we want to assign PCs 1-10 for one department and 11- 20 for others. Then we can use subnetting as it will reduce unnecessary traffic.

The device can broadcast to all the devices if the destination is unknown. And if we divide the network then it will surely reduce the useless traffic. Also, for security it will help as not every device will communicate with others.

Subnetting is basically diving a network into smaller networks. Let us see how to create subnets.

Firstly, remember that 2^x=N, N=number of subnets. x is the number of host bit to borrow to make the subnet.

And after borrowing the host bits, the number of hosts can be calculated as 2^remaining host bits -2 with those 2 being broadcast id and network id.

Consider the network We will divide this into two subnets.

So, convert the address into binary. (as this is in class A, the three octets after the first are host part)

so, 0000 1100.0000 0000. 0000 0000. 0000 0000 –

Now we will borrow one host bit.

0000 1100.1000 0000. 0000 0000. 0000 0000 –

So the subnets are : and

First IP address of each subnet is their network ID and last is broadcast ID. All others can be assigned as host IP addresses.

More in Networking

Subscribe to our YouTube channel to learn more.