Understanding Ipv6

All of the functions of IPv6 ND are performed with the following messages:

Router Solicitation

The Router Solicitation message is sent by IPv6 hosts to discover the presence of IPv6 routers on the link. A host sends a multicast Router Solicitation message to prompt IPv6 routers to respond immediately, rather than waiting for a pseudo-periodic Router Advertisement message.

For example, assuming that the local link is Ethernet, in the Ethernet header of the Router Solicitation message:

In the IPv6 header of the Router Solicitation message:

Figure 6-14 shows the structure of the Router Solicitation message.

Figure 6-14. The structure of the Router Solicitation message

The fields in the Router Solicitation message are:

Network Monitor Capture

Here is an example of a Router Solicitation message as displayed by Network Monitor (capture 06_04 in the \NetworkMonitorCaptures folder on the companion CD-ROM):

+ Frame: Base frame properties + ETHERNET: ETYPE = IPv6 IP6: Proto = ICMP6; Len = 16 IP6: Version = 6 (0x6) IP6: Traffic Class = 0 (0x0) IP6: Flow Label = 0 (0x0) IP6: Payload Length = 16 (0x10) IP6: Next Header = 58 (ICMP6) IP6: Hop Limit = 255 (0xFF) IP6: Source Address = fe80::2b0:d0ff:fe23:4733 IP6: Destination Address = ff02::2 IP6: Payload: Number of data bytes remaining = 16 (0x0010) ICMP6: Router Solicitation ICMP6: Type = 133 (Router Solicitation) ICMP6: Code = 0 (0x0) ICMP6: Checksum = 0x4B20 ICMP6: Reserved ICMP6: Source Link-level Address = 00 B0 D0 23 47 33 ICMP6: Type = 1 (0x1) ICMP6: Length = 1 (0x1) ICMP6: Source Link-level Address = 00 B0 D0 23 47 33

Router Advertisement

IPv6 routers send the Router Advertisement message pseudo-periodically and in response to the receipt of a Router Solicitation message. It 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 duration for which addresses created through address autoconfiguration are valid and preferred.

For example, assuming that the local link is Ethernet, in the Ethernet header of the Router Advertisement message:

In the IPv6 header of the Router Advertisement message:

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

Figure 6-15. The structure of the Router Advertisement message

The fields in the Router Advertisement message are:

Network Monitor Capture

Here is an example of a Router Advertisement message as displayed by Network Monitor (capture 06_02 in the \NetworkMonitorCaptures folder on the companion CD-ROM):

+ Frame: Base frame properties + ETHERNET: EType = IPv6 IP6: Proto = ICMP6; Len = 96 IP6: Version = 6 (0x6) IP6: Traffic Class = 0 (0x0) IP6: Flow Label = 0 (0x0) IP6: Payload Length = 96 (0x0060) IP6: Next Header = 58 (ICMP6) IP6: Hop Limit = 255 (0xFF) IP6: Source Address = fe80::2b0:d0ff:fe23:4733 IP6: Destination Address = ff02::1 IP6: Payload: Number of data bytes remaining = 96 (0x0060) ICMP6: Router Advertisement ICMP6: Type = 134 (Router Advertisement) ICMP6: Code = 0 (0x0) ICMP6: Checksum = 0xBAA5 ICMP6: Current Hop Limit = 0 (0x0) ICMP6: 0....... = Not managed address config ICMP6: .0...... = Not other stateful config ICMP6: ..0..... = Not a Mobile IP Home Agent ICMP6: Route Preference = Medium (0) ICMP6: Router Lifetime = 0 (0x0) ICMP6: Reachable Time = 0 (0x0) ICMP6: Retransmission Timer = 0 (0x0) + ICMP6: Source Link-Layer Address = 00 B0 D0 23 47 33 + ICMP6: MTU = 1500 (0x5DC) + ICMP6: Prefix = fec0:0:0:2:: + ICMP6: Prefix = fec0:0:0:1::

Neighbor Solicitation

The Neighbor Solicitation message is sent by IPv6 hosts to discover the link-layer address of an on-link IPv6 node. It typically includes the link-layer address of the sender. Typical Neighbor Solicitation messages are multicast for address resolution and unicast when the reachability of a neighboring node is being verified.

