IPv4 is the fourth version of the Internet Protocol (IP) and the first widely deployed. It uses 32-bit addresses and supports three addressing modes: unicast, broadcast, and multicast. IPv4 addresses are hierarchical and contain network and host identification information. Subnet masks are used to distinguish the network and host portions of an IPv4 address. There are five classes of IPv4 addresses - A, B, C, D and E - designed for different sized networks.