1. Gyanastra
  2. Computer Networks
  3. IPv6
  4. Need for IPv6 and Reasons for Transition from IPv4
Free lesson, no account needed 7 min read 10 practice questions after it

Computer Networks · IPv6

Need for IPv6 and Reasons for Transition from IPv4

Overview

IPv4 is the version of the Internet Protocol studied in the network layer of TCP/IP. IPv6 (IP Next Generation, IPNG) is its successor, and it is not merely a larger address space: it is a complete redesign of the protocol, including header format, fields and options.
The transition is driven by several reasons, of which address depletion is only one.

Key concepts

  • IPv4 is the IP version studied earlier in the TCP/IP network layer; it uses 32-bit addresses, giving 2322^{32} total addresses.
  • Version numbering: versions 1, 2, 3 and 4 existed; version 5 was assigned to the experimental Internet Stream Protocol (ST), which was never adopted, so the numbering went directly to IPv6.
  • IPv6 is not just about IP addresses. It is the whole Internet Protocol: the header format, its fields and its options, all put together.
    Just as IPv4 was studied (addressing + header + fields), IPv6 must be studied the same way.
  • IPNG stands for IP Next Generation (NG = Next Generation), another name for IPv6.
  • IPv4 address depletion: because IPv4 addresses are only 32 bits, the total is 2322^{32}, a very small number, and the available addresses are nearly all used up.
  • Depletion is not the main reason: many people think address depletion is THE reason for inventing IPv6, but this is a misunderstanding.
    It is one of the reasons, not the only reason, and strictly speaking not exactly a reason either, because depletion has been overcome by classless addressing (CIDR) and NAT (Network Address Translation).
    With NAT, addresses are safe for at least a few more years, so depletion alone did not force the transition.
  • Real-time audio–video transmission: IPv4 had no support for it; IPv6 enhances this and provides support (the mechanism appears when the header is discussed).
  • Encryption at the IP level: in IPv4, encryption was not provided by IP; the application developer / application layer had to encrypt the message before sending it over the network.
    In IPv6, encryption is provided at the IP (network) level, so even if the application layer does not encrypt, the network layer can still provide encryption.
  • Authentication: if a message claims to be from person A, you must be sure it is really from A, and if some other person pretends to be A, you must be able to distinguish that.
    IPv6 provides authentication along with encryption.
  • Fast processing at routers: many things in IPv4 slow down processing at routers. The IPv6 design principle is to do nothing at routers that slows down processing, so a router can process a packet and forward it quickly.
  • Flow concept: not present earlier; used so routers need not always consult the routing table to find the destination (flow + hashing are used).
  • Fixed header length: IPv4 had a variable header length, forcing processing to find where the header ends and where the addresses are; the IPv6 header is fixed.
  • No options field: IPv6 uses extension headers instead.
  • Checksum removed: checksum computation also takes time, so it is deleted.
  • Additional functionalities can be enabled by adding extension headers, the analogue of IPv4's options field.
  • Future-proof design: IPv6 is designed with so much future thinking that it is estimated there may be no transition for IP for the next ~50 years (the V4→V6 transition itself took about 20–30 years).
    Most fields are not even used now; they are reserved for future use.
    Like TCP, IPv6 was designed on the same grounds, and experiments (RFCs) are still going on to improve it and to use the reserved fields efficiently, but even after experimentation there will be no change to the design.

How it works

Reasons for the transition from IPv4 to IPv6 (several reasons, not one):

  1. IPv4 address depletion — 32-bit addresses give only 2322^{32} addresses, which are nearly all used up; mitigated by classless addressing (CIDR) and NAT, so it is not the sole reason.
  2. Real-time audio–video transmission — IPv4 had no support; IPv6 enhances and supports it.
  3. Encryption at the IP level — IPv4 left encryption to the application layer; IPv6 provides it at the network level.
  4. Authentication — IPv6 provides authentication along with encryption.
  5. Fast processing at routers — achieved by the flow concept (with hashing, so routers need not always consult the routing table), a fixed header length, no options field (extension headers instead), and removal of the checksum.
  6. Additional functionalities — enabled by adding extension headers, the analogue of IPv4's options field.
  7. Future-proof design — many fields reserved for future use; RFC experimentation continues without changing the design.

Formulas

  • 2322^{32} = total number of IPv4 addresses (32-bit address space)

Comparison

AspectIPv4IPv6
Address size32 bits (2322^{32} addresses)—
Real-time audio–videoNo supportEnhanced and supported
EncryptionNot provided by IP; done by application layerProvided at the IP (network) level
Authentication—Provided, along with encryption
Header lengthVariableFixed
OptionsOptions fieldNo options field; extension headers instead
ChecksumPresentRemoved
Flow conceptNot presentPresent (flow + hashing)

Revision summary

  • IPv6 is not only about addresses: it is the whole protocol — header format, fields and options.
  • Address depletion is one reason, not the only or exact reason; CIDR and NAT have overcome it.
  • Version 5 was discarded at the experimental stage; numbering jumped from 4 to 6.
  • IPv6 = IPNG (IP Next Generation).
  • Fast-router design: fixed header length, no options (extension headers instead), checksum removed, flow concept + hashing instead of routing-table lookup.
  • IPv6 is designed to last ~50 years; the V4→V6 transition itself took about 20–30 years.
  • Many IPv6 fields are reserved for future use; RFC experimentation is still ongoing but will not change the design.

Previous-year exam insights

  • An IPv6 address is 128 bits long, giving 21282^{128} (about 3.4x1038)3.4 x 10^{38}) addresses, written as eight groups of four hexadecimal digits separated by colons with '::' compression for runs of zero groups.
  • The IPv6 base header is fixed at 40 bytes (320 bits) with fields Version (4 bits), Traffic Class (8 bits), Flow Label (20 bits), Payload Length (16 bits), Next Header (8 bits), Hop Limit (8 bits), Source Address (128 bits) and Destination Address (128 bits); it has no header-length field, no identification/flags/fragment-offset fields, no checksum and no options field.
  • In IPv6 only the source host may fragment a datagram (using the Fragment extension header after Path-MTU discovery); intermediate routers never fragment, whereas in IPv4 routers can fragment.
  • IPv6 uses the Next Header field to chain a base header to extension headers (Hop-by-Hop Options, Routing, Fragment, Authentication Header, ESP, Destination Options), so extension headers replace IPv4 options while keeping the base header fixed.
  • IPv6 has no broadcast addresses and no ARP; it uses unicast, multicast and anycast addressing, and Neighbour Discovery Protocol (NDP) with ICMPv6 replaces ARP/ICMP-router discovery.
  • Because the IPv6 header checksum is removed, the transport-layer checksum (TCP/UDP) becomes mandatory over IPv6; also note that IPv4 and IPv6 hosts cannot interoperate directly, so transition needs dual stack, tunnelling (e.g. 6to4) or header translation (e.g. NAT64).
Pages 1–2 of 2