[go: up one dir, main page]

CN101237410A - A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network - Google Patents

A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network Download PDF

Info

Publication number
CN101237410A
CN101237410A CN200810026585.9A CN200810026585A CN101237410A CN 101237410 A CN101237410 A CN 101237410A CN 200810026585 A CN200810026585 A CN 200810026585A CN 101237410 A CN101237410 A CN 101237410A
Authority
CN
China
Prior art keywords
message
ipv4
network
mobile
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200810026585.9A
Other languages
Chinese (zh)
Other versions
CN101237410B (en
Inventor
马争鸣
向征
谭庆宇
熊佳妮
郑婵娟
梁文浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sun Yat Sen University
Original Assignee
Sun Yat Sen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN200810026585.9A priority Critical patent/CN101237410B/en
Priority to PCT/CN2008/000528 priority patent/WO2009109072A1/en
Publication of CN101237410A publication Critical patent/CN101237410A/en
Application granted granted Critical
Publication of CN101237410B publication Critical patent/CN101237410B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/02Inter-networking arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]
    • H04W80/045Network layer protocols, e.g. mobile IP [Internet Protocol] involving different protocol versions, e.g. MIPv4 and MIPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明涉及一种实现移动节点在IPv4/v6混合网络中的通信方法,该方法具体通过在IPv4网络和IPv6网络之间设置移动IPv4/v6转换网关实现IPv4/v6混合网络中的移动通信,所述移动IPv4/v6转换网关包括NAT-PT网关及设在其上的移动IP应用层网关,其中NAT-PT网关上配置有DNS-ALG。本发明能够充分利用现有的MIPv4(RFC3344)和MIPv6(RFC3775)技术,有效地解决了移动节点在IPv4/v6混合网络中的移动通信存在的问题,而且实现了MIPv4技术和MIPv6技术的兼容,实现了移动通信与网络从IPv4向IPv6过渡的同步性,同时本发明要求现有的移动通信设备无需做太大的升级,具有很大的实用价值。

Figure 200810026585

The present invention relates to a communication method for a mobile node in an IPv4/v6 hybrid network. The method specifically implements mobile communication in an IPv4/v6 hybrid network by setting a mobile IPv4/v6 conversion gateway between the IPv4 network and the IPv6 network. The mobile IPv4/v6 conversion gateway includes a NAT-PT gateway and a mobile IP application layer gateway set on it, wherein DNS-ALG is configured on the NAT-PT gateway. The present invention can make full use of the existing MIPv4 (RFC3344) and MIPv6 (RFC3775) technologies, effectively solve the problems of the mobile communication of the mobile node in the IPv4/v6 hybrid network, and realize the compatibility of the MIPv4 technology and the MIPv6 technology, The synchronization of mobile communication and network transition from IPv4 to IPv6 is realized, and at the same time, the present invention requires that existing mobile communication equipment does not need to be upgraded too much, and has great practical value.

Figure 200810026585

Description

一种实现移动节点在IPv4/v6混合网络中的通信方法 A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network

技术领域technical field

本发明涉及网络和移动通信领域,具体涉及一种移动节点在IPv4/v6混合网络中的通信方法。The invention relates to the field of network and mobile communication, in particular to a communication method of a mobile node in an IPv4/v6 mixed network.

背景技术Background technique

目前,移动通信是互联网承载的最为重要的应用。移动IP研究互联网承载移动通信的问题,具体地,移动IPv4研究IPv4网络承载移动通信的问题,移动IPv6研究IPv6网络承载移动通信的问题,移动IPv4/v6就是研究IPv4/v6网络承载移动通信的问题。Currently, mobile communication is the most important application carried by the Internet. Mobile IP studies the problem of Internet carrying mobile communication. Specifically, Mobile IPv4 studies the problem of IPv4 network carrying mobile communication. Mobile IPv6 studies the problem of IPv6 network carrying mobile communication. Mobile IPv4/v6 is the study of IPv4/v6 network carrying mobile communication. .

图1是RFC3344所描述的移动IPv4技术的基本原理的示意图,其关键步骤如下:Figure 1 is a schematic diagram of the basic principles of the Mobile IPv4 technology described in RFC3344, and its key steps are as follows:

(1)移动节点从本地网络移动到外地网络;(1) The mobile node moves from the local network to the foreign network;

(2)外地代理通过代理广告消息(Agent Advertisement Message)表明它们的存在;(2) Foreign agents indicate their existence through Agent Advertisement Message;

(3)移动节点也可以选择性地通过代理请求消息(Agent SolicitationMessage)请求所在链路的移动代理向其发送代理广告消息;(3) The mobile node can also optionally request the mobile agent on the link to send an agent advertisement message to it through an agent request message (Agent Solicitation Message);

(4)移动节点接收移动代理广告消息,并根据此消息判断自己是处于家乡网络还是外地网络;(4) The mobile node receives the mobile agent advertisement message, and judges whether it is in the home network or the foreign network according to the message;

(5)如果移动节点发现自己移动到外地网络,则从外地网络获得一个转交地址。转交地址可以由外地代理指派,也可以通过DHCP等方式获取;(5) If the mobile node finds itself moving to a foreign network, it obtains a care-of address from the foreign network. The care-of address can be assigned by the foreign agent, or can be obtained through DHCP, etc.;

(6)移动节点向家乡代理发送注册请求消息以注册其转交地址。注册请求消息的格式如图2A所示,其中包含移动节点的家乡地址、家乡代理地址、转交地址、标识符等数据,而扩展部分包含移动节点和家乡代理之间的认证数据,当注册请求消息需要经过外地代理时,扩展部分也会包含移动节点与外地代理之间的认证数据;注册请求消息和注册应答消息一般要经过外地代理;(6) The mobile node sends a registration request message to the home agent to register its care-of address. The format of the registration request message is shown in Figure 2A, which contains data such as the home address of the mobile node, home agent address, care-of address, identifier, and the extension part contains authentication data between the mobile node and the home agent. When the registration request message When the foreign agent needs to be passed, the extension part will also include the authentication data between the mobile node and the foreign agent; the registration request message and the registration response message generally need to pass through the foreign agent;

(7)家乡代理处理上述注册请求消息,创建或更新其绑定缓存,并向移动节点发送注册应答消息以把注册的结果通知移动节点。注册应答消息的格式如图2B所示,其中包含移动节点的家乡地址、家乡代理地址、标识符等数据,此外,在扩展部分还包括一些认证数据;(7) The home agent processes the above registration request message, creates or updates its binding cache, and sends a registration response message to the mobile node to notify the mobile node of the registration result. The format of the registration response message is shown in Figure 2B, which includes data such as the home address of the mobile node, the home agent address, and the identifier, and in addition, some authentication data is included in the extended part;

(8)通信节点向移动节点发送数据报文时,源地址为通信节点的地址,目的地址为移动节点的家乡地址。该数据报文经过家乡网络的时候,被家乡代理截获后通过隧道发送到移动节点的转交地址;(8) When the correspondent node sends a data message to the mobile node, the source address is the address of the correspondent node, and the destination address is the home address of the mobile node. When the data message passes through the home network, it is intercepted by the home agent and sent to the care-of address of the mobile node through a tunnel;

(9)移动节点向通信节点发送数据报文时,源地址为移动节点的家乡地址,目的地址为通信节点的地址,因此数据报文无需经过家乡网络。(9) When the mobile node sends a data message to the correspondent node, the source address is the home address of the mobile node, and the destination address is the address of the correspondent node, so the data message does not need to go through the home network.

图3是RFC3775所描述的移动IPv6技术的基本原理的示意图,其关键步骤如下:Figure 3 is a schematic diagram of the basic principles of the Mobile IPv6 technology described in RFC3775, and its key steps are as follows:

(1)移动节点从本地网络移动到外地网络;(1) The mobile node moves from the local network to the foreign network;

(2)移动节点移动到外地网络后,将通过有状态或无状态的方式获得一个转交地址;(2) After the mobile node moves to a foreign network, it will obtain a care-of address in a stateful or stateless manner;

(3)移动节点通过向家乡代理发送绑定更新消息的方式向家乡代理注册其转交地址,绑定更新消息的格式如图4A所示;(3) The mobile node registers its care-of address with the home agent by sending a binding update message to the home agent, and the format of the binding update message is shown in Figure 4A;

(4)家乡代理处理上述绑定更新消息,创建或更新其绑定缓存,并向移动节点发送绑定确认消息以把注册的结果通知移动节点,绑定确认消息的格式如图4B所示;(4) The home agent processes the above-mentioned binding update message, creates or updates its binding cache, and sends a binding confirmation message to the mobile node to notify the mobile node of the registration result, the format of the binding confirmation message is as shown in Figure 4B;

(5)移动节点发起Return Routability Procedure(RRP)过程,RRP过程包括4条消息,即移动节点向通信节点发送的Home Test Init和Care-of Test Init消息,以及它们各自的应答消息Home Test和Care-of Test消息,其中,HomeTest Init消息和Home Test消息要经过家乡代理转发。RRP过程的目的是为了保证移动节点的家乡地址以及其转交地址是可以到达的。图5是RFC3775所描述的移动IPv6技术中RRP的流程图。(5) The mobile node initiates the Return Routability Procedure (RRP) process. The RRP process includes 4 messages, namely the Home Test Init and Care-of Test Init messages sent by the mobile node to the correspondent node, and their respective response messages Home Test and Care -of Test message, wherein, the HomeTest Init message and the Home Test message are forwarded through the home agent. The purpose of the RRP process is to ensure that the home address of the mobile node and its care-of address are reachable. FIG. 5 is a flowchart of RRP in the mobile IPv6 technology described in RFC3775.

(6)RRP过程结束后,移动节点向通信节点发送绑定更新消息;(6) After the RRP process ends, the mobile node sends a binding update message to the correspondent node;

(7)通信节点创建或更新其绑定缓存,并向移动节点发送绑定确认消息;(7) The communication node creates or updates its binding cache, and sends a binding confirmation message to the mobile node;

(8)移动节点与其通信节点的通信有两种方式:(8) There are two ways of communication between the mobile node and its correspondent node:

第一种是“双向隧道”方式。通信节点发出的数据报文被路由到家乡网络,家乡代理截获此数据报文并通过隧道把此数据报文发送到移动节点的转交地址;而移动节点发出的数据报文通过反向隧道发送到家乡网络,然后再从家乡网络发送到通信节点。采用这种方式时,通信节点无需知道移动节点当前的位置信息。The first is the "two-way tunnel" approach. The data message sent by the communication node is routed to the home network, and the home agent intercepts the data message and sends the data message to the care-of address of the mobile node through the tunnel; while the data message sent by the mobile node is sent to the home network through the reverse tunnel. home network, and then sent from the home network to the correspondent node. In this way, the communication node does not need to know the current location information of the mobile node.

第二种是“路由优化”方式。这种通信方式允许通信节点把数据报文直接发送到移动节点的转交地址,其前提条件是,移动节点必须向通信节点注册以使通信节点知道其家乡地址与转交地址的绑定关系。The second is the "route optimization" approach. This communication method allows the correspondent node to send data packets directly to the care-of address of the mobile node. The prerequisite is that the mobile node must register with the correspondent node so that the correspondent node knows the binding relationship between its home address and the care-of address.

移动IPv4/v6的解决方案取决于IPv4网络与IPv6网络混合的方式。目前,IETF推荐三种方式:隧道(RFC3053)、双栈(RFC2893)和NAT-PT(RFC2766)。本发明提出的移动IPv4/v6解决方案基于NAT-PT。The solution to move IPv4/v6 depends on how the IPv4 network is mixed with the IPv6 network. Currently, IETF recommends three methods: tunnel (RFC3053), dual stack (RFC2893) and NAT-PT (RFC2766). The mobile IPv4/v6 solution proposed by the invention is based on NAT-PT.

NAT-PT是一个网络层的设备,可以保持IPv4与IPv6的互相透明。特别地,NAT-PT提供一种机制,通过在其上增设应用层网关的方式保持IPv4网络和IPv6网络承载的同样应用的互相透明。目前,ftp-ALG和DNS-ALG已经成为NAT-PT的标准配置。NAT-PT is a network layer device that can maintain mutual transparency between IPv4 and IPv6. In particular, NAT-PT provides a mechanism to maintain the mutual transparency of the same application carried by the IPv4 network and the IPv6 network by adding an application layer gateway on it. At present, ftp-ALG and DNS-ALG have become the standard configuration of NAT-PT.

图6是用NAT-PT网关加上DNS-ALG实现IPv4/v6混合网络的DNS查询的工作原理示意图。如图6所示,是用NAT-PT网关加上DNS-ALG实现IPv4/v6混合网络的DNS查询的关键步骤,具体如下:FIG. 6 is a schematic diagram of the working principle of implementing DNS query in an IPv4/v6 hybrid network by using a NAT-PT gateway plus a DNS-ALG. As shown in Figure 6, it is a key step to realize DNS query of IPv4/v6 hybrid network with NAT-PT gateway plus DNS-ALG, as follows:

(1)IPv6主机要与IPv4主机建立连接,但是不知道该IPv4主机的IPv6地址是什么。于是发出DNS请求消息问IPv4.com的IPv6地址,DNS请求消息传给IPv6网络中的DNS服务器A,但在IPv6网络中的DNS服务器A中找不到IPv4主机的记录(IPv6的记录是A6或是AAAA,而IPv4的记录是A);(1) An IPv6 host wants to establish a connection with an IPv4 host, but it does not know what the IPv6 address of the IPv4 host is. Then a DNS request message is sent to ask for the IPv6 address of IPv4.com, and the DNS request message is sent to the DNS server A in the IPv6 network, but the record of the IPv4 host cannot be found in the DNS server A in the IPv6 network (the record of IPv6 is A6 or is AAAA, and the IPv4 record is A);

(2)于是IPv6DNS将此请求消息转发出去,被DNS-ALG拦截;(2) IPv6DNS then forwards the request message and is intercepted by DNS-ALG;

(3)DNS-ALG将请求消息中的A6或AAAA改为A,转发到IPv4网络;(3) DNS-ALG changes A6 or AAAA in the request message to A, and forwards it to the IPv4 network;

(4)IPv4网络中的DNS服务器B接收到此请求消息,回复IPv4主机的地址为202.116.78.11;(4) DNS server B in the IPv4 network receives the request message, and replies that the address of the IPv4 host is 202.116.78.11;

(5)DNS-ALG接收到此地址信息后,在IPv4地址上加上96位前缀,变成IPv6地址prefix::202.116.78.11;(5) After receiving the address information, DNS-ALG adds a 96-bit prefix to the IPv4 address to become the IPv6 address prefix::202.116.78.11;

(6)DNS-ALG将A改为A6或AAAA之后继续把DNS应答消息送回给IPv6网络中的DNS服务器A,再传给IPv6主机;(6) DNS-ALG changes A to A6 or AAAA and then continues to send the DNS response message back to the DNS server A in the IPv6 network, and then passes it to the IPv6 host;

(7)IPv6主机认为IPv4.com的地址为prefix::202.116.78.11,所以发出源地址为3FFE:3600:B::2,目的地址为prefix::202.116.78.11的IPv6分组;(7) The IPv6 host thinks that the address of IPv4.com is prefix::202.116.78.11, so it sends an IPv6 packet whose source address is 3FFE:3600:B::2 and whose destination address is prefix::202.116.78.11;

(8)当分组经过转换网关时,其首先查找其地址映射表中是否有源地址为3FFE:3600:B::2的表项,如果有则直接使用之,如果没有,从IPv4地址池中分配一个IPv4地址给此IPv6主机,分配IPv4地址的同时在地址映射表中添加一个表项3FFE:3600:B::2-203.69.0.1,同时NAT-PT网关去掉目的地址的96位前缀得到一个IPv4地址,也即IPv4主机的IPv4地址;(8) When the packet passes through the conversion gateway, it first checks whether there is an entry with a source address of 3FFE:3600:B::2 in its address mapping table, if there is, use it directly, if not, from the IPv4 address pool Assign an IPv4 address to this IPv6 host, and add an entry 3FFE:3600:B::2-203.69.0.1 to the address mapping table while assigning the IPv4 address, and at the same time, the NAT-PT gateway removes the 96-bit prefix of the destination address to obtain a IPv4 address, that is, the IPv4 address of the IPv4 host;

(9)转换网关根据建立的地址映射关系,进行地址和语义转换,组头转换成IPv4的分组头,分组头中的源地址为“203.69.0.1”,目的地址为“202.116.78.11”,然后向IPv4网络发出分组。(9) The conversion gateway performs address and semantic conversion according to the established address mapping relationship, and the group header is converted into a packet header of IPv4. The source address in the packet header is "203.69.0.1", and the destination address is "202.116.78.11", and then Send packets to IPv4 network.

反之,IPv4主机查询IPv6主机的IPv4地址的道理是一样的,其通信流程基本上是一致的。Conversely, the reason for an IPv4 host to query the IPv4 address of an IPv6 host is the same, and the communication process is basically the same.

目前,IETF已经颁布了移动IPv4的解决方案(RFC3344)和移动IPv6的解决方案(RFC3775),为移动IP在纯IPv4网络和纯IPv6网络的应用提供了较为完整的方案。然而,上述两个RFC均未涉及IPv4/v6混合网络的情况,随着IPv4网络向IPv6网络的过渡,对IPv4/v6混合网络的移动通信问题的研究显得十分必要,IPv4/v6混合网络的移动通信问题可以从静态角度和动态角度划分为如下16个子问题:Currently, IETF has promulgated mobile IPv4 solutions (RFC3344) and mobile IPv6 solutions (RFC3775), which provide relatively complete solutions for the application of mobile IP in pure IPv4 networks and pure IPv6 networks. However, neither of the above two RFCs involves the situation of IPv4/v6 hybrid network. With the transition from IPv4 network to IPv6 network, it is necessary to study the mobile communication issues of IPv4/v6 hybrid network. The mobile communication of IPv4/v6 hybrid network Communication problems can be divided into the following 16 sub-problems from static and dynamic perspectives:

A1.首先从静态的角度看,根据家乡代理和通信节点在IPv4/v6混合网络中的位置,把移动IPv4/v6的问题分为四个基本问题,步骤A1具体包括:A1. First, from a static point of view, according to the position of the home agent and the communication node in the IPv4/v6 hybrid network, the problem of mobile IPv4/v6 is divided into four basic problems, and step A1 specifically includes:

A11.家乡代理和通信节点都位于IPv6网络,移动节点在IPv4/v6混合网络中移动时的移动IPv4/v6的问题;A11. Both the home agent and the communication node are located in the IPv6 network, and the problem of mobile IPv4/v6 when the mobile node moves in the IPv4/v6 mixed network;

A12.家乡代理和通信节点都位于IPv4网络,移动节点在IPv4/v6混合网络中移动时的移动IPv4/v6的问题;A12. The home agent and the communication node are both located in the IPv4 network, and the problem of mobile IPv4/v6 when the mobile node moves in the IPv4/v6 mixed network;

A13.家乡代理位于IPv6网络,通信节点位于IPv4网络,移动节点在IPv4/v6混合网络中移动时的移动IPv4/v6的问题;A13. The problem of mobile IPv4/v6 when the home agent is located in the IPv6 network, the communication node is located in the IPv4 network, and the mobile node moves in the IPv4/v6 mixed network;

A14.家乡代理位于IPv4网络,通信位于IPv6网络,移动节点在IPv4/v6混合网络中移动时的移动IPv4/v6的问题。A14. The home agent is located in the IPv4 network, the communication is located in the IPv6 network, and the problem of mobile IPv4/v6 when the mobile node moves in the IPv4/v6 mixed network.

A2.其次从动态的角度看,根据移动节点在IPv4/v6混合网络中的移动情况,又把所述步骤A1中所述的每个基本问题进一步分成四个子问题,其步骤A2具体包括:A2. Secondly, from a dynamic point of view, according to the mobile situation of the mobile node in the IPv4/v6 hybrid network, each basic problem described in the step A1 is further divided into four sub-problems, and its step A2 specifically includes:

A21.移动节点在IPv4网络中移动时的移动IPv4/v6的问题;A21. The problem of mobile IPv4/v6 when the mobile node moves in the IPv4 network;

A22.移动节点在IPv6网络中移动时的移动IPv4/v6的问题;A22. The problem of mobile IPv4/v6 when the mobile node moves in the IPv6 network;

A23.移动节点从IPv4网络移动到IPv6网络时的移动IPv4/v6的问题;A23. The problem of mobile IPv4/v6 when the mobile node moves from IPv4 network to IPv6 network;

A24.移动节点从IPv6网络移动到IPv4网络时的移动IPv4/v6的问题。A24. The problem of mobile IPv4/v6 when the mobile node moves from IPv6 network to IPv4 network.

另外,为了方便于表达本发明的核心思想,本发明定义了一些术语的表示方式,图7是本发明中使用到的一些术语的缩略语及其解释。其中图的左边一列是原术语,图的右边一列是术语的缩略语,本发明采用术语缩略语来进行发明内容的陈述。同时本发明通过在上述术语后加上“v4”或“v6”来表示version 4或version 6。例如MIPv4表示Mobile IPv4,CNv6表示处于IPv6网络的CN,HoAv6表示MN的IPv6格式的家乡地址。In addition, in order to facilitate the expression of the core idea of the present invention, the present invention defines the expressions of some terms, and FIG. 7 shows the abbreviations and explanations of some terms used in the present invention. The column on the left of the figure is the original term, and the column on the right of the figure is the abbreviation of the term. The present invention uses the abbreviation of the term to describe the content of the invention. At the same time, the present invention represents version 4 or version 6 by adding "v4" or "v6" after the above term. For example, MIPv4 means Mobile IPv4, CNv6 means CN in IPv6 network, and HoAv6 means MN's home address in IPv6 format.

另外,NAT-PT网关会对不同的地址进行不同的处理。如果NAT-PT在一个IPv4地址后面加“#”号,则表示这个地址是NAT-PT中IPv4地址池里的地址,与一个IPv6地址形成映射关系。例如,CNAv4#是NAT-PT中IPv4地址池里的一个地址,与CNAv6形成映射关系,是CNv6在IPv4网络里的地址标识。以CNAv4#为目的地址的IPv4格式的数据报文将路由到NAT-PT。如果NAT-PT在一个IPv6地址后面加“*”号,则表示这个地址由一个IPv4地址和NAT-PT的96位地址前缀组成。例如,CoAv6*是由CoAv4和NAT-PT的96位地址前缀组成,是MNv4在IPv6网络的地址标识。以CoAv6*为目的地址的IPv6格式的数据报文将被路由到NAT-PT。In addition, the NAT-PT gateway will handle different addresses differently. If NAT-PT adds "#" after an IPv4 address, it means that this address is an address in the IPv4 address pool in NAT-PT and forms a mapping relationship with an IPv6 address. For example, CNAv4# is an address in the IPv4 address pool in NAT-PT, which forms a mapping relationship with CNAv6, and is the address identifier of CNv6 in the IPv4 network. The data packet in IPv4 format with CNAv4# as the destination address will be routed to NAT-PT. If NAT-PT adds "*" after an IPv6 address, it means that this address is composed of an IPv4 address and the 96-bit address prefix of NAT-PT. For example, CoAv6 * is composed of the 96-bit address prefix of CoAv4 and NAT-PT, and is the address identifier of MNv4 on the IPv6 network. The data packets in IPv6 format with CoAv6 * as the destination address will be routed to NAT-PT.

发明内容Contents of the invention

本发明的目的是克服现有技术的不足,提供一种实现移动节点在IPv4/v6混合网络中的通信方法,该方法有效的解决了移动节点在IPv4/v6混合网络中的移动通信中所存在的问题,同时本发明要求现有的移动通信设备无需做太大的升级,具有很大的实用价值。The purpose of the present invention is to overcome the deficiencies in the prior art, provide a kind of communication method that realizes the mobile node in the IPv4/v6 mixed network, this method effectively solves the problem that the mobile node exists in the mobile communication of the IPv4/v6 mixed network problems, and at the same time, the present invention requires that the existing mobile communication equipment does not need to be upgraded too much, and has great practical value.

为了达到上述技术目的,本发明的技术解决方案:一种实现移动节点在IPv4/v6混合网络中的通信方法,通过在IPv4网络和IPv6网络之间设置移动IPv4/v6转换网关实现IPv4/v6混合网络中的移动通信,所述移动IPv4/v6转换网关包括NAT-PT网关及设在其上的移动IP应用层网关,其中NAT-PT网关上配置有DNS-ALG。In order to achieve the above-mentioned technical purpose, the technical solution of the present invention: a kind of communication method that realizes mobile node in IPv4/v6 hybrid network, realizes IPv4/v6 hybrid by arranging mobile IPv4/v6 conversion gateway between IPv4 network and IPv6 network For mobile communication in the network, the mobile IPv4/v6 conversion gateway includes a NAT-PT gateway and a mobile IP application layer gateway arranged on it, wherein DNS-ALG is configured on the NAT-PT gateway.

所述移动节点在IPv4/v6混合网络中的通信方法的步骤是:The steps of the communication method of the mobile node in the IPv4/v6 hybrid network are:

步骤A为:移动IPv4/v6转换网关通过在IPv4网络和IPv6网络中分别充当RFC3344和RFC3775所描述的不同的实体,以及通过在网关内部进行实体之间的转换实现RFC3344和RFC3775的互相透明。具体来说,该步骤A具体包括:Step A is: the mobile IPv4/v6 conversion gateway acts as different entities described in RFC3344 and RFC3775 in the IPv4 network and IPv6 network respectively, and realizes the mutual transparency of RFC3344 and RFC3775 by performing conversion between entities within the gateway. Specifically, this step A specifically includes:

A1.移动IPv4/v6转换网关在IPv4网络一侧充当一个RFC3344所描述的实体,这个实体与处于IPv4网络中的其它实体构成一个RFC3344所描述的移动IP模型,这个移动IP模型按照RFC3344所描述的移动IPv4协议进行通信和更新;A1. The mobile IPv4/v6 conversion gateway acts as an entity described in RFC3344 on the side of the IPv4 network. This entity and other entities in the IPv4 network form a mobile IP model described in RFC3344. This mobile IP model is described in RFC3344 Mobile IPv4 protocol for communication and update;

A2.移动IPv4/v6转换网关在IPv6网络一侧充当一个RFC3775所描述的实体,该实体与处于IPv6网络中的其它实体构成一个RFC3775所描述的移动IP模型,这个移动IP模型按照RFC3775所描述的移动IPv6协议进行通信和更新;A2. The mobile IPv4/v6 conversion gateway acts as an entity described in RFC3775 on the side of the IPv6 network. This entity and other entities in the IPv6 network form a mobile IP model described in RFC3775. This mobile IP model is described in RFC3775 Mobile IPv6 protocol for communication and update;

A3.移动IPv4/v6转换网关通过实体之间的内部转换实现自己从一个IPv4形式的实体向一个IPv6形式的实体的转换,从一个IPv6形式的实体向一个IPv4形式的实体的转换,以及实现同类实体之间的转换,从而最终实现RFC3344和RFC3775的互相透明。A3. The mobile IPv4/v6 conversion gateway realizes the conversion from an IPv4 form entity to an IPv6 form entity through the internal conversion between entities, from an IPv6 form entity to an IPv4 form entity, and realizes similar The conversion between entities, so as to finally realize the mutual transparency of RFC3344 and RFC3775.

步骤B为:移动IPv4/v6转换网关负责对从IPv4网络发送到IPv6网络的、与移动IP有关的各种消息和数据报文进行转换,负责对从IPv6网络发送到IPv4网络的、与移动IP有关的各种消息和数据报文进行转换。具体来说,该步骤B包括:Step B is: the mobile IPv4/v6 conversion gateway is responsible for converting various messages and data packets related to mobile IP sent from the IPv4 network to the IPv6 network, and responsible for converting the messages and data packets related to mobile IP sent from the IPv6 network to the IPv4 network. related to various messages and datagrams for conversion. Specifically, this step B includes:

B1.移动IPv4/v6转换网关负责把RFC3344所描述的注册请求消息转换成RFC3775所描述的绑定更新消息,把RFC3344所描述的注册应答消息转换成RFC3775所描述的绑定确认消息;B1. The mobile IPv4/v6 conversion gateway is responsible for converting the registration request message described in RFC3344 into the binding update message described in RFC3775, and converting the registration response message described in RFC3344 into the binding confirmation message described in RFC3775;

B2.移动IPv4/v6转换网关负责把RFC3775所描述的绑定更新消息转换成RFC3344所描述的注册请求消息,把RFC3775所描述的绑定确认消息转换成RFC3344所描述的注册应答消息;B2. The mobile IPv4/v6 conversion gateway is responsible for converting the binding update message described in RFC3775 into the registration request message described in RFC3344, and converting the binding confirmation message described in RFC3775 into the registration response message described in RFC3344;

B3.移动IPv4/v6转换网关负责对数据报文进行地址协议转换,并且在IPv6网络一侧收发数据报文时,按照RFC3775所描述的要求,把IPv6格式的数据报文IP头中的转交地址与扩展头中的家乡地址进行交换。B3. The mobile IPv4/v6 conversion gateway is responsible for address protocol conversion of the data message, and when sending and receiving data messages on the IPv6 network side, according to the requirements described in RFC3775, the care-of address in the IP header of the data message in IPv6 format Exchange with the home address in the extension header.

步骤C是:移动IPv4/v6转换网关按照下面的原则截获与移动IP有关的消息和数据报文:在更新时,按照消息的类型截获消息;在通信时,按照数据报文的目的地址截获数据报文;具体来说,该步骤C包括:Step C is: the mobile IPv4/v6 conversion gateway intercepts messages and data packets related to mobile IP according to the following principles: when updating, intercept the message according to the type of the message; when communicating, intercept the data according to the destination address of the data packet message; specifically, this step C includes:

C1.在通信时,移动IPv4/v6转换网关根据不同的通信情况充当不同的实体,由于以这些实体的IP地址作为目的地址的数据报文会被路由到移动IPv4/v6转换网关,因此,移动IPv4/v6转换网关将截获以这些实体的IP地址为目的地址的数据报文;C1. During communication, the mobile IPv4/v6 conversion gateway acts as different entities according to different communication situations. Since the data packets with the IP addresses of these entities as the destination address will be routed to the mobile IPv4/v6 conversion gateway, therefore, the mobile The IPv4/v6 conversion gateway will intercept the data packets with the IP addresses of these entities as the destination address;

C2.在更新时,移动IPv4/v6转换网关按照消息的类型截获消息,该方法进一步具体包括:C2. When updating, the mobile IPv4/v6 conversion gateway intercepts the message according to the type of the message, and the method further specifically includes:

C21.在IPv4网络,移动IPv4/v6转换网关需要处理的消息有RFC3344所描述的注册请求消息和注册应答消息以及本发明中新定义的代理请求消息和代理应答消息,对这四种消息,移动IPv4/v6转换网关在网络层根据消息的UDP封装和目的端口号截获,在应用层根据消息的负载类型值区分;C21. In the IPv4 network, the messages that the mobile IPv4/v6 conversion gateway needs to process include the registration request message and registration response message described in RFC3344 and the newly defined proxy request message and proxy response message in the present invention. For these four kinds of messages, mobile The IPv4/v6 conversion gateway intercepts the message according to the UDP encapsulation and destination port number of the message at the network layer, and distinguishes it according to the load type value of the message at the application layer;

C22.在IPv6网络,移动IPv4/v6转换网关需要处理的消息有RFC3775所描述的绑定更新消息、绑定确认消息、Home Test Init消息、Home Test消息、Care of Test Init消息、Care of Test消息;对这些消息,移动IPv4/v6转换网关在网络层根据消息的移动扩展头的下一个报头编号为135作为标志截获消息,在应用层根据负载中MH值区分消息。C22. On an IPv6 network, the messages that the mobile IPv4/v6 conversion gateway needs to process include binding update messages, binding confirmation messages, Home Test Init messages, Home Test messages, Care of Test Init messages, and Care of Test messages described in RFC3775. ; For these messages, the mobile IPv4/v6 conversion gateway intercepts the message at the network layer according to the next header number of the mobile extension header of the message as 135 as a sign, and distinguishes the message at the application layer according to the MH value in the load.

步骤D是:移动IPv4/v6转换网关在处理IPv4格式的消息和数据报文时采用RFC3344提供的安全机制,在处理IPv6格式的消息和数据报文时采用RFC3775提供的安全机制;该步骤D具体是:Step D is: the mobile IPv4/v6 conversion gateway adopts the security mechanism provided by RFC3344 when processing IPv4 format messages and data packets, and adopts the security mechanism provided by RFC3775 when processing IPv6 format messages and data packets; this step D is specific yes:

D1.当移动IPv4/v6转换网关接收一个消息或数据报文时,将根据这个消息或数据报文是IPv4格式还是IPv6格式,按照RFC3344或RFC3775所描述的认证算法进行认证;D1. When the mobile IPv4/v6 conversion gateway receives a message or data message, it will perform authentication according to the authentication algorithm described in RFC3344 or RFC3775 according to whether the message or data message is in IPv4 format or IPv6 format;

D2.当移动IPv4/v6转换网关发送一个消息或数据报文时,将根据这个消息或数据报文是IPv4格式还是IPv6格式,按照RFC3344或RFC3775所描述的认证算法产生认证数据,这个认证数据将作为这个消息或数据报文的一部分。D2. When the mobile IPv4/v6 conversion gateway sends a message or data message, it will generate authentication data according to the authentication algorithm described in RFC3344 or RFC3775 according to whether the message or data message is in IPv4 format or IPv6 format, and this authentication data will be as part of this message or datagram.

步骤E是:本发明提出的实现移动节点在IPv4/v6混合网络中的通信方法中对家乡代理和通信节点的要求与RFC3344和RFC3775所描述的要求保持一致,但增加对移动节点的要求。该步骤E具体是:步骤E具体包括:Step E is: the requirements for the home agent and the communication node in the method for realizing the communication of the mobile node in the IPv4/v6 hybrid network proposed by the present invention are consistent with the requirements described in RFC3344 and RFC3775, but the requirements for the mobile node are increased. The step E is specifically: the step E specifically includes:

E1.移动节点能够同时满足RFC3344和RFC3775所描述的有关移动节点的要求;E1. The mobile node can meet the requirements of mobile nodes described in RFC3344 and RFC3775;

E2.移动节点能够记录家乡代理和通信节点的域名,能够通过DNS查询的方式发现移动IPv4/v6转换网关,并获得家乡代理和通信节点的地址;E2. The mobile node can record the domain names of the home agent and the communication node, can discover the mobile IPv4/v6 conversion gateway through DNS query, and obtain the addresses of the home agent and the communication node;

E3.移动节点能够支持对注册请求消息和注册应答消息的扩展,能够产生和处理代理请求消息和代理应答消息。E3. The mobile node can support the extension of the registration request message and the registration response message, and can generate and process the proxy request message and the proxy response message.

步骤F是:当家乡代理位于IPv4网络,通信节点位于IPv6网络,移动节点在IPv4/v6混合网络中移动时的移动IPv4/v6的关键步骤包括:Step F is: when the home agent is located in the IPv4 network, the communication node is located in the IPv6 network, and the key steps of moving IPv4/v6 when the mobile node moves in the IPv4/v6 hybrid network include:

F1.当移动节点从IPv6网络移动到IPv4网络时,移动节点向移动IPv4/v6转换网关发送代理请求消息,请求移动IPv4/v6转换网关代理移动节点向处于IPv6网络中的通信节点发起其家乡地址与转交地址的绑定更新;F1. When the mobile node moves from the IPv6 network to the IPv4 network, the mobile node sends a proxy request message to the mobile IPv4/v6 conversion gateway, requesting the mobile IPv4/v6 conversion gateway to act on behalf of the mobile node to initiate its home address to the communication node in the IPv6 network Binding update with care-of address;

F2.移动IPv4/v6转换网关收到代理请求消息后,将代理移动节点向处于IPv6网络中的通信节点发起更新过程,此时移动IPv4/v6转换网关在IPv6网络一侧将分别充当IPv6格式的家乡代理和IPv6格式的移动节点,移动IPv4/v6转换网关收到绑定确认消息后,向处于IPv4网络中的移动节点发出代理应答消息;F2. After the mobile IPv4/v6 conversion gateway receives the proxy request message, the proxy mobile node will initiate an update process to the communication node in the IPv6 network. At this time, the mobile IPv4/v6 conversion gateway will act as the IPv6 format on the IPv6 network side. Home agent and the mobile node in IPv6 format, after the mobile IPv4/v6 conversion gateway receives the binding confirmation message, it sends an agent response message to the mobile node in the IPv4 network;

F3.所述代理请求消息的格式与RFC3344中的注册请求消息的格式相同,代理应答消息的格式与RFC3344中的注册应答消息的格式相同,其中代理请求的类型值被暂定为7,代理应答消息的类型值被暂定为8。F3. The format of the proxy request message is the same as that of the registration request message in RFC3344, and the format of the proxy response message is the same as that of the registration response message in RFC3344, wherein the type value of the proxy request is tentatively set to 7, and the proxy response The type value of the message is tentatively set to 8.

与现有技术相比,本发明的优点是:Compared with prior art, the advantage of the present invention is:

能够充分利用现有的MIPv4(RFC3344)和MIPv6(RFC3775)技术,实现移动节点在IPv4/v6混合网络中的移动通信,而且实现了MIPv4技术和MIPv6技术的兼容,实现了移动通信与网络从IPv4向IPv6过渡的同步性,同时本发明要求现有的移动通信设备无需做太大的升级,具有很大的实用价值。It can make full use of the existing MIPv4 (RFC3344) and MIPv6 (RFC3775) technologies to realize the mobile communication of mobile nodes in the IPv4/v6 hybrid network, and realize the compatibility of MIPv4 technology and MIPv6 technology, and realize the mobile communication and network from IPv4 The synchronicity of the transition to IPv6, and at the same time, the present invention requires that the existing mobile communication equipment does not need to be upgraded too much, and has great practical value.

附图说明Description of drawings

图1是RFC3344所描述的移动IPv4技术的基本原理的示意图;Fig. 1 is a schematic diagram of the basic principle of the Mobile IPv4 technology described in RFC3344;

图2A是注册请求消息的格式示意图;FIG. 2A is a schematic diagram of the format of a registration request message;

图2B是注册应答消息的格式示意图;FIG. 2B is a schematic diagram of the format of the registration response message;

图3是RFC3775所描述的移动IPv6技术的基本原理的示意图;Fig. 3 is a schematic diagram of the basic principle of the Mobile IPv6 technology described in RFC3775;

图4A是绑定更新消息的格式示意图;FIG. 4A is a schematic diagram of the format of a binding update message;

图4B是绑定确认消息的格式示意图;FIG. 4B is a schematic diagram of the format of a binding confirmation message;

图5是RFC3775所描述的移动IPv6技术中RRP的流程图;Fig. 5 is the flowchart of RRP in the Mobile IPv6 technology described in RFC3775;

图6是用NAT-PT网关加上DNS-ALG实现IPv4/v6网络的DNS查询的工作原理示意图;Fig. 6 is a schematic diagram of the working principle of DNS query of IPv4/v6 network with NAT-PT gateway plus DNS-ALG;

图7是本发明中使用到的一些术语的缩略语及其解释;Fig. 7 is the abbreviation and explanation thereof of some terms used among the present invention;

图8是在本发明中MIPv4/v6-TG针对一个具体的通信情况充当不同实体的示意图;Fig. 8 is a schematic diagram of MIPv4/v6-TG acting as different entities for a specific communication situation in the present invention;

