• Aucun résultat trouvé

IPv6 routers send unsolicited Router Advertisement messages pseudo-periodically—that is, the interval between unsolicited advertisements is randomized to reduce synchronization issues when there are multiple advertising routers on a link—and solicited Router Advertise-ment messages in response to the receipt of a Router Solicitation message. The Router Adver-tisement message contains the information required by hosts to determine the link prefixes, the link MTU, specific routes, whether or not to use address autoconfiguration, and the dura-tion for which addresses created through address autoconfiguradura-tion are valid and preferred.

For example, assuming that the local link is Ethernet, in the Ethernet header of the Router Advertisement message, you will find these settings:

The Source Address field is set to the MAC address of the sending network adapter.

The Destination Address field is set to either 33-33-00-00-00-01 or the unicast MAC address of the host that sent a Router Solicitation from a unicast address.

In the IPv6 header of the Router Advertisement message, you will find the following settings:

The Source Address field is set to the link-local address assigned to the sending interface.

The Destination Address field is set to either the link-local scope all-nodes multicast address (FF02::1) or the unicast IPv6 address of the host that sent the Router Solicita-tion message from a unicast address.

The Hop Limit field is set to 255.

Figure 6-13 shows the structure of the Router Advertisement message.

Figure 6-13 The structure of the Router Advertisement message The fields in the Router Advertisement message are as follows:

Type The value of this field is 134.

Code The value of this field is 0.

Checksum The value of this field is the ICMPv6 checksum.

Current Hop Limit The Current Hop Limit field indicates the default value of the Hop Limit field in the IPv6 header for packets sent by hosts that receive this Router Adver-tisement message. The size of this field is 8 bits. A current hop limit of 0 indicates that the default value of the Hop Limit field is not specified by the router.

Managed Address Configuration flag The Managed Address Configuration flag indi-cates, when set to 1, that hosts receiving this Router Advertisement message must use an address configuration protocol such as DHCPv6 to obtain addresses in addition to the addresses that might be derived from stateless address autoconfiguration. The size of this field is 1 bit.

Other Stateful Configuration flag The Other Stateful Configuration flag indicates, when set to 1, that hosts receiving this Router Advertisement message must use an address configuration protocol (for example, DHCPv6) to obtain non–address configu-ration information. The size of this field is 1 bit.

Home Agent flag The Home Agent flag is defined in RFC 3775 for Mobile IPv6. For more information, see Appendix F.

Default Router Preference The Default Router Preference field indicates the level of preference for this router as the default router. If multiple routers advertise themselves as default routers, you can configure the routers so that they advertise with different pref-erence levels. Valid values in binary are 01 (High), 00 (Medium), and 11 (Low). If the

Type Code

= 134

= 0 Checksum

Current Hop Limit Managed Address Configuration Flag Other Stateful Configuration Flag Home Agent Flag Default Router Preference Reserved Router Lifetime Reachable Time Retrans Timer Options

• • •

preference is set to 10, the receiving host should assume a value of 0 for the Router Lifetime field, effectively disabling the advertising router as a default router. The size of this field is 2 bits. This field is described in RFC 4191.

A typical configuration that can use the default router preference is a subnet that has two routers connected to the Internet or an organization intranet—one router is the primary router, and another router is a slower, secondary router intended to provide fault toler-ance for the primary router. Both routers advertise themselves as default routers; how-ever, the primary router advertises a default router preference of 01 (High) and the secondary router advertises a default router preference of 00 (Medium). If the primary router becomes unavailable, the hosts on the subnet will use the secondary router until the primary router becomes available.

Reserved This is a 3-bit field reserved for future use and set to 0.

Router Lifetime The Router Lifetime field indicates the lifetime (in seconds) of the router as the default router. The size of this field is 16 bits. The maximum Router Life-time value is 65,535 seconds (about 18.2 hours). A value of 0 indicates that the router cannot be considered a default router; however, all other information contained in the Router Advertisement is still valid. A computer running Windows Server 2008, Windows Vista, Windows XP, or Windows Server 2003 acting as an IPv6 router that does not have a default route that is configured to be published sets the Router Lifetime field to 0.

Reachable Time The Reachable Time field indicates the amount of time (in millisec-onds) that a node can consider a neighboring node reachable after receiving a reachabil-ity confirmation. The size of this field is 32 bits. A value of 0 indicates that the router does not specify the reachable time. For more information, see the “Neighbor Unreach-ability Detection” section in this chapter.

Retransmission Timer The Retransmission Timer field indicates the amount of time (in milliseconds) between retransmissions of Neighbor Solicitation messages. The size of this field is 32 bits. The retransmission timer is used during neighbor unreachability detection. A value of 0 indicates that the router does not specify the retransmission timer value.

The options that can be present in a Router Advertisement message are the following:

Source Link-Layer Address option When present, the Source Link-Layer Address option contains the link-layer address of the interface on which the Router Advertise-ment message was sent. This option can be omitted when the router is load-balancing across multiple link-layer addresses.

MTU option When present, the MTU option contains the MTU of the link. It is typi-cally sent on links that have a variable MTU or in switched environments that have mul-tiple link-layer technologies on the same link.

Prefix Information options When present, Prefix Information options contain the on-link prefixes that are used for address autoconfiguration. The on-link-local prefix is never sent as a Prefix Information option.

Advertisement Interval option For more information, see Appendix F.

Home Agent Information option For more information, see Appendix F.

Route Information options When present, Route Information options contain routes to add to the local routing table for more efficient host forwarding decisions.

Network Monitor Capture

Here is an example of 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) - RouterAdvertisement:

Code: 0 (0x0)

Checksum: 8095 (0x1F9F) CurHopLimit: 0 (0x0) - RouterAdvertisementFlag:

M: (0...) Not managed address configuration O: (.0...) Not other stateful configuration A: (..0...) Not a Mobile IP Home Agent RouterPreference: (...00...) Medium,0(0x0)

Reserved: (...000) RouterLifetime: 0 (0x0) ReachableTime: 0 (0x0) RetransTimer: 0 (0x0) + SourceLinkLayerAddress:

+ MTU:

+ PrefixInformation:

+ PrefixInformation:

Documents relatifs