A subnet is a logical slice of an IP network. The CIDR notation (Classless Inter-Domain Routing, e.g. 10.0.0.0/24) expresses how many leading bits belong to the network — the remaining bits identify hosts inside that network.
/24 → 255.255.255.0).Why does a /31 have only 2 hosts and no broadcast? RFC 3021 lets point-to-point links use both IPs as hosts; the network/broadcast convention is skipped for link efficiency.
Is there anything smaller than /32? No. A /32 is a single IP — useful for loopbacks and host routes.
How do I pick a prefix size? Count the hosts you need, add headroom (30–50%), and take the next power of two: 10 hosts → /28 (14 usable), 50 hosts → /26 (62 usable).