<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kwinten Delrue</title>
    <description>The latest articles on DEV Community by Kwinten Delrue (@kwinnieprince).</description>
    <link>https://dev.to/kwinnieprince</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F175619%2F866a0619-1098-42f2-8fe7-c43c413d7385.png</url>
      <title>DEV Community: Kwinten Delrue</title>
      <link>https://dev.to/kwinnieprince</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kwinnieprince"/>
    <language>en</language>
    <item>
      <title>The state of IPv6 in 2020</title>
      <dc:creator>Kwinten Delrue</dc:creator>
      <pubDate>Thu, 28 May 2020 07:20:52 +0000</pubDate>
      <link>https://dev.to/kwinnieprince/the-state-of-ipv6-in-2020-3p8k</link>
      <guid>https://dev.to/kwinnieprince/the-state-of-ipv6-in-2020-3p8k</guid>
      <description>&lt;h1&gt;
  
  
  IPv4 in numbers
&lt;/h1&gt;

&lt;p&gt;In November 2019, RIPE allocated the last addresses in their available pool. Recently RIPE recovered some ip addresses from the IANA pool. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh2fpg3gas6gbpzd3umom.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh2fpg3gas6gbpzd3umom.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
As you can see in the image, the address-space is exhausted quite some time now. The official date of exhaustion was &lt;em&gt;31 January 2011&lt;/em&gt;, when the last reserved /8 block was assigned and IPv6 was proposed in &lt;strong&gt;December of 1993&lt;/strong&gt;. How does it come that we are still relying this hard on IPv4 up until today?&lt;br&gt;
We used a lot of methods to increase the life-span of IPv4. We added NAT to isolate all the devices and only need one ip address for a whole network. We looked into NAT64, which uses IPv6 to transport IPv4 packages. ISP's sometimes use ISP-level NAT. This means that there are less IP addresses needed to fulfil the needs of public IP addresses.&lt;/p&gt;

&lt;h1&gt;
  
  
  What about IPv6 then?
&lt;/h1&gt;

&lt;p&gt;Google has a &lt;a href="https://www.google.com/intl/en/ipv6/statistics.html#tab=per-country-ipv6-adoption" rel="noopener noreferrer"&gt;nice tool&lt;/a&gt; where you can see the adoption of IPv6. The data is from everyone that use Google services (which is frankly almost everyone).&lt;br&gt;
In this first chart, you clearly see that there is IPv6 adoption. It would be a shame that since 1993, no one used IPv6 yet. Despite being around for so long, &lt;em&gt;only 30%&lt;/em&gt; of the world's population uses IPv6. &lt;br&gt;
&lt;a href="https://www.vyncke.org/ipv6status/" rel="noopener noreferrer"&gt;Eric Vyncke's has a website with numbers for every country&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fj6yhd9uzkh478ude4gu4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fj6yhd9uzkh478ude4gu4.png" alt="IPv6 adoption rate"&gt;&lt;/a&gt;&lt;br&gt;
This other image shows a card with the adoption of IPv6.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs8eq9l3b2qvw26n5oar2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs8eq9l3b2qvw26n5oar2.png" alt="IPv6 adoption rate card"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Why is adoption so slow?
&lt;/h1&gt;

&lt;p&gt;ISP's, mobile providers and cloud-providers are largely responsible for adoption of IPv6. This new version of the IP standard is not compatible with IPv4. Because of this reason, if a service has only an IPv4 networking stack, persons with IPv6 only cannot access the service and vice versa. Most of the time, a service will have an IPv4 and v6 stack to make sure that everyone can access the service, except of course if there are no more IPv4 addresses. &lt;br&gt;
The problem in having a dual stack network is that it &lt;strong&gt;will&lt;/strong&gt; inevitably slow down the adoption of IPv6, since everyone can still use IPv4 for almost everything.&lt;br&gt;
There are projects in place to send IPv4 network traffic over IPv6, but we still have a long way to go.&lt;br&gt;
My DNS-server keeps track of what kind of requests I do at home, as you can see only 50% of requests is IPv6. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvk32xitegocwibava42z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvk32xitegocwibava42z.png" alt="IPv6 at my home"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  There are other reasons we are hesitant
&lt;/h2&gt;

