IP v6 was developed by Internet Engineering Task Force (IETF) to deal with the problem of IP v4 exhaustion. IP v6 is 128-bits address having an address space of 2^128, which is way bigger than IPv4. In IPv6 we use Colon-Hexa representation. There are 8 groups and each group represents 2 Bytes.
In IPv6 representation, we have three addressing methods :
Unicast Address: Unicast Address identifies a single network interface. A packet sent to unicast address is delivered to the interface identified by that address.
Multicast Address: Multicast Address is used by multiple hosts, called as Group, 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.
Anycast Address: Anycast Address is assigned to a group of interfaces. Any packet sent to 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 first few bits we can identify what type of address it is.
|Prefix||Allocation||Fraction of Address Space|
|0000 0001||Unassigned (UA)||1/256|
|0000 001||Reserved for NSAP||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.
First 3 bits identifies 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 id’s are being used.
Provider Id : Depending on the number of service providers that operates under a region, certain bits will be allocated to 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, remaining part can be used by ISP as normal IP address.
Intra Subscriber : This part can be modified as per need of organization that is using the service.
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:
IPv4 Compatible –
IPv4 mapped –
Local Unicast Addresses :
There are two types of Local Unicast addresses defined- Link local and Site Local.
Link local address:
Link local address is used for addressing on a single link. It can also be used to communicate with nodes on the same link. Link local address always begins with 1111111010 (i.e. FE80). Router will not forward any packet with Link local address.
Site local address:
Site local addresses are equivalent to private IP address in IPv4. Likely, some address space is reserved, which can only be routed within an organization. First 10-bits are set to 1111111011, which is why Site local addresses always begin with FEC0. Following 32 bits are Subnet ID, which can be used to create subnet within organization. Node address is used to uniquely identify the link; therefore, we use 48-bits MAC address here.
This article is contributed by Abhishek Agrawal. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Internet Protocol version 6 (IPv6) Header
- Difference between Serial Line Internet Protocol (SLIP) and Point-to-Point Protocol (PPP)
- Difference between Kerberos Version 4 and Kerberos Version 5
- Internet Control Message Protocol (ICMP)
- Program to remotely Power On a PC over the internet using the Wake-on-LAN protocol.
- Mobile Internet Protocol (or Mobile IP)
- Multipurpose Internet Mail Extension (MIME) Protocol
- Voice over Internet Protocol (VoIP)
- What is IGMP(Internet Group Management Protocol)?
- Internet Protocol Authentication Header
- Internet Telephony Protocol | H.323
- Hot Standby Router Protocol (HSRP) and Virtual Router Redundancy Protocol (VRRP)
- Difference between Stop and Wait protocol and Sliding Window protocol
- Difference between File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)
- Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
- Difference between Border Gateway Protocol (BGP) and Routing Information Protocol (RIP)
- IPv6 Addressing Format and Conventions
- Compression of IPv6 address
- What is IPv6?
- IPv6 Fragmentation Header