What Is Subnet Mask?

A subnet mask (or a dotted-decimal mask) is a 32-bit number used to identify the network part (or prefix) of an IPv4 address.

For example, IP and subnet mask is equivalent to (indicating the first 24 bits are 1). The subnet mask means the first 24 bits are for network identification.