3chapter IPv6
3chapter 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
IPv6 Page 1 of 19
IPv6 Page 2 of 19
other computer networks. IPv6 offers several compelling functions and is really the next
step in the evolution of the Internet Protocol. These improvements came in the form of
increased address size, a streamlined header format, extensible headers, and the ability to
preserve the confidentiality and integrity of communications. The IPv6 protocol was then
fully standardized at the end of 1998 in RFC 2460, which defines the header structure. IPv6
is now ready to overcome many of the deficiencies in the current IPv4 protocol and to
create new ways of communicating that IPv4 cannot support.
IPv6 provides several improvements over its predecessor. The advantages and
characteristics of IPv6 are
Larger address space: Increased address size from 32 bits to 128 bits
Streamlined protocol header: Improves packet-forwarding efficiency
Stateless autoconfiguration: The ability for nodes to determine their own
address
Multicast: Increased use of efficient one-to-many communications
Jumbograms: The ability to have very large packet payloads for greater
efficiency
Network layer security: Encryption and authentication of communications
Quality of service (QoS) capabilities: QoS markings of packets and flow labels
that help identify priority traffic
Anycast: Redundant services using nonunique addresses
Mobility: Simpler handling of mobile or roaming nodes
IPv6 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
IPv6 Page 4 of 19
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
Then, Convert each segment into hexadecimal notation.
2001 : 0db8 : ac10 : fe01 : 0000 : 0000 : 0000 : 0000
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
IPv6 Page 5 of 19
2001:0db8::c5ef:0:0:1
2001:db8:0:0:c5ef::1
2001:db8::c5ef:0:0:1
7.4.3 IPv6 Prefixes
As with the IPv4 Classless Inter-Domain Routing (CIDR) network prefix
representation (such as 10.1.1.0/24), an IPv6 address network prefix is represented the
same way: 2001:db8:12::/64
IPv6 addressing has a hierarchical structure similar to that of IPv4. This means that
IPv6 addresses can be subnetted for performance and security reasons in the same way as
IPv4.
The bits on the left of an IPv6 address (high-order bits) specify the network, the
other bits specify particular addresses in that network.
2001:0db8:0000:0000:0000:0000:0000:0001 /64
Figure 7.2
IPv6 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.
IPv6 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:
IPv6 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.
IPv6 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
IPv6 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
IPv6 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:
IPv6 Page 12 of 19
Size
Field Name Description
(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.
IPv6 Page 13 of 19
Figure 7.12
IPv6 Page 14 of 19
Figure 7.15
IPv6 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
IPv6 Page 16 of 19
Complete transition from IPv4 to IPv6 might not be possible because IPv6 is not
backward compatible. This results in a situation where either a site is on IPv6 or it is not. It is
unlike implementation of other new technologies where the newer one is backward
compatible so the older system can still work with the newer version without any additional
changes.
To overcome this short-coming, we have a few technologies that can be used to
ensure slow and smooth transition from IPv4 to IPv6.
Figure 7.18
IPv6 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.
******************
IPv6 Page 18 of 19
IPv6 Page 19 of 19