&lt;h3&gt;
  
  
  There is no NAT
&lt;/h3&gt;

&lt;p&gt;There is no NAT for IPv6. Many people are thinking that this is a big security risk. With IPv4, you don't have a public identifiable IP-address inside your network. The edge-router replaces the internal network address with a public address and keeps track of the translations.&lt;br&gt;
With IPv4 and NAT, every device in your network is isolated from the internet. Everything in your network needs to pass trough your main router and there is just one (or more, depends on the size of the network) IP-address for one network. There a network administrator can block outgoing traffic to malicious IP-addresses and can do packet inspection and other security-related stuff, if your router/ firewall supports this.&lt;br&gt;
With IPv6, your device itself gets a public routable address. This address is unique per device in the network. Every packet still needs to pass the main edge router at your network. It just does not handle NAT anymore. It is still possible to block incoming traffic to the network as well as do packet inspection on outgoing traffic.&lt;/p&gt;

&lt;h1&gt;
  
  
  The Human element
&lt;/h1&gt;

&lt;p&gt;We all know, we are humans and we don't like change.&lt;br&gt;
Why would we even try to roll out IPv6 further than now, we can access every website since we have a double stack. If a service only uses IPv4, we just use the IPv4 stack and for a service with IPv6, we use the IPv6 stack, it's that simple right? Well of course not! We have so many 'hacks' in place to make IPv4 work with so many devices, this method of working is unbearable.&lt;/p&gt;

&lt;h1&gt;
  
  
  Why we need to switch
&lt;/h1&gt;

&lt;p&gt;there are in total 4,294,967,296 IPv4 addresses (32 bits), including reserved addresses. The total of public IP-addresses is a bit lower: 3,706,452,992. We are with 7.8 billion people on this planet. When everyone has 2 devices, we would need 15.6 billion IP addresses if we want to give every device a unique address, we are short a good 3 billion addresses. IPv6 is a 128 bit address, so doing the math 2^128 gives us a gigantic number of addresses. These are not all valid addresses and there are are reserved blocks for internal communication, but with this large address-space there are enough addresses to give every device a unique address and have addresses left over to use for future use.&lt;br&gt;
In short: We cannot continue to find 'hacks' to keep IPv4 alive. There are just too little addresses for everyone.&lt;/p&gt;

&lt;h1&gt;
  
  
  I am stoked, tell me more fancy IPv6 stuff!
&lt;/h1&gt;

&lt;h2&gt;
  
  
  DCHP what?
&lt;/h2&gt;

&lt;p&gt;IPv6 can function without a DHCP server, a device gets its addresses from the router where SLAAC is enabled. With SLAAC, the router will propagate the subnet that a device is in using router advertisements and this device will generate the full address and checks if there is no IP conflict. For privacy reasons (to make it harder to track phones and laptops) the address will change roughly every day and will be generated randomly. The device will stop responding to the old address after a week. The device will also get a DNS server advertised with router advertisements to resolve names in IP addresses (try to remember an IPv6 address).&lt;br&gt;
It is still possible to use a DHCPv6 server if you really want to, it is supported with IPv6.&lt;/p&gt;

&lt;h2&gt;
  
  
  IPsec
&lt;/h2&gt;

&lt;p&gt;IPsec was originally developed for IPv6 but was re-engineered for IPv4 where it found a widespread deployment. The Authentication Header (AH) and Encapsulating Security Payload header (ESP) are implemented as IPv6 extensions headers&lt;/p&gt;

&lt;h2&gt;
  
  
  IPv6 header is easier
&lt;/h2&gt;

