Safekipedia

Private network

Adapted from Wikipedia · Discoverer experience

A private network is a computer network that uses special kinds of addresses called private IP addresses. These addresses are used for connecting devices together in places like homes, offices, and big companies. They help people share information and devices, like printers, without needing a unique address from the whole Internet for each one.

Most Internet providers give each home just one public address, but many homes have many devices such as computers and smartphones. To solve this, a special device called a network address translator helps share that one address among many devices. Private networks are also used in companies to keep their information safe, often using tools like a proxy to control who can go online and what they can do.

Anyone can use private addresses without asking permission, and they were created partly to save public addresses, which were running out. Because these addresses can't be used on the public Internet, they help keep networks safer by making it harder for people outside to connect to devices inside.

Private IPv4 addresses

The Internet Engineering Task Force (IETF) directed the Internet Assigned Numbers Authority (IANA) to reserve specific groups of IPv4 addresses just for private networks. These special addresses are used for connecting computers together in homes, offices, and businesses.

Often, these address ranges are split into smaller pieces called subnets to better organize the network.

RFC 1918 nameIP address rangeNumber of addressesLargest CIDR block (subnet mask)Host ID sizeMask bitsClassful description
24-bit block10.0.0.0 – 10.255.255.2551677721610.0.0.0/8 (255.0.0.0)24 bits8 bitssingle class A network
20-bit block172.16.0.0 – 172.31.255.2551048576172.16.0.0/12 (255.240.0.0)20 bits12 bits16 contiguous class B networks
16-bit block192.168.0.0 – 192.168.255.25565536192.168.0.0/16 (255.255.0.0)16 bits16 bits256 contiguous class C networks

Dedicated space for carrier-grade NAT deployment

Main article: IPv4 shared address space

In April 2012, a special group of internet addresses called 100.64.0.0/10 was set aside for use in certain types of internet connections managed by big companies. These addresses are only for use by internet providers and should not be used by regular home or office networks. The block was made large enough to give unique addresses to all the devices used by a single internet provider in a big city like Tokyo.

IP address rangeNumber of addressesLargest CIDR block (subnet mask)Host ID sizeMask bits
100.64.0.0 – 100.127.255.2554194304100.64.0.0/10 (255.192.0.0)22 bits10 bits

Private IPv6 addresses

Main article: Unique local address

In the next version of the Internet Protocol, called IPv6, special groups of addresses are set aside for private networks. These addresses help connect local networks without interfering with each other. One group of addresses, called unique local addresses, includes a random number to make sure networks don’t mix up their signals when connected.

The most common group of these addresses starts with fd00::/8 and allows users to create many smaller network sections as needed. Earlier, another group of addresses was suggested, but it was stopped because it had problems.

RFC 4193 BlockPrefix/LGlobal ID (random)Subnet IDNumber of addresses in subnet
48 bits16 bits64 bits
fd00::/8fdxx:xxxx:xxxxyyyy18446744073709551616
Prefix/LGlobal ID (random)Subnet IDInterface IDAddressSubnet
fdxx:xxxx:xxxxyyyyzzzz:zzzz:zzzz:zzzzfdxx:xxxx:xxxx:yyyy:zzzz:zzzz:zzzz:zzzzfdxx:xxxx:xxxx:yyyy::/64
fd12:3456:789a00010000:0000:0000:0001fd12:3456:789a:1::1fd12:3456:789a:1::/64

Link-local addresses

Main article: Link-local address

Link-local addresses are a special kind of private network address. They only work within a small area, like all the computers connected to one switch or one wireless network. Computers on the other side of a network router cannot see these addresses.

In older technology called IPv4, addresses from 169.254.0.0/16 can be used when a network doesn’t have a special setup. In newer technology called IPv6, addresses from fe80::/10 are always used for this purpose. There is also a special address called the loopback interface that only works on one computer. In IPv4 this is 127.0.0.0/8 and in IPv6 it is ::1.

Misrouting

Sometimes, data from private networks can accidentally end up on the Internet. This happens because these networks don't always set up their address systems correctly, leading to extra traffic going to the Internet's main address servers. The AS112 project helps by providing special servers that tell the network these addresses don't exist, stopping the extra traffic.

Most company routers are set up to block this wrong traffic from entering, whether it happens by mistake or on purpose. Sometimes, Internet service providers also block this traffic from their customers, which helps keep the Internet running smoothly.

Merging private networks

When private IPv4 networks use the same address ranges, it can cause problems when combining them, as some addresses might be used by more than one device. This means the networks need to be reorganized, which can take time, or a special device called a network address translator may be needed to help the networks work together.

IPv6 solves this problem by providing unique local addresses, which give each organization a very large space of addresses to use. This makes it almost impossible for two different networks to accidentally use the same addresses when they are connected, so merging them is much easier.

RFC documents

  • RFCAddress Allocation for Private Internets
  • RFCObservations on the use of Components of the Class A Address Space within the Internet
  • RFCThe Internet Number Registry System
  • RFCIPv4 Address Behaviour Today
  • RFCIP Network Address Translator (NAT) Terminology and Considerations
  • RFCTraditional IP Network Address Translator (Traditional NAT)
  • RFCSpecial-Use IPv4 Addresses (superseded)
  • RFCDeprecating Site Local Addresses
  • RFCDynamic Configuration of IPv4 Link-Local Addresses
  • RFCUnique Local IPv6 Unicast Addresses
  • RFCSpecial-Use IPv4 Addresses (superseded)
  • RFCReserved IPv4 Prefix for Shared Address Space
  • RFCSpecial-Purpose IP Address Registries

Related articles

This article is a child-friendly adaptation of the Wikipedia article on Private network, available under CC BY-SA 4.0.