Given an IPv4 address and CIDR prefix length, calculate the subnet mask, network address, broadcast address, and number of usable hosts.
Formula
Network = IP AND Mask; Broadcast = Network OR (NOT Mask)