For example, assuming that the local link is Ethernet, in the Ethernet header of the Neighbor Solicitation message:

In the IPv6 header of the Neighbor Solicitation message:

Figure 6-16 shows the structure of the Neighbor Solicitation message.

Figure 6-16. The structure of the Neighbor Solicitation message

The fields in the Neighbor Solicitation message are:

Network Monitor Capture

Here is an example of a Neighbor Solicitation message as displayed by Network Monitor (frame 1 of capture 06_01 in the \NetworkMonitorCaptures folder on the companion CD-ROM):

+ Frame: Base frame properties ETHERNET: EType = IPv6 + ETHERNET: Destination address : 3333FF026EA5 + ETHERNET: Source address : 00105AAA20A2 ETHERNET: Ethernet Type : 0x86DD IP6: Proto = ICMP6; Len = 32 IP6: Version = 6 (0x6) IP6: Traffic Class = 0 (0x0) IP6: Flow Label = 0 (0x0) IP6: Payload Length = 32 (0x20) IP6: Next Header = 58 (ICMP6) IP6: Hop Limit = 255 (0xFF) IP6: Source Address = fe80::210:5aff:feaa:20a2 IP6: Destination Address = ff02::1:ff02:6ea5 IP6: Payload: Number of data bytes remaining = 32 (0x0020) ICMP6: Neighbor Solicitation; Target = fe80::260:97ff:fe02:6ea5 ICMP6: Type = 135 (Neighbor Solicitation) ICMP6: Code = 0 (0x0) ICMP6: Checksum = 0x0F35 ICMP6: Reserved ICMP6: Target Address = fe80::260:97ff:fe02:6ea5 ICMP6: Source Link-Layer Address = 00 10 5A AA 20 A2 ICMP6: Type = 1 (0x1) ICMP6: Length = 1 (0x1) ICMP6: Source Link-Layer Address = 00 10 5A AA 20 A2

Notice how the last 24 bits of the target address (FE80::260:97FF:FE02:6EA5) correspond to the last 24 bits of the solicited-node destination address (FF02::1:FF02:6EA5) (corresponding bits underlined). Also notice how the last 32 bits of the solicited-node destination address (FF02::1:FF02:6EA5) correspond to the last 32 bits of the Ethernet destination address (3333FF026EA5) (corresponding bits underlined).

Neighbor Advertisement

An IPv6 node sends the Neighbor Advertisement message in response to a Neighbor Solicitation message. An IPv6 node also sends unsolicited Neighbor Advertisements to inform neighboring nodes of changes in link-layer addresses or the node's role. The Neighbor Advertisement contains information required by nodes to determine the type of Neighbor Advertisement message, the sender's role on the network, and typically the link-layer address of the sender.

For example, assuming that the local link is Ethernet, in the Ethernet header of the Neighbor Advertisement message:

In the IPv6 header of the Neighbor Advertisement message:

Figure 6-17 shows the structure of the Neighbor Advertisement message.

Figure 6-17. The structure of the Neighbor Advertisement message

The fields in the Neighbor Advertisement message are:

Network Monitor Capture

Here is an example of a solicited Neighbor Advertisement message as displayed by Network Monitor (frame 2 of capture 06_01 in the \NetworkMonitorCaptures folder on the companion CD-ROM):

+ Frame: Base frame properties + ETHERNET: EType = IPv6 IP6: Proto = ICMP6; Len = 32 IP6: Version = 6 (0x6) IP6: Traffic Class = 0 (0x0) IP6: Flow Label = 0 (0x0) IP6: Payload Length = 32 (0x20) IP6: Next Header = 58 (ICMP6) IP6: Hop Limit = 255 (0xFF) IP6: Source Address = fe80::260:97ff:fe02:6ea5 IP6: Destination Address = fe80::210:5aff:feaa:20a2 IP6: Payload: Number of data bytes remaining = 32 (0x0020) ICMP6: Neighbor Advertisement; Target = fe80::260:97ff:fe02:6ea5 ICMP6: Type = 136 (Neighbor Advertisement) ICMP6: Code = 0 (0x0) ICMP6: Checksum = 0x89AC ICMP6: 0............................... = Not router ICMP6: .1.............................. = Solicited ICMP6: ..1............................. = Override ICMP6: Target Address = fe80::260:97ff:fe02:6ea5 ICMP6: Target Link-Layer Address = 00 60 97 02 6E A5 ICMP6: Type = 2 (0x2) ICMP6: Length = 1 (0x1) ICMP6: Target Link-Layer Address = 00 60 97 02 6E A5

