Subnet mask defined which portion of the IP address belongs to the host and which portion belongs to the network. This is turn helps to tell whether a packet is going to the correct computer on the correct network.
Didn't find the answer you were looking for?