18 March, 2023

IPv4 and IPv6: the two main internet protocols compared

Quick summary: IPv4 uses 32-bit addresses (about 4.3 billion addresses), while IPv6 uses 128-bit addresses with 1,028 times more space than IPv4. The core differences: IPv6 has mandatory built-in IPSec security, automatic address configuration, a simpler header and better compatibility with mobile networks. Use IPv4 when you need broad compatibility with legacy systems; choose IPv6 when deploying new infrastructure, needing high security or supporting large numbers of IoT devices.

Computers and devices can communicate over the internet thanks to the Internet Protocol (IP). There are now two versions of IP, IPv4 and IPv6. Both are used to label devices connected to a network, but they differ in certain respects. In this article you will learn the differences between the two internet protocols, IPv4 and IPv6, in detail.

What is the Internet Protocol?

What is the Internet Protocol?

The Internet Protocol (IP) is a set of rules responsible for routing data across networks and delivering it to the right destination.

When data is sent over a network, the computer splits it into small units called packets, which makes the transfer faster and more efficient.

Every packet carries both the source and the destination IP address. An IP address is a unique identifier assigned to every device connected to the internet or a computer network.

Just as you need a mailing address to send a letter, a device needs the correct IP address to send information across a network.

IP addresses are allocated by the Internet Assigned Numbers Authority (IANA), a US-based organization that manages the pool of IP addresses.

Note that an IP address is different from a domain name, which is a website address that is easier to remember than a numeric IP address.

What is IPv4?

IPv4 is the most widely used protocol for moving data. It was designed as a connectionless protocol, meaning it sends packets without making sure the receiving device is ready. The advantage is that IPv4 can send packets along different paths if a router fails or a link in the middle has trouble.

IPv4 follows a best-effort model, so it does not fully guarantee quality or successful delivery. It is very flexible and can be configured automatically or manually on many kinds of devices, depending on the type of network.

This version of IP uses 32-bit addresses, the format most people picture when they talk about IP addresses. An IPv4 address consists of four decimal numbers between 0 and 255, separated by three dots.

A 32-bit address space provides about 4.3 billion addresses. However, a large share of them is reserved for private networks and is not available for public use.

What is IPv6?

What is IPv6?

Internet Protocol version 6 (IPv6) is the newer version of IP, also known as Internet Protocol Next Generation (IPng).

It works like IPv4 and gives every device connected to the internet a unique address. Unlike IPv4, though, IPv6 uses 128-bit addresses instead of 32-bit ones.

The 128-bit address space provides roughly 340 undecillion addresses, many trillions of times more than IPv4.

An IPv6 address is made of letters and numbers, written as eight groups of four hexadecimal digits separated by colons.

Besides offering far more addresses, IPv6 has a simpler header than IPv4. Its header uses a new format designed to cut header overhead, so packets are processed more efficiently.

IPv6 also makes services such as Voice over IP (VoIP) and Quality of Service (QoS) easier to implement and deploy.

Why are two IP versions needed?

The maximum number of IPv4 addresses looks huge, but it is not enough for every device connected around the world, especially with the growing number of devices Internet of Things (IoT).

That is why IPv6 was created: to meet the demand for more internet addresses. Even so, as the world moves toward the new protocol, IPv4 is still needed.

Many large content providers, such as Facebook and Netflix, can now be reached over IPv6. But only about 19.1% of Alexa's top ten million websites are reachable over it, which shows there is still a long way to go before IPv6 is fully adopted. For website hosting services, customers using Hosting VPS usually get IPv6 support too, which improves security and helps limit DDoS attacks.

IPv4 and IPv6: comparing the two network protocols of the Internet

IPv4 and IPv6: comparing the two network protocols of the Internet

Now that we know the features of IPv4 and IPv6, the differences between the two can be summarized in the table below:

