The Wayback Machine - https://web.archive.org/web/20241115030958/https://www.geeksforgeeks.org/internet-protocol-version-6-ipv6/
Open In App

Internet Protocol version 6 (IPv6)

Last Updated : 21 Sep, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

The Internet Protocol version 6, or IPv6, is the latest version of the Internet Protocol (IP), which is the system used for identifying and locating computers on the Internet. IPv6 was developed by the Internet Engineering Task Force (IETF) to deal with the problem of IPv4 exhaustion. IPv6 is a 128-bit address having an address space of 2128, which is way bigger than IPv4. IPv6 uses a Hexa-Decimal format separated by a colon (:).

What is IP Address?

An IP address, which stands for Internet Protocol address, is like a home address for your computer or any device connected to the internet. Just as your home address lets mail find its way to your house, an IP address helps information find its way to your device.

Components in IPv6 Address Format

  • There are 8 groups and each group represents 2 Bytes (16-bits). 
  • Each Hex-Digit is of 4 bits (1 nibble)
  • Delimiter used – colon (:)

IPv6 Structure

Need For IPv6

The Main reason of IPv6 was the address depletion as the need for electronic devices rose quickly when Internet Of Things (IOT) came into picture after the 1980s & other reasons are related to the slowness of the process due to some unnecessary processing, the need for new options, support for multimedia, and the desperate need for security. IPv6 protocol responds to the above issues using the following main changes in the protocol:

  • Large Address Space: An IPv6 address is 128 bits long .compared with the 32 bit address of IPv4, this is a huge(2 raised 96 times) increases in the address space.
  • Better Header Format: IPv6 uses a new  header format in which options are separated from the base header and inserted, when needed, between the base header and the upper layer data . This simplifies and speeds up the routing process because most of the options do not need to be checked by routers.
  • New Options: IPv6 has new options to allow for additional functionalities.
  • Allowance for extension: IPv6 is designed to allow the extension of the protocol if required by new technologies or applications.
  • Support For Resource Allocation: In IPv6,the type of service field has been removed, but two new fields , traffic class and flow label have been added to enables the source to request special handling of the packet . this mechanism can be used to support traffic such as real-time audio and video.
  • Support For More Security: The encryption and authentication options in IPv6 provide confidentiality and integrity of the packet. In IPv6 representation, we have three addressing methods : 
    • Unicast
    • Multicast
    • Anycast

Addressing Methods

  • Unicast Address : Unicast Address identifies a single network interface. A packet sent to a unicast address is delivered to the interface identified by that address. 
  • Multicast Address : Multicast Address is used by multiple hosts, called as groups, acquires a multicast destination address. These hosts need not be geographically together. If any packet is sent to this multicast address, it will be distributed to all interfaces corresponding to that multicast address. And every node is configured in the same way. In simple words, one data packet is sent to multiple destinations simultaneously.
  • Anycast Address: Anycast Address is assigned to a group of interfaces. Any packet sent to an anycast address will be delivered to only one member interface (mostly nearest host possible).  

Note: Broadcast is not defined in IPv6.

Types of IPv6 Address

We have 128 bits in IPv6 address but by looking at the first few bits we can identify what type of address it is. 

Prefix Allocation Fraction of Address Space
0000 0000 Reserved 1/256
0000 0001 Unassigned (UA) 1/256
0000 001 Reserved for NSAP 1/128
0000 01 UA 1/64
0000 1 UA 1/32
0001 UA 1/16
001 Global Unicast 1/8
010 UA 1/8
011 UA 1/8
100 UA 1/8
101 UA 1/8
110 UA 1/8
1110 UA 1/16
1111 0 UA 1/32
1111 10 UA 1/64
1111 110 UA 1/128
1111 1110 0 UA 1/512
1111 1110 10 Link-Local Unicast Addresses 1/1024
1111 1110 11 Site-Local Unicast Addresses 1/1024
1111 1111 Multicast Address 1/256

Note: In IPv6, all 0’s and all 1’s can be assigned to any host, there is not any restriction like IPv4. 

Provider-Based Unicast Address

These are used for global communication. 

Provider-based Unicast addressThe First 3 bits identify it as of this type. 
Registry Id (5-bits): Registry Id identifies the region to which it belongs. Out of 32 (i.e. 2^5), only 4 registry IDs are being used. 

Registry ID

Provider Id: Depending on the number of service providers that operate under a region, certain bits will be allocated to the Provider Id field. This field need not be fixed. Let’s say if Provider Id = 10 bits then Subscriber Id will be 56 – 10 = 46 bits. 
Subscriber Id: After Provider Id is fixed, the remaining part can be used by ISP as a normal IP address. 
Intra Subscriber: This part can be modified as per the need of the organization that is using the service

 Geography Based Unicast Address
 