图9是HA和CN都位于IPv6网络、MN在IPv4/v6混合网络中移动的布局示意图;Figure 9 is a schematic diagram of the layout where both the HA and the CN are located in the IPv6 network and the MN moves in the IPv4/v6 hybrid network;

图10是HA和CN都位于IPv6网络、MN在IPv6网络中移动时移动IPv4/v6解决方案的示意图;Figure 10 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv6 network and the MN moves in the IPv6 network;

图11是HA和CN都位于IPv6网络,MN在IPv4网络中移动时MIPv4/v6-TG的地址配置示意图;Figure 11 is a schematic diagram of the address configuration of MIPv4/v6-TG when both HA and CN are located in the IPv6 network and the MN moves in the IPv4 network;

图12是HA和CN都位于IPv6网络、MN在IPv4网络中移动时的通信流程图;Fig. 12 is the communication flowchart when both HA and CN are located in the IPv6 network and the MN moves in the IPv4 network;

图13是HA和CN都位于IPv6网络、MN在IPv4网络中移动时的更新流程图;Fig. 13 is the update flowchart when both HA and CN are located in the IPv6 network and the MN moves in the IPv4 network;

图14是HA和CN都位于IPv6网络、MN从IPv6网络移动到IPv4网络时的更新流程图;Fig. 14 is the update flowchart when both HA and CN are located in the IPv6 network and the MN moves from the IPv6 network to the IPv4 network;

图15A是HA和CN都位于IPv6网络、MN从IPv6网络移动到IPv4网络时注册请求消息的格式扩展示意图;Figure 15A is a schematic diagram of the extended format of the registration request message when both the HA and the CN are located in the IPv6 network and the MN moves from the IPv6 network to the IPv4 network;

图15B是HA和CN都位于IPv6网络、MN从IPv6网络移动到IPv4网络时的注册应答消息的格式示意图;15B is a schematic diagram of the format of the registration response message when both the HA and the CN are located in the IPv6 network and the MN moves from the IPv6 network to the IPv4 network;

图16是HA和CN都位于IPv6网络、MN从IPv4网络移动到IPv6网络时移动IPv4/v6解决方案的示意图;Figure 16 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv6 network and the MN moves from the IPv4 network to the IPv6 network;

图17是HA和CN都位于IPv4网络,MN在IPv4/v6混合网络中移动的布局示意图;Figure 17 is a schematic diagram of the layout where both the HA and the CN are located in the IPv4 network and the MN moves in the IPv4/v6 hybrid network;

图18是HA和CN都位于IPv4网络、MN在IPv4网络中移动时移动IPv4/v6解决方案的示意图;Figure 18 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv4 network and the MN moves in the IPv4 network;

图19是HA和CN都位于IPv4网络、MN在IPv6网络中移动时MIPv4/v6-TG的地址配置示意图;Figure 19 is a schematic diagram of the address configuration of MIPv4/v6-TG when both HA and CN are located in the IPv4 network and the MN moves in the IPv6 network;

图20是HA和CN都位于IPv4网络、MN在IPv6网络中移动时的通信流程图;Fig. 20 is the communication flowchart when both HA and CN are located in IPv4 network and MN moves in IPv6 network;

图21是HA和CN都位于IPv4网络、MN在IPv6网络中移动时的更新流程图;Figure 21 is an update flowchart when both HA and CN are located in the IPv4 network and the MN moves in the IPv6 network;

图22是HA和CN都位于IPv4网络、MN从IPv4网络移动到IPv6网络时的更新流程图;Figure 22 is an update flow chart when both HA and CN are located in the IPv4 network and the MN moves from the IPv4 network to the IPv6 network;

图23是HA和CN都位于IPv4网络、MN从IPv6网络移动到IPv4网络时移动IPv4/v6解决方案的示意图;Figure 23 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv4 network and the MN moves from the IPv6 network to the IPv4 network;

图24是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4/v6混合网络中移动的布局示意图;Figure 24 is a schematic diagram of the layout where the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4/v6 hybrid network;

图25是HA位于IPv6网络、CN位于IPv4网络、MN在IPv6网络中移动时MIPv4/v6-TG的地址配置示意图;Figure 25 is a schematic diagram of the address configuration of MIPv4/v6-TG when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv6 network;

图26是HA位于IPv6网络、CN位于IPv4网络、MN在IPv6网络中移动时的通信流程图;Fig. 26 is a communication flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv6 network;

图27是HA位于IPv6网络、CN位于IPv4网络、MN在IPv6网络中移动时的更新流程图;Figure 27 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv6 network;

图28是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4网络中移动时MIPv4/v6-TG的地址配置示意图;Figure 28 is a schematic diagram of the address configuration of MIPv4/v6-TG when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4 network;

图29是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4网络中移动时的通信流程图;Fig. 29 is a communication flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4 network;

图30是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4网络中移动时的更新流程图;Figure 30 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4 network;

图31是HA位于IPv6网络、CN位于IPv4网络、MN从IPv6网络移动到IPv4网络时的更新流程图;Figure 31 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves from the IPv6 network to the IPv4 network;

图32A是HA位于IPv6网络、CN位于IPv4网络、MN从IPv6网络移动到IPv4网络时的注册请求消息的格式扩展示意图;FIG. 32A is a schematic diagram of the extended format of the registration request message when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves from the IPv6 network to the IPv4 network;

图32B是HA位于IPv6网络、CN位于IPv4网络、MN从IPv6网络移动到IPv4网络时的注册应答消息的格式示意图;32B is a schematic diagram of the format of the registration response message when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves from the IPv6 network to the IPv4 network;

图33是HA位于IPv6网络、CN位于IPv4网络、MN从IPv4网络移动到IPv6网络时的更新流程图;Figure 33 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves from the IPv4 network to the IPv6 network;

图34是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4/v6混合网络中移动的布局示意图;Figure 34 is a schematic diagram of the layout where the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4/v6 hybrid network;

图35是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4网络中移动时MIPv4/v6-TG的地址配置示意图;Figure 35 is a schematic diagram of the address configuration of MIPv4/v6-TG when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4 network;

图36是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4网络中移动时的通信流程图;Fig. 36 is a communication flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4 network;

图37是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4网络中移动时的更新流程图;Figure 37 is an update flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4 network;

图38是HA位于IPv4网络、CN位于IPv6网络、MN在IPv6网络中移动时MIPv4/v6-TG的地址配置示意图;Figure 38 is a schematic diagram of the address configuration of MIPv4/v6-TG when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv6 network;

图39是HA位于IPv4网络、CN位于IPv6网络、MN在IPv6网络中移动时的通信流程图;Fig. 39 is a communication flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv6 network;

图40是HA位于IPv4网络、CN位于IPv6网络、MN在IPv6网络中移动时的更新流程图;Figure 40 is an update flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv6 network;

图41是HA位于IPv4网络、CN位于IPv6网络、MN从IPv4网络移动到IPv6网络时的更新流程图;Figure 41 is an update flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves from the IPv4 network to the IPv6 network;

图42是HA位于IPv4网络、CN位于IPv6网络、MN从IPv6网络移动到IPv4网络时的更新流程图;Figure 42 is an update flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves from the IPv6 network to the IPv4 network;

图43A是HA位于IPv4网络、CN位于IPv6网络、MN从IPv6网络移动到IPv4网络时的代理请求消息的格式示意图;Figure 43A is a schematic diagram of the format of the proxy request message when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves from the IPv6 network to the IPv4 network;

图43B是HA位于IPv4网络、CN位于IPv6网络、MN从IPv6网络移动到IPv4网络时的代理应答消息的格式示意图。Fig. 43B is a schematic diagram of the format of the proxy response message when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves from the IPv6 network to the IPv4 network.

具体实施方式Detailed ways

本发明涉及一种实现移动节点在IPv4/v6混合网络中的通信方法,该通信方法是为了解决移动IPv4/v6存在的十六个子问题。The invention relates to a communication method for realizing a mobile node in an IPv4/v6 mixed network, and the communication method is to solve sixteen sub-problems existing in the mobile IPv4/v6.

以下参照各附图及具体实施例进行详细的说明。Detailed description will be given below with reference to the drawings and specific embodiments.

如图8所示,家乡代理位于IPv4网络(记为HAv4)、通信节点位于IPv6网络(记为CNv6)、移动节点在IPv4网络内部移动(记为MNv4)、IPv4网络与IPv6网络之间设置MIPv4/v6-TG。在这种情况中,MIPv4/v6-TG在IPv4网络一侧充当通信节点(记为CNv4),与HAv4和MNv4按照RFC3344所描述的MIPv4技术进行通信。MIPv4/v6-TG在IPv6网络一侧充当移动节点(记为MNv6),与CNv6按照RFC3775所描述的MIPv6技术进行通信。MIPv4/v6-TG在内部进行CNv4与MNv6之间的转换。As shown in Figure 8, the home agent is located in the IPv4 network (denoted as HAv4), the communication node is located in the IPv6 network (denoted as CNv6), the mobile node moves within the IPv4 network (denoted as MNv4), and MIPv4 is set between the IPv4 network and the IPv6 network. /v6-TG. In this case, MIPv4/v6-TG acts as a communication node (denoted as CNv4) on the side of the IPv4 network, and communicates with HAv4 and MNv4 according to the MIPv4 technology described in RFC3344. MIPv4/v6-TG acts as a mobile node (marked as MNv6) on the side of the IPv6 network, and communicates with CNv6 according to the MIPv6 technology described in RFC3775. MIPv4/v6-TG converts between CNv4 and MNv6 internally.

如图9所示HA和CN都位于IPv6网络,MN在IPv4/v6混合网络中移动,整个过程可以分为MN在IPv6网络中移动时与CN的通信,MN在IPv4网络中移动时与CN的通信,MN从IPv6网络移动到IPv4网络时与CN的通信,MN从IPv4网络移动到IPv6网络时与CN的通信。下面将分别对这几种情况下的通信进行详细的说明。As shown in Figure 9, both the HA and the CN are located in the IPv6 network, and the MN moves in the IPv4/v6 hybrid network. The whole process can be divided into the communication between the MN and the CN when the MN moves in the IPv6 network, the communication between the MN and the CN when the MN moves in the IPv4 network, and the MN Communication with CN when moving from IPv6 network to IPv4 network, communication with CN when MN moves from IPv4 network to IPv6 network. The communication in these situations will be described in detail below.

图10是HA和CN都位于IPv6网络,MN在IPv6网络中移动时移动IPv4/v6的解决方案示意图。当MN在IPv6网络内移动时,MN、HA和CN都在IPv6网络内,这是典型的MIPv6的问题,将按照RFC3775所描述的MIPv6技术进行通信和更新,具体的实施过程见图3。Fig. 10 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv6 network and the MN moves in the IPv6 network. When the MN moves in the IPv6 network, the MN, HA and CN are all in the IPv6 network. This is a typical MIPv6 problem. It will communicate and update according to the MIPv6 technology described in RFC3775. The specific implementation process is shown in Figure 3.

图11是HA和CN都位于IPv6网络,MN在IPv4网络中移动时MIPv4/v6-TG的地址配置示意图。当MN在IPv4网络移动时,MIPv4/v6-TG在IPv6网络一侧充当MNv6,与CNv6构成RFC3775所描述的MIPv6技术的两个实体,按照RFC3775所描述的MIPv6技术进行通信,为了使得MIPv4/v6-TG在IPv6网络一侧向CNv6发送数据报文时能够进行家乡地址和转交地址的更换,MIPv4/v6-TG中的MIP-ALG必须维持IPv6格式的家乡地址与转交地址的绑定:HoAv6CoAv6*Fig. 11 is a schematic diagram of address configuration of MIPv4/v6-TG when both the HA and the CN are located in the IPv6 network and the MN moves in the IPv4 network. When the MN moves on the IPv4 network, MIPv4/v6-TG acts as MNv6 on the side of the IPv6 network, and constitutes two entities of the MIPv6 technology described in RFC3775 with CNv6, and communicates according to the MIPv6 technology described in RFC3775. In order to make MIPv4/v6 -TG can replace the home address and the care-of address when sending data packets to CNv6 on the IPv6 network side, and the MIP-ALG in MIPv4/v6-TG must maintain the binding of the home address and the care-of address in IPv6 format: HoAv6 CoAv6 * .

在IPv4网络一侧,MIPv4/v6-TG在发送数据报文时充当HAv4,在接收数据报文时充当CNv4,与MNv4构成RFC3344所描述的MIPv4技术的三个实体,按照RFC3344所描述的MIPv4技术进行通信。为了充当HAv4,MIPv4/v6-TG中的NAT-PT必须维持HAAv6HAAv4#和HoAv6HoAv4#两个地址映射、MIP-ALG必须维持IPv4格式的家乡地址与转交地址的绑定:HoAv4#CoAv4。为了在接收数据报文时充当CNv4,MIPv4/v6-TG中的NAT-PT必须维持CNAv4#CNAv6的地址映射。On the IPv4 network side, MIPv4/v6-TG acts as HAv4 when sending data packets, and acts as CNv4 when receiving data packets, and MNv4 constitutes three entities of the MIPv4 technology described in RFC3344, according to the MIPv4 technology described in RFC3344 to communicate. In order to act as HAv4, the NAT-PT in MIPv4/v6-TG must maintain two address mappings of HAAv6HAAv4# and HoAv6HoAv4#, and MIP-ALG must maintain the binding of the home address and the care-of address in IPv4 format: HoAv4# CoAv4. In order to act as CNv4 when receiving data packets, the NAT-PT in MIPv4/v6-TG must maintain the address mapping of CNAv4#CNAv6.

图12是HA和CN都位于IPv6网络,MN在IPv4网络中移动时的通信流程图。具体的通信步骤包括:Fig. 12 is a communication flowchart when both the HA and the CN are located in the IPv6 network and the MN moves in the IPv4 network. The specific communication steps include:

(1)根据RFC3344所描述的MIPv4技术,MNv4向CNv6发送IPv4格式的数据报文,其源地址是HoAv4#,目的地址是CNAv4#。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(1) According to the MIPv4 technology described in RFC3344, MNv4 sends a data packet in IPv4 format to CNv6, its source address is HoAv4#, and its destination address is CNAv4#. According to the destination address, such data packets are sent to MIPv4/v6-TG.

(2)MIP-ALG中的NAT-PT对数据报文进行地址协议转换,转换后的数据报文的源地址为HoAv6,目的地址为CNAv6。根据RFC3775所描述的MIPv6技术,MIPv4/v6-TG中MIP-ALG从自己维持的地址绑定HoAv6CoAv6*中取出CoAv6*,把经过NAT-PT转换后的数据报文的目的地址从HoAv6替换为CoAv6*,并把HoAv6填入数据报文的家乡地址选项中。根据目的地址,这样的数据报文发往CNv6。(2) The NAT-PT in the MIP-ALG performs address protocol conversion on the data message, the source address of the converted data message is HoAv6, and the destination address is CNAv6. According to the MIPv6 technology described in RFC3775, MIP-ALG in MIPv4/v6-TG extracts CoAv6 * from the address binding HoAv6CoAv6 * maintained by itself, and replaces the destination address of the data packet after NAT-PT conversion with HoAv6 It is CoAv6 * , and fill HoAv6 in the home address option of the data packet. According to the destination address, such data packets are sent to CNv6.

(3)根据RFC3775所描述的MIPv6技术,CNv6向MNv4发送IPv6格式的数据报文,其源地址是CNAv6,目的地址为CoAv6*,并在数据报文中插入一个第二类路由头,里面包括HoAv6。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(3) According to the MIPv6 technology described in RFC3775, CNv6 sends a data message in IPv6 format to MNv4, its source address is CNAv6, and its destination address is CoAv6 * , and inserts a second-type routing header in the data message, which includes HoAv6. According to the destination address, such data packets are sent to MIPv4/v6-TG.

(4)根据RFC3775所描述的MIPv6技术,MIPv4/v6-TG中的MIP-ALG从接收到的数据报文的第二类路由头中取出HoAv6,把目的地址从CoAv6*更换为HoAv6。MIPv4/v6-TG中的NAT-PT对经过MIP-ALG处理的数据报文进行地址协议转换,转换后的数据报文源地址是CNAv4#,目的地址是HoAv4#。这样的数据报文通过隧道发往MNv4,隧道的源地址是HAAv4#,目的地址是CoAv4。(4) According to the MIPv6 technology described in RFC3775, the MIP-ALG in MIPv4/v6-TG takes out HoAv6 from the second-type routing header of the received data message, and replaces the destination address with HoAv6 from CoAv6 * . The NAT-PT in MIPv4/v6-TG performs address protocol conversion on the data message processed by MIP-ALG, and the source address of the converted data message is CNAv4#, and the destination address is HoAv4#. Such data packets are sent to MNv4 through the tunnel, the source address of the tunnel is HAAv4#, and the destination address is CoAv4.

图13是HA和CN都位于IPv6网络、MN在IPv4网络中移动时的更新流程图,当MN在IPv4网络内移动并获得一个新的转交地址时,MN需要发起更新过程。在更新过程中,MIPv4/v6-TG在IPv4网络一侧充当HAv4,与MNv4按照RFC3344所描述的MIPv4技术进行家乡地址与转交地址的绑定更新,也就是更新MIP-ALG中所维持的家乡地址与转交地址的绑定。然后,MIPv4/v6-TG在IPv6网络一侧充当MNv6,与HAv6和CNv6按照RFC37755所描述的MIPv6技术进行家乡地址与转交地址的绑定更新。具体的更新步骤包括:Figure 13 is an update flowchart when both HA and CN are located in the IPv6 network and the MN moves in the IPv4 network. When the MN moves in the IPv4 network and obtains a new care-of address, the MN needs to initiate an update process. During the update process, MIPv4/v6-TG acts as HAv4 on the side of the IPv4 network, and MNv4 performs the binding update of the home address and the care-of address according to the MIPv4 technology described in RFC3344, that is, updates the home address maintained in the MIP-ALG Binding to the care-of address. Then, MIPv4/v6-TG acts as MNv6 on the side of the IPv6 network, and performs binding update of the home address and the care-of address with HAv6 and CNv6 according to the MIPv6 technology described in RFC37755. The specific update steps include:

(1)根据RFC3344所描述的MIPv4技术,MNv4产生注册请求消息。注册请求消息的源地址是CoAv4,目的地址是HAAv4#,负载包括HoAv4#。根据目的地址,该注册请求消息发往MIPv4/v6-TG。(1) According to the MIPv4 technology described in RFC3344, MNv4 generates a registration request message. The source address of the registration request message is CoAv4, the destination address is HAAv4#, and the payload includes HoAv4#. According to the destination address, the registration request message is sent to MIPv4/v6-TG.

(2)MIPv4/v6-TG把接收到的注册请求消息转换为绑定更新消息。绑定更新消息的源地址是CoAv6*,目的地址是HAAv6,负载包括HoAv6。根据目的地址,该绑定更新消息发往HAv6。(2) MIPv4/v6-TG converts the received registration request message into a binding update message. The source address of the binding update message is CoAv6 * , the destination address is HAAv6, and the payload includes HoAv6. According to the destination address, the binding update message is sent to HAv6.

(3)HAv6收到绑定更新消息后首先更新自己维持的家乡地址与转交地址的绑定,然后向MIPv4/v6-TG回复绑定确认消息。(3) After receiving the binding update message, HAv6 first updates the binding between the home address and the care-of address maintained by itself, and then replies a binding confirmation message to MIPv4/v6-TG.

