Languages
[Edit]
EN

Maximal IPv6 address length

6 points
Created by:
Nicola-Melendez
375

In this article, we're going to have a look at what is the maximal length for IP v6 addresses.

Quick overview:

Maximal IP v6 length is 45 characters.

What requires in computer memory 128 bits.

 

Simple preview:

IPv6 length visualization.
IPv6 length visualization.

Explanation

The most commonly known IP address format is:

2001:0db8:0000:0000:0000:ff00:0042:8329

8 * 4 + 7 = 39 characters (hexadecimal numbers separated with : character)

8 * 16 bits = 128 bits (: characters are omitted in this approach)

 

That can be written in shorter form too:

2001:db8:0:0:0:ff00:42:8329 
// or 
2001:db8::ff00:42:8329

 

In practice there is available IPv4-mapped IPv6 addresses format too:

ffff:ffff:ffff:ffff:ffff:ffff:192.168.100.100

6 * 4 + 6 + 4 * 3 + 3 = 45 characters

6 * 16 bits + 4 * 8 bits = 128 bits (: and . characters are omitted in this approach)

 

References

  1. IPv4-mapped IPv6 addresses - Wikipedia

Alternative titles

  1. The correct maximum IPv6 string length
  2. IPv6 max length / size
  3. Maximal IP v6 address length
  4. The correct maximum IP v6 string length
  5. IP v6 max length / size
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join