Chapter 1
73
You can then shorten the address even further by replacing all adjacent zero blocks as a single
set of double colons (::). You can do this only once in a single IPv6 address.
2001:DB8:3FA9::D3:9C5A
Because IPv6 addresses consist of eight blocks, you can always determine how many blocks of
zeroes are represented by the double colons. For example, in the previous IPv6 address, you
know that three zero blocks have been replaced by the double colons because five blocks still
appear.
Unicast refers to the transmission of a message to a single point, as opposed to broadcast (sent to
all local network points), multicast (sent to multiple points), and anycast (sent to any one computer
of a set of computers). Unlike IPv4, IPv6 does not rely on network broadcasts. Instead of broadcasts, IPv6 uses multicast or anycast transmission.
74
Chapter 1
Global Addresses
IPv6 global addresses (GAs) are the equivalent of public addresses in IPv4 and are globally
reachable on the IPv6 portion of the Internet. The address prefix currently used for GAs is
2000::/3, which translates to a first block value between 2000-3FFF in the usual hexadecimal
notation. An example of a GA is 2001:db8:21da:7:713e:a426:d167:37ab.
The structure of a GA, shown in Figure 1-39, can be summarized in the following manner:
The first 48 bits of the address are the global routing prefix specifying your organizations site. (The first three bits of this prefix must be 001 in binary notation.) These 48
bits represent the public topology portion of the address, which represents the collection of large and small ISPs on the IPv6 Internet and which is controlled by these ISPs
through assignment by the IANA.
The next 16 bits are the subnet ID. Your organization can use this portion to specify up
to 65,536 unique subnets for routing purposes inside your organizations site. These 16
bits represent the site topology portion of the address, which your organization has control over.
The final 64 bits are the interface ID and specify a unique interface within each subnet. This
interface ID is equivalent to a host ID in IPv4.
2001:db8:21da:7:713e:a426:d167:37ab
2001:
001
(3 bits)
0db8:
21da:
0007:
Public routing
Subnet ID
(16 bits)
Private routing
713e:
a426:
d167:
37ab
Host address
(64 bits)
Link-local Addresses
Link-local addresses (LLAs) are similar to Automatic Private IP Addressing (APIPA) addresses
(169.254.0.0/16) in IPv4 in that they are self-configured, nonroutable addresses used only for
communication on the local subnet. However, unlike an APIPA address, an LLA remains
75
assigned to an interface as a secondary address even after a routable address is obtained for
that interface.
LLAs always begin with fe80. An example LLA is fe80::154d:3cd7:b33b:1bc1%13, as shown
in the following Ipconfig output:
Windows IP Configuration
Host Name . . . . . . .
Primary Dns Suffix . .
Node Type . . . . . . .
IP Routing Enabled. . .
WINS Proxy Enabled. . .
DNS Suffix Search List.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
:
:
:
:
:
:
server1
Hybrid
No
No
contoso.com
. : contoso.com
. : Intel(R) 82566DC Gigabit Network Connection - Virtual
.
.
.
.
.
.
.
.
.
.
.
:
:
:
:
:
:
:
:
:
:
:
00-1D-60-9C-B5-35
Yes
Yes
fe80::154d:3cd7:b33b:1bc1%13(Preferred)
192.168.2.99(Preferred)
255.255.255.0
Wednesday, February 06, 2008 9:32:16 PM
Wednesday, February 13, 2008 3:42:03 AM
192.168.2.1
192.168.2.10
192.168.2.10
192.168.2.201
NetBIOS over Tcpip. . . . . . . . : Enabled
The structure of such an LLA, illustrated in Figure 1-40, can be summarized as follows:
The first half of the address is written as fe80:: but can be understood as
fe80:0000:0000:0000.
Each computer tags an LLA with a zone ID in the form %ID. This zone ID is not part
of the address but changes relative to each computer. The zone ID in fact specifies the network interface that is connected, either locally or across the network, to the address.
76
Chapter 1
fe80::154d:3cd7:b33b:1bc1%13
fe80:
1111 1110 10
(10 bits)
0000:
0000:
0000:
All 0s
(54 bits)
154d:
3cd7:
b33b:
1bc1
Interface ID
(64 bits)
%13
Zone ID
Adapter
identification
(local use only)
fe80::d84b:8939:7684:a5a4%7
fe80::462:7ed4:795b:1c9f%8
fe80::2882:29d5:e7a4:b481%9
The two characters after each address indicate that the preceding networks are connected to the zone IDs 7, 8, and 9, respectively. Although zone IDs can occasionally be
used with other types of addresses, you should always specify the zone ID when connecting to LLAs.
Remember also that zone IDs are relative to the sending host. If you want to ping a neighboring computers LLA, you have to specify the neighbors address along with the Zone
ID of your computers network adapter that faces the neighbors computer. For example,
in the command ping fe80::2b0:d0ff:fee9:4143%3, the address is of the neighboring
computers interface, but the %3 corresponds to the zone ID of an interface on the
local computer.
In Windows Vista and Windows Server 2008, the zone ID for an LLA is assigned on the
basis of a parameter called the interface index for that network interface. You can view a
list of interface indexes on a computer by typing netsh interface ipv6 show interface at
a command prompt.
77
The first seven bits of the address are always 1111 110 (binary) and the eighth bit is set to
1, indicating a local address. This means that the address prefix is fd00::/8 for this type of
address. (Note that in the future the prefix fc00::/8 might also be used for ULAs.)
The next 40 bits represent the global ID and is a randomly generated value that identifies
a specific site within your organization.
The next 16 bits represent the subnet ID and can be used for further subdividing the
internal network of your site for routing purposes.
The last 64 bits are the interface ID and specify a unique interface within each subnet.
9abf:
efb0:
Global ID
(40 bits)
0001:
0000:
0000:
0000:
0002
Subnet ID
(16 bits)
Host address
(64 bits)
Routing between
LANs within a site
Exam Tip Expect to see more than one question on the 70-642 exam about IPv6 address types.
These questions are easy if you just remember that GAs are equivalent to IPv4 public addresses,
LLAs are equivalent to APIPA addresses, and ULAs are equivalent to IPv4 private addresses.
NOTE
Site-local addresses in the feco::/10 address prefix also provide private routing on IPv6 networks,
but they have recently been deprecated (officially set on a path toward obsolescence) by RFC 3879.
78
Chapter 1
In IPv4, the address 127.0.0.1 is known as the loopback address and always refers to the local computer. The loopback address in IPv6 is ::1. On a computer with any IPv4 or IPv6 address, you can
ping the loopback address to ensure that TCP/IP is functioning correctly.
Few routers on the Internet today are IPv6-compatible. However, a specific public wide area network uses IPv6 as its Network Layer protocol. This network is known as the IPv6 Internet. Currently,
the IPv6 Internet is made of both IPv6 native links and tunneled links over the IPv4 Internet.
Transition technologies, including the Next Generation TCP/IP stack in Windows, ISATAP,
6to4, and Teredo allow IPv6 to be used across a routing infrastructure that supports only IPv4.
These technologies are described below.
79
port it. However, they can also communicate with computers or network services that support
only IPv4.
IPv6 network
IPv6
IPv6 host
ISATPAP host
ISATAP
router
Figure 1-42 ISATAP routers allows IPv4-only and IPv6-only hosts to communicate with each other
ISATAP allows IPv4 and IPv6 hosts to communicate by performing a type of address translation between IPv4 and IPv6. In this process, all ISATAP clients receive an address for an
ISATAP interface. This address is composed of an IPv4 address encapsulated inside an IPv6
address.
ISATAP is intended for use within a private network.
NOTE
Installations of Windows Server 2008 include an ISATAP tunnel interface by default. Usually this
interface is assigned to Tunnel Adapter Local Area Connection* 8.
6to4
6to4 is a protocol that tunnels IPv6 traffic over IPv4 traffic through 6to4 routers. 6to4 clients
have their routers IPv4 address embedded in their IPv6 address and do not require an IPv4
address. Whereas ISATAP is intended primarily for intranets, 6to4 is intended to be used on
the Internet. You can use 6to4 to connect to IPv6 portions of the Internet through a 6to4 relay
even if your intranet or your ISP supports only IPv4.
A sample 6to4 network is shown in Figure 1-43.
80
Chapter 1
6to4
host
IPv6 intranet
6to4
router
IPv4 Internet
6to4
relay
IPv6
IPv6 Internet
IPv6
host
IPv6
Figure 1-43 6to4 allows IPv6-only hosts to communicate over the Internet
Teredo
Teredo is a tunneling protocol that allows clients located behind an IPv4 NAT device to use
IPv6 over the Internet. Teredo is used only when no other IPv6 transition technology (such as
6to4) is available.
Teredo relies on an infrastructure, illustrated in Figure 1-44, that includes Teredo clients,
Teredo servers, Teredo relays, and Teredo host-specific relays.
Teredo
host-specific
relay
Teredo
client
IPv4 intranet
NAT
IPv4 Internet
Teredo
relay
IPv6 Internet
IPv6
host
IPv6
Teredo server
Figure 1-44 Teredo allows hosts located behind IPv4 NAT to use IPv6 over the Internet to communicate with each other or with IPv6-only hosts
81
Teredo client A Teredo client is computer that is enabled with both IPv6 and IPv4 and
that is located behind a router performing IPv4 NAT. The Teredo client creates a Teredo
tunneling interface and configures a routable IPv6 address with the help of a Teredo
server. Through this interface, Teredo clients communicate with other Teredo clients or
with hosts on the IPv6 Internet (through a Teredo relay).
Teredo server A Teredo server is a public server connected both to the IPv4 Internet and
to the IPv6 Internet. The Teredo server helps perform the address configuration of the
Teredo client and facilitates initial communication either between two Teredo clients or
between a Teredo clients and an IPv6 host.
Installations of Windows Server 2008 include a Teredo tunnel interface by default. Usually this
interface is assigned to Tunnel Adapter Local Area Connection* 9.
Quick Check
1. Which technology is designed to allow an IPv4-only LAN to communicate with an
IPv6-only LAN?
2. Which technology allows an IPv4-only host to communicate with the IPv6 Internet?
Quick Check Answers
1. ISATAP
2. 6to4