&lt;p&gt;Many rarely used fields have been moved to optional header extensions. Because of this, routers can simplify the the forwarding process. &lt;br&gt;
I hear you thinking, the forwarding process is easier but how can this be faster? The packet is at least double the size then IPv4?!&lt;br&gt;
Well, the IPv6 header does not include a checksum which needs to be recalculated every time the TTl is reduced by 1. IPv6 relies more on the end-to-end internet design (there is no NAT, so more end-to-end, yay!). Here the sender and receiver will do the most processing with error-detection in higher-layer protocols, like TCP. This means that there is less processing time wasted when the packet is travelling.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fqwt3bvqme3j19nmodok6.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fqwt3bvqme3j19nmodok6.gif" alt="IPv6 header"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Multicast
&lt;/h2&gt;

&lt;p&gt;The transmission of a packet to multiple destinations in a single send-operation is a part of the IPv6 specification. In IPv4 this is an optional feature which is commonly implemented.&lt;br&gt;
IPv6 does &lt;strong&gt;not&lt;/strong&gt; implement a traditional IP broadcast. To achieve the same goal, IPv6 sends a packet to the &lt;em&gt;link-local all-nodes multicast group&lt;/em&gt;: &lt;code&gt;ff02::1&lt;/code&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Different kinds of addresses
&lt;/h1&gt;

&lt;p&gt;To conclude, there are 3 different kinds of addresses. A device can have more than one IPv6 address unlike IPv4 whom can just have one IP address.&lt;/p&gt;

&lt;h2&gt;
  
  
  Global Unicast
&lt;/h2&gt;

&lt;p&gt;The first address I want to cover is the Global Unicast address. This address is the equivalent to a public IPv4 address. These addresses are globally identifiable and uniquely addressable.&lt;br&gt;
This address exists out of 3 parts. The Global routing prefix exists out of the 48 most significant bits. The three most significant bits out of this prefix are always &lt;code&gt;001&lt;/code&gt;. The subnet ID exists out of 16 bits and indicates the subnet. The last 64 bits are generated by the device itself trough SLAAC.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjgeend37mafvr025qkz5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjgeend37mafvr025qkz5.jpg" alt="Global Unicast address"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Link-Local address
&lt;/h2&gt;

&lt;p&gt;These addresses are used for communication on a link only. These addresses are not routable.&lt;br&gt;
The address-block for these addresses is: &lt;code&gt;fe80::/10&lt;/code&gt;&lt;br&gt;
The last 64 bits is reserved for the interface ID, the device will also generate these 64 bits itself and check if there are no conflicts&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frbmozkjk1qgqzc1h2ffe.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frbmozkjk1qgqzc1h2ffe.jpeg" alt="Link Local address"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Unique-Local address
&lt;/h2&gt;

&lt;p&gt;This IPv6 address is globally unique but is only used in internal communication. The address-block for this type of addresses is: &lt;code&gt;FC00::/7&lt;/code&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F34mosrjb8gs20z5ffn2d.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F34mosrjb8gs20z5ffn2d.jpg" alt="Unique-Local address"&gt;&lt;/a&gt;&lt;br&gt;
This last picture gives a nice overview how the IPv6 address-space works.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzcjdkrjm4wymys3gznpp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzcjdkrjm4wymys3gznpp.jpg" alt="address-space"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  What can I, myself do?
&lt;/h1&gt;

&lt;p&gt;Check if you have IPv6 from your ISP, you can check this with going to &lt;a href="https://ipv6.google.com" rel="noopener noreferrer"&gt;https://ipv6.google.com&lt;/a&gt;. This is just Google but it only works with IPv6. If you don't have IPv6, ask your ISP about it, play with it and learn how it works!&lt;br&gt;
If you are managing a business/ service, see what you can do to implement IPv6 in the workflow!&lt;/p&gt;

&lt;p&gt;I hope you had a good read about the state of IPv6 in 2020.&lt;br&gt;
This was my first post ever so comment what I can improve!&lt;/p&gt;

</description>
      <category>ipv6</category>
      <category>datacenter</category>
      <category>infrastructure</category>
      <category>networking</category>
    </item>
  </channel>
</rss>