Geography Based Unicast Address

Global Routing Prefix: Global routing prefix contains all the details of Latitude and Longitude. As of now, it is not being used. In Geography-based Unicast address routing will be based on location. 
Interface Id: In IPv6, instead of using Host Id, we use the term Interface Id. 

Some Special Addresses

 Unspecified

 Unspecified addressLoopback

Loopback AddressIPv4 Compatible 

IPv4 Compatible IPv4 mapped

IPv4 mappedLocal Unicast Addresses

These are of two types: Link-local and Site-Local

1. Link-Local Address

Link-Local Address

A link-local address is used for addressing a single link. It can also be used to communicate with nodes on the same link. The link-local address always begins with 1111111010 (i.e. FE80). The router will not forward any packet with Link-local address. 

2. Site Local Address 
Site Local Address

Site local addresses are equivalent to a private IP address in IPv4. Likely, some address space is reserved, which can only be routed within an organization. The first 10-bits are set to 1111111011, which is why Site local addresses always begin with FEC0. The following 32 bits are Subnet IDs, which can be used to create a subnet within the organization. The node address is used to uniquely identify the link; therefore, we use a 48-bits MAC address here. 

Advantages of IPv6

  • 1. Realtime Data Transmission : Realtime data transmission refers to the process of transmitting data in a very fast manner or immediately. Example : Live streaming services such as cricket matches, or other tournament that are streamed on web exactly as soon as it happens with a maximum delay of 5-6 seconds.   
  • 2. IPv6 supports authentication: Verifying that the data received by the receiver from the sender is exactly what the sender sent and came through the sender only not from any third party. Example : Matching the hash value of both the messages for verification is also done by IPv6.
  • 3. IPv6 performs Encryption: Ipv6  can encrypt the message at network layer even if the protocols of application layer at user level didn’t encrypt the message which is a major advantage as it takes care of encryption.
  • 4. Faster processing at Router: Routers are able to process data packets of Ipv6 much faster due to smaller Base header of fixed size – 40 bytes which helps in decreasing processing time resulting in more efficient packet transmission. Whereas in Ipv4, we have to calculate the length of header which lies between 20-60 bytes.

Disadvantages of IPV6

  • Transition Period: Due to widespread use of IPv4, shifting completely to IPv6 will take a long time.
  • Communication Barrier: IPv4 and IPv6 machines cannot communicate directly with each other.
  • No Backward Compatibility: IPv6 cannot run on IPv4-capable computers because it’s not supported by IPv4 systems.
  • Conversion Challenges: IPv6’s inability to uniquely identify each device on the network makes the transition from IPv4 time-consuming.
  • Protocol Isolation: IPv4 and IPv6 cannot communicate with each other directly, preventing cross-protocol communication.

Conclusion

IPv6 was created by the Internet Engineering Task Force (IETF) in December 1998 to replace IPv4, driven by the rapid global growth of internet users. IPv4 uses a 32-bit address format, accommodating over 4 billion addresses. IPv6, with its 128-bit address space, provides 340 undecillion unique addresses, meeting the demand for more internet addresses.

Frequently Asked Questions on IPV6 – FAQs

What is IPv6?

IPv6, or Internet Protocol Version 6, is a network protocol that enables communication over the internet. It was designed by the Internet Engineering Task Force (IETF) in December 1998 to replace IPv4, driven by the rapid growth of internet users worldwide.

What are the benefits of using IPv6 rather than IPv4?

One of the advantages of using IPv6 over IPv4 is its support for multicast instead of broadcast, which allows bandwidth-intensive data, like multimedia streams, to be efficiently sent to multiple destinations simultaneously.

How is the IPv6 address represented?

IPv6 is represented by the below representation

1000:0ac3:22a2:0000:0000:4b3c:0504:1234



Previous Article
Next Article

Similar Reads