Difference IPv4 IPv6
Mobile device compatibility Addresses use dotted decimal notation, which is not well suited to mobile networks Addresses are separated by colons and written in hexadecimal, which makes them work better with mobile networks
Mapping Uses Address Resolution Protocol (ARP) to map to MAC addresses Uses Neighbor Discovery Protocol (NDP) to map to MAC addresses
DHCP When connecting to a network, clients must contact a DHCP server Clients receive an address without having to contact any other server
IP security Options Required
Optional fields Have No. Extension headers are used instead.
Local subnet group management Uses Internet Group Management Protocol (IGMP) Uses Multicast Listener Discovery (MLD)
Address configuration Done manually or through DHCP Uses stateless address autoconfiguration with ICMPv6 or DHCPv6.
DNS Record In the A record In the AAAA record
Packet Header The packet flow cannot be identified for QoS handling. Includes checksum options. The Flow Label field identifies the packet flow for QoS handling
Packet size Minimum of 576 bytes Minimum of 1,208 bytes
Security Relies mainly on the application layer Has its own security protocol called IPSec
SNMP Support Not supported
Address Features Network Address Translation (NAT) is used, allowing a single public address to stand in for thousands of non-routable addresses. Direct addressing is possible because of the vast address space.
Network configuration Configured manually or with DHCP Automatic configuration
Fragmentation Done during routing. Done by the sender
VLSM Support Not supported
Configuration To communicate with other systems, a new system must be configured Configuration options
Address types Multicast, Broadcast and Unicast Anycast, Unicast and Multicast
Checksum field Have No
Header length 20 40
Number of header fields 12 8
Address method Numeric addresses Alphanumeric addresses
Address size 32 bit 128 bit

Frequently asked questions

Have IPv4 addresses run out?

IPv4 addresses ran out around the 1990s. That is why the Internet Engineering Task Force proposed and began developing IPv6 in 1994.

Why not switch entirely to IPv6?

It can be done, but it will take a lot of time, probably decades. IPv4 is still very well optimized, and the cost of switching is high, among other factors, so a full move to IPv6 is unlikely within a few years.

What is ARP?

ARP (Address Resolution Protocol) is a protocol, or procedure, that links an Internet Protocol (IP) address, which can change, to a fixed physical machine address.

How can you protect your IP address?

You can protect your IP address in many ways. Among them, using VPN is the best-value and least costly option.

Mona hopes this article comparing IPv4 and IPv6 has helped you understand the differences between these internet protocols. If you have any questions, leave us a comment below.

FAQ

How do IPv4 and IPv6 differ?
IPv4 uses 32-bit addresses (4 groups of decimal numbers separated by dots, about 4.3 billion addresses at most), while IPv6 uses 128-bit addresses (8 groups of hexadecimal numbers separated by colons), offering 1,028 times more addresses than IPv4. IPv6 also has mandatory IPSec security, automatic configuration and a more compact header.
Why not switch entirely to IPv6?
Because IPv4 still works well, switching costs are high and many current systems still depend on IPv4. Only about 19.1% of the top ten million websites can be reached over IPv6, which shows a full transition will take decades.
About The MONA Group: Founded in 2016, with more than 200 staff, MONA has delivered 14,000+ projects with an 85% client retention rate. MONA provides website design, full-scope SEO, custom software and AI automation solutions for businesses. Consulting hotline: 1900 636 648. Explore MONA AI Agent suite and MONA SEO services.
MONA has a podcast: listen instead of readingEpisodes on AI, automation & SEO for Vietnamese businesses
Nghe ngay
About the author

CEO & Founder · The MONA

Founder of The MONA, who built a services company of 200+ staff with 14,000+ projects delivered. Khánh Hùng shares how he thinks about building systems that run themselves, automating a business, and the real lessons from delivering projects at MONA.

Views 1,5K
Rate this article 4,6/5 · 8 ratings

Professional website
design services

Own a website with a beautiful, 100% exclusive design and a lifetime warranty, with the ability
to expand features flexibly as your business grows, starting today!

Contact Mona

    MONA có riêng một Người "Bạn Thân" cho bạn - Người Account sẽ đồng hành, hỗ trợ, hướng dẫn, đặt đồ ăn cho bạn mãi mãi, từ đây về sau!
    MONA will never sell your information or send you spam
    Đội MONA tư vấn hệ thống quản lý giáo dục trực tuyến
    Hỏi đáp giáo dục 4.0
    Tạo cuộc hẹn miễn phí với MONA để giải đáp và tư vấn mọi thắc mắc về giải pháp số hoá ngành giáo dục
    Thời lượng cuộc hẹn
    45 Phút
    Ngày và giờ
    Thứ 2, ngày 25 tháng 12, 2023
    [9:30 - 10:15]

      Chọn ngày và giờ
      Khung giờ
      Back
      Hãy cho MONA biết bạn là ai
      0:00