Professional Documents
Culture Documents
Ch7. IPv6
Ch7. IPv6
Chapter-7
Introduction to Internet Protocol version 6
Course Contents
Introduction to IPv6
What is IPv6?
Why is IPv6 Needed Now?
IPv6 Addressing & its representation
Advantages of IPv6
Features of IPv6
Types of IPv6 Addresses
Address Scope
Transition from IPv4 to IPv6
Objectives
After completion of this module the trainee will be able to
understand
Drawbacks of IPv4 addressing.
IPv6 notation and representation in hexadecimal.
Advantages of IPv6 and features of IPv6
IPv6 prefixes and types of IPv6 addresses.
Address scope of IPv6 addresses.
Technologies for transition from IPv4 to IPv6
OSI Page 1 of 19
OSI Page 2 of 19
OSI Page 3 of 19
Figure 7.1
An IPv6 address consists of 8 sets of 16-bit hexadecimal values separated by colons
(:), totaling 128 bits in length.
For example: 2001:0db8:1234:5678:9abc:def0:1234:5678
7.4.1 Representing IPv6 in binary format.
2001 : 0db8 : ac10 : fe01 : 0000 : 0000 : 0000 : 0000
0010 0000 0000 0001 0000 1101 1011 1000 1010 1100 0001 0000 1111 1110 0000 0001
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
0010000000000001000011011011100010101100000100001111111000000001000000000
0000000000000000000000000000000000000000000000000000000
OSI Page 4 of 19
There are 2 methods we can use to reduce the size of the notation making it even
easier to read.
These methods are called 'Zero Compression', and 'Zero Suppression'.
Some addresses contain long sequences of zeros:
2001:0db8:ac10:0000:0000:8a2e:0000:0a52
We can use 'zero compression' to reduce them. If there is more than one
consecutive block where the characters are all zeros you can compress them to :: (a double
colon).
In the address above there are 3 blocks containing all zeros. However only the first
and second segments of zeros can be compressed. This is because they are consecutive
(they are next to each other in the address). The third block of zeros cannot be compressed
but can be supressed.
2001:0db8:ac10::8a2e:0000:0a52
2001:db8:ac10::8a2e:0:a52
Zero Compression and Zero Suppression conceptis used to reduce the size of the
IPv6 notation.
Leading zeros can be omitted, and consecutive zeros in contiguous blocks can be
represented by a double colon (::). Double colons can appear only once in the address.
For example:
1. 2001:0db8:0000:130f:0000:0000:087c:140b can be abbreviated as
2001:0db8:0:130f::o87c:140b --- Zero Compression
2001:db8:0:130f::87c:140b -- Zero Compression and Zero Supression
2. fe80 : 0000 : 0000 : 0000 : 0202 : b3ff : fe1e : 8329
fe80::0202:b3ff:fe1e:8329
3 2001 : 0000 : ac10 : 0000 : 0000 : fe01 : 0db8 : 0000
2001:0000:ac10::fe01:0db8:0000
2001:0:ac10::fe01:0db8:0
4 2001:0db8:0000:0000:c5ef:0000:0000:0001 Can be represented as
OSI Page 5 of 19
Figure 7.2
OSI Page 6 of 19
Figure 7.3
End-to-end Connectivity -- Every system now has unique IP address and can
traverse through the Internet without using NAT or other translating
components.
Auto-configuration -- IPv6 supports both stateful and stateless auto
configuration mode of its host devices. This way, absence of a DHCP server
does not put a halt on inter segment communication.
OSI Page 7 of 19
As with IPv4, IPv6 addresses are assigned to interfaces; however, unlike IPv4, an IPv6
interface is expected to have multiple addresses. The IPv6 addresses assigned to an
interface can be any of the following types:
OSI Page 8 of 19
Figure 7.4
Example of a Unicast address: 2000::a12:34ff:fe56:7890
Multicast address Identifies a group of nodes or interfaces. Traffic destined for a
multicast address is forwarded to all the nodes in the group. An IPv6 multicast
address identifies a group of interfaces, again typically belonging to different
nodes. Packets sent to a multicast address are delivered to all interfaces in the
group.
So multicast addresses facilitate communication between a single sender
and multiple receivers.
OSI Page 9 of 19
Figure 7.5
Multicast addresses begin with the prefix - ff00::/8.
Example of a Mulicast address: ff01:0:0:0:0:0:0:2
With IPv6, broadcast addresses are no longer used. Broadcast addresses are
too resource intensive, therefore IPv6 uses multicast addresses instead.
Anycast address Identifies a group of nodes or interfaces. Traffic destined to an
anycast address is forwarded to the nearest node in the group. An anycast
address is essentially a unicast address assigned to multiple devices with a host
ID = 0000:0000:0000:0000. (Anycast addresses are not widely used today.)
Figure 7.6
OSI Page 10 of 19
Figure 7.7
7.8.1 Interface ID
IPv6 has three different types of Unicast Address scheme. The second half of the
address (last 64 bits) is always used for Interface ID. The MAC address of a system is
composed of 48-bits and represented in Hexadecimal. MAC addresses are considered to be
OSI Page 11 of 19
.
Fig7.8: EUI-64 Interface ID
7.8.2 Conversion of EUI-64 ID into IPv6 Interface Identifier
To convert EUI-64 ID into IPv6 Interface Identifier, the most significant 7th bit of EUI-
64 ID is complemented. For example:
OSI Page 12 of 19
Field Size
Description
Name (bits)
Figure 7.11
Global Routing Prefix: The most significant 48-bits are designated as Global Routing
Prefix which is assigned to specific autonomous system. The three most significant bits of
Global Routing Prefix is always set to 001.
OSI Page 13 of 19
Figure 7.12
OSI Page 14 of 19
Figure 7.15
OSI Page 15 of 19
Figure 7.16
An address scope defines the region where an address can be defined as a unique
identifier of an interface.
These scopes or regions are the link, the site network, and the global network,
corresponding to link-local, unique local unicast, and global addresses.
Figure 7.17
OSI Page 16 of 19
Figure 7.18
OSI Page 17 of 19
Figure 7.19
Figure 7.20
A host with IPv4 address sends a request to an IPv6 enabled server on Internet that
does not understand IPv4 address. In this scenario, the NAT-PT device can help them
communicate. When the IPv4 host sends a request packet to the IPv6 server, the NAT-PT
device/router strips down the IPv4 packet, removes IPv4 header, and adds IPv6
header and passes it through the Internet. When a response from the IPv6 server comes for
the IPv4 host, the router does vice versa.
******************
OSI Page 18 of 19
OSI Page 19 of 19