128 Understanding IPv6,Second Edition Prefix Information Option The Prefix Information option is sent in Router Advertisement messages to indicate both address prefixes and information about address autoconfiguration.There can be multiple Pre- fix Information options included in a Router Advertisement message,indicating multiple address prefixes. Figure 6-6 shows the structure of the Prefix Information option. Type =3 Length =4 Prefix Length On-Link Flag Autonomous Flag Router Address Flag Site Prefix Flag Reserved 1 Valid Lifetime Preferred Lifetime Reserved 2 Site Prefix Length Prefix wwwwwwww wwwwwwww Figure 6-6 The structure of the Prefix Information option The fields in the Prefix Information option are as follows: Type The value of this field is 3. Length The value of this field is 4.(The entire option is 32 bytes in length.) Prefix Length The Prefix Length field indicates the number of leading bits in the Prefix field that make up the address prefix.The size of this field is 8 bits.The Prefix Length field has a value from 0 through 128.Because typical prefixes advertised are for subnet identifiers,the Prefix Length field is usually set to 64. On-Link flag The On-Link flag indicates,when set to 1,that the addresses implied by the included prefix are available on the link on which this Router Advertisement mes- sage was received.When this flag is set to 0,it is not assumed that the addresses that match the prefix are available on-link.The size of this field is I bit. Autonomous flag The Autonomous flag indicates,when set to 1,that the included pre- fix is used to create an autonomous(or stateless)address configuration.When this flag is set to 0,the included prefix is not used to create a stateless address configuration.The size of this field is 1 bit Router Address flag The Router Address flag is defined in RFC3775 for Mobile IPv6. For more information,see Appendix F
!"#$%&"'!()*#'&'+*#'&#,,&*#&-'.*!/01!*#,(&*(,,)2,*'#&0#3)*4'* )00!,,+!"#$,)&0#&"'!()*#'&)4'.*)00!,,).*'3'&"#2.!)*#'&5!3)&4(.6*#+6 !7 "#$%&"'!()*#'&'+*#'&,#&36.00#&)-'.*!/01!*#,(&*(,,)28#&0#3)*#&2(.6*#+6 )00!,,+!"#$,5 9#2.!:7:,';,*,*!.3*.!'"* !"#$%&"'!()*#'&'+*#'&5 < => ?@ABCDEFCEDAGHC@AIDAHJKLMHGDNOCJGMGPCJGM "#60,#&* !"#$%&"'!()*#'&'+*#'&)!),"'66';,Q R ST 1)6.'"*#,"#60#,U5 R V W 1)6.'"*#,"#60#,X5Y&*#!'+*#'&#,UZ4[*,#&6&2*5\ R V W !"#$]&2*"#60#&0#3)*,*&.(4!'"6)0#&24#*,#&* !"#$ "#60*)*()^.+*)00!,,+!"#$5,#_'"*#,"#60#,`4#*,5 !"#$]&2* "#60),)1)6."!'(a*!'.2bZ`5c3).,*[+#3)6+!"#$,)01!*#,0)!"'!,.4&* #0&*#"#!,8* !"#$]&2*"#60#,.,.)66[,**':X5 R >Vde f&7]#&^"6)2#&0#3)*,8;&,**'b8*)**)00!,,,#(+6#04[ *#&36.00+!"#$)!)1)#6)46'&*6#&^'&;#3*#,-'.*!/01!*#,(&*(,7 ,)2;),!3#105g&*#,"6)2#,,**'a8#*#,&'*),,.(0*)**)00!,,,*)* ()*3*+!"#$)!)1)#6)46'&76#&^5,#_'"*#,"#60#,b4#*5 R h= = e /.*'&'('.,"6)2#&0#3)*,8;&,**'b8*)**#&36.00+!7 "#$#,.,0*'3!)*)&).*'&'('.,Y'!,*)*6,,\)00!,,3'&"#2.!)*#'&5g&*#,"6)2 #,,**'a8*#&36.00+!"#$#,&'*.,0*'3!)*),*)*6,,)00!,,3'&"#2.!)*#'&5 ,#_'"*#,"#60#,b4#*5 R i= h e -'.*!/00!,,"6)2#,0"#&0#&-9jUkkl"'!m'4#6% 1:5 9'!('!#&"'!()*#'&8,/++&0#$95 nopq rqstuv wx y z{q|}~rqstuv sr}st ust uq{ {qt }uqz{q|}~t qq{q }r}|qu}q z{q|q{{qr}|qu}q qq{q z{q|}~ }uqz{q|}~rqstuv
Chapter 6 Neighbor Discovery 129 Site Prefix flag The Site Prefix flag indicates,when set to 1,that the site prefix defined by the Prefix field and the Site Prefix Length field be used to update the site prefix table. The site prefix table is maintained by the host and is utilized to prefer the use of site-local addresses when a global address matches a site prefix.This flag is described in the Inter- net draft titled "Site Prefixes in Neighbor Discovery.' Reserved1 The Reservedl field is a 4-bit field reserved for future use and set to 0. Valid Lifetime The Valid Lifetime field indicates the number of seconds that an address,based on the included prefix and using stateless address configuration,remains valid.The size of this field is 32 bits.The Valid Lifetime field also indicates the number of seconds that the included prefix is valid for on-link determination.For an infinite valid lifetime,the Valid Lifetime field is set to OxFFFFFFFF. Preferred Lifetime The Preferred Lifetime field indicates the number of seconds that an address,based on the included prefix and using stateless address autoconfiguration, remains in a preferred state.The size of this field is 32 bits.Stateless autoconfiguration addresses that are still valid are either in a preferred or deprecated state.In the preferred state,the address can be used for unrestricted communication.In the deprecated state, the use of the address is not recommended for new communications.However,existing communications using a deprecated address can continue.An address goes from the preferred state to the deprecated state when its preferred lifetime expires.For an infinite preferred lifetime,the Preferred Lifetime field is set to OxFFFFFFFF. Reserved2 The Reserved2 field is a 24-bit field reserved for future use and set to 0. Site Prefix Length The Site Prefix Length field indicates the number of leading bits in the Prefix field that define a site prefix.The length of this field is 8 bits.This field is sig- nificant only if the Site Prefix flag is set to 1.This field is described in the Internet draft titled "Site Prefixes in Neighbor Discovery.' Prefix The Prefix field indicates the prefix for the IPv6 address derived through state- less autoconfiguration.The size of this field is 128 bits.Bits in the Prefix field-up to a count equaling the value of the Prefix Length field-are significant for creating the prefix The combination of the Prefix Length field and the Prefix field unambiguously defines the prefix which,when combined with the interface identifier for the node,creates an IPv6 address.The link-local prefix should not be sent and is ignored by the receiving host. Network Monitor Capture Here is an example of a Prefix Information option used in a Router Advertisement message as displayed by Network Monitor 3.1(capture 06_02 in the \NetworkMonitorCaptures folder on the companion CD-ROM): Frame: Ethernet:Etype-IPv6 Ipv6:Next Protocol ICMPv6,Payload Length 96 Icmpv6:Router Advertisement MessageType:Router Advertisement,134(0x86)
!"#$%!&%'()!*+!,("-./*-""01."(""-!"2$%!&+%!*+ 34"#$%!&%!'+(*+" !"#$%!&5*)"%!'+36-+"062+(""-!"2$%!&"(3'7 -!"2$%!&"(3'!-8(!*"(!*+34"0-"(*+!-6"!'!9+"02$%$"6-0%-!":'0,(' (++$---/*()'03('(++$--8(",-(-!"2$%!&7!-%'()!-+-,$!3+!*";*"$: *"+$(%""!"'+< !"#$%!&-!*=!)30$>!-,0?$47@ ABC D-$?+1%!'+!-(E:3!"%!'+$-$?+%0$%6"6$6-(*+-""0F7 GBHI J('!+5!%"!8%!'+!*+!,("-"*683$0%-,0*+-"("(* (++$--.3(-+0*"!*,'6++2$%!&(*+6-!*)-"("'--(++$--,0*%!)6$("!0*.$8(!*- ?('!+7-!90%"!-%!'+!-KL3!"-7J('!+5!%"!8%!'+('-0!*+!,("-"*683$ 0%-,0*+-"(""!*,'6++2$%!&!-?('!+%0$0*:'!*M+"$8!*("!0*7N0$(*!*%!*!" ?('!+'!%"!8."J('!+5!%"!8%!'+!--""0F&NNNNNNNN7 BHI #$%$$+5!%"!8%!'+!*+!,("-"*683$0%-,0*+-"(" (*(++$--.3(-+0*"!*,'6++2$%!&(*+6-!*)-"("'--(++$--(6"0,0*%!)6$("!0*. $8(!*-!*(2$%$$+-"("7-!90%"!-%!'+!-KL3!"-7 "("'--(6"0,0*%!)6$("!0* (++$---"("($-"!''?('!+($!"$!*(2$%$$+0$+2$,("+-"("7;*"2$%$$+ -"("."(++$--,(*36-+%0$6*$-"$!,"+,0886*!,("!0*7;*"+2$,("+-"(". "6-0%"(++$--!-*0"$,088*++%0$*/,0886*!,("!0*-7O0/?$.&!-"!*) ,0886*!,("!0*-6-!*)(+2$,("+(++$--,(*,0*"!*67P*(++$--)0-%$08" 2$%$$+-"(""0"+2$,("+-"("/*!"-2$%$$+'!%"!8&2!$-7N0$(*!*%!*!" 2$%$$+'!%"!8."#$%$$+5!%"!8%!'+!--""0F&NNNNNNNN7 ABQ D-$?+L%!'+!-(LE:3!"%!'+$-$?+%0$%6"6$6-(*+-""0F7 HR !"#$%!&5*)"%!'+!*+!,("-"*683$0%'(+!*)3!"-!* "#$%!&%!'+"("+%!*(-!"2$%!&7'*)"0%"!-%!'+!-S3!"-7!-%!'+!--!): *!%!,(*"0*'4!%" !"#$%!&%'()!--""017!-%!'+!-+-,$!3+!*";*"$*"+$(%" "!"'+< !"#$%!&-!*=!)30$>!-,0?$47@ #$%!&%!'+!*+!,("-"2$%!&%0$";#?T(++$--+$!?+"$06)-"(": '--(6"0,0*%!)6$("!0*7-!90%"!-%!'+!-1LS3!"-7U!"-!*"#$%!&%!'+V62"0( ,06*"W6('!*)"?('60%"#$%!&5*)"%!'+V($-!)*!%!,(*"%0$,$("!*)"2$%!&7 ,083!*("!0*0%"#$%!&5*)"%!'+(*+"#$%!&%!'+6*(83!)606-'4+%!*- "2$%!&/!,./*,083!*+/!""!*"$%(,!+*"!%!$%0$"*0+.,$("-(* ;#?T(++$--7'!*M:'0,('2$%!&-06'+*0"3-*"(*+!-!)*0$+34"$,!?!*)0-"7 XYZR[ O$!-(*&(82'0%(#$%!&;*%0$8("!0*02"!0*6-+!*(D06"$P+?$"!-8*"8--()(- +!-2'(4+34="/0$M\0*!"0$K71],(2"6$FT^FL!*"_="/0$M\0*!"0$`(2"6$-%0'+$0* ",082(*!0*`>:Da\bc defghi j klmhenhli klophqrstu j rptui vhwl sexlxyxzqr{|stu} sfozxf~ hnlmqu rygptui xlhe ~thelhghnl |hfhophi xlhe ~thelhghnl} wu
130 Understanding IPv6,Second Edition RouterAdvertisement: SourceLinkLayerAddress: Type:Source Link-Layer Address,1(0x1) Length:1,in unit of 8 octets Address:00-B0-D0-23-47-33 MTU: PrefixInformation: PrefixInformation: Type:Prefix Information,3(0x3) Length:4,in unit of 8 octets PrefixLength:64 (0x40) -F1ags:192(0xC0) L:(1.......)On-Link determination allowed A: (.1......)Autonomous address-configuration R: (..0.....)Not router Address S: (...0....)Not a site prefix P: (....0...)Not a router prefix Rsv:(...000) ValidLifetime:4294967295 (0xFFFFFFFF) PreferredLifetime:4294967295 (OxFFFFFFFF) Reserved:0 (0x0) Prefix:FD43:2DA1:3FE9:2:0:0:0:0 Redirected Header Option The Redirected Header option is sent in Redirect messages to specify the IPv6 packet that caused the router to send a Redirect message.It can contain all or part of the redirected IPv6 packet,depending on the size of the IPv6 packet that was initially sent. Figure 6-7 shows the structure of the Redirected Header option Type =4 Length Reserved Portion of Redirected Packet... Figure 6-7 The structure of the Redirected Header option The following list describes the fields in the Redirected Header option: Type The value of this field is 4. Length The value of this field is the number of 8-byte blocks in the entire option. Reserved The Reserved field is a 48-bit field reserved for future use and set to 0. Portion of redirected packet This field contains either the IPv6 packet or a portion of the IPv6 packet that caused the Redirect message to be sent.The amount of the original packet that is included is the leading portion of the packet so that the entire Redirect message is no more than 1280 bytes in length
!"#$%& ' ()*"%+*,- ##& .-/& () *"%+'*,- ##0 123415 *%67& 10 "% %" 89)# ##& 33':3';3'<='>?'== @.A& B8"4C%8$,"%& ' B8"4C%8$,"%& .-/& B8"4 C%8$,"%0 =234=5 *%67& >0 "% %" 89)# B8"4*%67& D> 234>35 ' EF,6#& 1G< 234H35 *& 21IIIIIII5 J%'*"%+ $"%,"% ,FFK & 2I1IIIIII5 %$# , ##')%8"6,"% & 2II3IIIII5 L ## (& 2III3IIII5 L,#" /8"4 B& 2IIII3III5 L, /8"4 #!& 2IIIII3335 M,F" *"8"$& ><G>GD?<GN 234EEEEEEEE5 B8 *"8"$& ><G>GD?<GN 234EEEEEEEE5 #! &323435 B8"4& E;>=&<;1&=EOG&<&3&3&3&3 P QRS TUVWVXYZV[\VX]V^XVZ_`\Y_aYbbVa\YaWVXYZV[\cVbb^dVb\_b`V[Yef\UVghij`^[kV\\U^\ [^lbVX\UVZ_l\VZ\_bVaX^WVXYZV[\cVbb^dVmg\[^a[_a\^Ya^nn_Z`^Z\_e\UVZVXYZV[\VXghij `^[kV\oXV`VaXYad_a\UVbYpV_e\UVghij`^[kV\\U^\q^bYaY\Y^nnfbVa\m rYdlZVjstbU_qb\UVb\Zl[\lZV_e\UVWVXYZV[\VX]V^XVZ_`\Y_am u vwx yz{|}~}~{}z{{ ~{}{{{~} TUVe_nn_qYadnYb\XVb[ZYVb\UVeYVnXbYa\UVWVXYZV[\VX]V^XVZ_`\Y_a S TUVi^nlV_e\UYbeYVnXYbm TUVi^nlV_e\UYbeYVnXYb\UValcVZ_esf\Vn_[kbYa\UVVa\YZV_`\Y_am P TUVWVbVZiVXeYVnXYb^sY\eYVnXZVbVZiVXe_Zel\lZVlbV^aXbV\\_m S TUYbeYVnX[_a\^YabVY\UVZ\UVghij`^[kV\_Z^`_Z\Y_a_e \UVghij`^[kV\\U^\[^lbVX\UVWVXYZV[\cVbb^dV\_VbVa\mTUV^c_la\_e\UV_ZYdYa^n `^[kV\\U^\YbYa[nlXVXYb\UVnV^XYad`_Z\Y_a_e\UV`^[kV\b_\U^\\UVVa\YZVWVXYZV[\ cVbb^dVYba_c_ZV\U^af\VbYanVad\Um ¡¢£¤¥ ¦§£¨§§©¡¥¨£ª¥¦«ª¬ ® ¯¯¯