Detailed diagram of the IPv6 header structure highlighting key fields like Version, Traffic Class, Flow Label, and Next Header.

IPv6 Header and Fields – Exclusive Details

As we discussed earlier, IPv6 is the improved version of the internet protocol. The IPv6 header is one of the significant improvements over the IPv4 header. The header format has been dramatically simplified. Some header fields have been removed, and others have moved to the optional IPv6 Extension Header. The IPv6 header is only twice the size of the IPv4 header because the IPv6 address is 128-bit.  It has dramatically evolved from its IPv4 predecessor. The header of IPv6 is more prominent but takes up a smaller percentage of the overall header space. Some fields, for example, the Options Field and Header Checksum, have been removed and replaced with improved functions in the IPv6 Extension Header.

IPv6 Header Format

The figure below illustrates the IPv4 header, which contains 20 octets and 12 basic header fields, not including the Options field. Some fields have remained the same in the IPv6 header, some have changed names and positions, and some IPv4 fields are no longer required.

IPv6 Header and Fields
IPv6 Header and Fields - Exclusive Details 4

The improved and simplified IPv6 header, as shown in the Figure below, consists of 40 octets (mainly due to the 128-bit both of the source and destination IPv6 addresses) and 8 header fields (3 IPv4 basic header fields and 5 additional header fields). As shown in the figure, some fields have kept the same names as IPv4, some fields have changed names or positions, and some new fields have been added.

IPv6 Header
IPv6 Header and Fields - Exclusive Details 5

IPv6 Header Field Name

  • Version – This field has a 4-bit binary value set to 0110, representing this as an IPv6 packet.
  • Traffic Class – This 8-bit field is equal to the IPv4 Differentiated Services (DS) field further divided into two parts. The first 6 bits are used for the Type of Service to let the Router know what services will be provided to this packet. The last 2 bits are for Explicit Congestion Notification (ECN).
  • Flow LabelThis 20-bit field suggests that all packets with the same flow label receive the same type of handling by routers. The flow label keeps the sequential flow of packets belonging to a communication. The source of the packet labels the sequence to help the router show that a particular packet belongs to a specific flow of information. This field helps avoid re-ordering of data packets. It is for real-time media and streaming.
  • Payload Length—This 16-bit field indicates the length of the data portion of the IPv6 packet. It tells the routers how much information a particular packet contains in its payload.
  • Next Header – This 8-bit field is equal to the IPv4 Protocol field. So that field indicates either the type of Extension Header or, if the Extension Header is not present, it means the Upper Layer PDU. The values of the kind of upper-layer PDU are the same as IPv4’s
  • Hop Limit—Hop Limit replaced the IPv4 TTL field. It stops packets from looping in the network infinitely. The value has decreased by 1 at each router that forwards the packet. When the value reaches 0, the packet is discarded, and an ICMPv6 Time Exceed message is forwarded to the sending host, indicating that the packet did not reach its destination because the hop limit was exceeded.
  • Source Address – This 128-bit field identifies the IPv6 address of the originator host.
  • Destination Address – This 128-bit field identifies the IPv6 address of the destination host.

The fields mentioned above are fixed for the IP version 6 packet header. An IP version 6 packet may also contain extension headers (EH), which give optional network layer information. Extension headers are optional and placed between the IP version 6 header and the payload. Extension Headers are also used for security, fragmentation, routing, hop-by-hop option headers, mobility support, and more.

FAQs

  • What are the mandatory fields in an IPv6 header?

    The IPv6 header includes Version, Traffic Class, Flow Label, Payload Length, Next Header, Hop Limit, Source Address, and Destination Address.

     

     

     

  • How does the IPv6 header improve efficiency over IPv4?

    IPv6 simplifies the header to 8 fixed fields (vs 13 in IPv4), reducing processing overhead and enabling faster routing.

     

     

  • What is the purpose of the Next Header field?

    It identifies the type of extension header or upper-layer protocol (e.g., TCP, UDP) following the main IPv6 header.

     

     

  • Why are extension headers used in IPv6?

    They allow optional features (e.g., routing, security) to be added without cluttering the base header, enhancing flexibility.

     

     

  • How does the Flow Label field optimise traffic?

    It enables QoS (Quality of Service) by tagging packets in a specific flow for prioritized handling by routers.

Self-Assessment – IPv6 Address Header and Fields Self-Assessment – Introduction to IPv6 Addresses Self-Assessment – Limitation of IPv4 Addresses Self-Assessment – IPv4 Packet Header Self-Assessment – Network Layer

Avatar of Asad Ijaz

Asad Ijaz

NetworkUstad's lead networking architect with CCIE certification. Specializes in CCNA exam preparation and enterprise network design. Authored 2,800+ technical guides on Cisco systems, BGP routing, and network security protocols since 2018. Picture this: I'm not just someone who writes about tech; I'm a certified expert in the field. I proudly hold the titles of Cisco Certified Network Professional (CCNP) and Cisco Certified Network Associate (CCNA). So, when I talk about networking, I'm not just whistling in the dark; I know my stuff! My website is like a treasure trove of knowledge. You'll find a plethora of articles and tutorials covering a wide range of topics related to networking and cybersecurity. It's not just a website; it's a learning hub for anyone who's eager to dive into the world of bits, bytes, and secure connections. And here's a fun fact: I'm not a lone wolf in this journey. I'm a proud member and Editor of Team NetworkUstad. Together, we're on a mission to empower people with the knowledge they need to navigate the digital landscape safely and effectively. So, if you're ready to embark on a tech-savvy adventure, stick around with me, Asad Ijaz Khattak. We're going to unravel the mysteries of technology, one article at a time!"