(4)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。此时MIPv4/v6-TG将充当MNv6向CNv6发起RRP认证,RRP认证按照RFC37755所描述的流程进行,RRP具体步骤如下:MIPv4/v6-TG首先同时向CNv6发送Home Test Init消息和Care-of Test Init消息,其中Home Test Init消息需要经过HAv6,Care-of Test Init消息直接发送给CNv6;CNv6收到HomeTest Init消息和Care-of Test Init消息后分别回复Home Test消息和Care-of Test消息,Home Test消息和Care-of Test消息按照原路返回。(4) According to RFC3775, before MNv6 initiates a binding update to CNv6, RRP authentication must be performed. At this time, MIPv4/v6-TG will act as MNv6 to initiate RRP authentication to CNv6. RRP authentication is performed according to the process described in RFC37755. The specific steps of RRP are as follows: MIPv4/v6-TG first sends the Home Test Init message and Care-of Test to CNv6 at the same time. Init message, where the Home Test Init message needs to go through HAv6, and the Care-of Test Init message is sent directly to CNv6; CNv6 replies Home Test message and Care-of Test message respectively after receiving the HomeTest Init message and Care-of Test Init message, and the Home Test messages and Care-of Test messages are returned in the same way.

(5)RRP认证结束后,MIPv4/v6-TG向CNv6发送绑定更新消息。(5) After the RRP authentication is completed, MIPv4/v6-TG sends a binding update message to CNv6.

(6)CNv6收到绑定更新消息后首先更新自己维持的家乡地址与转交地址的绑定,然后向MIPv4/v6-TG回复绑定确认消息。(6) After CNv6 receives the binding update message, it first updates the binding between the home address and the care-of address maintained by itself, and then replies a binding confirmation message to MIPv4/v6-TG.

(7)MIPv4/v6-TG收到绑定确认消息后,更新MIP-ALG维持的家乡地址与转交地址的绑定。然后,根据RFC3344所描述的MIPv4技术,MIPv4/v6-TG产生注册应答消息。注册应答消息的源地址是HAAv4#,目的地址是CoAv4,负载包括HoAv4#。根据目的地址,该注册应答消息发往MNv4。(7) MIPv4/v6-TG updates the binding between the home address and the care-of address maintained by the MIP-ALG after receiving the binding confirmation message. Then, according to the MIPv4 technology described in RFC3344, MIPv4/v6-TG generates a registration response message. The source address of the registration response message is HAAv4#, the destination address is CoAv4, and the payload includes HoAv4#. According to the destination address, the registration response message is sent to MNv4.

图14是HA和CN都位于IPv6网络、MN从IPv6网络移动到IPv4网络时的更新流程图。Fig. 14 is an update flowchart when both the HA and the CN are located in the IPv6 network and the MN moves from the IPv6 network to the IPv4 network.

如图14所示,此时更新过程主要有两个任务,首先要实现HAv6和CNv6所维持的家乡地址与转交地址的绑定更新;其次要通过域名查询的方式发现MIPv4/v6-TG并对MIPv4/v6-TG进行地址配置。在这个更新过程中,在IPv4网络一侧,MIPv4/v6-TG充当HAv4,在IPv6网络一侧,MIPv4/v6-TG充当MNv6。具体的更新步骤包括:As shown in Figure 14, there are two main tasks in the update process at this time. Firstly, the binding update between the home address and the care-of address maintained by HAv6 and CNv6 should be realized; secondly, the MIPv4/v6-TG should be discovered and MIPv4/v6-TG performs address configuration. In this update process, on the IPv4 network side, MIPv4/v6-TG acts as HAv4, and on the IPv6 network side, MIPv4/v6-TG acts as MNv6. The specific update steps include:

(1)MNv4通过域名查询的方式发现MIPv4/v6-TG,并获得HAv6的IPv4格式的地址HAAv4#。在此过程中,MIPv4/v6-TG中的NAT-PT建立了地址映射:HAAv6HAAv4#。(1) The MNv4 discovers the MIPv4/v6-TG through domain name query, and obtains the address HAAv4# of the IPv4 format of the HAv6. During this process, NAT-PT in MIPv4/v6-TG establishes address mapping: HAAv6HAAv4#.

(2)MNv4通过域名查询的方式发现MIPv4/v6-TG,并获得CNv6的IPv4格式的地址CNAv4#。在此过程中,MIPv4/v6-TG中的NAT-PT建立了地址映射:CNAv4#CNAv6。(2) MNv4 discovers MIPv4/v6-TG through domain name query, and obtains the address CNAv4# of CNv6 in IPv4 format. During this process, NAT-PT in MIPv4/v6-TG establishes address mapping: CNAv4#CNAv6.

(3)根据RFC3344所描述的MIPv4技术,MNv4产生注册请求消息。注册请求消息的源地址是CoAv4,目的地址是HAAv4#。由于MNv4不知道HoAv4#,因此,注册请求消息的家乡地址域被置为零,HoAv6被放置在扩展域中。另外,为了使得MIPv4/v6-TG随后能够在IPv6网络一侧充当MNv6,与HAv6和CNv6根据RFC3775所述的MIPv6技术进行CNv6所维持的家乡地址与转交地址的更新,CNAv4#也放置在扩展域中。扩展后的注册请求消息如图15A所示。根据目的地址,该注册请求消息发往MIPv4/v6-TG。(3) According to the MIPv4 technology described in RFC3344, MNv4 generates a registration request message. The source address of the registration request message is CoAv4, and the destination address is HAAv4#. Since MNv4 does not know HoAv4#, the home address field of the registration request message is set to zero, and HoAv6 is placed in the extended field. In addition, in order to enable MIPv4/v6-TG to act as MNv6 on the side of the IPv6 network, and update the home address and care-of address maintained by CNv6 with HAv6 and CNv6 according to the MIPv6 technology described in RFC3775, CNAv4# is also placed in the extension field middle. The extended registration request message is shown in Figure 15A. According to the destination address, the registration request message is sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG从接收到的注册请求消息中得到HoAv6、通过查找地址映射表得到CNAv6和HAAv6、通过在CoAv4前添加96位的NAT-PT网关前缀得到CoAv6*。然后,根据RFC3775所描述的MIPv6技术,MIPv4/v6-TG产生绑定更新消息,绑定更新消息的源地址是CoAv6*,目的地址是HAAv6,负载包括HoAv6。根据目的地址,该绑定更新消息发往HAv6。(4) MIPv4/v6-TG obtains HoAv6 from the registration request message received, obtains CNAv6 and HAAv6 by looking up the address mapping table, and obtains CoAv6 * by adding a 96-bit NAT-PT gateway prefix before CoAv4. Then, according to the MIPv6 technology described in RFC3775, MIPv4/v6-TG generates a binding update message, the source address of the binding update message is CoAv6 * , the destination address is HAAv6, and the payload includes HoAv6. According to the destination address, the binding update message is sent to HAv6.

(5)HAv6收到绑定更新消息后更新自己维持的家乡地址和转交地址的绑定,并向MIPv4/v6-TG回复绑定确认消息。(5) After receiving the binding update message, HAv6 updates the binding between the home address and the care-of address maintained by itself, and returns a binding confirmation message to MIPv4/v6-TG.

(6)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。此时MIPv4/v6-TG将充当MNv6向CNv6发起RRP认证,RRP认证按照RFC37755所描述的流程进行,RRP具体步骤如下:MIPv4/v6-TG首先同时向CNv6发送Home Test Init消息和Care-of Test Init消息,其中Home Test Init消息需要经过HAv6,Care-of Test Init消息直接发送给CNv6;CNv6收到HomeTest Init消息和Care-of Test Init消息后分别回复Home Test消息和Care-of Test消息,Home Test消息和Care-of Test消息按照原路返回。(6) According to RFC3775, before MNv6 initiates a binding update to CNv6, RRP authentication must be performed. At this time, MIPv4/v6-TG will act as MNv6 to initiate RRP authentication to CNv6. RRP authentication is performed according to the process described in RFC37755. The specific steps of RRP are as follows: MIPv4/v6-TG first sends the Home Test Init message and Care-of Test to CNv6 at the same time. Init message, where the Home Test Init message needs to go through HAv6, and the Care-of Test Init message is sent directly to CNv6; CNv6 replies Home Test message and Care-of Test message respectively after receiving the HomeTest Init message and Care-of Test Init message, and the Home Test messages and Care-of Test messages are returned in the same way.

(7)RRP认证结束后,MIPv4/v6-TG向CNv6发送绑定更新消息。(7) After RRP authentication ends, MIPv4/v6-TG sends a binding update message to CNv6.

(8)CNv6收到绑定更新消息后首先更新自己维持的家乡地址和转交地址的绑定,然后向MIPv4/v6-TG回复绑定确认消息。(8) After CNv6 receives the binding update message, it first updates the binding between the home address and the care-of address maintained by itself, and then replies a binding confirmation message to MIPv4/v6-TG.

(9)MIPv4/v6-TG收到绑定确认消息后,MIPv4/v6-TG中的NAT-PT建立地址映射:HoAv6HoAv4#,MIP-ALG建立地址绑定:HoAv4#CoAv4和HoAv6CoAv6*。然后MIPv4/v6-TG向MNv4回复注册应答消息。MIPv4/v6-TG在注册应答消息中向MNv4提供了HoAv4#。此时注册应答消息的格式如图15B所示。(9) After MIPv4/v6-TG receives the binding confirmation message, NAT-PT in MIPv4/v6-TG establishes address mapping: HoAv6HoAv4#, and MIP-ALG establishes address binding: HoAv4#CoAv4 and HoAv6 CoAv6 * . Then the MIPv4/v6-TG replies the Registration Reply message to the MNv4. MIPv4/v6-TG provides HoAv4# to MNv4 in the registration response message. At this time, the format of the registration response message is shown in FIG. 15B .

图16是HA和CN都位于IPv6网络,MN从IPv4网络移动到IPv6网络时的移动IPv4/v6解决方案的示意图。Fig. 16 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv6 network and the MN moves from the IPv4 network to the IPv6 network.

当MN从IPv4网络移动到IPv6网络后,MN、HA和CN都在IPv6网络,这是典型的MIPv6的问题,将按照RFC3775所描述的MIPv6技术进行通信和更新,具体的实施过程见图3。When the MN moves from the IPv4 network to the IPv6 network, the MN, HA and CN are all in the IPv6 network. This is a typical MIPv6 problem. Communication and updates will be performed according to the MIPv6 technology described in RFC3775. The specific implementation process is shown in Figure 3.

图17是HA和CN都位于IPv4网络,MN在IPv4/v6混合网络中移动的布局示意图。Figure 17 is a schematic diagram of the layout where both the HA and the CN are located in the IPv4 network, and the MN moves in the IPv4/v6 hybrid network.

如图17所示HA和CN都位于IPv4网络,MN在IPv4/v6混合网络中移动,整个过程可以分为MN在IPv4网络中移动时与CN的通信,MN在IPv6网络中移动时与CN的通信,MN从IPv4网络移动到IPv6网络时与CN的通信,MN从IPv6网络移动到IPv4网络时与CN的通信。下面将分别对这几种情况下的通信进行详细的说明。As shown in Figure 17, both the HA and the CN are located in the IPv4 network, and the MN moves in the IPv4/v6 hybrid network. The whole process can be divided into the communication between the MN and the CN when the MN moves in the IPv4 network, and the communication between the MN and the CN when the MN moves in the IPv6 network. Communication with CN when moving from IPv4 network to IPv6 network, communication with CN when MN moves from IPv6 network to IPv4 network. The communication in these situations will be described in detail below.

图18是HA和CN都位于IPv4网络,MN在IPv4网络中移动时移动IPv4/v6解决方案的示意图。Fig. 18 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv4 network and the MN moves in the IPv4 network.

当MN在IPv4网络内移动时,MN、HA和CN都在IPv4网络内,这是典型的MIPv4的问题,将按照RFC3344所描述的MIPv4技术进行通信和更新,具体的实施过程见图1。When the MN moves in the IPv4 network, the MN, HA and CN are all in the IPv4 network. This is a typical MIPv4 problem. It will communicate and update according to the MIPv4 technology described in RFC3344. The specific implementation process is shown in Figure 1.

图19是HA和CN都位于IPv4网络,MN在IPv6网络中移动时MIPv4/v6-TG的地址配置示意图。Fig. 19 is a schematic diagram of address configuration of MIPv4/v6-TG when both the HA and the CN are located in the IPv4 network and the MN moves in the IPv6 network.

当MN在IPv6网络移动时,MIPv4/v6-TG在IPv4网络一侧充当MNv4,与CNv4和HAv4构成RFC3344所描述的MIPv4技术的三个实体,按照RFC3344所描述的MIPv4技术进行通信,为了使得MIPv4/v6-TG在IPv4网络一侧充当MNv4,MIPv4/v6-TG中的NAT-PT必须维持CoAv4#CoAv6的地址映射。When the MN moves on the IPv6 network, MIPv4/v6-TG acts as MNv4 on the side of the IPv4 network, and constitutes three entities of the MIPv4 technology described in RFC3344 with CNv4 and HAv4, and communicates according to the MIPv4 technology described in RFC3344. In order to make MIPv4 /v6-TG acts as MNv4 on the side of the IPv4 network, and the NAT-PT in MIPv4/v6-TG must maintain the address mapping of CoAv4#CoAv6.

在IPv6网络一侧,MIPv4/v6-TG充当CNv6,与MNv6构成RFC3775所描述的MIPv6技术的两个实体,按照RFC3775所描述的MIPv6技术进行通信。为了充当CNv6,MIPv4/v6-TG中的MIP-ALG必须维持HoAv6*CoAv6的地址绑定。On the IPv6 network side, MIPv4/v6-TG acts as CNv6, and MNv6 constitutes two entities of the MIPv6 technology described in RFC3775, and communicates according to the MIPv6 technology described in RFC3775. In order to act as CNv6, the MIP-ALG in MIPv4/v6-TG must maintain the address binding of HoAv6*CoAv6.

图20是HA和CN都位于IPv4网络,MN在IPv6网络中移动时的通信流程图。具体的通信步骤包括:Fig. 20 is a communication flowchart when both the HA and the CN are located in the IPv4 network and the MN moves in the IPv6 network. The specific communication steps include:

(1)根据RFC3775所描述的MIPv6技术,MNv6向CNv4发送IPv6格式的数据报文,其源地址是CoAv6,目的地址是CNAv6*,同时在数据报文的目的地选项扩展头的家乡地址选项中插入家乡地址HoAv6*。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(1) According to the MIPv6 technology described in RFC3775, MNv6 sends a data message in IPv6 format to CNv4, its source address is CoAv6, and its destination address is CNAv6 * , and at the same time, it is included in the home address option of the destination option extension header of the data message Insert Home Address HoAv6 * . According to the destination address, such data packets are sent to MIPv4/v6-TG.

(2)MIPv4/v6-TG上的NAT-PT网关根据数据报文的目的地址是CNAv6*的特征将其截获并送到MIP-ALG上处理。MIP-ALG从数据报文的目的地选项扩展头的家乡地址选项中取出HoAv6*,并用这个HoAv6*作为数据报文新的源地址,使移动节点的移动对于上层的业务保持透明。然后,MIP-ALG把数据报文交给NAT-PT网关处理,NAT-PT网关对数据报文进行地址协议转换,转换后的数据报文的源地址为HoAv4,目的地址为CNAv4。根据目的地址,这样的数据报文直接发往CNv4。(2) The NAT-PT gateway on the MIPv4/v6-TG intercepts the data message according to the characteristic that the destination address of the data message is CNAv6 * and sends it to the MIP-ALG for processing. MIP-ALG extracts HoAv6 * from the home address option of the destination option extension header of the data message, and uses this HoAv6 * as the new source address of the data message, so that the movement of the mobile node remains transparent to the upper-layer services. Then, the MIP-ALG sends the data message to the NAT-PT gateway for processing, and the NAT-PT gateway performs address protocol conversion on the data message. The source address of the converted data message is HoAv4, and the destination address is CNAv4. According to the destination address, such data packets are directly sent to CNv4.

(3)根据RFC3344所描述的MIPv4技术,CNv4向MNv6发送IPv4格式的数据报文,其源地址是CNAv4,目的地址为HoAv4,根据目的地址,该数据报文发往MIPv4/v6-TG。(3) According to the MIPv4 technology described in RFC3344, CNv4 sends a data message in IPv4 format to MNv6, its source address is CNAv4, and its destination address is HoAv4. According to the destination address, the data message is sent to MIPv4/v6-TG.

(4)这样的数据报文经由HAv4时被截获,然后经由HAv4通过隧道发往MIPv4/v6-TG。隧道的源地址是HAAv4,目的地址是CoAv4#。(4) Such data packets are intercepted when passing through HAv4, and then sent to MIPv4/v6-TG through a tunnel through HAv4. The source address of the tunnel is HAAv4, and the destination address is CoAv4#.

(5)MIPv4/v6-TG中的MIP-ALG首先对接收到的数据报文进行解封装,然后交给NAT-PT网关进行地址协议转换,转换后的数据报文源地址是CNAv6*,目的地址是HoAv6*。根据RFC3775,为了使移动节点的移动对于上层的业务保持透明,MIPv4/v6-TG中的MIP-ALG从自己维持的地址绑定HoAv6*CoAv6中取出CoAv6,把经过NAT-PT转换后的数据报文的目的地址替换为CoAv6,并把HoAv6*填入数据报文的第二类路由头中。根据目的地址,这样的数据报文发往MNv6。(5) The MIP-ALG in MIPv4/v6-TG first decapsulates the received data message, and then sends it to the NAT-PT gateway for address protocol conversion. The source address of the converted data message is CNAv6 * , and the purpose The address is HoAv6 * . According to RFC3775, in order to make the movement of the mobile node transparent to the upper-layer business, MIP-ALG in MIPv4/v6-TG extracts CoAv6 from the address binding HoAv6 * CoAv6 maintained by itself, and converts the data converted by NAT-PT The destination address of the message is replaced with CoAv6, and HoAv6 * is filled in the second type routing header of the data message. According to the destination address, such data packets are sent to MNv6.

图21是HA和CN都位于IPv4网络,MN在IPv6网络中移动时的更新流程图。Fig. 21 is an update flowchart when both the HA and the CN are located in the IPv4 network and the MN moves in the IPv6 network.

当MNv6在IPv6网络中移动并获得新的转交地址后,为了保持正常的通信,根据RFC3775,MNv6需要更新HAv6和CNv6维持的家乡地址和转交地址的绑定。在这里,向HAv6的更新实际上是向处于IPv4网络中的HAv4进行更新,向CNv6的更新实际上是对MIPv4/v6-TG中MIP-ALG维持的地址绑定进行更新。具体的更新步骤包括:When MNv6 moves in the IPv6 network and obtains a new care-of address, in order to maintain normal communication, according to RFC3775, MNv6 needs to update the binding between the home address and the care-of address maintained by HAv6 and CNv6. Here, the update to HAv6 is actually an update to HAv4 in the IPv4 network, and the update to CNv6 is actually an update to the address binding maintained by MIP-ALG in MIPv4/v6-TG. The specific update steps include:

(1)根据RFC3775,MNv6产生绑定更新消息,其源地址是CoAv6,目的地址是HAAv6*,负载包括MNv6的家乡地址HoAv6*。根据目的地址,该绑定更新消息发往MIPv4/v6-TG。(1) According to RFC3775, MNv6 generates a binding update message, the source address of which is CoAv6, the destination address is HAAv6 * , and the payload includes MNv6's home address HoAv6 * . According to the destination address, the binding update message is sent to MIPv4/v6-TG.

(2)MIPv4/v6-TG把接收到的绑定更新消息转换为注册请求消息,其源地址是CoAv4#,目的地址是HAAv4,负载包括HoAv4。根据目的地址,该注册请求消息发往HAv4。(2) MIPv4/v6-TG converts the received binding update message into a registration request message, the source address of which is CoAv4#, the destination address is HAAv4, and the load includes HoAv4. According to the destination address, the registration request message is sent to HAv4.

