The Wayback Machine - https://web.archive.org/web/20240717180656/https://www.geeksforgeeks.org/ipv6-addressing-format-and-conventions/
Open In App

IPv6 Addressing Format and Conventions

Last Updated : 05 Jul, 2022
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report

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 includes 8 sets of four hex digits separated by a colon(:). For example:

fffe:3465:efab:23fe:2235:6565:aaab:0001 

Note:- Mostly each set of four digits is termed as “Quartet”, however the term Quartet is not official. IPv6 addresses are represented in two forms:

  • Unabbreviated – E.g.:
fe00:0000:0000:0001:0000:0000:0000:0092 
  • Abbreviated – E.g.:
fe00:0:0:1::92 

Rules to Abbreviate an IPv6 Address: 

  1. In each quartet, remove the starting & consecutive 0s (0001 -> 1, 0000 -> 0 & 0092 -> 92).
  2. If there are two or more consecutive quartet of all 0s, replace it with double colon (::), but you can use double colon only once in a single address.

But in the above example, if two or more quartet of all 0s occurred two times, then which quartet to be replaced? In such cases, the highest no of consecutive 0s are replaced by a double colon(::). Examples:

◙ 1111:2222:3333:0000:0000:1000:ffee:0001 
It can be written in abbreviated form as 1111:2222:3333::1000:ffee:1 

◙ 0001:0002:0003:0000:0000:1023:0000:0022  -> 1:2:3::1023:0:22

◙ ffee:0000:0000:0001:0000:0000:0000:0001 -> ffee:0:0:1::1

◙ 1a2b:0000:0000:0000:0000:0000:0000:0002 -> 1a2b::2 


Similar Reads

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
Difference between Implied addressing mode and Immediate addressing mode
Prerequisite - Addressing Modes 1. Implied Addressing Mode : In implied addressing mode, the operands are specified implicitly in the definition of the instruction. All the instructions which reference registers that use an accumulator are implied mode instructions. Zero address instructions in a stack organised computer are also implied mode instr
3 min read
Difference between Relative Addressing Mode and Direct Addressing Mode
Prerequisite - Addressing Modes In an Instruction Fetch operation of the Instruction Cycle Process, addressing mode plays a crucial part. Addressing Mode is how the operand is addressed in an instruction word before being executed. 1. Relative Address Mode: In this mode, the Effective Address (EA) of the operand is calculated by adding the content
5 min read
Classless Addressing in IP Addressing
The Network address identifies a network on the internet. Using this, we can find a range of addresses in the network and total possible number of hosts in the network. Mask is a 32-bit binary number that gives the network address in the address block when AND operation is bitwise applied on the mask and any IP address of the block. The default mas
7 min read
IPv6 and DNSSEC: Their Slow adaptation
In this article, we will discuss the overview of IPv6 and DNSSEC and will discuss the reason in detail with all these benefits why is IPv6 deployment is slow. Let's discuss it one by one. Pre-requisite -Internet Protocol version6 And IPv4 vs IPv6 Overview :Internet isn't as simple as it looks, It's a merger of many protocol stacks. Many of these ha
4 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
IPv6 Neighbor Discovery and Stateless Address Autoconfiguration
As the world shifts from IPv4 to IPv6, there is a need to discuss some mechanisms that support this paradigm shift. Neighbor Discovery (ND) and Stateless Address Autoconfiguration or also known as SLAAC are among the building blocks of IPv6. These protocols improve the operation and performance of IPv6 networks offering an easy way to connect netwo
6 min read
Difference Between IPv4 and IPv6
The address through which any computer communicates with our computer is simply called an Internet Protocol Address or IP address. For example, if we want to load a web page or download something, we require the address to deliver that particular file or webpage. That address is called an IP Address.  There are two versions of IP: IPv4 and IPv6. IP
7 min read
Transition from IPv4 to IPv6 address
Prerequisite - Differences between IPv4 and IPv6 In the current scenario, the IPv4 address is exhausted and IPv6 had come to overcome the limit. Various organization is currently working with IPv4 technology and in one day we can't switch directly from IPv4 to IPv6. Instead of only using IPv6, we use combination of both and transition means not rep
3 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
Article Tags :