Chapter 27
Next Generation:
IPv6 and ICMPv6
Objectives
Upon completion you will be able to:
• Understand the shortcomings of IPv4
• Know the IPv6 address format, address types, and abbreviations
• Be familiar with the IPv6 header format
• Know the extension header types
• Know the differences between ICMPv4 and ICMPv6
• Know the strategies for transitioning from IPv4 to IPv6
TCP/IP Protocol Suite 1
27.1 IPv6
IPv6 has these advantages over IPv4:
1. larger address space
2. better header format
3. new options
4. allowance for extension
5. support for resource allocation
6. support for more security
The topics discussed in this section include:
IPv6 Addresses
Address Space Assignment
Packet Format
Comparison between IPv4 and IPv6
TCP/IP Protocol Suite 2
Figure 27.1 IPv6 address
TCP/IP Protocol Suite 3
Figure 27.2 Abbreviated address
TCP/IP Protocol Suite 4
Figure 27.3 Abbreviated address with consecutive zeros
TCP/IP Protocol Suite 5
TCP/IP Protocol Suite 6
TCP/IP Protocol Suite 7
TCP/IP Protocol Suite 8
TCP/IP Protocol Suite 9
TCP/IP Protocol Suite 10
TCP/IP Protocol Suite 11
Figure 27.4 CIDR address
TCP/IP Protocol Suite 12
Figure 27.5 Address structure
TCP/IP Protocol Suite 13
Table 27.1 Type prefixes for IPv6 addresses
TCP/IP Protocol Suite 14
Figure 27.8 Unspecified address
TCP/IP Protocol Suite 15
Figure 27.9 Loopback address
TCP/IP Protocol Suite 16
Figure 27.10 Compatible address
TCP/IP Protocol Suite 17
Figure 27.11 Mapped address
TCP/IP Protocol Suite 18
Three Address Types
Unicast Address:
A unicast address defines a single interface (computer or router). The
packet sent to a unicast address will be routed to the intended recipient.
IPv6 has designated
a large block from which unicast addresses can be assigned to interfaces.
Anycast Address:
•An anycast address defines a group of computers that all share a
single address. A packet with an anycast address is delivered to only
one member of the group, the most reachable one.
•IPv6 does not designate a block for anycasting; the addresses are
assigned from the unicast block.
Multicast Address:
•A multicast address also defines a group of computers. However,
there is a difference between anycasting and multicasting. In
multicasting, each member of the group receives a copy.
•IPv6 has designated a block for multicasting from which the same
address is assigned to the members of the group.
TCP/IP Protocol Suite 19
Figure 27.13 Site local address
TCP/IP Protocol Suite 20
Figure 27.14 Multicast address
TCP/IP Protocol Suite 21
Figure 27.15 IPv6 datagram
TCP/IP Protocol Suite 22
Figure 27.16 Format of an IPv6 datagram
TCP/IP Protocol Suite 23
Table 27.2 Next header codes
TCP/IP Protocol Suite 24
Table 27.3 Priorities for congestion-controlled
traffic
TCP/IP Protocol Suite 25
Table 27.4 Priorities for noncongestion-controlled
traffic
TCP/IP Protocol Suite 26
Table 27.5 Comparison between IPv4 and IPv6 packet header
TCP/IP Protocol Suite 27
Figure 27.17 Extension header format
TCP/IP Protocol Suite 28
Figure 27.18 Extension header types
TCP/IP Protocol Suite 29
Figure 27.19 Hop-by-hop option header format
TCP/IP Protocol Suite 30
Figure 27.20 The format of options in a hop-by-hop option header
TCP/IP Protocol Suite 31
Figure 27.21 Pad1
TCP/IP Protocol Suite 32
Figure 27.22 PadN
TCP/IP Protocol Suite 33
Figure 27.23 Jumbo payload
TCP/IP Protocol Suite 34
Figure 27.24 Source routing
TCP/IP Protocol Suite 35
Figure 27.25 Source routing example
TCP/IP Protocol Suite 36
Figure 27.26 Fragmentation
TCP/IP Protocol Suite 37
Figure 27.27 Authentication
TCP/IP Protocol Suite 38
Figure 27.28 Calculation of authentication data
TCP/IP Protocol Suite 39
Figure 27.29 Encrypted security payload
TCP/IP Protocol Suite 40
Figure 27.30 Transport mode encryption
TCP/IP Protocol Suite 41
Figure 27.31 Tunnel-mode encryption
TCP/IP Protocol Suite 42
Table 27.6 Comparison between IPv4 options and IPv6 extension
headers
TCP/IP Protocol Suite 43
27.2 ICMPv6
ICMPv6, while similar in strategy to ICMPv4, has changes that makes it
more suitable for IPv6. ICMPv6 has absorbed some protocols that were
independent in version 4.
The topics discussed in this section include:
Error Reporting
Query
TCP/IP Protocol Suite 44
Figure 27.32 Comparison of network layers in version 4 and version 6
TCP/IP Protocol Suite 45
Figure 27.33 Categories of ICMPv6 messages
TCP/IP Protocol Suite 46
Figure 27.34 General format of ICMP messages
TCP/IP Protocol Suite 47
Figure 27.35 Error-reporting messages
TCP/IP Protocol Suite 48
Table 27.7 Comparison of error-reporting messages in ICMPv4
and ICMPv6
TCP/IP Protocol Suite 49
Figure 27.36 Destination-unreachable message format
TCP/IP Protocol Suite 50
Figure 27.37 Packet-too-big message format
TCP/IP Protocol Suite 51
Figure 27.38 Time-exceeded message format
TCP/IP Protocol Suite 52
Figure 27.39 Parameter-problem message format
TCP/IP Protocol Suite 53
Figure 27.40 Redirection message format
TCP/IP Protocol Suite 54
Figure 27.41 Query messages
TCP/IP Protocol Suite 55
Table 27.8 Comparison of query messages in ICMPv4
and ICMPv6
TCP/IP Protocol Suite 56
Figure 27.42 Echo request and reply messages
TCP/IP Protocol Suite 57
Figure 27.43 Router-solicitation and advertisement message formats
TCP/IP Protocol Suite 58
Figure 27.44 Neighbor-solicitation and advertisement message formats
TCP/IP Protocol Suite 59
Figure 27.45 Group-membership messages
TCP/IP Protocol Suite 60
Figure 27.46 Group-membership message formats
TCP/IP Protocol Suite 61
Figure 27.47 Four situations of group-membership operation
TCP/IP Protocol Suite 62
27.3 TRANSITION FROM IPv4
TO IPv6
Three strategies have been devised by the IETF to provide for a smooth
transition from IPv4 to IPv6.
The topics discussed in this section include:
Dual Stack
Tunneling
Header Translation
TCP/IP Protocol Suite 63
Figure 27.48 Three transition strategies
TCP/IP Protocol Suite 64
Figure 27.49 Dual stack
TCP/IP Protocol Suite 65
Figure 27.50 Automatic tunneling
TCP/IP Protocol Suite 66
Figure 27.51 Configured tunneling
TCP/IP Protocol Suite 67
Figure 27.52 Header translation
TCP/IP Protocol Suite 68
Table 27.9 Header translation
TCP/IP Protocol Suite 69