A subnet mask defines how many of the first 8 bits of each IP address are actually used, and the remaining 24 bits are set to zero. Subnets are groups of computers that share common characteristics and usually include similar hardware and software. For instance, if you live in a small town, you probably want to join a group with other people who also live there. ipv4 vs ipv6