Redirect

The Redirect message is sent by an IPv6 router to inform an originating host of a better first-hop address for a specific destination. Redirect messages are sent only by routers for unicast traffic, are unicast only to originating hosts, and are processed only by hosts.

For example, assuming that the local link is Ethernet, in the Ethernet header of the Redirect message:

In the IPv6 header of the Redirect message:

Figure 6-18 shows the structure of the Redirect message.

Figure 6-18. The structure of the Redirect message

The fields in the Redirect message are:

Network Monitor Capture

Here is an example of a Redirect message as displayed by Network Monitor (capture 06_03 in the \NetworkMonitorCaptures folder on the companion CD-ROM):

+ Frame: Base frame properties ETHERNET: EType = IPv6 + ETHERNET: Destination address : 00600852F9D8 + ETHERNET: Source address : 00B0D0234733 ETHERNET: Frame Length : 182 (0x00B6) ETHERNET: Ethernet Type : 0x86DD ETHERNET: Ethernet Data: Number of data bytes remaining

= 168 (0x00A8) IP6: Proto = ICMP6; Len = 128 IP6: Version = 6 (0x6) IP6: Traffic Class = 0 (0x0) IP6: Flow Label = 0 (0x0) IP6: Payload Length = 128 (0x80) IP6: Next Header = 58 (ICMP6) IP6: Hop Limit = 255 (0xFF) IP6: Source Address = fe80::2b0:d0ff:fe23:4733 IP6: Destination Address = fe80::260:8ff:fe52:f9d8 IP6: Payload: Number of data bytes remaining = 128 (0x0080) ICMP6: Redirect ICMP6: Type = 137 (Redirect) ICMP6: Code = 0 (0x0) ICMP6: Checksum = 0x76D4 ICMP6: Reserved ICMP6: Target Address = fe80::2b0:d0ff:fe23:4735 ICMP6: Destination Address = 3000::1 ICMP6: Redirected Packet: Number of data bytes remaining

= 88 (0x0058) ICMP6: Type = 4 (0x4) ICMP6: Length = 11 (0xB) ICMP6: Reserved ICMP6: Redirected Packet: Number of data bytes remaining

= 80 (0x0050)

Summary of Neighbor Discovery Messagesand Options

Table 6-2 lists each ND message and the options that might be included with the message.

Table 6-2. ND Messages and the Optionsthat might be Included

ND Message ND Options that Might be Included

Router Solicitation

Source Link-Layer Address option: Used to inform the router of the link-layer address of the host for the unicast Router Advertisement response.

Router Advertisement

Source Link-Layer Address option: Used to inform the receiving host(s) of the link-layer address of the router.

Prefix Information option(s): Used to inform the receiving host(s) of on-link prefixes and whether to autoconfigure stateless addresses.

MTU option: Used to inform the receiving host(s) of the IPv6 MTU of the link.

Advertisement Interval option: Used to inform the receiving host how often the router (the home agent) is sending unsolicited multicast router advertisements.

Home Agent Information option: Used to advertise the home agent's preference and lifetime.

Route Information option(s): Used to inform the receiving host(s) of specific routes to add to a local routing table.

Neighbor Solicitation

Source Link-Layer Address option: Used to inform the receiving node of the link-layer address of the sender.

Neighbor Advertisement

Target Link-Layer Address option: Used to inform the receiving node(s) of the link-layer address corresponding to the Target Address field.

Redirect

Redirected Header option: Used to include all or a portion of the packet that was redirected.

Target Link-Layer Address option: Used to inform the receiving node(s) of the link-layer address corresponding to the Target Address field.

Категории