(3)HAv4根据接收到的注册请求消息更新地址绑定:HoAv4CoAv4#,产生注册应答消息。注册应答消息的源地址是HAAv4,目的地址是CoAv4#,负载包括HoAv4。根据目的地址,该注册应答消息发往MIPv4/v6-TG。(3) HAv4 updates the address binding according to the received registration request message: HoAv4CoAv4#, and generates a registration response message. The source address of the registration response message is HAAv4, the destination address is CoAv4#, and the payload includes HoAv4. According to the destination address, the registration reply message is sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG把接收到的注册应答消息转换为绑定确认消息,其源地址是HAAv6*,目的地址是CoAv6,负载包括HoAv6*。根据目的地址,该绑定确认消息发往MNv6。MNv6接收绑定确认消息,完成HAv4维持的家乡地址与转交地址的绑定更新。(4) MIPv4/v6-TG converts the received registration response message into a binding confirmation message, the source address of which is HAAv6 * , the destination address is CoAv6, and the payload includes HoAv6 * . According to the destination address, the binding confirmation message is sent to MNv6. MNv6 receives the binding confirmation message, and completes the binding update between the home address and the care-of address maintained by HAv4.

(5)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。RRP具体步骤如下:MNv6产生Home Test Init消息,Home Test Init消息的源地址是HoAv6*,目的地址是CNAv6*。Home Test Init消息通过隧道发往MIPv4/v6-TG,此时MIPv4/v6-TG充当HAv6,隧道道口地址分别为CoAv6和HAAv6*。MIPv4/v6-TG通过隧道向MNv6回复Home Test消息。Home Test消息的源地址是CNAv6*,目的地址是HoAv6*。MNv6产生Care of Test Init消息,Care of Test Init消息的源地址是CoAv6,目的地址是CNAv6*。根据目的地址,Care of Test Init消息发往MIPv4/v6-TG,此时MIPv4/v6-TG充当CNv6。MIPv4/v6-TG向MNv6回复Care of Test消息。Care of Test消息源地址是CNAv6*,目的地址是CoAv6。(5) According to RFC3775, before MNv6 initiates a binding update to CNv6, RRP authentication must be performed. The specific steps of RRP are as follows: MNv6 generates a Home Test Init message, the source address of the Home Test Init message is HoAv6 * , and the destination address is CNAv6 * . The Home Test Init message is sent to MIPv4/v6-TG through the tunnel. At this time, MIPv4/v6-TG acts as HAv6, and the tunnel crossing addresses are CoAv6 and HAAv6 * respectively. MIPv4/v6-TG replies the Home Test message to MNv6 through the tunnel. The source address of the Home Test message is CNAv6 * , and the destination address is HoAv6 * . The MNv6 generates a Care of Test Init message, the source address of the Care of Test Init message is CoAv6, and the destination address is CNAv6 * . According to the destination address, the Care of Test Init message is sent to MIPv4/v6-TG, and MIPv4/v6-TG acts as CNv6 at this time. MIPv4/v6-TG replies the Care of Test message to MNv6. The source address of the Care of Test message is CNAv6 * , and the destination address is CoAv6.

(6)RRP认证结束后,根据RFC3775,MNv6产生并发送绑定更新消息,绑定更新消息的源地址是CoAv6,目的地址是CNAv6*,负载包括HoAv6*,根据目的地址,该绑定更新消息发往MIPv4/v6-TG。(6) After the RRP authentication is completed, according to RFC3775, MNv6 generates and sends a binding update message. The source address of the binding update message is CoAv6, the destination address is CNAv6 * , and the payload includes HoAv6 * . According to the destination address, the binding update message Sent to MIPv4/v6-TG.

(7)当绑定更新消息经过MIPv4/v6-TG时被截获,MIPv4/v6-TG更新MIP-ALG维持的地址绑定HoAv6*CoAv6。然后,MIPv4/v6-TG将向MNv6回复绑定确认消息。(7) When the binding update message is intercepted when passing through the MIPv4/v6-TG, the MIPv4/v6-TG updates the address binding HoAv6*CoAv6 maintained by the MIP-ALG. Then, MIPv4/v6-TG will reply a binding confirmation message to MNv6.

图22是HA和CN都位于IPv4网络,MN从IPv4网络移动到IPv6网络时的更新流程图。Fig. 22 is an update flowchart when both the HA and the CN are located in the IPv4 network and the MN moves from the IPv4 network to the IPv6 network.

如图22所示,此时更新过程主要有两个任务,一是要实现HAv4所维持的家乡地址与转交地址的绑定更新;二是要通过域名查询的方式发现MIPv4/v6-TG并对MIPv4/v6-TG进行地址配置。在这个更新过程中,在IPv4网络一侧,MIPv4/v6-TG充当MNv4,在IPv6网络一侧,MIPv4/v6-TG分别充当HAv6和CNv6。具体的更新步骤包括:As shown in Figure 22, the update process at this time mainly has two tasks. One is to realize the binding update between the home address and the care-of address maintained by HAv4; the other is to discover MIPv4/v6-TG through domain name query and update the MIPv4/v6-TG performs address configuration. In this update process, on the IPv4 network side, MIPv4/v6-TG acts as MNv4, and on the IPv6 network side, MIPv4/v6-TG acts as HAv6 and CNv6 respectively. The specific update steps include:

(1)MNv6通过域名查询的方式发现MIPv4/v6-TG,并获得HAv4的IPv6格式的地址HAAv6*(1) The MNv6 discovers the MIPv4/v6-TG through domain name query, and obtains the IPv6 address HAAv6 * of the HAv4.

(2)MNv6通过域名查询的方式发现MIPv4/v6-TG,并获得CNv4的IPv6格式的地址CNAv6*(2) The MNv6 discovers the MIPv4/v6-TG through domain name query, and obtains the address CNAv6 * of the CNv4 in IPv6 format.

(3)MNv6发送绑定更新消息,源地址是CoAv6,目的地址是HAAv6*,负载包括HoAv6*,HoAv6*是由HoAv4和从HAAv6*中取出的96位NAT-PT地址前缀构成的。根据目的地址,该绑定更新消息发往MIPv4/v6-TG。(3) MNv6 sends a binding update message, the source address is CoAv6, the destination address is HAAv6 * , and the load includes HoAv6 * , and HoAv6 * is composed of HoAv4 and the 96-bit NAT-PT address prefix taken from HAAv6 * . According to the destination address, the binding update message is sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG收到绑定更新消息后会在NAT-PT网关中建立地址映射:CoAv4#CoAv6。同时把接收到的绑定更新消息转换成注册请求消息,注册请求消息的源地址是CoAv4#,目的地址是HAAv4,负载包括HoAv4。根据目的地址,该注册请求消息发往HAv4。(4) MIPv4/v6-TG will establish address mapping in the NAT-PT gateway after receiving the binding update message: CoAv4#CoAv6. At the same time, the received binding update message is converted into a registration request message. The source address of the registration request message is CoAv4#, the destination address is HAAv4, and the payload includes HoAv4. According to the destination address, the registration request message is sent to HAv4.

(5)HAv4收到注册请求消息后会更新其维持的家乡地址与转交地址的地址绑定,并向MIPv4/v6-TG回复注册应答消息。(5) After receiving the registration request message, HAv4 will update the address binding between the home address and the care-of address it maintains, and reply a registration response message to MIPv4/v6-TG.

(6)MIPv4/v6-TG把接收到的注册应答消息转换为绑定确认消息并回复MNv6。(6) MIPv4/v6-TG converts the received registration response message into a binding confirmation message and replies to MNv6.

(7)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。RRP具体步骤如下:MNv6产生Home Test Init消息,Home Test Init消息的源地址是HoAv6*,目的地址是CNAv6*。Home Test Init消息通过隧道发往MIPv4/v6-TG,此时MIPv4/v6-TG充当HAv6,隧道道口地址分别为CoAv6和HAAv6*。MIPv4/v6-TG通过隧道向MNv6回复Home Test消息。Home Test消息的源地址是CNAv6*,目的地址是HoAv6*。MNv6产生Care of Test Init消息,Care of Test Init消息的源地址是CoAv6,目的地址是CNAv6*。根据目的地址,Care of Test Init消息发往MIPv4/v6-TG,此时MIPv4/v6-TG充当CNv6。MIPv4/v6-TG向MNv6回复Care of Test消息。Care of Test消息源地址是CNAv6*,目的地址是CoAv6。(7) According to RFC3775, before the MNv6 initiates a binding update to the CNv6, RRP authentication must be performed. The specific steps of RRP are as follows: MNv6 generates a Home Test Init message, the source address of the Home Test Init message is HoAv6 * , and the destination address is CNAv6 * . The Home Test Init message is sent to MIPv4/v6-TG through the tunnel. At this time, MIPv4/v6-TG acts as HAv6, and the tunnel crossing addresses are CoAv6 and HAAv6 * respectively. MIPv4/v6-TG replies the Home Test message to MNv6 through the tunnel. The source address of the Home Test message is CNAv6 * , and the destination address is HoAv6 * . The MNv6 generates a Care of Test Init message, the source address of the Care of Test Init message is CoAv6, and the destination address is CNAv6 * . According to the destination address, the Care of Test Init message is sent to MIPv4/v6-TG, and MIPv4/v6-TG acts as CNv6 at this time. MIPv4/v6-TG replies the Care of Test message to MNv6. The source address of the Care of Test message is CNAv6 * , and the destination address is CoAv6.

(8)RRP认证结束后,根据RFC3775,MNv6产生并发送绑定更新消息,绑定更新消息的源地址是CoAv6,目的地址是CNAv6*,负载包括HoAv6*,根据目的地址,该绑定更新消息发往MIPv4/v6-TG。(8) After the RRP authentication is completed, according to RFC3775, MNv6 generates and sends a binding update message. The source address of the binding update message is CoAv6, the destination address is CNAv6 * , and the payload includes HoAv6 * . According to the destination address, the binding update message Sent to MIPv4/v6-TG.

(9)当绑定更新消息经过MIPv4/v6-TG时被截获,MIP-ALG建立地址绑定HoAv6*CoAv6。然后,MIPv4/v6-TG将向MNv6回复绑定确认消息。(9) When the binding update message is intercepted through MIPv4/v6-TG, MIP-ALG establishes address binding HoAv6*CoAv6. Then, MIPv4/v6-TG will reply a binding confirmation message to MNv6.

图23是HA和CN都位于IPv4网络,MN从IPv6网络移动到IPv4网络时移动IPv4/v6解决方案的示意图。Fig. 23 is a schematic diagram of a mobile IPv4/v6 solution when both the HA and the CN are located in the IPv4 network and the MN moves from the IPv6 network to the IPv4 network.

当MN从IPv6网络移动到IPv4网络时,MN、HA和CN都在IPv4网络内,这是典型的MIPv4的问题,将按照RFC3344所描述的MIPv4技术进行通信和更新,具体的实施过程见图1。When the MN moves from the IPv6 network to the IPv4 network, the MN, HA, and CN are all in the IPv4 network. This is a typical MIPv4 problem. It will communicate and update according to the MIPv4 technology described in RFC3344. The specific implementation process is shown in Figure 1 .

图24是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4/v6混合网络中移动的布局示意图。Fig. 24 is a schematic diagram of the layout where the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4/v6 hybrid network.

如图24所示HA位于IPv6网络、CN位于IPv4网络、MN在IPv4/v6混合网络中移动,整个过程可以分为MN在IPv6网络中移动时与CN的通信,MN在IPv4网络中移动时与CN的通信,MN从IPv6网络移动到IPv4网络时与CN的通信,MN从IPv4网络移动到IPv6网络时与CN的通信。下面将分别对这几种情况下的通信进行详细的说明。As shown in Figure 24, the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4/v6 hybrid network. The whole process can be divided into the communication between the MN and the CN when the MN moves in the IPv6 network, and the communication between the MN and the CN when moving in the IPv4 network. , the communication between the MN and the CN when the MN moves from the IPv6 network to the IPv4 network, and the communication between the MN and the CN when the MN moves from the IPv4 network to the IPv6 network. The communication in these situations will be described in detail below.

图25是HA位于IPv6网络、CN位于IPv4网络、MN在IPv6网络中移动时MIPv4/v6-TG的地址配置示意图。Fig. 25 is a schematic diagram of address configuration of MIPv4/v6-TG when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv6 network.

当MN在IPv6网络中移动时,MIPv4/v6-TG在IPv6网络一侧充当CNv6,与MNv6构成RFC3775所描述的MIPv6技术的两个实体,按照RFC3775所描述的MIPv6技术进行通信,为了使得MIPv4/v6-TG在IPv6网络一侧向MNv6发送数据报文时能够进行家乡地址和转交地址的转换,MIPv4/v6-TG中的MIP-ALG必须维持IPv6格式的家乡地址与转交地址的绑定:HoAv6CoAv6。When the MN moves in the IPv6 network, MIPv4/v6-TG acts as CNv6 on the side of the IPv6 network, and MNv6 constitutes two entities of the MIPv6 technology described in RFC3775, and communicates according to the MIPv6 technology described in RFC3775. In order to make MIPv4/v6 -TG can convert home address and care-of address when sending data packets to MNv6 on the side of IPv6 network. MIP-ALG in MIPv4/v6-TG must maintain the binding of home address and care-of address in IPv6 format: HoAv6 CoAv6.

在IPv4网络一侧,MIPv4/v6-TG在发送数据报文时充当MNv4,在接收数据报文时充当HAv4,与CNv4构成RFC3344所描述的MIPv4技术的三个实体,按照RFC3344所描述的MIPv4技术进行通信。为了充当MNv4,MIPv4/v6-TG中的NAT-PT必须维持HoAv6HoAv4#的地址映射。On the IPv4 network side, MIPv4/v6-TG acts as MNv4 when sending data packets, and acts as HAv4 when receiving data packets, and CNv4 constitutes three entities of the MIPv4 technology described in RFC3344, according to the MIPv4 technology described in RFC3344 to communicate. In order to act as MNv4, the NAT-PT in MIPv4/v6-TG must maintain the address mapping of HoAv6HoAv4#.

图26是HA位于IPv6网络、CN位于IPv4网络、MN在IPv6网络中移动时的通信流程图。具体的通信步骤包括:Fig. 26 is a communication flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv6 network. The specific communication steps include:

(1)根据RFC3775所描述的MIPv6技术,MNv6向CNv4发送IPv6格式的数据报文,其源地址是CoAv6,目的地址是CNAv6*,同时在目的地选项扩展头的家乡地址选项中插入家乡地址HoAv6。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(1) According to the MIPv6 technology described in RFC3775, MNv6 sends a data message in IPv6 format to CNv4, its source address is CoAv6, and its destination address is CNAv6 * , and at the same time insert the home address HoAv6 in the home address option of the destination option extension header . According to the destination address, such data packets are sent to MIPv4/v6-TG.

(2)根据RFC3775,MIPv4/v6-TG中MIP-ALG从接收到的数据报文的家乡地址选项中取出HoAv6,把数据报文的源地址从CoAv6替换为HoAv6。然后,MIPv4/v6-TG中的NAT-PT网关对数据报文进行地址协议转换,转换后的数据报文的源地址为HoAv4#,目的地址为CNAv4。根据目的地址,这样的数据报文直接发往CNv4。(2) According to RFC3775, MIP-ALG in MIPv4/v6-TG takes out HoAv6 from the home address option of the received data message, and replaces the source address of the data message from CoAv6 to HoAv6. Then, the NAT-PT gateway in the MIPv4/v6-TG performs address protocol conversion on the data message, and the source address of the converted data message is HoAv4#, and the destination address is CNAv4. According to the destination address, such data packets are directly sent to CNv4.

(3)根据RFC3344所描述的MIPv4技术,CNv4向MNv6发送IPv4格式的数据报文,其源地址是CNAv4,目的地址为HoAv4#。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(3) According to the MIPv4 technology described in RFC3344, CNv4 sends a data packet in IPv4 format to MNv6, the source address of which is CNAv4, and the destination address is HoAv4#. According to the destination address, such data packets are sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG中的NAT-PT对接收到的数据报文进行地址协议转换,转换后的数据报文源地址是CNAv6*,目的地址是HoAv6。根据RFC3775,MIPv4/v6-TG中的MIP-ALG从自己维持的地址绑定HoAv6CoAv6中取出CoAv6,把经过NAT-PT转换后的数据报文的目的地址从HoAv6替换为CoAv6,并在数据报文中插入一个第二类路由头,里面包含HoAv6。根据目的地址,这样的数据报文发往MNv6。(4) The NAT-PT in MIPv4/v6-TG performs address protocol conversion on the received data message, and the source address of the converted data message is CNAv6 * , and the destination address is HoAv6. According to RFC3775, MIP-ALG in MIPv4/v6-TG extracts CoAv6 from the address binding HoAv6CoAv6 maintained by itself, replaces the destination address of the data packet after NAT-PT conversion from HoAv6 to CoAv6, and A second-type routing header is inserted into the message, which contains HoAv6. According to the destination address, such data packets are sent to MNv6.

图27是HA位于IPv6网络、CN位于IPv4网络、MN在IPv6网络中移动时的更新流程图。Fig. 27 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv6 network.

当MNv6在IPv6网络中移动并获得新的转交地址后,为了保持正常的通信,根据RFC3775,MNv6需要更新HAv6和CNv6维持的家乡地址和转交地址的绑定。在更新过程中,MIPv4/v6-TG在IPv6网络一侧充当CNv6,与HAv6和MNv6构成MIPv6更新时的三个实体,按照RFC3775对HAv6和CNv6维持的家乡地址与转交地址的绑定进行更新,其中对CNv6维持的的家乡地址与转交地址的绑定进行更新也就是对MIP-ALG维持的家乡地址与转交地址的绑定进行更新。具体的更新步骤包括:When MNv6 moves in the IPv6 network and obtains a new care-of address, in order to maintain normal communication, according to RFC3775, MNv6 needs to update the binding between the home address and the care-of address maintained by HAv6 and CNv6. During the update process, MIPv4/v6-TG acts as CNv6 on the side of the IPv6 network, and constitutes three entities during MIPv6 update with HAv6 and MNv6. According to RFC3775, the binding between the home address and the care-of address maintained by HAv6 and CNv6 is updated. Wherein, updating the binding between the home address and the care-of address maintained by CNv6 is to update the binding between the home address and the care-of address maintained by the MIP-ALG. The specific update steps include:

(1)根据RFC3775,MNv6产生绑定更新消息,其源地址是CoAv6,目的地址是HAAv6,负载包括MNv6的家乡地址HoAv6。根据目的地址,该绑定更新消息发往HAv6。(1) According to RFC3775, MNv6 generates a binding update message, the source address of which is CoAv6, the destination address is HAAv6, and the payload includes MNv6's home address HoAv6. According to the destination address, the binding update message is sent to HAv6.

(2)HAv6接收到绑定更新消息后对自己维持的家乡地址与转交地址的绑定进行更新,然后向MNv6回复绑定确认消息,绑定确认消息的源地址是HAAv6,目的地址是CoAv6。(2) After receiving the binding update message, HAv6 updates the binding between the home address and the care-of address maintained by itself, and then replies a binding confirmation message to MNv6. The source address of the binding confirmation message is HAAv6, and the destination address is CoAv6.

(3)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。在此过程中,MIPv4/v6-TG将充当CNv6。RRP认证按照RFC37755所描述的流程进行,具体的步骤如下:MNv6首先同时向MIPv4/v6-TG发送HomeTest Init消息和Care-of Test Init消息,其中Home Test Init消息需要经过HAv6,Care-of Test Init消息直接发送给MIPv4/v6-TG;MIPv4/v6-TG收到Home TestInit消息和Care-of Test Init消息后分别回复Home Test消息和Care-of Test消息,Home Test消息和Care-of Test消息按照原路返回。(3) According to RFC3775, before the MNv6 initiates a binding update to the CNv6, RRP authentication must be performed. During this process, MIPv4/v6-TG will act as CNv6. RRP authentication is carried out according to the process described in RFC37755. The specific steps are as follows: MNv6 first sends a HomeTest Init message and a Care-of Test Init message to MIPv4/v6-TG at the same time, and the Home Test Init message needs to go through HAv6, Care-of Test Init The message is directly sent to MIPv4/v6-TG; MIPv4/v6-TG replies Home Test message and Care-of Test message respectively after receiving Home TestInit message and Care-of Test Init message, and Home Test message and Care-of Test message follow the Backtrack.

