Subnet masks are typically expressed in dotted decimal notation, but they follow a binary pattern based on powers of 2. The valid subnet mask octets are 0, 128, 192, 224, 240, 248, 252, 254, and 255. Each of these numbers represents a specific number of contiguous 1s in binary, followed by 0s.