Internet Protocol version 6 (IPv6) Header
The IPv6 header is a part of the data packet structure used in Internet Protocol version 6 (IPv6), which is the latest version of the Internet Protocol. IPv6 is designed to replace IPv4, offering a much larger address space and improved features. The header in IPv6 contains important information needed for routing and delivering packets across netw
7 min read
Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
SLIP and PPP, which are the widely used serial connection techniques, help to connect the distant devices of the network. The fullform of SLIP is Session Layer Internetworking Protocol. SLIP being a primitive protocol put into use during the early connections to the Internet, when there was not much overhead. PPP is slightly more complex as the pro
6 min read
What is IPv6 Intra Site Automatic Tunnel Addressing Protocol (ISATAP)?
ISATAP is a routable tunneling protocol developed by the IETF as an extension to IPv6, used in scenarios where no other encapsulation is available. It uses IPv4 to transmit data packets over the network. IPv6 Intra Site Automatic Tunnel Addressing Protocol (ISATAP): It is a tunneling protocol that was developed as an extension to IPv6 by the IETF a
2 min read
RPL (IPv6 Routing protocol)
What is RPL (IPv6 Routing protocol)?RPL stands for Routing Protocol for Low Power and Lossy Networks for heterogeneous traffic networks. It is a routing protocol for Wireless Networks. This protocol is based on the same standard as by Zigbee and 6 Lowpan is IEEE 802.15.4 It holds both many-to-one and one-to-one communication. It is a Distance Vecto
5 min read
Difference between Kerberos Version 4 and Kerberos Version 5
Kerberos is a network authentication protocol designed to provide strong authentication for client-server applications by using secret-key cryptography. Kerberos has gone through multiple versions, with Kerberos Version 4 and Version 5 being the most widely recognized. In this article, we are going to discuss the difference between Kerberos Version
5 min read
internet vs Internet
The term "internet" and "Internet" might seem to be a mistake in writing, but it is originally different in meaning also and refers to different concepts. In this article, we will look into what is the difference in the meaning of the terms "internet" and "Internet". What is Internet (uppercase "I")?The Internet is a much broader concept, the world
3 min read
What is POP3 (Post Office Protocol Version 3)?
Today email is the most widely used platform for personal and professional business communication. Email protocol is defined as a set of rules for the secure transmission of emails over the Internet. SMTP, IMAP, POP, and POP3 are some of the email protocols. Each type of protocol used has a specific mechanism. The below article covers in detail the
6 min read
Internet Telephony Protocol | H.323
Internet Telephony Protocol is also called Voice Over IP . It is a real-time interactive audio/video application. As from the name Internet Telephony, it uses internet as a telephone network with additional features. To communicate between two parties, it uses packet-switched Internet. There are two different types of protocols that enable Internet
2 min read
Types of ICMP (Internet Control Message Protocol) Messages
Pre-Requisite: Internet Control Message Protocol (ICMP) Internet Control Message Protocol is a protocol used for error handling and debugging in the network layer. It is mainly used in network devices such as routers for sending errors and operations. The main work of the Internet Control Message Protocol is of reporting errors, between any two dev
4 min read
IPsec (Internet Protocol Security) Tunnel and Transport Modes
IPsec (Internet Protocol Security) is an important generation for shielding statistics transmitted over IP networks. IPsec (Internet Protocol Security) is a set of protocols and methods used to steady communications over IP networks along with the Internet. It gives a sturdy framework for ensuring the confidentiality, integrity, and authenticity of
5 min read
Multipurpose Internet Mail Extension (MIME) Protocol
Multipurpose Internet Mail Extension (MIME) is a standard that was proposed by Bell Communications in 1991 in order to expand the limited capabilities of email. MIME is a kind of add-on or a supplementary protocol that allows non-ASCII data to be sent through SMTP. It allows the users to exchange different kinds of data files on the Internet: audio
4 min read
What is Internet Protocol (IP)?
The Internet Protocol (IP) which is pivotal in computer network protocols is responsible for the transmission of data packages from or to devices that are connected to the Internet or any other network. Moreover, it provides the addressing and routing mechanisms that the devices require for their communications. IP addresses represent the unique id
9 min read
Ethernet Over Internet Protocol (EoIP)
Ethernet over IP (EoIP) Tunnelling is a MikroTik RouterOS technique that constructs an Ethernet tunnel between two routers on top of an IP connection based on GRE RFC 1701. The EoIP tunnel can be used in conjunction with an IPIP tunnel, a PPTP tunnel, or any other IP-capable connection. When the router's bridging capability is active, all Ethernet
7 min read
Internet Message Access Protocol (IMAP)
The Internet Message Access Protocol (IMAP) serves as a cornerstone of cutting-edge email communication, facilitating seamless get admission to email messages. As a necessary element of the e-mail infrastructure, IMAP revolutionizes the manner customers interact with their digital correspondence. Unlike its predecessor, the Post Office Protocol (PO
6 min read
Mobile Internet Protocol (or Mobile IP)
Mobile IP is a communication protocol (created by extending Internet Protocol, IP) that allows users to move from one network to another with the same IP address. It ensures that the communication will continue without the user's sessions or connections being dropped. Imagine having a phone number that stays the same no matter where you go. Mobile
6 min read
Internet Protocol Authentication Header
The Internet Protocol Authentication Header (AH) is a component of the IPsec (Internet Protocol Security) suite that provides data integrity, data origin authentication, and optional anti-replay protection for IP packets. Authentication Header ensures that the data was not modified during transmission and verifies the identity of the sender. In thi
7 min read
Voice over Internet Protocol (VoIP)
Voice over Internet Protocol (VoIP) is transforming the way we communicate by enabling voice calls over the Internet instead of traditional phone lines. This innovative technology converts your voice into digital data packets, which are transmitted via broadband connections. VoIP not only offers significant cost savings on both domestic calls and i
7 min read
What is IGMP(Internet Group Management Protocol)?
IGMP is an acronym for Internet Group Management Protocol. IGMP is a communication protocol used by hosts and adjacent routers for multicasting communication with IP networks and uses the resources efficiently to transmit the message/data packets. Multicast communication can have single or multiple senders and receivers and thus, IGMP can be used i
9 min read
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol is known as ICMP. The protocol is at the network layer. It is mostly utilized on network equipment like routers and is utilized for error handling at the network layer. Since there are various kinds of network layer faults, ICMP can be utilized to report and troubleshoot these errors. Since IP does not have an inbu
11 min read
Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
Hot Standby Router Protocol (HSRP) is a CISCO proprietary protocol used to provide redundancy in a network. Only one router is the active router while others will be in standby state i.e the standby router will be responsible for forwarding the traffic when the active router fails. Virtual Router Redundancy Protocol (VRRP) is an open standard proto
3 min read
Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
Layer 2 or the Datalink layer provides physical addressing and access to media. It defines how data is to be formatted for transmission and how access to the network is to be controlled. It also provides error detection, ensuring data on higher layers is formatted correctly for transmission. Cisco Discovery Protocol (CDP) and Link Layer Discovery P
2 min read
Difference between Stop and Wait protocol and Sliding Window protocol
Both the Stop and Wait protocol and the Sliding Window protocol are the techniques to the solution of flow control handling. The main difference between the Stop-and-wait protocol and the Sliding window protocol is that in the Stop-and-Wait Protocol, the sender sends one frame and waits for acknowledgment from the receiver whereas in the sliding wi
5 min read
Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
When dealing with network routing, it's crucial to understand the various protocols that help direct traffic across complex networks. Two significant protocols in this space are the Border Gateway Protocol (BGP) and the Routing Information Protocol (RIP). Each serves different purposes and operates under different principles. This article explores
5 min read
Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
Data transfer is the most common task in network and system communications, and they involve transfer of files using two means i.e the File Transfer Protocol (FTP) and the Secure File Transfer Protocol (SFTP). FTP is a commonly applied protocol that enables files to be transferred through a network from one computer to another, but FTP is unsecure
5 min read
Difference between Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP)
Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP), are designed to avoid network loops in Ethernet. It provide loop-free logical topology. They were both designed to provide network reliability and particularly avoid broadcast radiation, but the major differences are on the rate, functionality and versatility. In this article we
5 min read
IPv6 Addressing Format and Conventions
We know that IPv4 addresses are mostly represented in a dotted decimal form like 192.168.10.1, and if written with a prefix mask then it would be written like 192.168.10.1/24, where /24 is the network mask. But IPv6 is long addressing format. IPv6 is 128 bit long and usually represented in hexadecimal format of addressing. IPv6 representation inclu
2 min read
Compression of IPv6 address
IPv6 address is short form of IP address version 6. It is basically a 128 bit address. In IPv6 address, hexadecimal notation is preferred. There are total 8 fields in IPv6 hexadecimal notation and each field consists of 16 bits. Hence, total bits are 8 x 16 = 128 Rules for compression: There are basically three rules for compression: Rule-1: When o
1 min read
IPv6 Fragmentation Header
Prerequisite - Internet Protocol version 6 (IPv6) Header In IPv4 fragmentation is done whenever required, at destination or at routers whereas in IPv6 only source is supposed to do fragmentation but not routers. This can only be done when source knows path Maximum Transmission Unit (MTU). In Ipv6 "do not fragment" bit is always 1 where case is not
4 min read
The rise of IPv6
IP address (Internet Protocol Address) recognizes computers on the Internet. It is a string of digits separated by some delimiter. When your device sends requests on the Internet for some page, it tags your IP address with the request. An IP address is usually based on a real-world location. The purpose of IP is to manage the connection between a d
3 min read
IPv4 versus IPv6 Geolocation: Accuracy and Other FAQs Answered
Introduction :Every Internet-connected device is identifiable through its IP address. In fact, many organizations employ IP geolocation (through a geolocation database download, an API or web service) for several business purposes, including marketing, fraud prevention, cybercrime investigation, and more. However, many argue that IP geolocation is
6 min read
Article Tags :
three90RightbarBannerImg