Understanding Ipv6

Before understanding the various processes used for IPv6 mobility, it is important to understand how packets containing mobility options and Application layer data are sent in a mobility-enabled environment. The following are the types of IPv6 mobility communication:

Communication Between a Mobile Node and a Correspondent Node

Communication between a mobile node and a correspondent node is one of the following:

From the Mobile Node to the Correspondent Node

The mobile node sends the correspondent node the following types of packets:

Binding Updates

Binding updates sent from the mobile node to the correspondent node are shown in Figure 12-4.

Figure 12-4. Binding updates sent from the mobile node to the correspondent node

The packet contains the following:

The binding update can be sent either with data (an upper layer PDU) or in a separate packet. Figure 12-4 shows the binding update sent as a separate packet.

Version 13 of the IPv6 mobility draft (draft-ietf-mobileip-ipv6-13.txt in the \RFCs_and_Drafts folder on the companion CD-ROM) requires the use of an Authentication Header (AH) to provide sender authentication, data integrity, and replay protection for binding updates. Many implementations allow you to disable security for IPv6 mobility messages. If an AH is present, there are two different Destination Options headers: one before the AH and one after the AH. The first Destination Options header contains the Home Address option and the second Destination Options header contains the Binding Update option. This is not shown in Figure 12-4. If an AH is not present, both the Home Address and Binding Acknowledgement options are included in a single Destination Options header. This is shown in Figure 12-4.

If the correspondent node is also mobile, the destination address in the IPv6 header is set to the correspondent node's care-of address and the packet includes a Routing header with the correspondent node's home address. The Routing header is placed before the Destination Options header. If an AH is present, there are two different Destination Options headers: one before the AH and one after the AH. The first Destination Options header contains the Home Address option and the second Destination Options header contains the Binding Update option. In this case, the order of the extension headers is: Routing, Destination Options (w/Home Address option), AH, Destination Options (w/Binding Update). If an AH is not present, both the Home Address and Binding Acknowledgement options are included in a single Destination Options header that is placed after the Routing header. This is not shown in Figure 12-4.

Data

When the mobile node is away from home, it can choose to either send data from its home address using mobility options, or its care-of address without using mobility options, based on the following:

Packets containing Transport layer connection data sent from the mobile node to the correspondent node are shown in Figure 12-5.

Figure 12-5. Data sent from the mobile node to the correspondent node

The packet contains the following:

If the correspondent node is also mobile, the destination address in the IPv6 header is set to the correspondent node's care-of address and the packet includes a Routing header with the correspondent node's home address. The Routing header is placed before the Destination Options header. This is not shown in Figure 12-5.

From the Correspondent Node to the Mobile Node

The correspondent node sends the mobile node the following types of packets:

Binding Maintenance

Binding maintenance packets sent from the correspondent node to the mobile node are either binding acknowledgments or binding requests and are shown in Figure 12-6.

The packets contain the following:

The binding acknowledgement or binding request can be sent either with data (an upper layer PDU) or in a separate packet. Figure 12-6 shows the binding acknowledgement or binding request sent as a separate packet.

The IPv6 mobility draft requires the use of an AH to provide data authentication, data integrity, and replay protection for binding acknowledgements. Many implementations allow you to disable security for IPv6 mobility messages. The AH is placed between the Routing header and the Destination Options header and is not shown in Figure 12-6.

Figure12-6. Binding maintenance packets sent from the correspondent node to the mobile node

If the correspondent node is also mobile, the source address in the IPv6 header is set to the correspondent node's care-of address and the packet includes the Home Address option containing the correspondent node's home address. If an AH is present, there are two different Destination Options headers: one before the AH and one after the AH. The first Destination Options header contains the Home Address option and the second Destination Options header contains the Binding Acknowledgement option. In this case, the order of the extension headers is: Routing, Destination Options (w/Home Address option), AH, Destination Options (w/Binding Acknowledgement). If an AH is not present, both the Home Address and Binding Acknowledgement options are included in a single Destination Options header that is placed after the Routing header. This is not shown in Figure 12-6.

Data with a Binding Cache Entry Present

The form of data packets sent from the correspondent node to mobile nodes depends on whether the correspondent node has a binding cache entry for the mobile node's home address. A packet containing an upper layer PDU sent from the correspondent node to the mobile node when a binding cache entry for the mobile node's care-of address is present is shown in Figure 12-7.

Figure12-7. Data sent from the correspondent node when a binding cache entry for the mobile node is present

The packet contains the following:

If the correspondent node is also mobile, the source address in the IPv6 header is set to the correspondent node's care-of address and the packet includes a Destination Options header with the Home Address option containing the correspondent node's home address. The Destination Options header is placed after the Routing header. This is not shown in Figure 12-7.

Data with a Binding Cache Entry Not Present

A packet containing an upper layer PDU sent from the correspondent node to the mobile node when a binding cache entry for the mobile node is not present is shown in Figure 12-8.

Figure 12-8. Data sent from the correspondent node when a binding cache entry for the mobile node is not present

The packet contains the following:

If the correspondent node is also mobile, the source address in the IPv6 header is set to the correspondent node's care-of address and the packet includes a Destination Options header with the Home Address option containing the correspondent node's home address. The Destination Options header is placed after the IPv6 header. This is not shown in Figure 12-8.

Communication Between a Mobile Node and Its Home Agent

Communication between a mobile node and a home agent is one of the following:

From the Mobile Node to its Home Agent

The mobile node sends the home agent the following types of packets:

Binding Update

Binding updates sent from the mobile node to the home agent are shown in Figure 12-9.

Figure 12-9. Binding updates sent from the mobile node to the home agent

The binding update contains the following:

If security for binding updates is enabled and an AH is present, there are two different Destination Options headers: one before the AH and one after the AH. The first Destination Options header contains the Home Address option and the second Destination Options header contains the Binding Update option. This is not shown in Figure 12-9.

ICMPv6 Home Agent Address Discovery Request Message

When the mobile node sends an ICMPv6 Home Agent Address Discovery Request message, it has the form shown in Figure 12-10.

Figure 12-10. ICMPv6 Home Agent Address Discovery Request message sent fr

From the Home Agent to the Mobile Node

Communication from the home agent to the mobile node takes the following forms:

Binding Maintenance

Binding maintenance packets sent from the home agent to the mobile node are either binding acknowledgments or binding requests and are shown in Figure 12-11.

Figure 12-11. Binding maintenance packets sent from the home agent to the mobile node

The packet contains the following:

If security for binding updates is enabled, an AH is present between the Routing header and the Destination Options header for the binding acknowledgement. This is not shown in Figure 12-11.

ICMPv6 Home Agent Address Discovery Reply Message

When the home agent sends an ICMPv6 Home Agent Address Discovery Reply message, it has the form shown in Figure 12-12.

Figure 12-12. ICMPv6 Home Agent Address Discovery Reply message sent from the home agent

Tunneled Packet

When the home agent intercepts a packet sent directly to a mobile node's home address when the mobile node is away from home, it forwards the packet to the mobile node by using the form shown in Figure 12-13.

Figure 12-13. Intercepted packet tunneled to a mobile node by its home agent

Notice that this packet is the original packet sent by the correspondent node that did not have a binding cache entry for the mobile node with an additional IPv6 header addressed from the home agent's address to the mobile node's care-of address. The original packet is described in the "Data with a Binding Cache Entry Not Present" section of this chapter.

Категории