jezahost
  • ipv6
  • networking
  • basics

IPv6 in plain language: what /44, /48 and /64 mean and why a server gets so many addresses

An IPv6 address is frightening the first time you see one: long, full of letters, with a number like /64 at the end. In fact its logic is no harder than a postal address. We explain it through a beginner's eyes.

The first time you open IPv6, you see something like this:

2001:db8:a1b2:c3::15/64

It is long, there are letters in it, two colons sit side by side, and at the end there is a slash and a number. Next to IPv4's 192.168.1.10 it looks like a foreign language. The first time I saw it, I too said "I will learn this later" and closed it.

In fact the only new thing here is the length of the address. The logic is the same, and it is very much like a postal address.

Why it was needed at all

IPv4 has about 4.3 billion addresses. In the 1980s that looked endless. Today everything from the phone in our pocket to the camera at home connects to the internet, and the addresses ran short long ago. That is why all the devices at home hide behind one address, and providers buy addresses from each other for money.

IPv6 was designed to remove this shortage for good. The number of its addresses is a 39-digit number. For comparison: even if we gave billions of addresses to every grain of sand on Earth, they would not run out.

How to read the address

An IPv6 address consists of eight groups, and the groups are separated by colons:

2001:0db8:a1b2:00c3:0000:0000:0000:0015

Because writing it like this every time is tiring, there are two shortening rules. The zeros at the start of a group are dropped (db8 instead of 0db8). And zero groups that follow one another are replaced, once only, with ::. As a result the same address looks like this:

2001:db8:a1b2:c3::15

So that strange :: simply means "there are a few zero groups here, I could not be bothered to write them".

As for the letters: the digits are in the hexadecimal system, which means that after counting from 0 to 9 it carries on with a, b, c, d, e, f. You do not have to know how to read them, copying and pasting is enough.

The number after the slash

Now the part that confuses people most: /64.

Think of a postal address: "Azerbaijan, Baku, Nizami Street, house 15". The first part (country, city, street) shows which way the letter will go, and the last part shows the exact door on the street.

An IPv6 address also consists of two parts: the network and the device inside that network. The number after the slash says where the border is. /64 means that the first half of the address is the "street" and the second half is the "house number".

As the number gets smaller, the block gets bigger. At first glance this looks backwards, but there is logic to it: the smaller the number, the shorter the "street name" and the more room is left for house numbers.

/64, /48 and /44 side by side

A /64 is one network. One street. Inside it there are 18 quintillion addresses (18 followed by eighteen zeros). This number is so big that it loses its meaning. What you need to remember is this: in IPv6 the smallest normal network is a /64, and splitting it into anything smaller is not accepted practice.

A /48 is one organisation's share. One city. It holds 65,536 separate /64 networks. This is what is usually given to one company or one site, so that it can set aside its own network for every department, every floor, every service.

A /44 is sixteen /48s. A region made up of several cities. Organisations with several sites or many customers get a block like this.

You can picture the order like this: a provider gets a big block from the regional registry, splits it into /48s, and cuts /64s out of each /48. The smallest block routed on the internet is usually a /48; most networks do not accept announcements smaller than that.

Why a whole /64 for one server

A beginner's first question is usually this: "I have one server, I need one address. Why is the network 18 quintillion addresses big? Isn't that a waste?"

Seen with IPv4 habits, it looks like a waste. There every address is valuable and networks are cut as narrow as possible. In IPv6, though, there is nothing to save, and the rules are built on that.

The first reason is technical. The mechanism meant for devices to pick their own address in IPv6 expects the second half of the address to be exactly 64 bits. If you cut the network narrower, this mechanism and a number of other things that rely on it do not work.

The second reason is simplicity. Every network is the same size, so the question "how many devices fit in this network" does not come up at all. In planning, only the question "how many networks do we need" is left.

The third reason is the future. Tomorrow the server may run containers, virtual machines, separate services, and each of them may need its own address. Setting the room aside in advance is easier than renumbering everything later.

What changes in practice

For everyday work it is enough to know three things.

An IPv6 address is direct. In IPv4 the server often sits behind a shared address and ports are forwarded. In IPv6 every server has its own public address, with no translation in between.

Being direct does not mean being open. Protection is still in the firewall: you decide which port is open to whom. The idea "if there is no NAT, I am not protected" is wrong, because NAT was never designed for protection.

And IPv6 does not replace IPv4, it works alongside it. The server is reachable on both addresses at the same time, and the visitor's device comes in on whichever one it can use.

How this looks with us

Let us show the theory on the example of our own network.

We first went out to the internet with a block of size /44. By the arithmetic above this means sixteen /48s: some for our own network, some for customers, the rest for the future.

Each customer's network is allocated a /56. This is a step between a /48 and a /64, and there are 256 /64s inside it. So all the networks a customer may need in the future are already in their name in advance.

The server, in turn, gets its address from a /64 of that network: one public address, with /64 at the end. The /64 here does not mean "we gave you 18 quintillion addresses", it means "your address is on this street". The server finds its neighbours and its way out by this number.

In short

An IPv6 address is long, but its structure is simple: the start shows the network, the end shows the device, and the number after the slash shows the border. A /64 is one network, a /48 is one organisation's share, and a /44 is the sum of several such shares. The abundance of addresses in one network is not waste, it is a convenience IPv6 chose on purpose.

At JezaHost every server gets a public IPv6 address free of charge: it is selected in the order or activated later from the portal. Your IPv4 address stays as it is.