(4)RRP认证结束后,根据RFC3775,MNv6产生并发送绑定更新消息,绑定更新消息的源地址是CoAv6,目的地址是CNAv6*,负载包括HoAv6,根据目的地址,该绑定更新消息发往MIPv4/v6-TG。(4) After the RRP authentication is completed, according to RFC3775, MNv6 generates and sends a binding update message. The source address of the binding update message is CoAv6, the destination address is CNAv6 * , and the payload includes HoAv6. According to the destination address, the binding update message is sent to To MIPv4/v6-TG.

(5)当绑定更新消息经过MIPv4/v6-TG时被截获,MIPv4/v6-TG更新MIP-ALG维持的地址绑定HoAv6CoAv6。然后,MIPv4/v6-TG将向MNv6回复绑定确认消息。(5) When the binding update message is intercepted when passing through the MIPv4/v6-TG, the MIPv4/v6-TG updates the address binding HoAv6CoAv6 maintained by the MIP-ALG. Then, MIPv4/v6-TG will reply a binding confirmation message to MNv6.

图28是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4网络中移动时MIPv4/v6-TG的地址配置示意图。Fig. 28 is a schematic diagram of address configuration of MIPv4/v6-TG when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4 network.

当MN在IPv4网络移动时,MIPv4/v6-TG在IPv4网络一侧充当HAv4,与CNv4和MNv4构成RFC3344所描述的MIPv4技术的三个实体,按照RFC3344所描述的MIPv4技术进行通信,为了使得MIPv4/v6-TG在IPv4网络一侧充当HAv4,MIPv4/v6-TG中的NAT-PT必须维持HAAv6HAAv4#的地址映射;MIP-ALG必须维持HoAv4#CoAv4的地址绑定。When the MN moves on the IPv4 network, MIPv4/v6-TG acts as HAv4 on the side of the IPv4 network, and constitutes three entities of the MIPv4 technology described in RFC3344 with CNv4 and MNv4, and communicates according to the MIPv4 technology described in RFC3344. In order to make MIPv4 /v6-TG acts as HAv4 on the IPv4 network side, and the NAT-PT in MIPv4/v6-TG must maintain the address mapping of HAAv6HAAv4#; MIP-ALG must maintain the address binding of HoAv4#CoAv4.

根据RFC3344,为了使得MNv4的移动对CNv4是透明的,MNv4以IPv4格式的家乡地址发送数据报文,因此,MIPv4/v6-TG中的NAT-PT必须维持HoAv6HoAv4#的地址映射。According to RFC3344, in order to make the movement of MNv4 transparent to CNv4, MNv4 sends data packets with the home address in IPv4 format. Therefore, the NAT-PT in MIPv4/v6-TG must maintain the address mapping of HoAv6HoAv4#.

图29是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4网络中移动时的通信流程图。具体的通信步骤包括:Fig. 29 is a communication flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4 network. The specific communication steps include:

(1)根据RFC3344所描述的MIPv4技术,MNv4向CNv4发送IPv4格式的数据报文,其源地址是HoAv4#,目的地址是CNAv4。根据目的地址,这样的数据报文发往CNv4。(1) According to the MIPv4 technology described in RFC3344, MNv4 sends a data packet in IPv4 format to CNv4, its source address is HoAv4#, and its destination address is CNAv4. According to the destination address, such data packets are sent to CNv4.

(2)根据RFC3344所描述的MIPv4技术,CNv4向MNv4发送IPv4格式的数据报文,其源地址是CNAv4,目的地址为HoAv4#。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(2) According to the MIPv4 technology described in RFC3344, CNv4 sends a data message in IPv4 format to MNv4, the source address of which is CNAv4, and the destination address is HoAv4#. According to the destination address, such data packets are sent to MIPv4/v6-TG.

(3)根据RFC3344,MIPv4/v6-TG把接收到的数据报文通过隧道转发给MNv4,隧道的源地址是HAAv4#,目的地址是CoAv4。(3) According to RFC3344, MIPv4/v6-TG forwards the received data message to MNv4 through the tunnel, the source address of the tunnel is HAAv4#, and the destination address is CoAv4.

图30是HA位于IPv6网络、CN位于IPv4网络、MN在IPv4网络中移动时的更新流程图。Fig. 30 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves in the IPv4 network.

当MN在IPv4网络中移动并获得新的转交地址后,为了保持正常的通信,根据RFC3344,MN需要更新HAv4维持的家乡地址和转交地址的绑定。在此更新过程中,MIPv4/v6-TG在IPv4网络一侧充当HAv4,与MNv4构成MIPv4更新时的两个实体,按照RFC3344所描述的MIPv4技术对MIPv4/v6-TG中MIP-ALG维持的家乡地址与转交地址的绑定进行更新;MIPv4/v6-TG在IPv6网络一侧充当MNv6,与HAv6构成MIPv6更新时的两个实体,按照RFC3775所描述的MIPv6技术对HAv6维持的家乡地址与转交地址的绑定进行更新。具体的更新步骤包括:When the MN moves in the IPv4 network and obtains a new care-of address, in order to maintain normal communication, according to RFC3344, the MN needs to update the binding between the home address and the care-of address maintained by HAv4. During this update process, MIPv4/v6-TG acts as HAv4 on the side of the IPv4 network, and constitutes two entities during MIPv4 update with MNv4. According to the MIPv4 technology described in RFC3344, the hometown maintained by MIP-ALG in MIPv4/v6-TG The binding between the address and the care-of address is updated; MIPv4/v6-TG acts as MNv6 on the side of the IPv6 network, and constitutes two entities during MIPv6 update with HAv6. According to the MIPv6 technology described in RFC3775, the home address and care-of address maintained by HAv6 The bindings are updated. The specific update steps include:

(1)MNv4产生注册请求消息,源地址为CoAv4,目的地址是HAAv4#,负载包括HoAv4#。根据目的地址,该注册请求消息发往MIPv4/v6-TG。(1) MNv4 generates a registration request message, the source address is CoAv4, the destination address is HAAv4#, and the payload includes HoAv4#. According to the destination address, the registration request message is sent to MIPv4/v6-TG.

(2)MIPv4/v6-TG把接收到的注册请求消息转换为绑定更新消息。绑定更新消息的源地址是CoAv6*,目的地址是HAAv6,负载包括HoAv6。根据目的地址,该绑定更新消息发往HAv6。(2) MIPv4/v6-TG converts the received registration request message into a binding update message. The source address of the binding update message is CoAv6 * , the destination address is HAAv6, and the payload includes HoAv6. According to the destination address, the binding update message is sent to HAv6.

(3)HAv6收到绑定更新消息后,更新家乡地址与转交地址的绑定并产生绑定确认消息回复MIPv4/v6-TG。(3) After receiving the binding update message, HAv6 updates the binding between the home address and the care-of address and generates a binding confirmation message to reply to MIPv4/v6-TG.

(4)MIPv4/v6-TG收到绑定确认消息后,更新MIP-ALG维持的地址绑定HoAv4#CoAv4,并产生注册应答消息回复MNv4。(4) After receiving the binding confirmation message, MIPv4/v6-TG updates the address binding HoAv4#CoAv4 maintained by MIP-ALG, and generates a registration response message to reply to MNv4.

图31是HA位于IPv6网络、CN位于IPv4网络、MN从IPv6网络移动到IPv4网络时的更新流程图。Fig. 31 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves from the IPv6 network to the IPv4 network.

如图31所示,此时更新过程主要有两个任务,一是要更新HAv6所维持的家乡地址与转交地址的绑定;二是要通过域名查询的方式发现MIPv4/v6-TG并对MIPv4/v6-TG进行地址配置。在这个更新过程中,在IPv4网络一侧,MIPv4/v6-TG充当HAv4,在IPv6网络一侧,MIPv4/v6-TG充当MNv6。具体的更新步骤包括:As shown in Figure 31, there are two main tasks in the update process at this time. One is to update the binding between the home address and the care-of address maintained by HAv6; /v6-TG for address configuration. In this update process, on the IPv4 network side, MIPv4/v6-TG acts as HAv4, and on the IPv6 network side, MIPv4/v6-TG acts as MNv6. The specific update steps include:

(1)MNv6通过域名查询的方式发现MIPv4/v6-TG,并获得HAv6的IPv4格式的地址HAAv4#。在此域名查询的过程中,MIPv4/v6-TG中的NAT-PT建立地址映射:HAAv6HAAv4#。(1) The MNv6 discovers the MIPv4/v6-TG through domain name query, and obtains the address HAAv4# of the IPv4 format of the HAv6. During the domain name query process, the NAT-PT in MIPv4/v6-TG establishes address mapping: HAAv6HAAv4#.

(2)MNv6通过域名查询的方式发现MIPv4/v6-TG,并获得CNv4的IPv4格式的地址CNAv4。(2) MNv6 discovers MIPv4/v6-TG through domain name query, and obtains the address CNAv4 of CNv4 in IPv4 format.

(3)MNv4产生注册请求消息,源地址为CoAv4,目的地址是HAAv4#。但是,因为MNv4尚不知道HoAv4#,只是知道HoAv6,因此,MNv4把注册请求消息中的家乡地址域置零,在扩展域中填入HoAv6。此时扩展后的注册请求消息的格式如图32A所示。根据目的地址,该注册请求消息发往MIPv4/v6-TG。(3) MNv4 generates a registration request message, the source address is CoAv4, and the destination address is HAAv4#. But, because MNv4 does not know HoAv4# yet, but only knows HoAv6, therefore, MNv4 sets the home address field in the registration request message to zero, and fills HoAv6 in the extended field. At this time, the format of the extended registration request message is shown in FIG. 32A. According to the destination address, the registration request message is sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG把接收到的注册请求消息转换为绑定更新消息。绑定更新消息的源地址是CoAv6*,目的地址是HAAv6,负载包括HoAv6。根据目的地址,该绑定更新消息发往HAv6。(4) MIPv4/v6-TG converts the received registration request message into a binding update message. The source address of the binding update message is CoAv6 * , the destination address is HAAv6, and the payload includes HoAv6. According to the destination address, the binding update message is sent to HAv6.

(5)HAv6收到绑定更新消息后,更新家乡地址与转交地址的绑定并产生绑定确认消息回复MIPv4/v6-TG。(5) After receiving the binding update message, HAv6 updates the binding between the home address and the care-of address and generates a binding confirmation message to reply to MIPv4/v6-TG.

(6)MIPv4/v6-TG收到绑定确认消息后,在NAT-PT中建立地址映射:HoAv6HoAv4#,在MIP-ALG中建立地址绑定:HoAv4#CoAv4,并产生注册应答消息回复MNv4。注册应答消息包括了HoAv4#。此时注册应答消息的格式如图32B所示。(6) After receiving the binding confirmation message, MIPv4/v6-TG establishes address mapping in NAT-PT: HoAv6HoAv4#, establishes address binding in MIP-ALG: HoAv4#CoAv4, and generates a registration response message Reply to MNv4. The Registration Reply message includes HoAv4#. At this time, the format of the registration response message is shown in FIG. 32B.

图33是HA位于IPv6网络、CN位于IPv4网络、MN从IPv4网络移动到IPv6网络时的更新流程图。Fig. 33 is an update flowchart when the HA is located in the IPv6 network, the CN is located in the IPv4 network, and the MN moves from the IPv4 network to the IPv6 network.

如图33所示,此时更新过程主要有两个任务,一是要实现HAv6所维持的家乡地址与转交地址的绑定更新;二是要通过域名查询的方式发现MIPv4/v6-TG并对MIPv4/v6-TG进行地址配置。具体的更新步骤包括:As shown in Figure 33, the update process at this time mainly has two tasks. One is to realize the binding update between the home address and the care-of address maintained by HAv6; the other is to discover MIPv4/v6-TG through domain name query and update MIPv4/v6-TG performs address configuration. The specific update steps include:

(1)MNv6通过域名查询的方式获得HAv6的IPv6格式的地址HAAv6。(1) The MNv6 obtains the address HAAv6 of the IPv6 format of the HAv6 through domain name query.

(2)MNv6通过域名查询的方式发现MIPv4/v6-TG,并获得CNv4的IPv6格式的地址CNAv6*(2) The MNv6 discovers the MIPv4/v6-TG through domain name query, and obtains the address CNAv6 * of the CNv4 in IPv6 format.

(3)根据RFC3775,MNv6产生绑定更新消息,其源地址是CoAv6,目的地址是HAAv6,负载包括MNv6的家乡地址HoAv6。根据目的地址,该绑定更新消息发往HAv6。(3) According to RFC3775, MNv6 generates a binding update message, the source address of which is CoAv6, the destination address is HAAv6, and the payload includes MNv6's home address HoAv6. According to the destination address, the binding update message is sent to HAv6.

(4)HAv6接收到绑定更新消息后对自己维持的家乡地址与转交地址的绑定进行更新,然后向MNv6回复绑定确认消息,绑定确认消息的源地址是HAAv6,目的地址是CoAv6,负载包括MNv6的家乡地址HoAv6。(4) After receiving the binding update message, HAv6 updates the binding between the home address and the care-of address maintained by itself, and then replies a binding confirmation message to MNv6. The source address of the binding confirmation message is HAAv6, and the destination address is CoAv6. The payload includes the home address HoAv6 of MNv6.

(5)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。在此过程中,MIPv4/v6-TG将充当CNv6。RRP认证按照RFC37755所描述的流程进行,具体的步骤如下:MNv6首先同时向MIPv4/v6-TG发送HomeTest Init消息和Care-of Test Init消息,其中Home Test Init消息需要经过HAv6,Care-of Test Init消息直接发送给MIPv4/v6-TG;MIPv4/v6-TG收到Home TestInit消息和Care-of Test Init消息后分别回复Home Test消息和Care-of Test消息,Home Test消息和Care-of Test消息按照原路返回。(5) According to RFC3775, before MNv6 initiates a binding update to CNv6, RRP authentication must be performed. During this process, MIPv4/v6-TG will act as CNv6. RRP authentication is carried out according to the process described in RFC37755. The specific steps are as follows: MNv6 first sends a HomeTest Init message and a Care-of Test Init message to MIPv4/v6-TG at the same time, and the Home Test Init message needs to go through HAv6, Care-of Test Init The message is directly sent to MIPv4/v6-TG; MIPv4/v6-TG replies Home Test message and Care-of Test message respectively after receiving Home TestInit message and Care-of Test Init message, and Home Test message and Care-of Test message follow the Backtrack.

(6)RRP认证结束后,根据RFC3775,MNv6产生并发送绑定更新消息,绑定更新消息的源地址是CoAv6,目的地址是CNAv6*,负载包括HoAv6,根据目的地址,该绑定更新消息发往MIPv4/v6-TG。(6) After the RRP authentication is completed, according to RFC3775, MNv6 generates and sends a binding update message. The source address of the binding update message is CoAv6, the destination address is CNAv6 * , and the payload includes HoAv6. According to the destination address, the binding update message is sent to To MIPv4/v6-TG.

(7)MIPv4/v6-TG接收到绑定更新消息后,在NAT-PT中建立地址映射:HoAv6HoAv4#,在MIP-ALG中建立家乡地址与转交地址的绑定:HoAv6CoAv6。然后,MIPv4/v6-TG产生绑定确认消息并回复MNv6。(7) After receiving the binding update message, MIPv4/v6-TG establishes address mapping in NAT-PT: HoAv6HoAv4#, and establishes binding between home address and care-of address in MIP-ALG: HoAv6CoAv6. Then, MIPv4/v6-TG generates a binding confirmation message and replies to MNv6.

图34是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4/v6混合网络中移动的布局示意图。Fig. 34 is a schematic diagram of the layout where the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4/v6 hybrid network.

如图34所示HA位于IPv4网络、CN位于IPv6网络、MN在IPv4/v6混合网络中移动,整个过程可以分为MN在IPv4网络中移动时与CN的通信,MN在IPv6网络中移动时与CN的通信,MN从IPv4网络移动到IPv6网络时与CN的通信,MN从IPv6网络移动到IPv4网络时与CN的通信。下面将分别对这几种情况下的通信进行详细的说明。As shown in Figure 34, the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4/v6 mixed network. The whole process can be divided into the communication between the MN and the CN when the MN moves in the IPv4 network, and the communication between the MN and the CN when moving in the IPv6 network. , the communication between the MN and the CN when the MN moves from the IPv4 network to the IPv6 network, and the communication between the MN and the CN when the MN moves from the IPv6 network to the IPv4 network. The communication in these situations will be described in detail below.

图35是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4网络中移动时MIPv4/v6-TG的地址配置示意图。Fig. 35 is a schematic diagram of address configuration of MIPv4/v6-TG when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4 network.

当MN在IPv4网络移动时,MIPv4/v6-TG在IPv4网络一侧充当CNv4,与HAv4和MNv4构成RFC3344所描述的MIPv4技术的三个实体,按照RFC3344所描述的MIPv4技术进行通信;MIPv4/v6-TG在IPv6网络一侧充当MNv6,与CNv6构成RFC3775所描述的MIPv6技术的两个实体,按照RFC3775所描述的MIPv6技术进行通信。When the MN moves on the IPv4 network, MIPv4/v6-TG acts as CNv4 on the side of the IPv4 network, and constitutes three entities of the MIPv4 technology described in RFC3344 with HAv4 and MNv4, and communicates according to the MIPv4 technology described in RFC3344; MIPv4/v6 - TG acts as MNv6 on the IPv6 network side, and CNv6 constitutes two entities of the MIPv6 technology described in RFC3775, and communicates according to the MIPv6 technology described in RFC3775.

为了使得MIPv4/v6-TG在IPv4网络一侧充当CNv4,MIPv4/v6-TG中的NAT-PT必须维持CNAv4#CNAv6的地址映射。为了使得MIPv4/v6-TG在IPv6网络一侧充当MNv6,MIPv4/v6-TG中的MIP-ALG必须维持HoAv6*CoAv6*的地址绑定。In order to make MIPv4/v6-TG act as CNv4 on the IPv4 network side, the NAT-PT in MIPv4/v6-TG must maintain the address mapping of CNAv4#CNAv6. In order to make MIPv4/v6-TG act as MNv6 on the IPv6 network side, the MIP-ALG in MIPv4/v6-TG must maintain the address binding of HoAv6 * CoAv6 * .

图36是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4网络中移动时的通信流程图。具体的通信步骤包括:Fig. 36 is a communication flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4 network. The specific communication steps include:

(1)根据RFC3344所描述的MIPv4技术,MNv4向CNv6发送IPv4格式的数据报文,源地址是HoAv4,目的地址是CNAv4#。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(1) According to the MIPv4 technology described in RFC3344, MNv4 sends a data packet in IPv4 format to CNv6, the source address is HoAv4, and the destination address is CNAv4#. According to the destination address, such data packets are sent to MIPv4/v6-TG.

(2)MIPv4/v6-TG中的NAT-PT把MNv4发出的IPv4格式的数据报文转换成IPv6格式的数据报文,转换后的数据报文的源地址为HoAv6*,目的地址为CNAv6。根据RFC3775,为了使移动节点的移动对于上层的业务保持透明,MIPv4/v6-TG中的MIP-ALG从自己维持的地址绑定HoAv6*CoAv6*中取出CoAv6*,把经过NAT-PT转换后的数据报文的源地址替换为CoAv6*,并把HoAv6*填入数据报文的目的地选项扩展头的家乡地址选项中。根据目的地址,这样的数据报文发往CNv6。(2) NAT-PT in MIPv4/v6-TG converts the data message in IPv4 format sent by MNv4 into a data message in IPv6 format. The source address of the converted data message is HoAv6 * , and the destination address is CNAv6. According to RFC3775, in order to make the movement of the mobile node transparent to the upper-layer business, the MIP-ALG in MIPv4/v6-TG extracts CoAv6 * from the address binding HoAv6 *  CoAv6 * maintained by itself, and converts it through NAT-PT The source address of the data message is replaced by CoAv6 * , and HoAv6 * is filled in the home address option of the destination option extension header of the data message. According to the destination address, such data packets are sent to CNv6.

