Public and Private IPv4 Addresses (8.5)–Cisco The Internet Protocol
In an effort to conserve the limited number of IPv4 addresses, in the mid-1990s the concept of public and private IPv4 addresses was introduced. The use of both types of IPv4 addresses has extended the lifespan of IPv4 for many years.
Private IPv4 Addressing (8.5.1)
Public IPv4 addresses are globally routed between Internet service provider (ISP) routers. However, not all available IPv4 addresses can be used on the Internet. Most organizations use blocks of addresses called private addresses to assign IPv4 addresses to internal hosts.
In the mid-1990s, private IPv4 addresses were introduced because of the depletion of the IPv4 address space. Private IPv4 addresses are not unique and can be used by an internal network.
Specifically, the private address blocks are
- 10.0.0.0 /8 or 10.0.0.0 to 10.255.255.255
- 172.16.0.0 /12 or 172.16.0.0 to 172.31.255.255
- 192.168.0.0 /16 or 192.168.0.0 to 192.168.255.255
It is important to know that addresses within these address blocks are not allowed on the Internet and must be filtered (discarded) by Internet routers. For example, in Figure 8-8, users in networks 1, 2, and 3 are sending packets to remote destinations. The ISP routers would see that the source IPv4 addresses in the packets are from private addresses and would discard the packets.
Figure 8-8 Private IPv4 Address Translated to Public IPv4 Addresses
Note
Private addresses are defined in RFC 1918.
Most organizations use private IPv4 addresses for their internal hosts. However, these RFC 1918 addresses are not routable on the Internet and must be translated to a public IPv4 address. Network Address Translation (NAT) is used to translate between private IPv4 and public IPv4 addresses. This is usually done on the router that connects the internal network to the ISP‛s network.
Home routers provide the same capability. For instance, most home routers assign IPv4 addresses to their wired and wireless hosts from the private address of 192.168.1.0 /24. The home router interface that connects to the ISP network is assigned a public IPv4 address.
Assignment of IPv4 Addresses (8.5.2)
For a company or organization to support network hosts, such as web servers that are accessible from the Internet, that organization must have a block of public addresses assigned. Remember that public addresses must be unique, and use of these public addresses is regulated and allocated to each organization separately. This is true for IPv4 and IPv6 addresses.
Both IPv4 and IPv6 addresses are managed by the Internet Assigned Numbers Authority (IANA) (www.iana.org). The IANA manages and allocates blocks of IP addresses to the Regional Internet Registries (RIRs), as shown in Figure 8-9.
Figure 8-9 Regional Internet Registries
- AfriNIC (African Network Information Centre)—Africa Region
- APNIC (Asia Pacific Network Information Centre)—Asia/Pacific Region
- ARIN (American Registry for Internet Numbers)—North America Region
- LACNIC (Regional Latin-American and Caribbean IP Address Registry)—Latin America and some Caribbean Islands
- RIPE NCC (Réseaux IP Européens Network Coordination Centre)—Europe, the Middle East, and Central Asia
RIRs are responsible for allocating IP addresses to ISPs, which, in turn, provide IPv4 address blocks to organizations and smaller ISPs. Organizations can get their addresses directly from an RIR subject to the policies of that RIR.
Unicast, Broadcast, and Multicast Addresses (8.6)
The three types of destination IPv4 addresses are unicast, broadcast, and multicast. The type of address determines if the packet is intended for a single device or multiple devices.
Video—IPv4 Unicast (8.6.1)
Refer to the online course to view this video.
Unicast Transmission (8.6.2)
Unicast communication is used for normal host-to-host communication in both a client/server and a peer-to-peer network. Unicast packets use the address of the destination device as the destination address and can be routed through a network, as shown in Figure 8-10.
Figure 8-10 Unicast Transmission
In an IPv4 network, the unicast address applied to an end device is referred to as the host address. For unicast communication, the addresses assigned to the two end devices are used as the source and destination IPv4 addresses. During the encapsulation process, the source host uses its IPv4 address as the source address and the IPv4 address of the destination host as the destination address. Regardless of whether the destination specified a packet as unicast, broadcast, or multicast, the source address of any packet is always the unicast address of the originating host.
Note
In this course, all communication between devices is unicast unless otherwise noted.
IPv4 unicast host addresses are in the address range of 0.0.0.0 to 223.255.255.255. However, within this range are many addresses that are reserved for special purposes.
Video—IPv4 Broadcast (8.6.3)
Refer to the online course to view this video.