IP Location.net

IPv4 vs. IPv6

Compare the older IPv4 format with IPv6 and understand why the internet needs both.


IPv4 (Internet Protocol version 4)

IPv4 is the most widely used IP addressing scheme. It consists of 32-bit addresses, expressed as four decimal numbers separated by dots (e.g., 192.168.1.1).

IPv4 Address Format:

IPv4 Address Format is a 32-bit Address that comprises binary digits separated by a dot (.).



Key Features:

    • Supports approximately 4.3 billion unique addresses.
    • Addresses are running out due to the rapid growth of internet-connected devices.
    • Example: 192.168.1.1

    Limitations:

      • Limited number of unique addresses.
      • Requires workarounds like NAT to accommodate more devices.


      IPv6 (Internet Protocol version 6)

      IPv6 was developed to address the limitations of IPv4 and the exhaustion of available IPv4 addresses. It uses 128-bit addresses, expressed in hexadecimal format and separated by colons (e.g., 2001:0db8:85a3:0000:0000:8a2e:0370:7334).

      IPv6 Address Format:

      IPv6 Address Format is a 128-bit IP Address, which is written in a group of 8 hexadecimal numbers separated by colon (:).


      Key Features:

        • Provides an almost unlimited number of unique addresses.
        • Built-in security features like IPsec (Internet Protocol Security).
        • Simplifies routing by eliminating the need for NAT in most cases.

        Advantages:

          • Scalability for future growth of internet-connected devices.
          • Improved support for mobile networks and IoT devices.

          Transition Challenges:

            • Requires compatibility updates for older systems and devices.
            • Dual-stack implementations (supporting both IPv4 and IPv6) are necessary during the transition period.


            Difference Between IPv4 and IPv6

            Feature IPv4 IPv6
            Address Size 32-bit address (4.29×10⁹ addresses) 128-bit address (3.4×10³⁸ addresses)
            Address Format Decimal (e.g., 192.168.0.1) Hexadecimal (e.g., 2001:0000:3238:DFE1:0063:0000:0000:FEFB)
            Configuration Manual or DHCP Auto-configuration, Stateless Address Auto-configuration
            End-to-End Connection Integrity Unachievable Achievable
            Fragmentation Performed by Sender and forwarding routers Only performed by the sender
            Flow Identification Not available Available (uses Flow Label field)
            Checksum Available Not available
            Broadcast Support Broadcast message transmission Multicast and Anycast message transmission
            Security Features Depends on the application (optional IPsec) Built-in security (IPsec required)
            Address Classes Divided into 5 classes: A, B, C, D, E No address classes
            VLSM Support Supports Variable Length Subnet Mask (VLSM) Does not support VLSM
            Header Size 20-60 bytes Fixed 40 bytes
            Conversion Between Versions Can be converted to IPv6 Not all IPv6 can be converted to IPv4
            Example 66.94.29.13 2001:0000:3238:DFE1:0063:0000:0000:FEFB

            Key Takeaways

            • IPv4 uses 32-bit addresses, while IPv6 uses 128-bit addresses.
            • IPv6 provides a much larger address space.
            • Many networks run dual stack, supporting both IPv4 and IPv6.

            Practice Exercise

            Test whether your connection has IPv6 enabled and compare the format with an IPv4 address.