A 32-bit number that divides an IP address into network and host portions.
The subnet mask uses binary 1s to represent the network portion and 0s for the host portion. When applied to an IP address using a bitwise AND operation, it reveals the network address. Common masks include 255.255.255.0 (/24) for small networks and 255.255.0.0 (/16) for larger ones. Understanding subnet masks is crucial for proper network configuration and routing.