Nepedia
Back to Discover
Advanced Reader
💻

Private network

technology Maturity 7-9 Next article →

A private network is a computer network that uses a private address space of IP addresses. These addresses are used for local area networks, or LANs, in homes, offices, and large companies. Unlike public addresses, private IP addresses cannot be routed through the public Internet. This means packets sent to a private address will not travel across the global web. This system is vital for managing how devices connect to each other locally. It also helps conserve the limited number of available public addresses.

Most Internet service providers, or ISPs, give a single public IPv4 address to a residential customer. However, a single home might have many devices like smartphones and computers. To solve this, a network address translator, or NAT, gateway is used. The NAT gateway acts as a middleman for the local devices. It allows multiple hosts to share one single public Internet connection. This process provides connectivity to all devices within the local area network.

There are specific ranges of IPv4 addresses reserved for private use. The Internet Engineering Task Force (IETF) directed the Internet Assigned Numbers Authority (IANA) to set these aside. The first range is a 24-bit block from 10.0.0.0 to 10.255.255.255. This is a large single class A network. The second range is a 20-bit block from 172.16.0.0 to 172.31.255.255. This covers 16 contiguous class B networks. The third range is a 16-bit block from 192.168.0.0 to 192.168.255.255. This covers 256 contiguous class C networks.

In April 2012, IANA allocated a special block for carrier-grade NAT deployment. This block ranges from 100.64.0.0 to 100.127.255.255. This space is intended for service providers rather than standard private networks. The size of this block is very large. It is big enough to uniquely number all customer access devices in a large city like Tokyo. This helps large operators manage massive amounts of customer devices.

The next generation of networking, IPv6, also includes private address concepts. IANA reserves a block for unique local addresses, known as ULAs. These are unicast addresses that use a 40-bit random number in the routing prefix. This randomness helps prevent collisions if two private networks are connected. The IPv6 structure for these addresses follows the RFC 4193 standard. It includes a 48-bit prefix, a 16-bit global ID, and a 64-bit subnet ID.

Another type of private addressing is the link-local address. These addresses are limited to a single link, such as one wireless network or a switch. In IPv4, these help with zero-configuration networking when DHCP services are unavailable. In IPv6, the use of link-local addresses is mandatory for protocol functions. There is also a special case called the loopback interface. These are private because the packets never leave the host device itself. IPv4 reserves the entire class A block for these loopback addresses.

Private networks also offer a layer of security for internal systems. Because private addresses are not routable on the public Internet, it is difficult for external hosts to start a connection. However, misrouting can still happen. Sometimes packets from private spaces are accidentally sent to the public Internet. This can happen if DNS services are not configured correctly for internal use. To help, the AS112 project uses special black hole anycast nameservers. These servers return negative results to reduce the load on the Internet.

Managing these addresses becomes important when merging two different networks. In the IPv4 system, many networks use the same private ranges. If two companies merge, they might have duplicate addresses. This requires a time-consuming process of renumbering the devices. A NAT can also be placed between them to translate the addresses. IPv6 makes this much easier because the address space is so vast. With one trillion possible prefixes, the risk of an address conflict is virtually absent.

658 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

✨ What else?

Related topics you might enjoy

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.