concept
IPv4 addresses and prefixes
IPv4 uses four octets, 32 bits total. A CIDR prefix length specifies contiguous leading network bits. AND the address with its mask to find the block start; the remaining bits give the host offset. Historical address classes do not determine modern subnet sizes.
Formal Syntax & Structure
networking syntaxnetworking
IPv4 addresses and prefixes