(3)根据RFC3775所描述的MIPv6技术,CNv6向MNv4发送IPv6格式的数据报文,源地址是CNAv6,目的地址是CoAv6*,数据报文中的第二类路由头里存放HoAv6*。根据目的地址,这样的数据报文发往MIPv4/v6-TG。(3) According to the MIPv6 technology described in RFC3775, CNv6 sends a data message in IPv6 format to MNv4, the source address is CNAv6, the destination address is CoAv6 * , and HoAv6 * is stored in the second type of routing header in the data message. According to the destination address, such data packets are sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG中的MIP-ALG根据RFC3775的规定,从接收到的IPv6格式的数据报文的第二类路由头里取出家乡地址HoAv6*,替换CoAv6*,作为目的地址。MIPv4/v6-TG中的NAT-PT把经过转换的数据报文转换为IPv4格式的数据报文,源地址为CNAv4#,目的地址为HoAv4。根据目的地址,这样的数据报文发往HAv4。(4) The MIP-ALG in MIPv4/v6-TG takes out the home address HoAv6 * from the second-type routing header of the received data packet in IPv6 format according to RFC3775, and replaces CoAv6 * as the destination address. The NAT-PT in MIPv4/v6-TG converts the converted data message into a data message in IPv4 format, the source address is CNAv4#, and the destination address is HoAv4. According to the destination address, such data packets are sent to HAv4.

(5)按照RFC3344,HAv4通过隧道把收到的数据报文转发给MNv4。隧道的源地址是HAAv4,目的地址是CoAv4。(5) According to RFC3344, HAv4 forwards the received data message to MNv4 through the tunnel. The source address of the tunnel is HAAv4, and the destination address is CoAv4.

图37是HA位于IPv4网络、CN位于IPv6网络、MN在IPv4网络中移动时的更新流程图。Fig. 37 is an update flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv4 network.

根据RFC3344,MN在IPv4网络中发生移动后会获得新的转交地址,MNv4需要更新HAv4所维持的家乡地址与转交地址的绑定。另外,虽然,CNv6和MIP-ALG都维持着IPv6格式的家乡地址与转交地址的绑定:HoAv6*CoAv6*,但是,CoAv6*由CoAv4和NAT-PT的96位IPv6地址前缀组成,在通信过程中,数据报文是根据CoAv6*中NAT-PT的96位IPv6地址前缀路由到MIPv4/v6-TG,CoAv4实质上并不起任何作用,因此,不必对CNv6和MIP-ALG维持的地址绑定进行更新。具体的更新步骤包括:According to RFC3344, after the MN moves in the IPv4 network, it will obtain a new care-of address, and the MNv4 needs to update the binding between the home address and the care-of address maintained by HAv4. In addition, although both CNv6 and MIP-ALG maintain the binding of the home address and the care-of address in IPv6 format: HoAv6 * CoAv6 * , however, CoAv6 * is composed of the 96-bit IPv6 address prefix of CoAv4 and NAT-PT. During the process, data packets are routed to MIPv4/v6-TG according to the 96-bit IPv6 address prefix of NAT-PT in CoAv6 * . CoAv4 does not play any role in essence. Therefore, there is no need to bind the addresses maintained by CNv6 and MIP-ALG. will be updated. The specific update steps include:

(1)MNv4产生并向HAv4发送注册请求消息,其源地址为CoAv4,目的地址是HAAv4,负载包括HoAv4。(1) MNv4 generates and sends a registration request message to HAv4, the source address of which is CoAv4, the destination address is HAAv4, and the load includes HoAv4.

(2)HAv4收到注册请求消息后,更新自己维持的家乡地址与转交地址的绑定,然后向MNv4回复注册应答消息。(2) After receiving the registration request message, HAv4 updates the binding between the home address and the care-of address maintained by itself, and then replies a registration response message to MNv4.

图38是HA位于IPv4网络、CN位于IPv6网络、MN在IPv6网络中移动时MIPv4/v6-TG的地址配置示意图。Fig. 38 is a schematic diagram of address configuration of MIPv4/v6-TG when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv6 network.

根据RFC3775,MNv6和CNv6之间直接通信。但是HAv4必须维持IPv4格式的家乡地址与转交地址的绑定HoAv4CoAv4#,以便掌握MNv6所处的具体位置,因此,MIPv4/v6-TG中的NAT-PT需要维持CoAv4#CoAv6的地址映射。According to RFC3775, direct communication between MNv6 and CNv6. However, HAv4 must maintain the binding HoAv4CoAv4# of the home address in IPv4 format and the care-of address in order to know the specific location of MNv6. Therefore, the NAT-PT in MIPv4/v6-TG needs to maintain the address mapping of CoAv4#CoAv6 .

图39是HA位于IPv4网络、CN位于IPv6网络、MN在IPv6网络中移动时的通信流程图。具体的通信步骤包括:Fig. 39 is a communication flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv6 network. The specific communication steps include:

(1)根据RFC3775所描述的MIPv6技术,MNv6向CNv6发送IPv6格式的数据报文,数据报文的源地址是CoAv6,目的地址是CNAv6,数据报文的目的地选项扩展头中的家乡地址选项里存放HoAv6*(1) According to the MIPv6 technology described in RFC3775, MNv6 sends a data message in IPv6 format to CNv6, the source address of the data message is CoAv6, the destination address is CNAv6, and the home address option in the destination option extension header of the data message Store HoAv6 * in it.

(2)根据RFC3775所描述的MIPv6技术,CNv6向MNv6发送IPv6格式的数据报文,数据报文的源地址是CNAv6,目的地址是CoAv6,数据报文的第二类路由头里存放HoAv6*(2) According to the MIPv6 technology described in RFC3775, CNv6 sends a data message in IPv6 format to MNv6, the source address of the data message is CNAv6, the destination address is CoAv6, and HoAv6 * is stored in the second type routing header of the data message.

图40是HA位于IPv4网络、CN位于IPv6网络、MN在IPv6网络中移动时的更新流程图。Fig. 40 is an update flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves in the IPv6 network.

当MN在IPv6网络中移动并获得新的转交地址后,为了保持正常的通信,需要更新HAv4和CNv6维持的家乡地址与转交地址的绑定。在更新时,MIPv4/v6-TG在IPv6网络一侧充当HAv6,与MNv6和CNv6按照RFC3775进行家乡地址与转交地址的更新,而在IPv4网络一侧则充当MNv4,与HAv4按照RFC3344进行家乡地址与转交地址的更新。具体的更新步骤如下:When the MN moves in the IPv6 network and obtains a new care-of address, in order to maintain normal communication, it is necessary to update the binding between the home address and the care-of address maintained by HAv4 and CNv6. When updating, MIPv4/v6-TG acts as HAv6 on the side of the IPv6 network, updates the home address and care-of address with MNv6 and CNv6 according to RFC3775, and acts as MNv4 on the side of the IPv4 network, and performs home address and care-of address update with HAv4 according to RFC3344. Updates to the care-of address. The specific update steps are as follows:

(1)MNv6产生绑定更新消息。绑定更新消息的源地址是CoAv6,目的地址是HAAv6*,负载包括HoAv6*。根据目的地址,该绑定更新消息发往MIPv4/v6-TG。(1) MNv6 generates a binding update message. The source address of the binding update message is CoAv6, the destination address is HAAv6 * , and the payload includes HoAv6 * . According to the destination address, the binding update message is sent to MIPv4/v6-TG.

(2)MIPv4/v6-TG中的MIP-ALG把接收到的绑定更新消息转换成注册请求消息。注册请求消息的源地址是CoAv4#,目的地址是HAAv4,负载包括HoAv4。根据目的地址,该注册请求消息发往HAv4。(2) The MIP-ALG in MIPv4/v6-TG converts the received binding update message into a registration request message. The source address of the registration request message is CoAv4#, the destination address is HAAv4, and the payload includes HoAv4. According to the destination address, the registration request message is sent to HAv4.

(3)HAv4根据接收到的注册请求消息更新家乡地址与转交地址的绑定,并产生注册应答消息。注册应答消息的源地址是HAAv4,目的地址是CoAv4#,负载包括HoAv4。根据目的地址,该注册应答消息发往MIPv4/v6-TG。(3) HAv4 updates the binding between the home address and the care-of address according to the received registration request message, and generates a registration response message. The source address of the registration response message is HAAv4, the destination address is CoAv4#, and the payload includes HoAv4. According to the destination address, the registration reply message is sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG收到注册应答消息后,NAT-PT更新地址映射:CoAv4#CoAv6,MIP-ALG把该注册应答消息转换成绑定确认消息。绑定确认消息的源地址是HAAv6*,目的地址是CoAv6,负载包括HoAv6*。根据目的地址,该绑定确认消息发往MNv6。MNv6接收绑定确认消息,完成对HAv4维持的家乡地址与转交地址的绑定更新。(4) After MIPv4/v6-TG receives the registration response message, NAT-PT updates the address mapping: CoAv4#CoAv6, and MIP-ALG converts the registration response message into a binding confirmation message. The source address of the binding confirmation message is HAAv6 * , the destination address is CoAv6, and the payload includes HoAv6 * . According to the destination address, the binding confirmation message is sent to MNv6. MNv6 receives the binding confirmation message, and completes the binding update of the home address and care-of address maintained by HAv4.

(5)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。在此过程中,MIPv4/v6-TG将充当HAv6。RRP认证按照RFC37755所描述的流程进行,具体的步骤如下:MNv6首先同时向MIPv4/v6-TG发送HomeTest Init消息和Care-of Test Init消息,其中Home Test Init消息需要经过MIPv4/v6-TG然后再转发给CNv6,Care-of Test Init消息直接发送给CNv6;CNv6收到Home Test Init消息和Care-of Test Init消息后分别回复Home Test消息和Care-of Test消息,Home Test消息和Care-of Test消息按照原路返回。(5) According to RFC3775, before MNv6 initiates a binding update to CNv6, RRP authentication must be performed. During this process, MIPv4/v6-TG will act as HAv6. RRP authentication is carried out according to the process described in RFC37755, and the specific steps are as follows: MNv6 first sends a HomeTest Init message and a Care-of Test Init message to MIPv4/v6-TG at the same time, and the Home Test Init message needs to pass through MIPv4/v6-TG and then Forward to CNv6, the Care-of Test Init message is sent directly to CNv6; CNv6 replies Home Test message and Care-of Test message, Home Test message and Care-of Test message respectively after receiving Home Test Init message and Care-of Test Init message The message is returned in the same way.

(6)RRP认证结束后,根据RFC3775,MNv6产生并发送绑定更新消息,绑定更新消息的源地址是CoAv6,目的地址是CNAv6,负载包括HoAv6*,根据目的地址,该绑定更新消息发往CNv6。(6) After the RRP authentication is completed, according to RFC3775, MNv6 generates and sends a binding update message. The source address of the binding update message is CoAv6, the destination address is CNAv6, and the payload includes HoAv6 * . According to the destination address, the binding update message is sent to To CNv6.

(7)CNv6接收到绑定更新消息后,更新自己维持的家乡地址与转交地址的绑定:HoAv6*CoAv6。然后,CNv6产生绑定确认消息并回复MNv6。(7) After CNv6 receives the binding update message, it updates the binding between the home address and the care-of address: HoAv6 * CoAv6. Then, CNv6 generates a binding confirmation message and replies to MNv6.

图41是HA位于IPv4网络、CN位于IPv6网络、MN从IPv4网络移动到IPv6网络时的更新流程图。Fig. 41 is an update flowchart when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves from the IPv4 network to the IPv6 network.

如图41所示,此时更新过程主要有两个任务,一是要实现HAv4和CNv6所维持的家乡地址与转交地址的绑定更新;二是要通过域名查询的方式发现MIPv4/v6-TG并对MIPv4/v6-TG进行地址配置。在这个更新过程中,在IPv6网络一侧,MIPv4/v6-TG充当HAv6,与CNv6和MNv6构成MIPv6更新时的三个实体,按照RFC3775所描述的MIPv6技术对CNv6维持的家乡地址与转交地址的绑定进行更新;在IPv4网络一侧,MIPv4/v6-TG充当MNv4,与HAv4按照RFC3344进行家乡地址与转交地址的更新。具体的更新步骤包括:As shown in Figure 41, there are two main tasks in the update process at this time. One is to realize the binding update between the home address and the care-of address maintained by HAv4 and CNv6; the other is to discover MIPv4/v6-TG through domain name query. And perform address configuration on MIPv4/v6-TG. During this update process, on the IPv6 network side, MIPv4/v6-TG acts as HAv6, and constitutes three entities during MIPv6 update with CNv6 and MNv6. According to the MIPv6 technology described in RFC3775, the home address maintained by CNv6 and the care-of address The binding is updated; on the side of the IPv4 network, MIPv4/v6-TG acts as MNv4, and updates the home address and care-of address with HAv4 according to RFC3344. The specific update steps include:

(1)MNv6通过域名查询的方式发现MIPv4/v6-TG,并获得HAv4的IPv6格式的地址HAAv6*(1) The MNv6 discovers the MIPv4/v6-TG through domain name query, and obtains the IPv6 address HAAv6 * of the HAv4.

(2)MNv6通过域名查询的方式获得CNv6的IPv6格式的地址CNAv6。(2) The MNv6 obtains the IPv6 address CNAv6 of the CNv6 through domain name query.

(3)MNv6发送绑定更新消息,源地址是CoAv6,目的地址是HAAv6*,负载包括HoAv6*,HoAv6*由HoAv4添加NAT-PT的96位IPv6地址前缀构成。根据目的地址,该绑定更新消息将被发往MIPv4/v6-TG。(3) MNv6 sends a binding update message, the source address is CoAv6, the destination address is HAAv6 * , the load includes HoAv6 * , and HoAv6 * is formed by adding the 96-bit IPv6 address prefix of NAT-PT to HoAv4. According to the destination address, the binding update message will be sent to MIPv4/v6-TG.

(4)MIPv4/v6-TG接收到绑定更新消息后,NAT-PT建立地址映射:CoAv4#CoAv6,然后,MIP-ALG把绑定更新消息转换成注册请求消息,其源地址是CoAv4#,目的地址是HAAv4,负载包括HoAv4,根据目的地址,该注册请求消息发往HAv4。(4) After MIPv4/v6-TG receives the binding update message, NAT-PT establishes address mapping: CoAv4#CoAv6, then, MIP-ALG converts the binding update message into a registration request message, and its source address is CoAv4# , the destination address is HAAv4, and the payload includes HoAv4. According to the destination address, the registration request message is sent to HAAv4.

(5)HAv4收到注册请求消息后,更新家乡地址与转交地址的绑定,并产生注册应答消息,其源地址是HAAv4,目的地址是CoAv4#,负载包括HoAv4。根据目的地址,该注册应答消息发往MIPv4/v6-TG。(5) After receiving the registration request message, HAv4 updates the binding between the home address and the care-of address, and generates a registration response message, whose source address is HAAv4, destination address is CoAv4#, and the payload includes HoAv4. According to the destination address, the registration reply message is sent to MIPv4/v6-TG.

(6)MIPv4/v6-TG收到注册请求消息后,MIP-ALG把该注册应答消息转换成绑定确认消息,绑定确认消息的源地址是HAAv6*,目的地址是CoAv6,负载HoAv6*。根据目的地址,该绑定确认消息发往MNv6。MNv6接收绑定确认消息,完成对HAv4维持的家乡地址与转交地址的绑定的更新。(6) After MIPv4/v6-TG receives the registration request message, MIP-ALG converts the registration response message into a binding confirmation message. The source address of the binding confirmation message is HAAv6 * , the destination address is CoAv6, and the load is HoAv6 * . According to the destination address, the binding confirmation message is sent to MNv6. MNv6 receives the binding confirmation message, and completes updating of the binding between the home address and the care-of address maintained by HAv4.

(7)根据RFC3775,在MNv6向CNv6发起绑定更新之前,要进行RRP认证。在此过程中,MIPv4/v6-TG将充当HAv6。RRP认证按照RFC37755所描述的流程进行,具体的步骤如下:MNv6首先同时向MIPv4/v6-TG发送HomeTest Init消息和Care-of Test Init消息,其中Home Test Init消息需要经过MIPv4/v6-TG然后再转发给CNv6,Care-of Test Init消息直接发送给CNv6;CNv6收到Home Test Init消息和Care-of Test Init消息后分别回复Home Test消息和Care-of Test消息,Home Test消息和Care-of Test消息按照原路返回。(7) According to RFC3775, before the MNv6 initiates a binding update to the CNv6, RRP authentication must be performed. During this process, MIPv4/v6-TG will act as HAv6. RRP authentication is carried out according to the process described in RFC37755, and the specific steps are as follows: MNv6 first sends a HomeTest Init message and a Care-of Test Init message to MIPv4/v6-TG at the same time, and the Home Test Init message needs to pass through MIPv4/v6-TG and then Forward to CNv6, the Care-of Test Init message is sent directly to CNv6; CNv6 replies Home Test message and Care-of Test message, Home Test message and Care-of Test message respectively after receiving Home Test Init message and Care-of Test Init message The message is returned in the same way.

(8)RRP认证结束后,根据RFC3775,MNv6产生并发送绑定更新消息,绑定更新消息的源地址是CoAv6,目的地址是CNAv6,负载包括HoAv6*,根据目的地址,该绑定更新消息发往CNv6。(8) After the RRP authentication is completed, according to RFC3775, MNv6 generates and sends a binding update message. The source address of the binding update message is CoAv6, the destination address is CNAv6, and the payload includes HoAv6 * . According to the destination address, the binding update message is sent to To CNv6.

(9)CNv6接收到绑定更新消息后,更新自己维持的地址绑定:HoAv6*CoAv6。然后,CNv6产生绑定确认消息并回复MNv6。(9) After receiving the binding update message, CNv6 updates the address binding maintained by itself: HoAv6*CoAv6. Then, CNv6 generates a binding confirmation message and replies to MNv6.

图42是图解HA位于IPv4网络、CN位于IPv6网络、MN从IPv6网络移动到IPv4网络时的更新流程图。Fig. 42 is an update flowchart illustrating when the HA is located in the IPv4 network, the CN is located in the IPv6 network, and the MN moves from the IPv6 network to the IPv4 network.

如图42所示,此时更新过程主要有两个任务,一是要实现HAv4和CNv6所维持的家乡地址与转交地址的绑定更新;二是要通过域名查询的方式发现MIPv4/v6-TG并对MIPv4/v6-TG进行地址配置。在更新过程中,由于此时MN处于IPv4网络,根据RFC3344,MN只需要对HAv4维持的绑定进行更新,但当MN从IPv6网络移动到IPv4网络获得一个新的转交地址后,CNv6依旧维持原有的地址绑定,因此,CNv6维持的地址绑定需要更新。但问题在于,根据RFC3344,MN不发起向CN的更新。本发明提出的解决方案扩展了MN的功能,使MN能够请求MIPv4/v6-TG代理自己发起向CNv6的更新。为了达到这个目的,引进了代理请求和代理应答两个消息,同时为了尽可能与RFC3344兼容,代理请求/代理应答消息的格式与注册请求/注册应答消息的格式保持一致。另外为了区分消息,为代理请求消息和代理应答消息定义了类型值。具体的更新步骤包括:As shown in Figure 42, the update process at this time mainly has two tasks. One is to realize the binding update between the home address and the care-of address maintained by HAv4 and CNv6; the other is to discover MIPv4/v6-TG through domain name query. And perform address configuration on MIPv4/v6-TG. During the update process, since the MN is in the IPv4 network at this time, according to RFC3344, the MN only needs to update the binding maintained by HAv4, but when the MN moves from the IPv6 network to the IPv4 network and obtains a new care-of address, CNv6 still maintains the original Some address bindings, therefore, the address bindings maintained by CNv6 need to be updated. But the problem is that according to RFC3344, the MN does not initiate an update to the CN. The solution proposed by the invention expands the functions of the MN, enabling the MN to request the MIPv4/v6-TG agent to initiate an update to CNv6 by itself. In order to achieve this purpose, two messages, proxy request and proxy response, are introduced. At the same time, in order to be compatible with RFC3344 as much as possible, the format of proxy request/proxy response message is consistent with that of registration request/registration response message. In addition, in order to distinguish messages, type values are defined for proxy request messages and proxy reply messages. The specific update steps include:

