54 Understanding IPv6,Second Edition Unicast IPv6 Addresses The following types of addresses are unicast IPv6 addresses: Global unicast addresses Link-local addresses Site-local addresses Unique local addresses ■Special addresses Transition addresses Global Unicast Addresses IPv6 global addresses are equivalent to public IPv4 addresses.They are globally routable and reachable on the IPv6 Internet.Global unicast addresses are designed to be aggregated or summarized for an efficient routing infrastructure.Unlike the current IPv4-based Internet. which is a mixture of both flat and hierarchical routing,the IPv6-based Internet has been designed from its foundation to support efficient,hierarchical addressing and routing.The scope of a global address is the entire IPv6 Internet. RFC 4291 defines global addresses as all addresses that are not the unspecified,loopback, link-local unicast,or multicast addresses(described later in this chapter).However,Figure 3-1 shows the structure of global unicast addresses defined in RFC 3587 that are currently being used on the IPv6 Internet. 48 bits 45 bits 16 bits 64 bits Global Routing Prefix Subnet ID Interface ID 001 Figure 3-1 The structure of global unicast addresses defined in RFC 3587 The fields in the global unicast address are described in the following list: Fixed portion set to 001 The three high-order bits are set to 001. Global Routing Prefix Indicates the global routing prefix for a specific organization's site.The combination of the three fixed bits and the 45-bit Global Routing Prefix is used to create a 48-bit site prefix,which is assigned to an individual site of an organization.A site is an autonomously operating IP-based network that is connected to the IPv6 Internet. Network architects and administrators within the site determine the addressing plan and
! "##$%% &'( )*++*,-./ 012(3 *) 4556(33(3 46( 7.-8430 9:;< 4556(33(3= > ?+*@4+ 7.-8430 4556(33(3 > A-.BC+*84+ 4556(33(3 > D-0(C+*84+ 4556(33(3 > E.-F7( +*84+ 4556(33(3 > D2(8-4+ 4556(33(3 > &64.3-0-*. 4556(33(3 GHI H J 9:;< /+*@4+ 4556(33(3 46( (F7-;4+(.0 0* 27@+-8 9:;K 4556(33(3L &'(1 46( /+*@4++1 6*704@+( 4.5 6(48'4@+( *. 0'( 9:;< 9.0(6.(0L ?+*@4+ 7.-8430 4556(33(3 46( 5(3-/.(5 0* @( 4//6(/40(5 *6 37MM46-N(5 )*6 4. ())-8-(.0 6*70-./ -.)6430678076(L E.+-B( 0'( 8766(.0 9:;KC@43(5 9.0(6.(0O ,'-8' -3 4 M-P076( *) @*0' )+40 4.5 '-(6468'-84+ 6*70-./O 0'( 9:;<C@43(5 9.0(6.(0 '43 @((. 5(3-/.(5 )6*M -03 )*7.540-*. 0* 3722*60 ())-8-(.0O '-(6468'-84+ 4556(33-./ 4.5 6*70-./L &'( 38*2( *) 4 /+*@4+ 4556(33 -3 0'( (.0-6( 9:;< 9.0(6.(0L QRS KTUV 5()-.(3 /+*@4+ 4556(33(3 43 4++ 4556(33(3 0'40 46( .*0 0'( 7.32(8-)-(5O +**2@48BO +-.BC+*84+ 7.-8430O *6 M7+0-8430 4556(33(3 W5(386-@(5 +40(6 -. 0'-3 8'420(6XL Y*,(;(6O R-/76( ZCV 3'*,3 0'( 30678076( *) /+*@4+ 7.-8430 4556(33(3 5()-.(5 -. QRS Z[\] 0'40 46( 8766(.0+1 @(-./ 73(5 *. 0'( 9:;< 9.0(6.(0L ^_ `ab cde fghijgihe kl mnkopn iqrjpfg pssheffef selrqes rq tuv wxyz &'( )-(+53 -. 0'( /+*@4+ 7.-8430 4556(33 46( 5(386-@(5 -. 0'( )*++*,-./ +-30= > ^{ | }}b &'( 0'6(( '-/'C*65(6 @-03 46( 3(0 0* ~~VL > GHI H _ { 9.5-840(3 0'( /+*@4+ 6*70-./ 26()-P )*6 4 32(8-)-8 *6/4.-N40-*.3 3-0(L &'( 8*M@-.40-*. *) 0'( 0'6(( )-P(5 @-03 4.5 0'( K[C@-0 ?+*@4+ Q*70-./ :6()-P -3 73(5 0* 86(40( 4 K\C@-0 3-0( 26()-PO ,'-8' -3 433-/.(5 0* 4. -.5-;-574+ 3-0( *) 4. *6/4.-N40-*.L 3-0( -3 4. 470*.*M*73+1 *2(640-./ 9:C@43(5 .(0,*6B 0'40 -3 8*..(80(5 0* 0'( 9:;< 9.0(6.(0L (0,*6B 468'-0(803 4.5 45M-.-30640*63 ,-0'-. 0'( 3-0( 5(0(6M-.( 0'( 4556(33-./ 2+4. 4.5
Chapter 3 IPv6 Addressing 55 routing policy for the organization network.Once assigned,routers on the IPv6 Internet forward IPv6 traffic matching the 48-bit prefix to the routers of the organization's site. Subnet ID The Subnet ID is used within an organization's site to identify subnets within its site.The size of this field is 16 bits.The organization's site can use these 16 bits within its site to create 65,536 subnets or multiple levels of addressing hierarchy and an efficient routing infrastructure.With 16 bits of subnetting flexibility,a global unicast pre fix assigned to an organization site is equivalent to a public IPv4 Class A address prefix (assuming that the last octet is used for identifying nodes on subnets).The routing struc- ture of the organization's network is not visible to the ISP. Interface ID Indicates the interface on a specific subnet within the site.The size of this field is 64 bits.The interface ID in IPv6 is equivalent to the node ID or host ID in IPv4. Trillions of Sites Another way to gauge the practical size of the IPv6 address space is to examine the num- ber of sites that can connect to the IPv6 Internet.With the current allocation practice defined in RFC 3587 of 48-bit global address prefixes,it is possible to define 245 or 35,184,372,088,832 possible 48-bit prefixes to assign to sites connected to the IPv6 Internet.There are more IPv6 sites than possible IPv4 addresses.This large number of sites is possible even when we are using only one-eighth of the entire IPv6 address space. By comparison,using the Internet address classes originally defined for IPv4,it was pos- sible to assign 2,113,389 address prefixes to organizations connected to the Internet. The number 2,113,389 is derived from adding up all the possible Class A,Class B,and Class C address prefixes and then subtracting the prefixes used for the private address space.Even with the adoption of CIDR to make more efficient use of unassigned Class A and Class B address prefixes,the number of possible sites connected to the Internet is not substantially increased,nor does it approach the number of possible sites that can be connected to the IPv6 Internet. Topologies Within Global Addresses The fields within the global address create a three-level topological structure,as shown in Figure 3-2. -001 Global Routing Prefix Subnet ID Interface ID 48 bits 16 bits 64 bits Public Topology Site Interface ldentifier Topology Figure 3-2 The topological structure of the global address
!"#$#"%&'("#))"*+")!",-./,"" %#*,-./# 0#!!"1234" 5!"") !"#$#6))"' 7 89: ; <!"=4",>))"*%!##$#6))"*" )4") %!))"'<!")$" !) "*)?/4)'<!"#$#6))"#)"!")"?/4) %!))""#"/@+@A/)4")0"".") #**"))!"#!#*# " " #)"'B!?/4) )4" "54+#4##)"3 5#))"*##$#)")"C.#"#4,-.1D#))E#**"))" 5 F#))0!#!"#)"))"* *" *"))4")G'<!")3 " !"#$#6)"%&).)4"!",=-' 7 HI ; ,*#")!"" #"#)" )4"%!!")"'<!")$" !) "*)/14)'<!"" #",>,-./)"C.#"!"*",>!),>,-.1' JKLMMLNOPNQRLSTP E!"%##"!"##)$" !",-./#**")))#")"5#0"!"03 4" )")!##"!",-./,""'B!!""###" *" "*UVDA@2W 12344##**"))" 5")+)))4"*" "X1@ A@+?21+AWX+Y22+2AX))4"1234" 5")#)))")""*!",-./ ,""'<!""#"0",-./)")!#))4",-.1#**"))")'<!)#"04" )"))))4""."%!"%"#")"3"!! !""",-./#**")))#"' Z0#)+)!",""#**"))#))")#*" "* ,-.1+%#))3 )4"#))X+??A+A2[#**"))" 5")#$#)""*!",""' <!"04"X+??A+A2[)*"."* 0#**#!"))4"D#))E+D#))Z+#* D#))D#**"))" 5")#*!")4#!"" 5"))"* !".#"#**")) )#"'\."%!!"#* D,>U0#&"0"" ")" #))"*D#)) E#*D#))Z#**"))" 5")+!"04" ))4")")""*!","") )4)##"#)"*+*")##!!"04" ))4")")!##4" ""*!",-./,""' ]^^_^`a_^:_ <!" "*)%!!"4##**"))"#"#!""3"."#)"+#))!% V"A3X' b9 cd efghijikilmnokphqrnhrqgishfglkitokouuqgpp vwxyz{ |}x~y~ xyz{ yz ~ vxyz{ zzyy ~x~}zy|y }xz z
56 Understanding IPv6,Second Edition The public topology is the collection of larger and smaller ISPs that provide access to the IPv6 Internet.The site topology is the collection of subnets within an organization's site.The interface identifier specifies a unique interface on a subnet within an organization's site. Local-Use Unicast Addresses Local-use unicast addresses do not have a global scope and can be reused.There are two types of local-use unicast addresses: 1.Link-local addresses are used between on-link neighbors and for Neighbor Discovery processes. 2.Site-local addresses are used between nodes communicating with other nodes in the same organization. Link-Local Addresses IPv6 link-local addresses,identified by the initial 10 bits being set to 1111 1110 10 and the next 54 bits set to 0,are used by nodes when communicating with neighboring nodes on the same link.For example,on a single-link IPv6 network with no router,link-local addresses are used to communicate between hosts on the link.IPv6 link-local addresses are similar to IPv4 link-local addresses defined in RFC 3927 that use the 169.254.0.0/16 prefix.The use of IPv4 link-local addresses is known as Automatic Private IP Addressing (APIPA)in Windows Vista,Windows Server 2008,Windows Server 2003,and Windows XP.The scope of a link- local address is the local link Figure 3-3 shows the structure of the link-local address. 10 bits 54 bits 64 bits 000.000 Interface ID -1111111010 Figure 3-3 The structure of the link-local address A link-local address is required for some Neighbor Discovery processes and is always automat- ically configured,even in the absence of all other unicast addresses.For more information about the address autoconfiguration process for link-local addresses,see Chapter 8,"Address Autoconfiguration. Link-local addresses always begin with FE80.With the 64-bit interface identifier,the prefix for link-local addresses is always FE80::/64.An IPv6 router never forwards link-local traffic beyond the link
!!!"# $ ! !% !& '("( '%) $*'( +,-$ ' (!.) '$$ ! +-./ +% (% 0 $ !!!"# $ ! !% !& $% $ 1 % '% !("'%2' !%3$ $ 0 % (&')% &( $&$ ' %4 % (&' !% ' $% 1 % '% !("'%2' !%3$ $ 0 5 67 8 9!':$ %'$ '))($$$ )! %! '. ' "!' $! '%) '% ($)0 ( '( 1! #$ !& !':$ %'$ '))($$$; <= 9%>:!' '))($$$ '( $) 1% !%:%> %"!($ '%) &!( ?"!( @$!.(# (!$$$0 A= , :!' '))($$$ '( $) 1% %!)$ !**%' %" 1 ! ( %!)$ % $'* !("'%2' !%0 5B75 6 8 +-./ %>:!' '))($$$C )% &) # % ' DE $ %" $ ! DDDD DDDE DE '%) %F GH $ $ ! EC '( $) # %!)$ 1% !**%' %" 1 %"!(%" %!)$ !% $'* %>0 I!( F'*C !% ' $%":%> +-./ % 1!(> 1 %! (! (C %>:!' '))($$$ '( $) ! !**%' 1% !$ $ !% %>0 +-./ %>:!' '))($$$ '( $*'( ! +-.H%>:!' '))($$$ )&%) % JIK LMNO ' $ D/M0NGH0E0EPD/ (&F0 $ !&+-.H %>:!' '))($$$ $ >%!1% '$ Q !*' -(.' +- Q))($$%" RQ-+-QS % T%)!1$ U$ 'C T%)!1$ ,(.( NEEVC T%)!1$ ,(.( NEELC '%) T%)!1$ W-0 $! !& ' %>: !' '))($$ $ !' %>0 I"( L:L $!1$ $ ( ( !& %>:!' '))($$0 XY Z7Z [\] ^_`ab_a`] cd _\] efghiecbje jkk`]^^ Q %>:!' '))($$ $ (4() &!( $!* ?"!( @$!.(# (!$$$ '%) $ '1'#$ ' !*' : '# !%&"()C .% % '$% !& ' ! ( %'$ '))($$$0 I!( *!( %&!(*' !% '! '))($$ ' !!%&"(' !% (!$$ &!( %>:!' '))($$$C $ K' ( VC lQ))($$ Q !!%&"(' !%0m 9%>:!' '))($$$ '1'#$ "% 1 InVE0 T /H: % (&' )% &(C (&F &!( %>:!' '))($$$ $ '1'#$ InVE;;P/H0 Q% +-./ (! ( %.( &!(1'()$ %>:!' ('&& #!%) %>0 op qrst uv qrst wv qrst ppp ppp xysz{|}~z x oooo ooop op
Chapter 3 IPv6 Addressing 57 Site-Local Addresses Site-local addresses,identified by setting the first 10 bits to 1111 1110 11,are equivalent to the IPv4 private address space(10.0.0.0/8,172.16.0.0/12,and 192.168.0.0/16).For example,pri vate intranets that do not have a direct,routed connection to the IPv6 Internet can use site- local addresses without conflicting with global addresses.Site-local addresses are not reach- able from other sites,and routers must not forward site-local traffic outside the site.Site-local addresses can be used in addition to global addresses.The scope of a site-local address is the site. Figure 3-4 shows the structure of the site-local address. 10 bits 54 bits 64 bits Subnet ID Interface ID 1111111011 Figure 3-4 The structure of the site-local address Unlike link-local addresses,site-local addresses are not automatically configured and must be assigned either through stateless or stateful address autoconfiguration.For more information, see Chapter 8. The first 10 bits are always fixed for site-local addresses,beginning with FECO:/10.After the 10 fixed bits is a 54-bit Subnet ID field that provides 54 bits with which you can create subnets within your organization.You can have a flat subnet structure,or you can divide the high- order bits of the Subnet ID field to create a hierarchical and summarizable routing infrastruc- ture.After the Subnet ID field is a 64-bit Interface ID field that identifies a specific interface on a subnet. Site-local addresses have been formally deprecated in RFC 3879 for future IPv6 implementations. However,existing implementations of IPv6 can continue to use site-local addresses. Zone IDs for Local-Use Addresses Unlike global addresses,local-use addresses (link-local and site-local addresses)can be reused.Link-local addresses are reused on each link.Site-local addresses can be reused within each site of an organization.Because of this address reuse capability,link-local and site-local addresses are ambiguous.To specify the link on which the destination is located or the site within which the destination is located,an additional identifier is needed.This additional identifier is a zone identifier(ID),also known as a scope ID,which identifies a connected por- tion of a network that has a specified scope
!"#$!$%%&'''(%)*%+,')-.*&'/0+'"///////0//($&123$!)". 45367&3$$%%&'''7$#8/0909090:;(/<=9/>9090:/=($)%/?=9/>;9090:/>@9A"&B$C7!(7& 3$)&$)'.$%")".$3$%&#(&"2%#"))#")".453>4)&)#$)2'' !"#$!$%%&'''D."2#")*!#)-D.-!"+$!$%%&'''9 !"#$!$%%&'''$&)"&$#. $+!*&"C".&''($)%&"2&'C2')"*"&D$&%' !"#$!&$**#"2'%.'9 !"#$! $%%&'''#$)+2'%)$%%")"-!"+$!$%%&'''9E.'#"7"*$' !"#$!$%%&'''. '9 A-2&F 6'."D'.'&2#2&"*.' !"#$!$%%&''9 GH I JKLMNOPQNPOLRSNKLMTNLUVRQWVWXXOLMM Y)!Z!)Z !"#$!$%%&'''(' !"#$!$%%&'''$&)"$2"C$#$!!,#")*-2&%$)%C2'+ $''-)%.&.&"2-.'$!''"&'$*2!$%%&''$2"#")*-2&$")9A"&C"&)*"&C$")( '[.$7&;9 E.*&'/0+'$&$!D$,'*B%*"&' !"#$!$%%&'''(+-)))-D.A\[0]]:/09^*&. /0*B%+''$_6 +2+)4`*!%.$7&"3%'_6+'D.D.#.,"2#$)#&$'2+)' D.),"2&"&-$)a$")9b"2#$).$3$*!$'2+)'&2#2&("&,"2#$)%3%..-. "&%&+'"*.2+)4`*!%"#&$$.&$&#.#$!$)%'2CC$&a$+!&"2)-)*&$'&2# 2&9^*&.2+)4`*!%'$>6 +4)&*$#4`*!%.$%)*'$'7#*#)&*$#") $'2+)9 !"#$!$%%&'''.$3+)*"&C$!!,%7&#$%)cA[F;<?*"&*22&453>C7!C)$")'9 d"D3&(B')-C7!C)$")'"*453>#$)#"))2"2'' !"#$!$%%&'''9 e fgh Y)!Z-!"+$!$%%&'''(!"#$! 2'$%%&'''8!)Z !"#$!$)%' !"#$!$%%&'''@#$)+ &2'%9i)Z !"#$!$%%&'''$&&2'%")$#.!)Z9 !"#$!$%%&'''#$)+&2'%D.) $#.'"*$)"&-$)a$")9j#$2'"*.'$%%&''&2'#$7$+!,(!)Z !"#$!$)%' !"#$! $%%&'''$&$C+-2"2'9E"'7#*,.!)Z")D.#..%')$")'!"#$%"&.' D.)D.#..%')$")'!"#$%($)$%%")$!%)*&')%%9E.'$%%")$! %)*&'$a")%)*&84`@($!'"Z)"D)$'$'#"74`(D.#.%)*'$#"))#%7"& ")"*$)D"&Z.$.$'$'7#*%'#"79 klmnop qrmnop srmnop |}muvot{ tuovwxyzvt{ kkkkkkklkk
58 Understanding IPv6,Second Edition The syntax specified in RFC 4007 for identifying the zone associated with a local-use address is Address%zone ID.in which Address is a local-use unicast IPv6 address and zone ID is an integer value representing the zone.The values of the zone ID are defined relative to the sending host.Therefore,different hosts might determine different zone ID values for the same physical zone.For example,Host A might choose 3 to represent the zone of an attached link and Host B might choose 4 to represent the same link. For Windows-based IPv6 hosts,the zone IDs for link-local and site-local addresses are defined as follows: For link-local addresses,the zone ID is typically the interface index of the interface either assigned the address or to be used as the sending interface for a link-local destination. The interface index is an integer starting at 1 that is assigned to IPv6 interfaces,which include a loopback and one or multiple LAN or tunnel interfaces.Multiple interfaces can have the same link-local zone ID if they are attached to the same link.You can view the list of interface indexes from the display of the netsh interface ipv6 show interface command.You must include a zone ID with a link-local destination. For site-local addresses,the zone ID is the site ID,an integer assigned to the site of an organization.For organizations that do not reuse the site-local address prefix,the site ID is set to I by default and does not need to be specified.In Windows,you can view the site ID from the display of the netsh interface ipv6 show address level=verbose command. The following are examples of using Windows tools and the zone ID: ping fe80::2b0:doff:fee9:4143%3 In this case,3 is the interface index of the interface attached to the link containing the destination address. tracert feco::f282:2b0:doff:fee9:4143%2 In this case,2 is the site ID of the organization site containing the destination address. In Windows Vista and Windows Server 2008,the Ipconfig.exe tool displays the zone ID of local-use IPv6 addresses.The following is an excerpt from the display of the ipconfig com- mand: Ethernet adapter Local Area Connection: Connection-specific DNS Suffix.:ecoast.example.com IPv6 Address,··,·,,·,·,:2001:db8:21da:7:713e:a426:d167:37ab Temporary IPv6 Address......:2001:db8:21da:7:5099:ba54:9881:2e54 Link-local IPv6 Address.....:fe80::713e:a426:d167:37ab%6 IPv4 Address.····,····,:157.60.14.11 Subnet Mask······,.···:255.255.255.0 Default Gateway.........fe80:20a:42ff:feb0:5400%6 157,60.14.1 For the link-local addresses in the display of the ipconfig command,the zone ID indicates the interface index of the interface either assigned the address (for Link-Local IPv6 Address)or the interface through which an address is reachable(for Default Gateway)
!"#"$ " %&' ())* #+, "$"#"- .+ +!"$ /" 0+!012 $$, " 344567789:;6<=>? " /"! 3445677 " 0+!012 2"! @ABC $$, $ 9:;6<=> " "-, B02 , ,"- .+D B02 +# .+ @E , $#"$ ,0"B + $"-+D ,#+,? $"##, + F"- $,F" $"##, .+ @E B02 #+, F "!0 .+D &+, F 0? G+ H F"- !++ I + , , .+ +# !$ 0"J $ G+ K F"- !++ ( + , , F 0"JD &+, L"$+/1M$ @ABC +? .+ @E #+, 0"J10+!0 $ "10+!0 $$, , $#"$ #+00+/N O &+, 0"J10+!0 $$,? .+ @E " "!00 ",#! "$ +# ",#! ", "-$ $$, +, + M 2$ $"- ",#! #+, 0"J10+!0 $""+D ",#! "$ " "-, ,"- P " "-$ + @ABC ",#!? /"! "!02$ 0++ M!J $ + +, F20" 0 QHR +, 20 ",#!D S20" 0 ",#! ! B F 0"J10+!0 .+ @E "# , !$ + F 0"JD T+2 ! B"/ 0" +# ",#! "$ #,+F $" 0 +# UVWXY ZUWV[\]^V Z_`a XYbc ZUWV[\]^V !+FF$D T+2 F2 "!02$ .+ @E /" 0"J10+!0 $""+D O &+, "10+!0 $$,? .+ @E " " @E? "-, "-$ + " +# +,-"."+D &+, +,-"."+ $+ + ,2 "10+!0 $$, ,#"? " @E " + P M $#20 $ $+ + $ + M !"#"$D @ L"$+/? +2 ! B"/ " @E #,+F $" 0 +# UVWXY ZUWV[\]^V Z_`a XYbc ]dd[VXX eV`Vef`V[gbXV !+FF$D #+00+/"- , F 0 +# 2"- L"$+/ ++0 $ .+ @EN O h ijkllmnklkiiliolpqprsr @ " !? t " ",#! "$ +# ",#! !$ + 0"J !+""- $""+ $$,D O ikllimjmlmnklkiiliolpqprsm @ " !? u " " @E +# +,-"."+ " !+""- $""+ $$,D @ L"$+/ v" $ L"$+/ w,B, x))y? @ !+#"-D ++0 $" 0 .+ @E +# 0+!012 @ABC $$,D #+00+/"- " !, #,+F $" 0 +# Z_^bU\Zz !+F1 F$N {|}~~| |~ ~ ~| ~| ~ ~ |~~ ~ ~¡ ¢~ £ ~¤¥¥¤¡¥~¤¡ ¦ ~~ ~¡ § ¡ ~¤¡ ~| ¨¦¤¤¤¤¤¤ ~| ©|~ª£~¡~¤¡§ ¤¡ &+, 0"J10+!0 $$, " $" 0 +# Z_^bU\Zz !+FF$? .+ @E "$"! ",#! "$ +# ",#! ", "-$ $$, «#+, Q"J1Q+!0 @ABC H$$,¬ +, ",#! ,+2- /"! $$, " ,!M0 «#+, E#20 /¬D