The technique used by the IP protocol to filter messages into a particular network segment. The subnet mask is a binary pattern that is stored in the client computer, server, or router and is matched up with the incoming IP address to determine whether to accept or reject the packet.