What is a subnet mask in networking?
A subnet mask is used to divide an IP address into network and host portions, helping devices determine whether an IP address is local or requires routing.