Understanding Subnet Masking

Defining Subnet Masking

A subnet mask is a 32-bit number that is combined with an IP address to mask specific address bits. Hosts use the subnet masks to determine the segment of an IP address that is the network address. The Class A networks, Class B networks, and Class C networks utilize default subnet masks which encompass the first 8, 16, and 24 bits. The default subnet mask values work fine for networks that do not need to be subnetted. Fairly large networks are divided into smaller subnets to reduce network traffic and to simply management.

An IP address consists of the following portions:

When you divide the network into parts, you are essentially taking bits from the host ID portion of the IP address because this is the variable portion of the IP address. The concepts behind subnets and subnet masking pertain to the bitwise ANDing binding process. The bitwise ANDing binding process is derived from a form of mathematics known as the Boolean algebra. The process works by performing the logical AND function on each bit.

The way the AND bits can be portrayed are:

When both inputs are 1, then the logical AND function results in a 1. If this is not the case, then the AND function results in 0.

All class based networks must have a subnet mask. The default subnet mask is based on the IP address classes listed below:

The default subnet masks for the IP address classes are:

The subnet mask that is associated with the particular IP address class has to be used if the network is not subnetted. However, most networks are subnetted. Custom subnet masks are used when the network is subnetted. Custom subnet masks identify the bits utilized for a network address compared to the bits used for a host address.

In order to determine the correct custom subnet mask for a network, you have to determine a number of factors, including:



Top 5 Free Networking Tools

Bookmark Understanding Subnet Masking

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.