(1)MNv4产生并向HAv4发送注册请求消息,其源地址为CoAv4,目的地址是HAAv4,负载包括HoAv4。根据目的地址,该注册请求消息发往HAv4。(1) MNv4 generates and sends a registration request message to HAv4, the source address of which is CoAv4, the destination address is HAAv4, and the load includes HoAv4. According to the destination address, the registration request message is sent to HAv4.

(2)HAv4收到注册请求消息后,更新自己维持的家乡地址与转交地址的绑定,然后向MNv4回复注册应答消息。(2) After receiving the registration request message, HAv4 updates the binding between the home address and the care-of address maintained by itself, and then replies a registration response message to MNv4.

(3)MNv6通过域名查询的方式发现MIPv4/v6-TG,并获得CNv6的IPv4格式的地址CNAv4#。在此域名查询的过程中,MIPv4/v6-TG中的NAT-PT建立了地址映射:CNAv4#CNAv6。(3) MNv6 discovers MIPv4/v6-TG through domain name query, and obtains the address CNAv4# of CNv6 in IPv4 format. In the process of domain name query, NAT-PT in MIPv4/v6-TG establishes address mapping: CNAv4#CNAv6.

(4)MNv4向MIPv4/v6-TG发送代理请求消息,代理请求消息的源地址是CoAv4,目的地址是CNAv4#,负载包括HoAv4。根据目的地址,代理请求消息发往MIPv4/v6-TG。本发明中定义代理请求消息的类型值为7,代理请求消息的格式如图43A所示。(4) MNv4 sends a proxy request message to MIPv4/v6-TG, the source address of the proxy request message is CoAv4, the destination address is CNAv4#, and the payload includes HoAv4. According to the destination address, the proxy request message is sent to MIPv4/v6-TG. In the present invention, the type value of the proxy request message is defined as 7, and the format of the proxy request message is shown in FIG. 43A.

(5)MIPv4/v6-TG收到代理请求消息后,将代理MNv4向CNv6发起更新过程。根据RFC3775,在向CNv6发起更新之前,要进行RRP认证。RRP认证按照RFC37755所描述的流程进行,具体的步骤如下:MIPv4/v6-TG在IPv6网络一侧充当HAv6,向CNv6发送Home Test Init消息。Home Test Init消息源地址是HoAv6*,目的地址是CNAv6。CNv6接到Home Test Init消息,会向MIPv4/v6-TG回应Home Test消息。同时,MIPv4/v6-TG充当MNv6,向CNv6发送Care of Test Init消息。Care of Test Init消息源地址是CoAv6*,目的地址是CNAv6。CNv6接到Care of Test Init消息,会向MIPv4/v6-TG回应Care of Test消息。(5) MIPv4/v6-TG will proxy MNv4 to initiate an update process to CNv6 after receiving the proxy request message. According to RFC3775, before initiating an update to CNv6, RRP authentication is required. RRP authentication is performed according to the process described in RFC37755, and the specific steps are as follows: MIPv4/v6-TG acts as HAv6 on the IPv6 network side, and sends a Home Test Init message to CNv6. The source address of the Home Test Init message is HoAv6 * , and the destination address is CNAv6. After receiving the Home Test Init message, CNv6 will respond to the Home Test message to MIPv4/v6-TG. At the same time, MIPv4/v6-TG acts as MNv6 and sends a Care of Test Init message to CNv6. The source address of the Care of Test Init message is CoAv6 * , and the destination address is CNAv6. After receiving the Care of Test Init message, CNv6 will respond to the Care of Test message to MIPv4/v6-TG.

(6)RRP认证结束后,MIPv4/v6-TG充当MNv6并根据RFC3775产生绑定更新消息,绑定更新消息的源地址是CoAv6*,目的地址是CNAv6,负载包括HoAv6*,根据目的地址,该绑定更新消息发往CNv6。(6) After RRP authentication ends, MIPv4/v6-TG acts as MNv6 and generates a binding update message according to RFC3775. The source address of the binding update message is CoAv6 * , the destination address is CNAv6, and the payload includes HoAv6 * . According to the destination address, the Binding Update messages are sent to CNv6.

(7)CNv6接收到绑定更新消息后,更新自己维持的地址绑定:HoAv6*CoAv6*。然后,CNv6产生绑定确认消息并回复MIPv4/v6-TG。(7) After CNv6 receives the binding update message, it updates the address binding it maintains: HoAv6 *  CoAv6 * . Then, CNv6 generates a binding confirmation message and replies to MIPv4/v6-TG.

(8)MIPv4/v6-TG收到绑定确认消息后,首先,MIP-ALG建立地址绑定:HoAv6*CoAv6*。然后,MIPv4/v6-TG向MNv4发出代理应答消息。代理应答消息的源地址是CNAv4#,目的地址是CoAv4,负载包括HoAv4。本发明中定义代理应答消息的类型值为8,代理应答消息的格式如图43B所示。(8) After MIPv4/v6-TG receives the binding confirmation message, first, MIP-ALG establishes address binding: HoAv6 *  CoAv6 * . Then, MIPv4/v6-TG sends a proxy response message to MNv4. The source address of the proxy reply message is CNAv4#, the destination address is CoAv4, and the payload includes HoAv4. In the present invention, the type value of the proxy response message is defined as 8, and the format of the proxy response message is shown in FIG. 43B.

本发明通过在IPv4网络和IPv6网络之间设置MIPv4/v6-TG实现了IPv4/v6混合网络中的移动通信,同时也实现了RFC3334和RFC3775的互相透明,能够满足网络从IPv4向IPv6过渡期间的需求;而且本发明只需要对移动节点进行一定的升级,而对家乡代理和通信节点无需改进,因此本发明能够充分利用现有的移动通信设备,具有很大的实用价值。The present invention realizes the mobile communication in the IPv4/v6 hybrid network by setting the MIPv4/v6-TG between the IPv4 network and the IPv6 network, and also realizes the mutual transparency of RFC3334 and RFC3775, and can meet the needs of the network during the transition from IPv4 to IPv6 Requirements; and the present invention only needs to upgrade the mobile node to a certain extent, but does not need to improve the home agent and the communication node, so the present invention can make full use of the existing mobile communication equipment and has great practical value.

Claims (8)

1. realize the communication means of mobile node in the IPv4/v6 hybrid network for one kind, it is characterized in that: by the mobile communication in mobile IPv 4/v6 transfer gateway realization IPv4/v6 hybrid network is set between IPv4 network and IPv6 network, described mobile IPv 4/v6 transfer gateway comprises the NAT-PT gateway and establishes thereon mobile IP ALG, wherein disposes DNS-ALG on the NAT-PT gateway.
2. the communication means of mobile node according to claim 1 in the IPv4/v6 hybrid network is characterized in that:
A. mobile IPv 4/v6 transfer gateway is by serving as RFC3344 and the described different entity of RFC3775 respectively in IPv4 network and IPv6 network, and realizes that by the conversion of carrying out at intra-gateway between the entity RFC3344 and RFC3775's is transparent mutually;
B. mobile IPv 4/v6 transfer gateway is responsible for changing send to various message and data message the IPv6 network, relevant with mobile IP from the IPv4 network, is responsible for changing send to various message and data message the IPv4 network, relevant with mobile IP from the IPv6 network;
C. mobile IPv 4/v6 transfer gateway is intercepted and captured message and the data message relevant with mobile IP according to following principle: when upgrading, intercept and capture message according to the type of message; When communication, according to the destination address intercepted data message of data message;
D. mobile IPv 4/v6 transfer gateway security mechanism of when the message of process IP v4 form and data message, adopting RFC3344 to provide, the security mechanism that when the message of process IP v6 form and data message, adopts RFC3775 to provide;
E. in the described communication means of claim 1, the requirement of describing among the requirement of home agent and communication node and RFC3344 and the RFC3775 is consistent, but increases requirement mobile node.
3. the communication means of mobile node according to claim 2 in the IPv4/v6 hybrid network, it is characterized in that: described steps A specifically comprises:
(1) mobile IPv 4/v6 transfer gateway serves as a described entity of RFC3344 in IPv4 network one side, this entity constitutes the described mobile IP model of RFC3344 with other entity that is in the IPv4 network, and this moves IP model and communicates according to the mobile IPv 4 agreement described in the RFC3344 and upgrade;
(2) mobile IPv 4/v6 transfer gateway serves as a described entity of RFC3775 in IPv6 network one side, this entity constitutes the described mobile IP model of RFC3775 with other entity that is in the IPv6 network, and this moves IP model and communicates according to the mobile IPv 6 protocol described in the RFC3775 and upgrade;
(3) mobile IPv 4/v6 transfer gateway is realized the conversion of own entity from an IPv4 form to the entity of an IPv6 form by the internal conversion between the entity, from the conversion of the entity of an IPv6 form to the entity of an IPv4 form, and realize conversion between the similar entity, thereby realize that finally RFC3344 and RFC3775's is transparent mutually.
4. the communication means of mobile node according to claim 2 in the IPv4/v6 hybrid network, it is characterized in that: described step B specifically comprises:
(1) mobile IPv 4/v6 transfer gateway is responsible for the described login request message of a RFC3344 and is converted the described binding update messages of RFC3775 to, and the described registration reply message conversion of RFC3344 is become the described binding acknowledgement message of RFC3775;
(2) mobile IPv 4/v6 transfer gateway is responsible for the described binding update messages of a RFC3775 and is converted the described login request message of RFC3344 to, and the described binding acknowledgement message conversion of RFC3775 is become the described registration reply message of RFC3344;
(3) mobile IPv 4/v6 transfer gateway is responsible for the data message is carried out the address protocol conversion, and when IPv6 network one side transceive data message, according to the described requirement of RFC3775, Care-of Address in the data message IP head of IPv6 form and the home address in the extension header are exchanged.
5. the communication means of mobile node according to claim 2 in the IPv4/v6 hybrid network, it is characterized in that: described step C specifically comprises:
(1) when communication, mobile IPv 4/v6 transfer gateway serves as different entities according to different signal intelligences, owing to can be routed to mobile IPv 4/v6 transfer gateway as the data message of destination address with the IP address of these entities, therefore, will to intercept and capture the IP address with these entities be the data message of destination address to mobile IPv 4/v6 transfer gateway;
(2) when upgrading, mobile IPv 4/v6 transfer gateway is intercepted and captured message according to the type of message, and this method further specifically comprises:
(21) at the IPv4 network, the message that mobile IPv 4/the v6 transfer gateway need be handled has the described login request message of RFC3344 and registration reply message and Agent Solicitation that defines and proxy response message in the described communication means of claim 1, to these four kinds of message, mobile IPv 4/v6 transfer gateway is intercepted and captured according to the UDP encapsulation and the destination slogan of message in network layer, distinguishes according to the loadtype value of message in application layer;
(22) at the IPv6 network, the message that mobile IPv 4/the v6 transfer gateway need be handled has the described binding update messages of RFC3775, binding acknowledgement message, Home Test Init message, Home Test message, Careof Test Init message, Care of Test message; To these message, mobile IPv 4/v6 transfer gateway is numbered 135 in network layer according to the mobile prolate-headed next header of message and as a token of intercepts and captures message, application layer according to load in the MH value distinguish message.
6. the communication means of mobile node according to claim 2 in the IPv4/v6 hybrid network, it is characterized in that: described step D specifically comprises:
(1) when mobile IPv 4/v6 transfer gateway receives message or data message, will be IPv4 form or IPv6 form, authenticate according to RFC3344 or the described identifying algorithm of RFC3775 according to this message or data message;
(2) when mobile IPv 4/v6 transfer gateway sends message or data message, to be IPv4 form or IPv6 form according to this message or data message, produce verify data according to RFC3344 or the described identifying algorithm of RFC3775, this verify data will be as the part of this message or data message.
7. the communication means of mobile node according to claim 2 in the IPv4/v6 hybrid network, it is characterized in that: described step e specifically comprises:
(1) mobile node can satisfy the requirement of RFC3344 and the described relevant mobile node of RFC3775 simultaneously;
(2) mobile node can write down the domain name of home agent and communication node, can find mobile IPv 4/v6 transfer gateway by the mode of DNS inquiry, and obtain the address of home agent and communication node;
(3) mobile node can be supported the expansion to login request message and registration reply message, can produce and handle Agent Solicitation and proxy response message.
8. the communication means of mobile node according to claim 7 in the IPv4/v6 hybrid network, it is characterized in that: home agent is positioned at the IPv4 network, communication node is positioned at the IPv6 network, and the committed step of mobile node mobile IPv 4/v6 when mobile in the IPv4/v6 hybrid network comprises:
(1) when mobile node when the IPv6 network moves to the IPv4 network, mobile node sends Agent Solicitation to mobile IPv 4/v6 transfer gateway, and the request mobile IPv 4/communication node of v6 transfer gateway proxy mobile node in being in the IPv6 network initiated the Binding Update of its home address and Care-of Address;
(2) after mobile IPv 4/the v6 transfer gateway is received Agent Solicitation, the communication node of proxy mobile node in being in the IPv6 network initiated renewal process, this moment, mobile IPv 4/v6 transfer gateway will serve as the home agent of IPv6 form and the mobile node of IPv6 form respectively in IPv6 network one side, after mobile IPv 4/v6 transfer gateway was received binding acknowledgement message, the mobile node in being in the IPv4 network sent proxy response message;
(3) form of the login request message among the form of described Agent Solicitation and the RFC3344 is identical, the form of the registration reply message among the form of proxy response message and the RFC3344 is identical, wherein the types value of proxy requests is 7 by fixing tentatively, and the types value of proxy response message is 8 by fixing tentatively.
CN200810026585.9A 2008-03-04 2008-03-04 A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network Expired - Fee Related CN101237410B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200810026585.9A CN101237410B (en) 2008-03-04 2008-03-04 A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network
PCT/CN2008/000528 WO2009109072A1 (en) 2008-03-04 2008-03-17 Method for realizing mobile node communication in an ipv4/v6 hybrid network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810026585.9A CN101237410B (en) 2008-03-04 2008-03-04 A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network

Publications (2)

Publication Number Publication Date
CN101237410A true CN101237410A (en) 2008-08-06
CN101237410B CN101237410B (en) 2011-08-24

Family

ID=39920775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810026585.9A Expired - Fee Related CN101237410B (en) 2008-03-04 2008-03-04 A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network

Country Status (2)

Country Link
CN (1) CN101237410B (en)
WO (1) WO2009109072A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977246A (en) * 2010-09-07 2011-02-16 南京中兴软件有限责任公司 Method and system for supporting PMIPv6 (Proxy Mobile IPv6) mobility
CN101754426B (en) * 2009-12-11 2011-11-23 中山大学 A Communication Method of Mobile IPv4/v6 Based on Proxy Gateway
CN102625280A (en) * 2012-03-16 2012-08-01 中山大学 A Method of Mobile IPv4/v6 Based on Proxy-Anchor Gateway
CN111343244A (en) * 2018-08-23 2020-06-26 贵州白山云科技股份有限公司 Cloud distribution network scheduling method and device and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459572C (en) * 2005-06-23 2009-02-04 华为技术有限公司 Message transformation realizing method based on port from IPv4 to IPv6 network
JP4591338B2 (en) * 2005-12-16 2010-12-01 パナソニック電工株式会社 Communications system
CN100534218C (en) * 2007-01-15 2009-08-26 中山大学 A method for realizing communication between mobile IPv4 node and IPv6 communication node
CN100518378C (en) * 2007-03-05 2009-07-22 中山大学 A communication method for realizing mobile node handover from IPv6 network to IPv4 network
CN100596106C (en) * 2007-04-05 2010-03-24 中山大学 A communication method for realizing mobile node switching from IPv4 network to IPv6 network
CN100518147C (en) * 2007-04-05 2009-07-22 中山大学 A method for realizing mobile communication across heterogeneous networks based on bidirectional tunnel
CN100512228C (en) * 2007-04-28 2009-07-08 中山大学 Method for realizing communication between IPv4 communication node and mobile node of crossing heterogeneous network

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754426B (en) * 2009-12-11 2011-11-23 中山大学 A Communication Method of Mobile IPv4/v6 Based on Proxy Gateway
CN101977246A (en) * 2010-09-07 2011-02-16 南京中兴软件有限责任公司 Method and system for supporting PMIPv6 (Proxy Mobile IPv6) mobility
CN101977246B (en) * 2010-09-07 2014-03-12 南京中兴软件有限责任公司 Method and system for supporting PMIPv6 (Proxy Mobile IPv6) mobility
CN102625280A (en) * 2012-03-16 2012-08-01 中山大学 A Method of Mobile IPv4/v6 Based on Proxy-Anchor Gateway
CN102625280B (en) * 2012-03-16 2014-12-24 中山大学 Agent anchor gateway-based mobile internet protocol version 4/version 6 (IPv4/v6) method
CN111343244A (en) * 2018-08-23 2020-06-26 贵州白山云科技股份有限公司 Cloud distribution network scheduling method and device and computer readable storage medium
CN111343244B (en) * 2018-08-23 2023-01-31 贵州白山云科技股份有限公司 Cloud distribution network scheduling method and device and computer readable storage medium

Also Published As

Publication number Publication date
WO2009109072A1 (en) 2009-09-11
CN101237410B (en) 2011-08-24

Similar Documents

Publication Publication Date Title
AU2004244296B2 (en) Arrangement for traversing an IPv4 network by IPv6 mobile nodes
US6862274B1 (en) Method and system capable of providing mobility support for IPv4/IPv6 inter-networking
US7149225B2 (en) Arrangement for traversing an IPv4 network by IPv6 mobile nodes via a mobility anchor point
CN102256236B (en) System and method for mobility management under separate mapping mechanism
US7269173B2 (en) Roaming in a communications network
US7551632B2 (en) Arrangement for traversing an IPv4 network by IPv6 mobile routers
JP3668047B2 (en) Mobile communication method, mobile computer device and encrypted communication device
CN100534218C (en) A method for realizing communication between mobile IPv4 node and IPv6 communication node
Gladisch et al. Survey on mobility and multihoming in future internet
JP4741493B2 (en) Mobile network reachability maintenance method based on temporary name identifier
CN102907072A (en) Enabling IPv6 Mobility with NAT64
US8005093B2 (en) Providing connection between networks using different protocols
CN100518378C (en) A communication method for realizing mobile node handover from IPv6 network to IPv4 network
US20030236914A1 (en) Connection of next generation mobile nodes across previous generation networks to next generation networks
WO2007022683A1 (en) A method for realizing the communication between mobile ipv6 node and ipv4 communication partner
CN100518147C (en) A method for realizing mobile communication across heterogeneous networks based on bidirectional tunnel
CN101237410B (en) A Communication Method for Realizing Mobile Nodes in IPv4/v6 Mixed Network
Novaczki et al. Micromobility support in HIP: survey and extension of host identity protocol
CN100512228C (en) Method for realizing communication between IPv4 communication node and mobile node of crossing heterogeneous network
CN101160927B (en) Method for communication between IPv6 communication partner and mobile IPv6 node and communication partner proxy gateway
CN100571214C (en) Dual-stack Support Extension Method of Hierarchical Mobile IPv6 Protocol
CN1870633B (en) Method for supporting mobile IPv4 by double-stack moible IPv6 node
US20050136924A1 (en) Method, apparatus and system for enabling roaming mobile nodes to utilize private home IP addresses
Bokor et al. A Complete HIP Based Framework for Secure Micromobility.
CN102647708A (en) A Distributed Mobile IPv6 Method Based on Network Mobility Management and Route Optimization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110824

Termination date: 20120304