Movatterモバイル変換


[0]ホーム

URL:


CN101330527B - Address Configuration Method for Mobile Node, Access Router and Fast Handover - Google Patents

Address Configuration Method for Mobile Node, Access Router and Fast Handover
Download PDF

Info

Publication number
CN101330527B
CN101330527BCN2007101265476ACN200710126547ACN101330527BCN 101330527 BCN101330527 BCN 101330527BCN 2007101265476 ACN2007101265476 ACN 2007101265476ACN 200710126547 ACN200710126547 ACN 200710126547ACN 101330527 BCN101330527 BCN 101330527B
Authority
CN
China
Prior art keywords
address
message
fast
access router
router
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.)
Expired - Fee Related
Application number
CN2007101265476A
Other languages
Chinese (zh)
Other versions
CN101330527A (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.)
Huawei Technologies Co Ltd
University of Science and Technology of China USTC
Original Assignee
Huawei Technologies Co Ltd
University of Science and Technology of China USTC
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 Huawei Technologies Co Ltd, University of Science and Technology of China USTCfiledCriticalHuawei Technologies Co Ltd
Priority to CN2007101265476ApriorityCriticalpatent/CN101330527B/en
Publication of CN101330527ApublicationCriticalpatent/CN101330527A/en
Application grantedgrantedCritical
Publication of CN101330527BpublicationCriticalpatent/CN101330527B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明涉及移动节点、接入路由器及快速切换的地址配置方法。地址配置方法包括:新接入路由器接收前接入路由器发送的切换发起消息,该切换发起消息携带有表示采用有状态地址配置的地址配置方式标识;新接入路由器从本地地址池提取临时转交地址,生成携带有临时转交地址的切换应答消息,并向前接入路由器返回。新接入路由器接收移动节点发送的快速邻居公告消息,生成携带有DHCP服务器相关信息的快速路由器公告消息,并向移动节点返回。本发明实施例中,切换过程采用临时转交地址,数据传输具有较好的连续性;新接入路由器将DHCP服务器相关信息告知移动节点,避免了DHCP服务器的搜索过程,减少了有状态地址配置的延时。

Figure 200710126547

The invention relates to a mobile node, an access router and an address configuration method for fast switching. The address configuration method includes: the new access router receives a handover initiation message sent by the previous access router, and the handover initiation message carries an address configuration mode identifier indicating that stateful address configuration is adopted; the new access router extracts a temporary care-of address from a local address pool , generate a handover response message carrying a temporary care-of address, and return it to the forward access router. The new access router receives the fast neighbor advertisement message sent by the mobile node, generates a fast router advertisement message carrying relevant information of the DHCP server, and returns it to the mobile node. In the embodiment of the present invention, the handover process uses a temporary care-of address, and the data transmission has better continuity; the new access router notifies the mobile node of the relevant information of the DHCP server, avoids the search process of the DHCP server, and reduces the time required for stateful address configuration. delay.

Figure 200710126547

Description

Translated fromChinese
移动节点、接入路由器及快速切换的地址配置方法 Address Configuration Method for Mobile Node, Access Router and Fast Handover

技术领域technical field

本发明涉及通信技术,尤其涉及移动节点、接入路由器及快速切换的地址配置方法。 The invention relates to communication technology, in particular to a mobile node, an access router and an address configuration method for fast switching. the

背景技术Background technique

移动IPv6(Mobile IPv6,简称MIPv6)为移动节点(Mobile Node,简称MN)在移动的同时能够连续访问Internet提供了网络层支持。当MN从一个外地网络移动到另一个外地网络时,由于网络前缀发生改变,它在外地网络中的转交地址(Care of Address,简称CoA)也随之改变,需要向家乡代理(Home Agent,简称HA)和通信节点(Correspondent Node,简称CN)分别注册新的CoA。对于视频流等实时业务,当MN移动到远离家乡网络的外地网络时,需要尽量减小切换延时和减少丢包,以满足这些业务的要求。 Mobile IPv6 (Mobile IPv6, referred to as MIPv6) provides network layer support for mobile nodes (Mobile Node, referred to as MN) to continuously access the Internet while moving. When the MN moves from one foreign network to another, due to the change of the network prefix, its care of address (Care of Address, CoA) in the foreign network also changes accordingly, and it is necessary to report to the home agent (Home Agent, referred to as HA) and a correspondent node (Correspondent Node, CN for short) respectively register a new CoA. For real-time services such as video streaming, when the MN moves to a foreign network far away from its home network, it is necessary to minimize handover delay and packet loss to meet the requirements of these services. the

现有的一种MIPv6快速切换(Fast Handovers for Mobile IPv6,简称FMIPv6)方法利用无线链路层触发,在切换开始之前,完成部分切换操作,从而加快切换速度。FMIPv6的切换流程如下:MN收到无线链路触发,向当前子网的前接入路由器(Previous Access Router,简称PAR)发送代理路由器请求(Router Solicitation for Proxy Advertisement,简称RtSolPr);PAR返回包含请求的新接入路由器(New Access Router,简称NAR)地址的代理路由器公告(Proxy Router Advertisement,简称PrRtAdv),MN利用NAR地址和接口信息构造新转交地址(New CoA,简称NCoA),然后向PAR发送快速绑定更新(Fast Binding Update,简称FBU),PAR接收到FBU后向NAR发送包含NCoA的切换发起(Handover Initiate,简称HI),NAR对NCoA做重复地址检测(Duplicate Address Detection,简称DAD),并向PAR返回包含 检测结果的切换公告(Handover Acknowledge,简称Hack),如果检测成功PAR将建立前转交地址(Previous CoA,简称PCoA)到NCoA的双向隧道。在移动节点完成向CN注册NCoA之前,PAR通过隧道将发送给移动节点PCoA的分组发送到MN的NCoA,MN用PCoA发送的分组则通过反向隧道经PAR转发。MN发生实际切换,断开原子网连接,接入新子网,然后立即发送快速邻居公告(Fast Neighbor Advertisement,简称FNA)通知NAR切换完成。上述切换过程采用的是无状态地址配置,须进行DAD检测,以保证地址的唯一性,而DAD检测需要较大的开销,其造成的延时会对实时性要求强的业务有较大的影响。 An existing MIPv6 fast handover (Fast Handovers for Mobile IPv6, FMIPv6 for short) method uses wireless link layer triggers to complete part of the handover operation before the handover starts, thereby speeding up the handover speed. The switching process of FMIPv6 is as follows: MN receives a wireless link trigger, and sends a proxy router request (Router Solicitation for Proxy Advertisement, RtSolPr) to the previous access router (Previous Access Router, PAR for short) of the current subnet; The Proxy Router Advertisement (PrRtAdv) for the address of the new access router (New Access Router, NAR for short), the MN uses the NAR address and interface information to construct a new care-of address (New CoA, NCoA for short), and then sends it to the PAR Fast Binding Update (FBU for short), PAR sends a handover initiation (Handover Initiate, HI for short) including NCoA to NAR after receiving the FBU, NAR performs duplicate address detection (Duplicate Address Detection, DAD for short) on NCoA, And return to PAR the handover notice (Handover Acknowledge, referred to as Hack) that contains detection result, if detect successfully PAR will establish the two-way tunnel of previous care-of address (Previous CoA, referred to as PCoA) to NCoA. Before the mobile node registers with the CN for NCoA, the PAR sends the packets sent to the mobile node PCoA to the MN's NCoA through the tunnel, and the packets sent by the MN using the PCoA are forwarded by the PAR through the reverse tunnel. The MN actually switches, disconnects the atomic network connection, connects to the new subnet, and then immediately sends a Fast Neighbor Advertisement (FNA) to notify the NAR that the switching is complete. The above switching process adopts stateless address configuration, and DAD detection is required to ensure the uniqueness of the address. However, DAD detection requires a large overhead, and the delay caused by it will have a greater impact on services with strong real-time requirements. . the

现在还有一种基于面向IPv6的动态主机配置协议(Dynamic HostConfiguration Protocol for IPv6,简称DHCPv6)的有状态地址自动配置方法。DHCPv6协议是一种客户端/服务器模式的协议,主要过程如下:客户端获得链路本地地址后,向DHCPv6服务器保留的组播地址发送请求消息,寻找可用的DHCPv6服务器;任何可用的DHCPv6服务器以路由公告消息作出回应;客户端从中选择一个DHCPv6服务器,发送请求分配地址和其它配置信息的消息;相应的DHCPv6服务器返回包含有地址和其它配置信息的应答消息。在这种地址配置方式中,客户端须要等待路由公告才能进一步请求地址和配置信息,而DHCPv6服务器需要等待一个随机时间才能发送路由公告;系统中可能存在多个DHCPv6服务器,而客户端须要从多个服务器中选择适合的服务器,这些都造成了时延,这部分时延对于实时性要求高的应用也会有较大的影响。 There is also a stateful address auto-configuration method based on the IPv6-oriented Dynamic Host Configuration Protocol (Dynamic Host Configuration Protocol for IPv6, referred to as DHCPv6). The DHCPv6 protocol is a client/server protocol, and the main process is as follows: After the client obtains the link-local address, it sends a request message to the multicast address reserved by the DHCPv6 server to find an available DHCPv6 server; any available DHCPv6 server ends with The client responds with the routing announcement message; the client selects a DHCPv6 server and sends a message requesting allocation of address and other configuration information; the corresponding DHCPv6 server returns a response message containing the address and other configuration information. In this address configuration mode, the client needs to wait for the routing advertisement to request further address and configuration information, while the DHCPv6 server needs to wait for a random time before sending the routing advertisement; Selecting a suitable server from one server will cause a delay, and this part of the delay will also have a greater impact on applications with high real-time requirements. the

现在还有一种用于FMIPv6的基于本地地址池的有状态地址自动配置方法。接入路由器(Access Router,简称AR)为每个邻近的AR保持并管理一个NCoA本地地址池。每个本地地址池中的NCoA都要经过相应的NAR的验证以支持快速切换。根据NCoA本地地址池所处的位置,这种基于本地地址池的有状态地址自动配置方法可以分成以下两种模式:基于NAR的反应型 有状态NCoA地址自动配置和基于PAR的预测型有状态NCoA地址自动配置。 There is also a stateful address auto-configuration method based on a local address pool for FMIPv6. An Access Router (AR for short) maintains and manages an NCoA local address pool for each neighboring AR. The NCoA in each local address pool must be verified by the corresponding NAR to support fast switching. According to the location of the NCoA local address pool, this stateful address autoconfiguration method based on the local address pool can be divided into the following two modes: NAR-based reactive stateful NCoA address autoconfiguration and PAR-based predictive stateful NCoA The address is automatically configured. the

在基于PAR的预测型有状态NCoA地址自动配置模式中,NCoA本地地址池位于PAR上,NCoA由PAR进行分配。当接收到MN的RtSolPr时,PAR从本地地址池中获取一个NCoA,并将其通过PrRtAdv发送给MN。为了支持预测型的NCoA地址配置,PAR需要生成NCoA并管理以保证地址在NAR的唯一性。这种NCoA地址自动配置的缺陷在于,PAR和NAR间需要进行本地地址池管理信令的交互,以保证本地地址池维护的NCoA是经过相应NAR验证的;虽然这个交互过程与FMIPv6的切换过程是独立的,不会影响整体的切换延时,但是它会增大网络的开销;并且不同AR上为同一个网络所建立的本地地址池中的地址可能发生冲突。 In the PAR-based predictive stateful NCoA address auto-configuration mode, the NCoA local address pool is located on the PAR, and the NCoA is allocated by the PAR. When receiving the MN's RtSolPr, PAR obtains an NCoA from the local address pool and sends it to the MN through PrRtAdv. In order to support predictive NCoA address configuration, PAR needs to generate NCoA and manage it to ensure the uniqueness of addresses in NAR. The defect of this kind of NCoA address automatic configuration is that the interaction of local address pool management signaling between PAR and NAR is required to ensure that the NCoA maintained by the local address pool is verified by the corresponding NAR; although this interaction process is different from the switching process of FMIPv6 Independent, it will not affect the overall switching delay, but it will increase the overhead of the network; and the addresses in the local address pools established for the same network on different ARs may conflict. the

在基于NAR的反应型有状态NCoA地址自动配置模式中,NCoA本地地址池位于NAR上。当一个邻近的PAR通过HI消息进行切换请求,NAR从NCoA本地地址池中选取一个经过验证的NCoA通过HAck消息发送给该PAR。RAR再通过PrRtAdv消息发送给MN。PAR发送的PrRtAdv消息须包含NCoA选项。 In the NAR-based reactive stateful NCoA address auto-configuration mode, the NCoA local address pool is located on the NAR. When an adjacent PAR makes a handover request through the HI message, the NAR selects an authenticated NCoA from the NCoA local address pool and sends it to the PAR through the HAck message. The RAR is sent to the MN through the PrRtAdv message. The PrRtAdv message sent by the PAR shall contain the NCoA option. the

基于PAR的预测型有状态NCoA地址自动配置以及基于NAR的反应型有状态NCoA地址自动配置都存在如下缺陷:它们都仅仅为MN配置了NCoA,没有提供DHCPv6服务器以及DNS服务器等配置信息,MN移动到新链路时需要通过搜索等其它方式来获取这些配置信息,这造成了较大的时延。所有这些过程都并不涉及MN和DHCPv6服务器之间的信令交换,使得DHCPv6服务器无法有效地管理自身地址池,MN和DHCPv6服务器之间的安全的、可管理的地址分配无法达到。 Both the predictive stateful NCoA address auto-configuration based on PAR and the reactive stateful NCoA address auto-configuration based on NAR have the following defects: they only configure NCoA for the MN, and do not provide configuration information such as DHCPv6 server and DNS server. When a new link is reached, the configuration information needs to be acquired through other methods such as searching, which causes a relatively large time delay. All these processes do not involve signaling exchange between the MN and the DHCPv6 server, so that the DHCPv6 server cannot effectively manage its own address pool, and secure and manageable address allocation between the MN and the DHCPv6 server cannot be achieved. the

发明内容Contents of the invention

本发明实施例所要解决的问题在于提供移动节点、接入路由器及快速切换的地址配置方法,减小切换时延。The problem to be solved by the embodiments of the present invention is to provide a mobile node, an access router and a method for configuring addresses for fast handover, so as to reduce handover delay.

为了解决上述技术问题,本发明实施例提供了一种快速切换的地址配置方法,所述方法包括如下步骤: In order to solve the above-mentioned technical problems, an embodiment of the present invention provides a method for quickly switching address configuration, the method includes the following steps:

新接入路由器接收前接入路由器发送的切换发起消息; The new access router receives the handover initiation message sent by the previous access router;

所述新接入路由器从本地地址池提取临时转交地址; The new access router extracts a temporary care-of address from a local address pool;

所述新接入路由器生成携带有所述临时转交地址的切换应答消息; The new access router generates a handover response message carrying the temporary care-of address;

所述新接入路由器向前接入路由器返回所述切换应答消息,以使所述前接入路由器将接收到的所述临时转交地址发送给移动节点。 The new access router returns the handover response message to the forward access router, so that the former access router sends the received temporary care-of address to the mobile node. the

为了解决上述技术问题,本发明实施例还提供了一种快速切换的地址配置方法,所述方法包括如下步骤: In order to solve the above technical problems, the embodiment of the present invention also provides a fast switching address configuration method, the method includes the following steps:

向前接入路由器发送快速绑定更新消息; Send a fast binding update message to the forward access router;

若接收到所述前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,向新接入路由器发送源地址为所述临时转交地址的快速邻居公告消息,所述临时转交地址由所述前接入路由器从所述新接入路由器获取得到,所述新接入路由器在接收到所述前接入路由器发送的切换发起消息后,从本地地址池中提取出所述临时转交地址,并返回给所述前接入路由器; If the fast binding response message carrying the temporary care-of address returned by the previous access router is received, after the new link is connected, send a fast neighbor advertisement whose source address is the temporary care-of address to the new access router message, the temporary care-of address is obtained by the former access router from the new access router, and the new access router selects the extract the temporary care-of-address from and return it to the former access router;

若没有接收到所述前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,向所述新接入路由器发送源地址为新链路地址的快速邻居公告消息; If the fast binding response message carrying the temporary care-of address returned by the previous access router is not received, after accessing the new link, send the fast binding response message whose source address is the address of the new link to the new access router. Neighbor announcement messages;

接收所述新接入路由器发送的快速路由器公告消息;所述快速路由器公告消息携带有DHCP服务器相关信息; Receive the fast router announcement message sent by the new access router; the fast router announcement message carries DHCP server related information;

从所述DHCP服务器相关信息中提取DHCP服务器的地址,向所述DHCP服务器发送地址配置信息申请消息; Extract the address of the DHCP server from the related information of the DHCP server, and send an address configuration information application message to the DHCP server;

接收所述DHCP服务器返回的携带有地址配置信息的地址配置信息应答消息;所述地址配置信息至少包含新转交地址; receiving an address configuration information response message carrying address configuration information returned by the DHCP server; the address configuration information includes at least a new care-of address;

根据所述地址配置信息进行地址配置。 Perform address configuration according to the address configuration information. the

为了解决上述技术问题,本发明实施例还提供了一种接入路由器,包括 用于接收消息的接收模块及用于发送消息的发送模块,还包括: In order to solve the above technical problems, an embodiment of the present invention also provides an access router, including a receiving module for receiving messages and a sending module for sending messages, and also includes:

提取模块,用于在接收到切换发起消息后,从本地地址池提取临时转交地址; An extraction module, configured to extract the temporary care-of address from the local address pool after receiving the handover initiation message;

生成模块,用于生成携带有所述临时转交地址的切换应答消息,并通过所述发送模块将所述切换应答消息返回给发送所述切换发起消息的前接入路由器,以使所述前接入路由器将所述临时转交地址发送给移动节点。 A generating module, configured to generate a handover response message carrying the temporary care-of address, and return the handover response message to the former access router that sent the handover initiation message through the sending module, so that the former access router The ingress router sends the temporary care-of address to the mobile node. the

为了解决上述技术问题,本发明实施例再提供了一种移动节点,包括用于接收消息的消息接收模块及用于发送消息的消息发送模块,还包括: In order to solve the above technical problems, an embodiment of the present invention further provides a mobile node, including a message receiving module for receiving messages and a message sending module for sending messages, and also includes:

快速邻居公告模块,用于生成快速邻居公告消息,并通过所述消息发送模块向新接入路由器发送所述快速邻居公告消息,所述临时转交地址由所述前接入路由器从所述新接入路由器获取得到,所述新接入路由器在接收到所述前接入路由器发送的切换发起消息后,从本地地址池中提取出所述临时转交地址,并返回给所述前接入路由器;若接收到前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,生成源地址为所述临时转交地址的快速邻居公告消息;若没有接收到所述前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,生成源地址为新链路地址的快速邻居公告消息; A fast neighbor advertisement module, configured to generate a fast neighbor advertisement message, and send the fast neighbor advertisement message to a new access router through the message sending module, and the temporary care-of address is obtained from the new access router by the former access router obtained by the ingress router, the new access router extracts the temporary care-of address from the local address pool after receiving the handover initiation message sent by the former access router, and returns it to the former access router; If the fast binding response message that carries the temporary care-of address returned by the previous access router is received, after the new link is connected, a fast neighbor advertisement message whose source address is the temporary care-of address is generated; If the fast binding response message returned by the previous access router carries the temporary care-of address, after the new link is connected, a fast neighbor advertisement message whose source address is the new link address is generated;

地址配置模块,用于从所述消息接收模块接收的快速路由器公告消息中提取DHCP服务器地址;通过所述消息发送模块向所述DHCP服务器发送地址配置信息申请信息;根据所述消息接收模块接收的携带有地址配置信息的地址配置信息应答消息进行地址配置,所述地址配置信息至少包含新转交地址。 The address configuration module is used to extract the DHCP server address from the fast router announcement message received by the message receiving module; send the address configuration information application information to the DHCP server through the message sending module; according to the information received by the message receiving module The address configuration information response message carrying the address configuration information performs address configuration, and the address configuration information includes at least the new care-of address. the

本发明实施例中,移动节点在切换过程中采用临时转交地址,使切换过程的数据传输具有较好的连续性;新接入路由器将DHCP服务器的相关信息告知移动节点,避免了DHCP服务器的搜索过程,并且新接入路由器发送快速路由器公告消息不需等待一个随机时间,从而有效减少了有状态地址配置的延时;通过增加地址配置方式标识实现了对有状态地址配置及无状态地址配置的兼容,移动节点可与前接入路由器协商采用何种地址配置方式。 In the embodiment of the present invention, the mobile node uses a temporary care-of address in the handover process, so that the data transmission in the handover process has better continuity; the new access router informs the mobile node of the relevant information of the DHCP server, avoiding the search of the DHCP server process, and the new access router does not need to wait for a random time to send the fast router announcement message, thereby effectively reducing the delay of stateful address configuration; by adding the address configuration mode identifier, the stateful address configuration and stateless address configuration are realized. Compatible, the mobile node can negotiate with the previous access router which address configuration method to use. the

下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。 The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments. the

附图说明Description of drawings

图1为本发明实施例的快速切换的地址配置方法的第一流程图; Fig. 1 is the first flowchart of the address configuration method of the fast switching of the embodiment of the present invention;

图2为本发明实施例的快速切换的地址配置方法第二流程图; Fig. 2 is the second flow chart of the address configuration method of fast switching in the embodiment of the present invention;

图3为本发明实施例的快速切换的地址配置方法的新接入路由器申请地址的方法流程图; Fig. 3 is the method flowchart of the new access router application address of the address configuration method of fast switching of the embodiment of the present invention;

图4为本发明实施例的快速切换的地址配置方法的前接入路由器提取临时转交地址的流程图; Fig. 4 is the flowchart of extracting the temporary care-of address by the front access router of the address configuration method of fast switching according to the embodiment of the present invention;

图5为本发明实施例的快速切换的地址配置方法的临时转交地址回收方法第一流程图; Fig. 5 is the first flowchart of the temporary care-of address reclaiming method of the address configuration method of fast switching according to the embodiment of the present invention;

图6为本发明实施例的快速切换的地址配置方法的临时转交地址回收方法第二流程图; Fig. 6 is the second flow chart of the temporary care-of address reclaiming method of the address configuration method of fast switching according to the embodiment of the present invention;

图7为本发明实施例的快速切换的地址配置方法的第三流程图; Fig. 7 is the 3rd flow chart of the address configuration method of the fast switching of the embodiment of the present invention;

图8为本发明实施例的快速切换的地址配置方法的第四流程图; Fig. 8 is the fourth flow chart of the address configuration method of the fast switching of the embodiment of the present invention;

图9为应用本发明实施例的快速切换的地址配置方法的系统的结构示意图; Fig. 9 is a schematic structural diagram of a system applying the address configuration method of fast switching according to the embodiment of the present invention;

图10为本发明实施例的接入路由器第一结构示意图; FIG. 10 is a schematic diagram of a first structure of an access router according to an embodiment of the present invention;

图11为本发明实施例的接入路由器第二结构示意图; FIG. 11 is a schematic diagram of a second structure of an access router according to an embodiment of the present invention;

图12为本发明实施例的接入路由器第三结构示意图; FIG. 12 is a schematic diagram of a third structure of an access router according to an embodiment of the present invention;

图13为本发明实施例的接入路由器第四结构示意图; 13 is a schematic diagram of a fourth structure of an access router according to an embodiment of the present invention;

图14为本发明实施例的移动节点第一结构示意图; FIG. 14 is a schematic diagram of a first structure of a mobile node according to an embodiment of the present invention;

图15为本发明实施例的移动节点第二结构示意图。 FIG. 15 is a schematic diagram of a second structure of a mobile node according to an embodiment of the present invention. the

具体实施方式Detailed ways

以下以移动IPv6快速切换为例进行说明,但需要指出的是,本发明实施 例也适用于其他移动IP快速切换过程的地址配置。 The following takes Mobile IPv6 fast handover as an example for illustration, but it should be pointed out that the embodiment of the present invention is also applicable to the address configuration of other mobile IP fast handover processes. the

如图1所示,为本发明实施例的快速切换的地址配置方法的第一流程图,图1所示实施例的方法包括如下步骤: As shown in Figure 1, it is the first flowchart of the address configuration method for fast switching in the embodiment of the present invention, the method of the embodiment shown in Figure 1 includes the following steps:

步骤101、移动节点向前接入路由器发送代理公告路由器请求(RtSolPr)消息; Step 101, the mobile node sends an agent announcement router request (RtSolPr) message to the forward access router;

步骤102、前接入路由器向移动节点返回代理路由器公告(PrRtAdv)消息; Step 102, former access router returns proxy router announcement (PrRtAdv) message to mobile node;

步骤103、移动节点向前接入路由器发送快速绑定更新(FBU)消息; Step 103, the mobile node sends a Fast Binding Update (FBU) message to the forward access router;

步骤104、前接入路由器向新接入路由器发送切换发起(HI)消息; Step 104, the previous access router sends a handover initiation (HI) message to the new access router;

步骤105、新接入路由器从本地地址池提取临时转交地址(Temporary Careof Address,简称TCoA),并携带在切换应答(HAck)消息向前接入路由器返回; Step 105, the new access router extracts a temporary care-of address (Temporary Care of Address, TCoA for short) from the local address pool, and carries it in the handover response (HAck) message and returns to the forward access router;

步骤106、前接入路由器建立到TCoA的双向隧道;移动节点通过该双向隧道接收目的地址为PCoA的数据包,发送源地址为PCoA的数据包; Step 106, the front access router establishes a bidirectional tunnel to TCoA; the mobile node receives a data packet whose destination address is PCoA through the bidirectional tunnel, and sends a data packet whose source address is PCoA;

步骤107、前接入路由器向移动节点返回携带TCoA的快速绑定应答(FastBonding Acknowledge,简称FBack)消息; Step 107, the former access router returns a Fast Bonding Acknowledge (FBack for short) message carrying TCoA to the mobile node;

步骤108、移动节点接入新链路,向新接入路由器发送源地址为TCoA的快速邻居公告(FNA)消息; Step 108, the mobile node accesses the new link, and sends the source address to the new access router to be the Fast Neighbor Announcement (FNA) message of TCoA;

步骤109、新接入路由器判断快速邻居公告(FNA)消息的源地址为全局IPv6地址,生成携带DHCPv6服务器相关信息的快速路由器公告(FastRouter Advertisement,简称FRA)消息,向移动节点发送;其中,DHCPv6服务器的相关信息可包括:DHCPv6服务器的MAC地址、IPv6地址以及DHCP唯一标识(DHCP Unique ID,简称DUID); Step 109, the new access router judges that the source address of the Fast Neighbor Advertisement (FNA) message is a global IPv6 address, generates a fast router announcement (FastRouter Advertisement, referred to as FRA) message carrying DHCPv6 server related information, and sends it to the mobile node; wherein, DHCPv6 The relevant information of the server may include: the MAC address of the DHCPv6 server, the IPv6 address, and the DHCP Unique ID (DHCP Unique ID, referred to as DUID);

步骤110、移动节点从DHCPv6服务器相关信息中提取DHCPv6服务器的地址,向DHCPv6服务器发送申请(Request)消息,申请地址配置信息;地址配置信息可包括:NCoA,DNS配置信息,网络时间协议(Network Time Protocol,简称NTP)服务器地址等; Step 110, mobile node extracts the address of DHCPv6 server from DHCPv6 server relevant information, sends application (Request) message to DHCPv6 server, applies for address configuration information; Address configuration information can comprise: NCoA, DNS configuration information, Network Time Protocol (Network Time Protocol, referred to as NTP) server address, etc.;

步骤111、DHCPv6服务器向移动节点返回携带地址配置信息的应答(Reply)消息; Step 111, the DHCPv6 server returns a response (Reply) message carrying address configuration information to the mobile node;

步骤112、移动节点根据地址配置信息进行地址配置。 Step 112, the mobile node performs address configuration according to the address configuration information. the

本实施例为预测式切换流程,并将基于NAR的TCoA有状态地址配置与基于DHCPv6服务器的NCoA有状态地址配置相结合;移动节点在接收到FBack后才离开前链路。本实施例中,新接入路由器直接从本地地址池中提取地址,将地址“临时过户”给移动节点,作为移动节点的临时转交地址,减少了切换延时;建立TCoA与前接入路由器的双向隧道,切换过程中家乡代理和通信对端节点仍能使用原来的转交地址与移动节点通信,保证了切换过程中数据传输的连续性;新接入路由器将DHCPv6服务器的相关信息告知移动节点,避免了DHCPv6服务器的搜索过程,并且新接入路由器发送快速路由器公告(FRA)消息不必等待一个随机时间,从而有效减少了有状态NCoA配置的时间。 This embodiment is a predictive handover process, and combines the NAR-based TCoA stateful address configuration with the DHCPv6 server-based NCoA stateful address configuration; the mobile node leaves the previous link only after receiving the FBack. In this embodiment, the new access router directly extracts the address from the local address pool, and "temporarily transfers" the address to the mobile node as the temporary care-of address of the mobile node, which reduces handover delay; Two-way tunnel, during the handover process, the home agent and the communication peer node can still use the original care-of address to communicate with the mobile node, which ensures the continuity of data transmission during the handover process; the new access router informs the mobile node of the relevant information of the DHCPv6 server, The search process of the DHCPv6 server is avoided, and the new access router does not have to wait for a random time to send a Fast Router Advertisement (FRA) message, thereby effectively reducing the time for stateful NCoA configuration. the

需要说明的是,本实施例中新接入路由器将DHCPv6服务器相关信息告知移动节点并不是依靠TCoA实现的;在现有的各种移动IP快速切换流程中,新接入路由器均可在快速路由器公告消息中携带DHCPv6服务器的相关信息,以使移动节点及时得到DHCPv6服务器的地址,而不必进行DHCPv6服务器的搜索,从而减少了有状态NCoA配置的时间。 It should be noted that in this embodiment, the new access router informs the mobile node of the relevant information of the DHCPv6 server without relying on TCoA; The announcement message carries the relevant information of the DHCPv6 server, so that the mobile node can obtain the address of the DHCPv6 server in time without searching for the DHCPv6 server, thereby reducing the time for stateful NCoA configuration. the

如图2所示,为本发明实施例的快速切换的地址配置方法第二流程图。本实施例为反应式快速切换,即移动节点在前链路并没有接收到FBack,因此,移动节点在接入新链路时,并没有TCoA,需要在接入新链路后,由新接入路由器为其分配。本实施例包括许下步骤: As shown in FIG. 2 , it is a second flow chart of the address configuration method for fast switching according to the embodiment of the present invention. This embodiment is a reactive fast handover, that is, the mobile node has not received FBack on the previous link. Therefore, when the mobile node accesses the new link, there is no TCoA. The ingress router assigns it. This embodiment includes following steps:

步骤201、移动节点接入新链路,向新接入路由器发送源地址为链路本地地址,并携带有快速绑定更新(FBU)消息的快速邻居公告(FNA)消息; Step 201, the mobile node accesses the new link, sends a source address to the new access router as a link-local address, and carries a Fast Neighbor Advertisement (FNA) message with a Fast Binding Update (FBU) message;

步骤202、新接入路由器判断快速邻居公告(FNA)消息的源地址为链 路本地地址,从本地地址池提取TCoA,生成携带TCoA及DHCPv6服务器相关信息的快速路由器公告(FRA)消息,向移动节点发送;其中,DHCPv6服务器的相关信息可包括:DHCPv6服务器的MAC地址、IPv6地址以及DHCP唯一标识(DHCP Unique ID,简称DUID);同时,将快速绑定更新(FBU)消息的源地址修改为TCoA,向前接入路由器发送,与前接入路由器建立TCoA到前接入路由器的双向隧道,移动节点通过该双向隧道接收目的地址为PCoA的数据包,发送源地址为PCoA的数据包; Step 202, new access router judges that the source address of Fast Neighbor Advertisement (FNA) message is the link-local address, extracts TCoA from the local address pool, generates the Fast Router Advertisement (FRA) message that carries TCoA and DHCPv6 server relevant information, to mobile Node sends; Wherein, the relevant information of DHCPv6 server can comprise: the MAC address of DHCPv6 server, IPv6 address and DHCP unique identification (DHCP Unique ID, be called for short DUID); Simultaneously, revise the source address of fast binding update (FBU) message to TCoA, sent to the forward access router, establishes a bidirectional tunnel from TCoA to the previous access router with the previous access router, the mobile node receives the data packet with the destination address as PCoA through the bidirectional tunnel, and sends the data packet with the source address as PCoA;

步骤203、移动节点从DHCPv6服务器相关信息中提取DHCPv6服务器的地址,向DHCPv6服务器发送申请(Request)消息,申请地址配置信息;地址配置信息可包括:NCoA,DNS配置信息,NTP服务器地址等; Step 203, the mobile node extracts the address of the DHCPv6 server from the relevant information of the DHCPv6 server, sends a Request message to the DHCPv6 server, and applies for address configuration information; the address configuration information may include: NCoA, DNS configuration information, NTP server address, etc.;

步骤204、DHCPv6服务器向移动节点返回携带地址配置信息的应答(Reply)消息; Step 204, the DHCPv6 server returns a response (Reply) message carrying address configuration information to the mobile node;

步骤205、移动节点根据地址配置信息进行地址配置。 Step 205, the mobile node performs address configuration according to the address configuration information. the

本实施例实现了反应式切换流程,将基于NAR的TCoA有状态地址配置与基于DHCPv6服务器的NCoA有状态地址配置相结合。新接入路由器接到FNA后,判断源地址类型,并在源地址为链路本地地址时,将为移动节点分配的TCoA与DHCPv6服务器相关信息一同携带在快速路由器公告(FRA)消息中告知移动节点;切换过程中采用TCoA,保证了切换过程中数据传输的连续性;新接入路由器将DHCPv6服务器的相关信息告知移动节点,避免了DHCPv6服务器的搜索过程,减少了有状态NCoA配置的时间。 This embodiment implements a reactive switching process, combining the NAR-based TCoA stateful address configuration with the DHCPv6 server-based NCoA stateful address configuration. After the new access router receives the FNA, it judges the type of the source address, and when the source address is a link-local address, it carries the TCoA assigned to the mobile node together with the relevant information of the DHCPv6 server in the Fast Router Advertisement (FRA) message to inform the mobile node Node; TCoA is used in the handover process to ensure the continuity of data transmission during the handover process; the new access router informs the mobile node of the relevant information of the DHCPv6 server, avoiding the search process of the DHCPv6 server and reducing the time for stateful NCoA configuration. the

快速路由器公告(FRA)消息的格式可如表1所示,和现有的路由器公告(RA)消息相比,增加了用来携带DHCPv6服务器相关信息的DHCP选项。 The format of the Fast Router Advertisement (FRA) message can be shown in Table 1. Compared with the existing Router Advertisement (RA) message, a DHCP option for carrying relevant information of the DHCPv6 server is added. the

        表1快速路由器公告消息格式 Table 1 Fast Router Advertisement Message Format

Figure G071C6547620070717D000101
Figure G071C6547620070717D000101

其中,Type字段表示消息的类型,待因特网数值分配机构(InternetAssigned Numbers Authority,简称IANA)确认。DHCP选项内容如下:OptionCode表示选项的类型,取值暂定为7,待IANA确认;Option Length表示选项的长度,单位是8字节的倍数;DHCP Server Link-layer Address是DHCPv6服务器的MAC地址;DHCP Server IPv6 Address是DHCP服务器的IPv6地址;DUID Length是DHCP服务器DUID的长度;DUID是DHCP服务器的DUID;由于DUID的长度不是固定的,所以需要Pad字段,加上一些填充使得整个选项的长度为8字节的倍数。其余字段的定义与取值与路由器公告(RouterAdvertisement,简称RA)消息完全相同,不再赘述。 Wherein, the Type field indicates the type of the message, which is to be confirmed by the Internet Assigned Numbers Authority (IANA for short). The content of the DHCP option is as follows: OptionCode indicates the type of the option, and the value is tentatively set to 7, to be confirmed by IANA; Option Length indicates the length of the option, and the unit is a multiple of 8 bytes; DHCP Server Link-layer Address is the MAC address of the DHCPv6 server; DHCP Server IPv6 Address is the IPv6 address of the DHCP server; DUID Length is the length of the DUID of the DHCP server; DUID is the DUID of the DHCP server; since the length of the DUID is not fixed, the Pad field is required, and some padding is added so that the length of the entire option is Multiples of 8 bytes. The definitions and values of the remaining fields are completely the same as those of the Router Advertisement (RA) message, and will not be repeated here. the

如图3所示,为本发明实施例的快速切换的地址配置方法的新接入路由器申请地址的方法流程图。图3所示实施例的方法包括如下步骤: As shown in FIG. 3 , it is a flowchart of a method for applying for an address by a new access router in the address configuration method for fast switching according to the embodiment of the present invention. The method of embodiment shown in Fig. 3 comprises the steps:

步骤301、向DHCPv6服务器为自己的某个或某些网络接口(可以是虚拟接口)申请多个地址; Step 301, apply for multiple addresses for one or some network interfaces (which can be virtual interfaces) to the DHCPv6 server;

步骤302、将申请的多个地址保存在本地地址池中。 Step 302, saving the applied for multiple addresses in the local address pool. the

本实施例申请地址的过程与切换过程是相对独立的,移动节点只在快速切换过程中使用TCoA,从而前接入路由器只需在地址池中维护少量的地址,可减少地址维护的开销;各接入路由器的地址统一由DHCPv6服务器分配,从而可避免发生地址冲突。 The process of applying for an address in this embodiment is relatively independent from the handover process, and the mobile node only uses TCoA in the fast handover process, so that the former access router only needs to maintain a small amount of addresses in the address pool, which can reduce the cost of address maintenance; The addresses of the access routers are uniformly assigned by the DHCPv6 server, thus avoiding address conflicts. the

地址池中的地址有两个状态,自由状态和关联状态。自由状态的地址可以分配给切换过来的移动节点,关联状态的地址已经分配给某个切换过来的移动节点。 The addresses in the address pool have two states, free state and associated state. The address in the free state can be assigned to the handover mobile node, and the address in the associated state has been assigned to a certain handover mobile node. the

无论是预测式切换流程还是反应式切换流程,前接入路由器都要为移动节点分配TCoA。在预测式切换流程中,TCoA通过前接入路由器发送给移动节点,而在反应式切换流程中,TCoA是在快速路由器公告消息中发送至移动节点的。 Whether it is a predictive handover process or a reactive handover process, the former access router must allocate a TCoA for the mobile node. In the predictive handover process, the TCoA is sent to the mobile node through the previous access router, while in the reactive handover process, the TCoA is sent to the mobile node in the fast router advertisement message. the

如图4所示,为本发明实施例的快速切换的地址配置方法的前接入路由器提取临时转交地址的流程图。图4所示实施例的方法包括如下步骤: As shown in FIG. 4 , it is a flow chart of extracting a temporary care-of address by the front access router of the address configuration method for fast handover according to the embodiment of the present invention. The method of embodiment shown in Fig. 4 comprises the steps:

步骤401、搜索本地地址池,判断是否有与移动节点关联的地址,若存在,执行步骤402,否则,执行步骤403; Step 401, search the local address pool, and judge whether there is an address associated with the mobile node, if it exists, executestep 402, otherwise, executestep 403;

步骤402、提取与移动节点关联的地址; Step 402, extracting the address associated with the mobile node;

步骤403、提取一个状态自由的地址,并将该地址与所述移动节点关联。 Step 403, extracting an address in a free state, and associating the address with the mobile node. the

新接入路由器在为移动节点提取地址时,先判断是否有与其关联的地址,从而可以避免重复的地址分配。 When the new access router extracts the address for the mobile node, it first judges whether there is an address associated with it, so that repeated address allocation can be avoided. the

例如,有时,前接入路由器已经为移动节点分配了TCoA,但是,移动节点还未接收到该TCoA,前链路就断开了;此时,移动节点接入新链路后向新接入路由器发送的快速邻居公告消息的源地址为链路本地地址,新接入路由器需要为移动节点提供TCoA;而新接入路由器的地址池中存在与移动 节点关联的地址,此时,新接入路由器从地址池中提取该与移动节点关联的TCoA即可,而不需再为移动节点重新分配TCoA。 For example, sometimes, the previous access router has allocated a TCoA for the mobile node, but the previous link is disconnected before the mobile node receives the TCoA; The source address of the Fast Neighbor Advertisement message sent by the router is the link-local address, and the new access router needs to provide the TCoA for the mobile node; and there is an address associated with the mobile node in the address pool of the new access router. The router only needs to extract the TCoA associated with the mobile node from the address pool, and does not need to re-allocate the TCoA for the mobile node. the

如果,移动节点在规定时间内没有切换过来,则取消TCoA和移动节点的关联,将TCoA的状态设为自由。 If the mobile node does not switch over within the specified time, the association between the TCoA and the mobile node is canceled, and the state of the TCoA is set as free. the

移动节点只在快速切换过程中使用TCoA。当快速切换过程中通过前接入路由器进行的分组转发完成后,移动节点将TCoA归还给新接入路由器。 Mobile nodes use TCoA only during fast handover. After the packet forwarding by the former access router in the fast handover process is completed, the mobile node returns the TCoA to the new access router. the

TCoA的回收至少可采用两种方式进行。一种是定时回收方式,移动节点在快速邻居公告消息中向新接入路由器报告双向隧道的生存时间,新接入路由器接收到快速邻居公告消息后启动定时器,定时器超期后,新接入路由器回收相应的TCoA,移动节点将TCoA从接口上删除。另一种是移动节点触发方式,移动节点完成NCoA到家乡代理和对端节点的绑定注册并且不再使用TCoA时,主动将TCoA从自己相应的接口上删除,并触发新接入路由器开始TCoA的回收过程。 TCoA recovery can be done in at least two ways. One is the timing recovery method. The mobile node reports the survival time of the bidirectional tunnel to the new access router in the fast neighbor advertisement message. After receiving the fast neighbor advertisement message, the new access router starts a timer. After the timer expires, the new access router The router reclaims the corresponding TCoA, and the mobile node deletes the TCoA from the interface. The other is the mobile node trigger mode. When the mobile node completes the binding registration of NCoA to the home agent and the peer node and no longer uses TCoA, it actively deletes TCoA from its corresponding interface and triggers the new access router to start TCoA. recycling process. the

如图5所示,为本发明实施例的快速切换的地址配置方法的临时转交地址回收方法第一流程图,图5所示实施例的方法包括如下步骤: As shown in Figure 5, it is the first flow chart of the temporary care-of address recovery method of the address configuration method for fast switching in the embodiment of the present invention, and the method of the embodiment shown in Figure 5 includes the following steps:

步骤501、移动节点向前接入路由器发送快速邻居通告(FNA)消息,该快速邻居公告(FNA)消息中携带有前接入路由器到TCoA的双向隧道的生存时间; Step 501, the mobile node sends a Fast Neighbor Advertisement (FNA) message to the forward access router, and the Fast Neighbor Advertisement (FNA) message carries the time-to-live of the bidirectional tunnel from the former access router to the TCoA;

步骤502、新接入路由器接收到快速邻居公告(FNA)消息后启动定时器; Step 502, the new access router starts the timer after receiving the Fast Neighbor Advertisement (FNA) message;

步骤503、定时器计时超过双向隧道的生存时间后,新接入路由器在本地子网内向全节点地址发送邻居公告(Neighbor Advertisement,简称NA)消息,并将本地地址池中TCoA的状态修改为自由状态;邻居公告(NA)消息的目标地址为新接入路由器的与TCoA对应的媒体访问控制(Media AccessControl,简称MAC)地址;与此同时,移动节点将TCoA从接口上删除。 Step 503, after the timer timing exceeds the life time of the bidirectional tunnel, the new access router sends a Neighbor Advertisement (Neighbor Advertisement, referred to as NA) message to the full node address in the local subnet, and modifies the state of the TCoA in the local address pool to free state; the target address of the neighbor advertisement (NA) message is the Media Access Control (Media Access Control, referred to as MAC) address corresponding to the TCoA of the new access router; meanwhile, the mobile node deletes the TCoA from the interface. the

如图6所示,为本发明实施例的快速切换的地址配置方法的临时转交地 址回收方法第二流程图,图6所示实施例的方法包括如下步骤: As shown in Figure 6, it is the second flow chart of the temporary care-of address recovery method of the address configuration method for fast switching in the embodiment of the present invention, and the method of the embodiment shown in Figure 6 includes the following steps:

步骤601、移动节点在完成NCoA到家乡代理及对端节点的绑定注册,并且不再使用TCoA时,将TCoA从接口上删除; Step 601, when the mobile node completes the binding registration of the NCoA to the home agent and the peer node, and no longer uses the TCoA, delete the TCoA from the interface;

步骤602、移动节点向新接入路由器发送临时转交地址回收触发消息; Step 602, the mobile node sends a temporary care-of address reclaim trigger message to the new access router;

步骤603、新接入路由器在本地子网内向全节点地址发送邻居公告(NA)消息,并将本地地址池中TCoA的状态修改为自由状态;邻居公告(NA)消息的目标地址为新接入路由器的与TCoA对应的MAC地址。 Step 603, the new access router sends a Neighbor Advertisement (NA) message to the full node address in the local subnet, and modifies the state of the TCoA in the local address pool to a free state; the target address of the Neighbor Advertisement (NA) message is the new access The router's MAC address corresponding to the TCoA. the

为了可以同时支持有状态地址配置以及无状态地址配置,可以修改代理公告路由器请求(RtSolPr)消息、代理路由器公告(PrRtAdv)消息、切换发起(HI)消息、切换应答(HAck)消息及快速邻居公告(FNA)消息等消息的消息头,在消息头中加入地址配置方式标识。移动节点和前接入路由器通过代理公告路由器请求(RtSolPr)消息及代理路由器公告(PrRtAdv)消息协商采用何种地址配置方式,前接入路由器通过切换发起(HI)消息通知新接入路由器采用的地址配置方式。新接入路由器可通过快速邻居公告(FNA)消息获知切换过来的移动节点采用的地址配置方式。 In order to support both stateful address configuration and stateless address configuration, the Proxy Advertisement Router Solicitation (RtSolPr) message, Proxy Router Advertisement (PrRtAdv) message, Handover Initiation (HI) message, Handover Acknowledgment (HAck) message and Fast Neighbor Advertisement can be modified (FNA) message header of messages such as messages, add address configuration mode identifier in the message header. The mobile node and the former access router negotiate which address configuration mode to adopt through the agent advertisement router solicitation (RtSolPr) message and the proxy router advertisement (PrRtAdv) message, and the former access router notifies the new access router through the handover initiation (HI) message Address configuration method. The new access router can learn the address configuration mode adopted by the handed over mobile node through a Fast Neighbor Advertisement (FNA) message. the

可在代理公告路由器请求(RtSolPr)消息、代理路由器公告(PrRtAdv)消息、切换发起(HI)消息、切换应答(HAck)消息及快速邻居公告(FNA)消息等消息的消息头的保留字段设置两个标识位。一个标识位,设为E,用于表示发送消息的移动节点、接入路由器或其它设备是否支持本发明实施例的有状态地址配置;例如,E=1表示支持本发明实施例的有状态地址配置,E=0表示不支持。另一个标识位,设为D,用于表示发送该消息的移动节点、接入路由器或其它设备希望采用何种地址配置方式;例如,D=1表示希望采用本发明实施例的有状态地址配置,D=0表示采用现有的无状态地址配置,如采用FMIPv6无状态地址配置。 Two reserved fields can be set in the message header of the Proxy Advertisement Router Solicitation (RtSolPr) message, Proxy Router Advertisement (PrRtAdv) message, Handover Initiation (HI) message, Handover Acknowledgment (HAck) message and Fast Neighbor Advertisement (FNA) message. identification bit. An identification bit, set as E, is used to indicate whether the mobile node, access router or other equipment that sends the message supports the stateful address configuration of the embodiment of the present invention; for example, E=1 represents the stateful address that supports the embodiment of the present invention Configuration, E=0 means not supported. Another identification bit, set to D, is used to indicate which address configuration method the mobile node, access router or other device that sends the message wishes to adopt; for example, D=1 indicates that the stateful address configuration of the embodiment of the present invention is expected to be adopted , D=0 means adopting the existing stateless address configuration, such as adopting FMIPv6 stateless address configuration. the

如果移动节点或者接入路由器不支持本发明实施例的IPv6快速切换的地址配置方法,它们会忽略报文头标中的保留字段,以FMIPv6协议规定的方 式处理收到的消息,这样切换过程就退还为FMIPv6;否则根据代理路由器公告(PrRtAdv)消息报文头中D标志位来确定采用何种地址配置方式。 If the mobile node or the access router do not support the address configuration method of the IPv6 fast handover in the embodiment of the present invention, they will ignore the reserved field in the message header, and process the received message in the manner prescribed by the FMIPv6 protocol, so that the handover process Just return to FMIPv6; Otherwise, determine which address configuration method to adopt according to the D flag bit in the message header of the proxy router advertisement (PrRtAdv) message. the

为了增强安全性,可在地址配置过程中引入DHCPv6认证,移动节点向DHCPv6服务器请求地址配置信息之前,移动节点先与DHCPv6服务器进行认证。 In order to enhance security, DHCPv6 authentication can be introduced in the address configuration process. Before the mobile node requests address configuration information from the DHCPv6 server, the mobile node first authenticates with the DHCPv6 server. the

移动节点需要与DHCPv6服务器端共享一组密钥,通过这组密钥对于移动节点和服务器之间的信令进行完整性保护,从而确保这些信令是从可信任的对方发出的。 The mobile node needs to share a group of keys with the DHCPv6 server, through which the integrity protection of the signaling between the mobile node and the server is carried out, so as to ensure that these signalings are sent from a trusted counterpart. the

双方可以根据预先(动态或者静态)共享的一组密钥,派生出移动节点-DHCPv6服务器密钥对,由于密钥不能在移动节点和DHCPv6服务器之间传送,则必须存在一个机制,将派生这个密钥的信息在DHCPv6服务器和移动节点之间传递,便于双方采用共同的方法以及信息来派生该密钥对。 The two parties can derive the mobile node-DHCPv6 server key pair based on a group of keys shared in advance (dynamically or statically). Since the key cannot be transmitted between the mobile node and the DHCPv6 server, there must be a mechanism that will derive this The key information is transmitted between the DHCPv6 server and the mobile node, so that both parties can use a common method and information to derive the key pair. the

一种做法就是直接在移动节点和DHCPv6服务器中预先存一些密钥对,那么DHCPv6服务器根据DUID选择一个密钥标识,并且将密钥标识携带在公告(Advertise)消息中返回。移动节点根据该密钥标识对应的密钥采用双方约定的加密算法,例如HMAC-MD5算法,计算出认证信息。 One approach is to directly pre-store some key pairs in the mobile node and the DHCPv6 server, then the DHCPv6 server selects a key identifier according to the DUID, and returns the key identifier in an Advertise message. According to the key corresponding to the key identifier, the mobile node uses an encryption algorithm agreed upon by both parties, such as the HMAC-MD5 algorithm, to calculate the authentication information. the

当然不排除其他的方法,例如移动节点和DHCPv6服务器或者控制DHCP服务器的AAA设备上存在移动节点和上述设备的共享密钥,然后根据相应的算法和随机数,生成移动节点-DHCPv6服务器的密钥对,那么只需要在公告(Advertise)消息或者其他DHCPv6请求之前的信令完成将这个随机数从DHCPv6服务器下发到移动节点,由其移动节点生成这个移动节点-DHCPv6服务器的密钥对。 Of course, other methods are not excluded. For example, there is a shared key between the mobile node and the above-mentioned devices on the mobile node and the DHCPv6 server or the AAA device controlling the DHCP server, and then according to the corresponding algorithm and random number, generate the key of the mobile node-DHCPv6 server Yes, then it is only necessary to complete the signaling before the Advertise message or other DHCPv6 requests to deliver the random number from the DHCPv6 server to the mobile node, and the mobile node generates the key pair of the mobile node-DHCPv6 server. the

在得到密钥后,移动节点和DHCPv6服务器可由密钥以及消息中的信息一起按照某种算法生成认证信息,一旦消息中的信息或者这个认证信息在传递过程中被窜改,那么在接收端利用密钥以及收到的消息中的信息按照该算法再计算认证信息的时候就会出现计算出来的认证信息和传递过来的认证信 息不一致,此时就可以认为接收到的信息的完整性受到破坏而不再进行处理了。 After obtaining the key, the mobile node and the DHCPv6 server can use the key and the information in the message to generate authentication information according to a certain algorithm. key and the information in the received message according to the algorithm to calculate the authentication information, the calculated authentication information will be inconsistent with the passed authentication information. At this time, it can be considered that the integrity of the received information is damaged and the No longer processed. the

对于DHCPv6服务器来说,DHCPv6服务器地址池中的地址是有限的资源,也需要进行回收以便重新使用。可采用主动与被动结合的方式来实现对分配给切换过来的移动节点的地址的回收。被动方式是为DHCPv6服务器设置较小的地址租期,以及时发现那些已经切换出去的家乡网络不是本地网络的移动节点,收回分配给它们的地址;主动方式是切换出去的MN在完成切换、断开转发隧道后主动向前一个网络的DHCPv6服务器发送释放(Release)消息,释放地址。 For a DHCPv6 server, addresses in the address pool of the DHCPv6 server are limited resources and need to be recycled for reuse. A combination of active and passive methods can be used to reclaim the address allocated to the handover mobile node. The passive way is to set a smaller address lease period for the DHCPv6 server, and to discover those MNs whose home network is not the local network that has been switched out in time, and take back the addresses assigned to them; After opening the forwarding tunnel, actively send a Release message to the DHCPv6 server of the previous network to release the address. the

如图7所示,为本发明实施例的快速切换的地址配置方法的第三流程图。本实施例中,移动节点及接入路由器均支持本发明实施例的地址配置方法,并且采用有状态地址配置的预测式切换流程。本实施例包括如下步骤: As shown in FIG. 7 , it is a third flowchart of the address configuration method for fast switching according to the embodiment of the present invention. In this embodiment, both the mobile node and the access router support the address configuration method of the embodiment of the present invention, and adopt a predictive handover process of stateful address configuration. This embodiment comprises the following steps:

步骤701、新接入路由器创建地址池,向DHCPv6服务器发送申请(Request)消息,申请多个地址; Step 701, the new access router creates an address pool, sends a Request message to the DHCPv6 server, and applies for multiple addresses;

步骤702、DHCPv6服务器向新接入路由器返回应答(Reply)消息,为新接入路由器提供多个地址,新接入路由器将申请的多个地址保存到地址池中; Step 702, the DHCPv6 server returns a response (Reply) message to the new access router to provide multiple addresses for the new access router, and the new access router saves the multiple addresses applied for in the address pool;

步骤703、移动节点向前接入路由器发送代理公告路由器请求(RtSolPr)消息,该消息的标识位E=1,D=1,表明支持本发明实施例的地址配置方式,并且希望采用有状态地址配置; Step 703, the mobile node sends an agent announcement router request (RtSolPr) message to the forward access router, and the identification bits E=1 and D=1 of the message indicate that the address configuration method of the embodiment of the present invention is supported, and that a stateful address is expected to be adopted configuration;

步骤704、前接入路由器向移动节点返回代理路由器公告(PrRtAdv)消息,该消息的标识位E=1,D=1,表明支持本发明实施例的地址配置方式,采用有状态地址配置; Step 704, the front access router returns the agent router advertisement (PrRtAdv) message to the mobile node, the identification bit E=1 of the message, D=1, shows that the address configuration mode of the embodiment of the present invention is supported, and the stateful address configuration is adopted;

步骤705、移动节点向前接入路由器发送快速绑定更新(FBU)消息; Step 705, the mobile node sends a Fast Binding Update (FBU) message to the forward access router;

步骤706、前接入路由器向新接入路由器发送切换发起(HI)消息,该消息的标识位E=1,D=1,表明采用有状态地址配置; Step 706, the previous access router sends a handover initiation (HI) message to the new access router, and the identification bits E=1 and D=1 of the message indicate that a stateful address configuration is adopted;

步骤707、新接入路由器从本地地址池提取TCoA,并携带在切换应答(HAck)消息向前接入路由器返回;该消息的标识位E=1,D=1,表明采用有状态地址配置; Step 707, the new access router extracts the TCoA from the local address pool, and carries it back to the forward access router in the handover response (HAck) message; the flag E=1, D=1 of the message indicates that a stateful address configuration is adopted;

在提取TCoA时,新接入路由器搜索本地地址池,判断是否有与移动节点关联的地址,若存在,则提取该与移动节点关联的地址,否则,提取一个状态自由的地址,并将该地址与所述移动节点关联; When extracting TCoA, the new access router searches the local address pool to determine whether there is an address associated with the mobile node. If it exists, extract the address associated with the mobile node; associated with said mobile node;

步骤708、前接入路由器建立到TCoA的双向隧道,前接入路由器向移动节点和新接入路由器返回携带TCoA的快速绑定应答(Fast BondingAcknowledge,简称FBack)消息; Step 708, the previous access router establishes a bidirectional tunnel to the TCoA, and the previous access router returns a Fast Bonding Acknowledge (FBack for short) message carrying the TCoA to the mobile node and the new access router;

步骤709、前链路断开,前接入路由器将发送至移动节点的数据包发送至新接入路由器; Step 709, the previous link is disconnected, and the previous access router sends the data packet sent to the mobile node to the new access router;

步骤710、移动节点接入新链路后,向新接入路由器发送源地址为TCoA且携带双向隧道生存时间的快速邻居公告(FNA)消息,该消息的标识位E=1,D=1,表明采用有状态地址配置; Step 710, after the mobile node accesses the new link, it sends a fast neighbor announcement (FNA) message whose source address is TCoA and carries the bidirectional tunnel lifetime to the new access router, the identification bits E=1, D=1 of the message, Indicates the use of stateful address configuration;

步骤711、新接入路由器启动定时器,判断快速邻居公告(FNA)消息的源地址为全局IPv6地址,生成携带DHCPv6服务器相关信息的快速路由器公告(FRA)消息,向移动节点发送;其中,DHCPv6服务器的相关信息可包括:DHCPv6服务器的MAC地址、IPv6地址以及DHCP唯一标识(DHCPUnique ID,简称DUID); Step 711, the new access router starts a timer, judges that the source address of the Fast Neighbor Advertisement (FNA) message is a global IPv6 address, generates a Fast Router Advertisement (FRA) message carrying DHCPv6 server related information, and sends it to the mobile node; wherein, DHCPv6 The relevant information of the server may include: the MAC address of the DHCPv6 server, the IPv6 address, and the DHCP Unique ID (DHCPUnique ID, referred to as DUID);

步骤712、移动节点从DHCPv6服务器相关信息中提取DHCPv6服务器的地址,向DHCPv6服务器发送包含认证选项的DHCPv6请求(Solicit)消息; Step 712, the mobile node extracts the address of the DHCPv6 server from the relevant information of the DHCPv6 server, and sends a DHCPv6 request (Solicit) message that includes an authentication option to the DHCPv6 server;

步骤713、前接入路由器向移动节点转发数据包; Step 713, the front access router forwards the data packet to the mobile node;

步骤714、DHCPv6服务器为移动节点选择一密钥,向移动节点返回携带该密钥并包含认证选项的DHCPv6公告(Advertise)消息; Step 714, the DHCPv6 server selects a key for the mobile node, and returns a DHCPv6 announcement (Advertise) message that carries the key and includes an authentication option to the mobile node;

步骤715、移动节点向DHCPv6服务器发送包含认证选项的DHCPv6申 请(Request)消息,申请地址配置信息;地址配置信息可包括:NCoA,DNS配置信息,NTP服务器地址等;认证选项中携带有移动节点根据密钥生成的认证信息;步骤716、DHCPv6服务器对认证信息进行认证,认证通过后,向移动节点返回携带地址配置信息并包含认证选项的DHCPv6应答(Reply)消息;移动节点根据地址配置信息进行地址配置; Step 715, the mobile node sends a DHCPv6 application (Request) message that includes authentication options to the DHCPv6 server, and applies for address configuration information; the address configuration information may include: NCoA, DNS configuration information, NTP server address, etc.; the authentication option carries the mobile node The authentication information generated according to the key; step 716, the DHCPv6 server authenticates the authentication information, and after the authentication is passed, returns the DHCPv6 response (Reply) message that carries the address configuration information and includes the authentication option to the mobile node; the mobile node proceeds according to the address configuration information address configuration;

步骤717、定时器超期,新接入路由器在本地子网内向全节点地址发送邻居公告(NA)消息,并将本地地址池中TCoA的状态修改为自由状态;邻居公告(NA)消息的目标地址为新接入路由器的与TCoA对应的MAC地址。 Step 717, the timer expires, and the new access router sends a neighbor announcement (NA) message to the full node address in the local subnet, and the state of the TCoA in the local address pool is modified to a free state; the target address of the neighbor announcement (NA) message It is the MAC address corresponding to the TCoA of the new access router. the

本实施例实现了预测式切换过程的有状态地址配置方式和无状态地址配置方式的自动选择;切换过程中采用TCoA,能够更好的保证切换过程中数据传输的连续性;采用定时方式进行TCoA的回收,能够及时将不用的TCoA回收已分配给其他的移动节点使用,新接入路由器只需维护少量地址,减小了地址维护开销;新接入路由器将DHCPv6服务器的相关信息告知移动节点,避免了DHCPv6服务器的搜索过程,减少了有状态NCoA配置的时间;移动节点与DHCPv6进行认证,增强了安全性。 This embodiment realizes the automatic selection of the stateful address configuration mode and the stateless address configuration mode in the predictive handover process; TCoA is used in the handover process, which can better ensure the continuity of data transmission in the handover process; TCoA is performed in a timing manner The recovery of unused TCoA can be allocated to other mobile nodes in time. The new access router only needs to maintain a small number of addresses, which reduces the address maintenance cost; the new access router informs the mobile node of the relevant information of the DHCPv6 server. The search process of the DHCPv6 server is avoided, and the time for stateful NCoA configuration is reduced; the mobile node authenticates with DHCPv6, which enhances security. the

如图8所示,为本发明实施例的快速切换的地址配置方法的第四流程图。本实施例中,移动节点及接入路由器均支持本发明实施例的地址配置方法,并且采用有状态地址配置的反应式切换流程。移动节点和DHCPv6服务器中预先存储有一些密钥对,DHCPv6服务器根据DUID选择一个密钥标识,并将密钥标识携带在公告消息中返回,移动节点根据该密钥标识对应的密钥采用预先设定的加密算法计算出认证信息。本实施例包括如下步骤: As shown in FIG. 8 , it is a fourth flowchart of the address configuration method for fast switching according to the embodiment of the present invention. In this embodiment, both the mobile node and the access router support the address configuration method of the embodiment of the present invention, and adopt a reactive handover process of stateful address configuration. Some key pairs are pre-stored in the mobile node and the DHCPv6 server. The DHCPv6 server selects a key identifier according to the DUID, and returns the key identifier in the announcement message. The mobile node uses the preset key according to the key identifier. The authentication information is calculated by a specified encryption algorithm. This embodiment comprises the following steps:

步骤801、新接入路由器创建地址池,向DHCPv6服务器申请多个地址; Step 801, the new access router creates an address pool, and applies for multiple addresses from the DHCPv6 server;

步骤802、DHCPv6服务器向新接入路由器返回多个地址,新接入路由器将申请的多个地址保存到地址池中; Step 802, the DHCPv6 server returns multiple addresses to the new access router, and the new access router saves the applied multiple addresses in the address pool;

步骤803、移动节点向前接入路由器发送代理公告路由器请求(RtSolPr)消息,该消息的标识位E=1,D=1,表明支持本发明实施例的地址配置方式, 并且希望采用有状态地址配置; Step 803, the mobile node sends an agent advertisement router request (RtSolPr) message to the forward access router, and the identification bit E=1 of the message, D=1, shows that the address configuration mode of the embodiment of the present invention is supported, and it is desired to adopt a stateful address configuration;

步骤804、前接入路由器向移动节点返回代理路由器公告(PrRtAdv)消息,该消息的标识位E=1,D=1,表明支持本发明实施例的地址配置方式,采用有状态地址配置;之后,前链路断开; Step 804, the front access router returns a proxy router announcement (PrRtAdv) message to the mobile node, and the identification bits E=1 and D=1 of the message indicate that the address configuration method of the embodiment of the present invention is supported, and the stateful address configuration is adopted; , the former link is disconnected;

步骤805、移动节点接入新链路,向新接入路由器发送源地址为链路地址并携带有快速绑定更新(FBU)消息的快速邻居公告(FNA)消息,该消息的标识位E=1,D=1,表明采用有状态地址配置; Step 805, the mobile node accesses the new link, and sends the source address to the new access router as the link address and carries the Fast Neighbor Advertisement (FNA) message of the Fast Binding Update (FBU) message, and the flag E= of themessage 1, D=1, indicating that stateful address configuration is adopted;

步骤806、新接入路由器判断快速邻居公告(FNA)消息的源地址为链路本地地址,从本地地址池提取TCoA,生成携带TCoA及DHCPv6服务器相关信息的快速路由器公告(FRA)消息,向移动节点发送;其中,DHCPv6服务器的相关信息可包括:DHCPv6服务器的MAC地址、IPv6地址以及DHCP唯一标识(DHCP Unique ID,简称DUID); Step 806, the new access router judges that the source address of the Fast Neighbor Advertisement (FNA) message is a link-local address, extracts the TCoA from the local address pool, generates a Fast Router Advertisement (FRA) message that carries TCoA and DHCPv6 server related information, and sends to the mobile Node sends; Wherein, the relevant information of DHCPv6 server can comprise: the MAC address of DHCPv6 server, IPv6 address and DHCP unique identification (DHCP Unique ID, be called for short DUID);

在提取TCoA时,新接入路由器搜索本地地址池,判断是否有与移动节点关联的地址,若存在,则提取该与移动节点关联的地址,否则,提取一个状态自由的地址,并将该地址与所述移动节点关联; When extracting TCoA, the new access router searches the local address pool to determine whether there is an address associated with the mobile node. If it exists, extract the address associated with the mobile node; associated with said mobile node;

步骤807、新接入路由器将快速绑定更新(FBU)消息的源地址修改为TCoA,向前接入路由器发送; Step 807, the new access router revises the source address of the Fast Binding Update (FBU) message to TCoA, and sends it forward to the access router;

步骤808、前接入路由器建立到TCoA的双向隧道,并且向移动节点返回快速绑定应答(Fast Bonding Acknowledge,简称FBack)消息; Step 808, the former access router establishes a bidirectional tunnel to the TCoA, and returns a Fast Bonding Acknowledge (FBack for short) message to the mobile node;

步骤809-步骤810、前接入路由器通过前接入路由器到TCoA的双向隧道向移动节点转发数据; Step 809-step 810, the former access router forwards data to the mobile node through the bidirectional tunnel from the former access router to the TCoA;

步骤811、移动节点从DHCPv6服务器相关信息中提取DHCPv6服务器的地址,向DHCPv6服务器发送包含认证选项的DHCPv6请求(Solicit)消息; Step 811, the mobile node extracts the address of the DHCPv6 server from the relevant information of the DHCPv6 server, and sends a DHCPv6 request (Solicit) message that includes an authentication option to the DHCPv6 server;

步骤812、DHCPv6服务器为移动节点选择一密钥标识,向移动节点返回携带该密钥标识并包含认证选项的DHCPv6公告(Advertise)消息; Step 812, the DHCPv6 server selects a key identifier for the mobile node, and returns a DHCPv6 announcement (Advertise) message that carries the key identifier and includes authentication options to the mobile node;

步骤813、移动节点根据密钥标识对应的密钥采用预先设定的加密算法,如HMAC-MD5算法,计算出认证信息,将认证信息携带于认证选项中,向DHCPv6服务器发送包含认证选项的DHCPv6申请(Request)消息,申请地址配置信息;地址配置信息可包括:NCoA,DNS配置信息,NTP服务器地址等; Step 813, the mobile node uses a preset encryption algorithm, such as the HMAC-MD5 algorithm, to calculate the authentication information according to the key corresponding to the key identifier, carries the authentication information in the authentication option, and sends a DHCPv6 message containing the authentication option to the DHCPv6 server. Application (Request) message, applying for address configuration information; address configuration information may include: NCoA, DNS configuration information, NTP server address, etc.;

步骤814、DHCPv6服务器对认证信息进行认证,认证通过后,向移动节点返回携带地址配置信息并包含认证选项的DHCPv6应答(Reply)消息;移动节点根据地址配置信息进行地址配置; Step 814, the DHCPv6 server authenticates the authentication information, and after passing the authentication, returns a DHCPv6 response (Reply) message that carries address configuration information and includes authentication options to the mobile node; the mobile node performs address configuration according to the address configuration information;

步骤815、移动节点完成NCoA到家乡代理和对端节点的绑定注册并不再使用TCoA时,从自己的接口上删除TCoA,并向新接入路由器发送临时转交地址回收触发消息; Step 815, when the mobile node completes the binding registration of the NCoA to the home agent and the peer node and no longer uses the TCoA, delete the TCoA from its own interface, and send a temporary care-of address recovery trigger message to the new access router;

步骤816、新接入路由器在本地子网内向全节点地址发送邻居公告(NA)消息,并将本地地址池中TCoA的状态修改为自由状态;邻居公告(NA)消息的目标地址为新接入路由器的与TCoA对应的MAC地址。 Step 816, the new access router sends a Neighbor Advertisement (NA) message to the full node address in the local subnet, and modifies the state of the TCoA in the local address pool to a free state; the target address of the Neighbor Advertisement (NA) message is the new access The router's MAC address corresponding to the TCoA. the

本实施例实现了反应式切换过程的有状态地址配置方式和无状态地址配置方式的自动选择;切换过程中采用TCoA,能够更好的保证切换过程中数据传输的连续性;采用移动节点触发式的TCoA的回收,能够及时将移动节点不再使用的TCoA回收;新接入路由器只需维护少量地址,减小了地址维护开销;新接入路由器将DHCPv6服务器的相关信息告知移动节点,避免了DHCPv6服务器的搜索过程,减少了有状态NCoA配置的时间;移动节点与DHCPv6进行认证,增强了安全性。 This embodiment realizes the automatic selection of the stateful address configuration mode and the stateless address configuration mode in the reactive handover process; TCoA is used in the handover process, which can better ensure the continuity of data transmission in the handover process; The recovery of the TCoA can timely recover the TCoA no longer used by the mobile node; the new access router only needs to maintain a small number of addresses, which reduces the address maintenance cost; the new access router informs the mobile node of the relevant information of the DHCPv6 server, avoiding The search process of the DHCPv6 server reduces the time for stateful NCoA configuration; the mobile node authenticates with DHCPv6 to enhance security. the

如图9所示,为本发明实施例的快速切换的地址配置系统结构示意图。移动节点10从前接入路由器20切换到新接入路由器30。前接入路由器20与移动节点协商地址配置方式,在采用有状态地址配置时,为移动节点10向新接入路由器30请求TCoA,并将TCoA发送至移动节点10;新接入路由器30维护地址池,为移动节点10提供TCoA,并为移动节点10提供DHCPv6 服务器的相关信息。DHCPv6服务器40用于维护管理相应子网内的IPv6地址,该DHCPv6服务器40为新接入路由器30提供地址以便新接入路由器30建立地址池,并为移动节点10提供NCoA。 As shown in FIG. 9 , it is a schematic structural diagram of an address configuration system for fast switching according to an embodiment of the present invention. The mobile node 10 is handed over from the previous access router 20 to the new access router 30 . The previous access router 20 negotiates with the mobile node on the address configuration method. When using stateful address configuration, the mobile node 10 requests a TCoA from the new access router 30, and sends the TCoA to the mobile node 10; the new access router 30 maintains the address Pool, provides TCoA for mobile node 10, and provides relevant information of DHCPv6 server for mobile node 10. The DHCPv6 server 40 is used to maintain and manage IPv6 addresses in the corresponding subnet. The DHCPv6 server 40 provides addresses for the new access router 30 so that the new access router 30 can establish an address pool, and provides NCoA for the mobile node 10 . the

新接入路由器30维护本地的地址池,地址池中的地址有两个状态,自由状态和关联状态。自由状态的地址可以分配给切换过来的移动节点10,关联状态的地址已经分配给某个切换过来的移动节点10。新接入路由器30为切换过来的移动节点10分配TCoA。移动节点10在快速切换过程中使用TCoA,当快速切换过程中通过PAR转发的数据转发完成后,移动节点10将TCoA归还给新接入路由器30。 The new access router 30 maintains a local address pool, and the addresses in the address pool have two states, free state and associated state. The address in the free state can be allocated to the mobile node 10 that is handed over, and the address in the associated state has been allocated to a certain mobile node 10 that is switched over. The new access router 30 allocates a TCoA for the handed over mobile node 10 . The mobile node 10 uses the TCoA during the fast handover process, and returns the TCoA to the new access router 30 after the data forwarded through the PAR is completed during the fast handover process. the

本实施例中,由于新接入路由器30提供TCoA,而并非NCoA,移动节点10在切换完成后,会将TCoA归还新接入路由器30,因此新接入路由器30只需在地址池中维护少量的地址,减少了地址维护的开销;新接入路由器30将地址池中的地址“临时过户”给移动节点10,作为移动节点10的临时转交地址,保证了切换过程中数据传输的连续性;新接入路由器30将DHCPv6服务器40的相关信息告知移动节点10,避免了DHCPv6服务器的搜索过程,减少了有状态NCoA配置的时间。 In this embodiment, since the new access router 30 provides TCoA instead of NCoA, the mobile node 10 will return the TCoA to the new access router 30 after the handover is completed, so the new access router 30 only needs to maintain a small number of addresses in the address pool. address, reducing the overhead of address maintenance; the new access router 30 "temporarily transfers" the address in the address pool to the mobile node 10 as the temporary care-of address of the mobile node 10, ensuring the continuity of data transmission during the handover process; The new access router 30 informs the mobile node 10 of the relevant information of the DHCPv6 server 40, avoiding the search process of the DHCPv6 server and reducing the time for stateful NCoA configuration. the

如图10所示,为本发明实施例的接入路由器第一结构示意图。接收模块21用于接收其他路由器或移动节点等发送的消息。发送模块22用于向其他路由器或移动节点等发送消息。确定模块23用于在接收模块21接收到移动节点发送的携带有地址配置方式标识的代理公告路由器请求(RtSolPr)消息后,根据该消息中的地址配置方式标识确定采用无状态地址配置方式或有状态地址配置方式。在选择了地址配置方式后,即可根据选择的地址配置方式进行有状态或无状态地址配置了。本实施例实现了有状态地址配置与无状态地址配置的兼容。 As shown in FIG. 10 , it is a schematic diagram of a first structure of an access router according to an embodiment of the present invention. The receivingmodule 21 is used for receiving messages sent by other routers or mobile nodes. The sendingmodule 22 is used to send messages to other routers or mobile nodes. The determiningmodule 23 is used to determine whether to use a stateless address configuration method or a stateful address configuration method according to the address configuration method identifier in the message after the receivingmodule 21 receives the agent advertisement router request (RtSolPr) message carrying the address configuration mode identifier sent by the mobile node. State address configuration mode. After selecting the address configuration method, you can perform stateful or stateless address configuration according to the selected address configuration method. This embodiment realizes the compatibility between stateful address configuration and stateless address configuration. the

如图11所示,为本发明实施例的接入路由器第二结构示意图。接收模块31用于接收其他路由器或移动节点等发送的消息。发送模块32用于向其他 路由器或移动节点等发送消息。提取模块33,用于在接收到切换发起(HI)消息后,从本地地址池提取临时转交地址。生成模块34用于生成携带有临时转交地址的切换应答(HAck)消息,并通过发送模块32发送。本实施例中,接入路由器从本地地址池中提取地址,将地址“临时过户”给移动节点,作为移动节点的临时转交地址,减小了切换延时。 As shown in FIG. 11 , it is a schematic diagram of a second structure of an access router according to an embodiment of the present invention. The receivingmodule 31 is used for receiving messages sent by other routers or mobile nodes. The sendingmodule 32 is used to send messages to other routers or mobile nodes. The extractingmodule 33 is configured to extract the temporary care-of address from the local address pool after receiving the Handover Initiate (HI) message. The generatingmodule 34 is configured to generate a handover acknowledgment (HAck) message carrying a temporary care-of address, and send it through the sendingmodule 32 . In this embodiment, the access router extracts the address from the local address pool, and "temporarily transfers" the address to the mobile node as the temporary care-of address of the mobile node, which reduces handover delay. the

如图12所示,为本发明实施例的接入路由器第三结构示意图。本实施例在图11所示实施例的基础上,进一步加入了地址申请模块35、地址类型判断模块36、快速路由器公告模块37及修改模块38。 As shown in FIG. 12 , it is a schematic diagram of a third structure of an access router according to an embodiment of the present invention. Based on the embodiment shown in FIG. 11 , this embodiment further adds anaddress application module 35 , an addresstype judgment module 36 , a fastrouter announcement module 37 and amodification module 38 . the

地址申请模块35用于向DHCPv6服务器申请多个地址,并将申请到的多个地址保存在地址池中。在地址池的地址数量不足以满足切换需要时,可继续由地址申请模块35向DHCPv6服务器申请更多的地址,以备使用。 Theaddress application module 35 is configured to apply for multiple addresses from the DHCPv6 server, and store the multiple applied addresses in the address pool. When the number of addresses in the address pool is insufficient to meet the switching needs, theaddress application module 35 can continue to apply for more addresses from the DHCPv6 server for use. the

地址类型判断模块36用于判断接收到的快速邻居公告(FNA)消息源地址的类型。快速路由器公告模块37,用于在源地址为全局IPv6地址时生成携带有DHCPv6服务器相关信息的快速路由器公告(FRA)消息,并在源地址为链路本地地址时生成携带有TCoA及DHCPv6服务器相关信息的快速路由器公告(FRA)消息;快速路由公告(FRA)消息的格式可如表1所示。通过将DHCPv6服务器的相关信息通过快速路由器公告(FRA)消息通知刚刚接入的移动节点,移动节点不必再去搜索DHCPv6服务器,避免了DHCPv6服务器的搜索过程,减少了有状态地址配置的时间。 The addresstype judging module 36 is used for judging the type of the source address of the received Fast Neighbor Advertisement (FNA) message. The fastrouter announcement module 37 is used to generate a fast router announcement (FRA) message that carries DHCPv6 server-related information when the source address is a global IPv6 address, and generates a message that carries TCoA and DHCPv6 server-related information when the source address is a link-local address. Fast Router Advertisement (FRA) message of the information; the format of the Fast Router Advertisement (FRA) message may be shown in Table 1. By notifying the newly connected mobile node of the relevant information of the DHCPv6 server through the Fast Router Advertisement (FRA) message, the mobile node does not need to search for the DHCPv6 server, avoids the search process of the DHCPv6 server, and reduces the time for stateful address configuration. the

修改模块38用于在快速邻居公告(FNA)消息源地址为链路本地地址时,将快速邻居公告(FNA)消息中携带的快速绑定更新(FBU)消息的源地址修改为TCoA,并通过发送模块32发送。 Modification module 38 is used for revising the source address of the Fast Binding Update (FBU) message carried in the Fast Neighbor Advertisement (FNA) message to TCoA when the source address of the Fast Neighbor Advertisement (FNA) message is a link-local address, and by The sendingmodule 32 sends. the

在移动节点未在前链路获得TCoA时,接入路由器能够为移动节点提供切换过程中使用的TCoA,并将快速绑定更新(FBU)消息的源地址修改为TCoA,将TCoA通知其他路由器,使移动节点与家乡代理及对端节点可以通过前接入路由器到TCoA的双向隧道传输数据,从而使切换过程的数据传输 具有较好的连续性。 When the mobile node does not obtain TCoA on the previous link, the access router can provide the mobile node with the TCoA used in the handover process, modify the source address of the fast binding update (FBU) message to TCoA, and notify other routers of the TCoA, The mobile node, the home agent and the peer node can transmit data through the two-way tunnel from the front access router to the TCoA, so that the data transmission during the handover process has better continuity. the

如图13所示,为本发明实施例的接入路由器第四结构示意图。在图12所示实施例的基础上,本实施例的接入路由器进一步通过临时转交地址回收模块39a进行TCoA的回收。在回收临时转交地址时,该模块通过发送模块32在本地子网内向全节点地址发送邻居公告(NA)消息,邻居公告(NA)消息的目标地址为与TCoA对应的MAC地址。至少可以通过两种方式触发TCoA的回收,本实施例中,设有定时器39b,在接收到快速邻居公告(FNA)消息时,定时器39b启动计时,定时期限为快速邻居公告(RNA)消息携带的生存时间。当定时器39b计时超期后,通知临时转交地址回收模块39a回收相应TCoA。 As shown in FIG. 13 , it is a schematic diagram of a fourth structure of an access router according to an embodiment of the present invention. On the basis of the embodiment shown in FIG. 12 , the access router of this embodiment further recovers the TCoA through the temporary care-ofaddress recovery module 39 a. When recovering the temporary care-of address, the module sends a Neighbor Advertisement (NA) message to the address of all nodes in the local subnet through the sendingmodule 32, and the target address of the Neighbor Advertisement (NA) message is the MAC address corresponding to the TCoA. Can trigger the reclaiming of TCoA by two kinds of modes at least, in the present embodiment, be provided withtimer 39b, when receiving Fast Neighbor Advertisement (FNA) message,timer 39b starts timing, timing period is Fast Neighbor Advertisement (RNA) message carry survival time. When thetimer 39b expires, the temporary care-ofaddress recovery module 39a is notified to recover the corresponding TCoA. the

本实施例中,临时转交地址回收模块38及时对不再使用的TCoA进行回收,从而只需维护少量的地址。 In this embodiment, the temporary care-ofaddress recovery module 38 recovers the unused TCoAs in time, so that only a small number of addresses need to be maintained. the

如图14所示,为本发明实施例的移动节点第一结构示意图。消息接收模块11用于接收接入路由器发送的消息。消息发送模块12用于向接入路由器发送消息。快速邻居公告模块13用于生成快速邻居公告(FNA)消息,并通过所述消息发送模块向新接入路由器发送。若移动节点在前链路接收到了前接入路由器返回的携带有TCoA的快速绑定应答(FBAck)消息,则在接入新链路后,生成源地址为TCoA的快速邻居公告(FNA)消息;若没有接收到所述前接入路由器返回的携带有TCoA的快速绑定应答(FBAck)消息,则在接入新链路后,生成源地址为新链路地址的快速邻居公告(FNA)消息。地址配置模块14用于从消息接收模块11接收的快速路由器公告(FRA)消息提取DHCPv6服务器地址;通过消息发送模块12向DHCPv6服务器发送地址配置信息申请(Request)信息;根据消息接收模块11接收的携带有地址配置信息的地址配置信息应答(Reply)消息进行地址配置,地址配置信息可包括:NCoA,DNS配置信息,NTP服务器地址等。本实施例的移动节点在切换过程中使用TCoA,保证了切换过程的连续性;通过快速路由公告(FRA) 消息携带的DHCPv6服务器相关信息获得DHCPv6服务器地址,避免了DHCPv6服务器的搜索过程,减少了有状态地址配置的时间。 As shown in FIG. 14 , it is a schematic diagram of a first structure of a mobile node according to an embodiment of the present invention. Themessage receiving module 11 is used for receiving the message sent by the access router. Themessage sending module 12 is used to send messages to the access router. The FastNeighbor Advertisement module 13 is used to generate a Fast Neighbor Advertisement (FNA) message, and send it to the new access router through the message sending module. If the mobile node receives the Fast Binding Acknowledgment (FBAck) message carrying TCoA returned by the previous access router on the previous link, it will generate a Fast Neighbor Advertisement (FNA) message whose source address is TCoA after accessing the new link ; If the fast binding acknowledgment (FBAck) message carrying the TCoA returned by the previous access router is not received, after the new link is accessed, generate a fast neighbor announcement (FNA) whose source address is the new link address information.Address configuration module 14 is used for extracting the DHCPv6 server address from the fast router advertisement (FRA) message thatmessage receiving module 11 receives; Send address configuration information application (Request) information to DHCPv6 server bymessage sending module 12; Receive according tomessage receiving module 11 The address configuration information response (Reply) message carrying the address configuration information performs address configuration, and the address configuration information may include: NCoA, DNS configuration information, NTP server address, and the like. The mobile node of the present embodiment uses TCoA in handover process, has guaranteed the continuity of handover process; Obtains DHCPv6 server address by the DHCPv6 server relevant information that fast route announces (FRA) message carries, has avoided the search process of DHCPv6 server, has reduced Time for stateful address configuration. the

如图15所示,为本发明实施例的移动节点第二结构示意图。本实施例在图14所示实施例的基础上进一步包括路由器请求生成模块15及删除模块16。 As shown in FIG. 15 , it is a schematic diagram of a second structure of a mobile node according to an embodiment of the present invention. This embodiment further includes a routerrequest generation module 15 and adeletion module 16 on the basis of the embodiment shown in FIG. 14 . the

路由器请求生成模块15生成携带有地址配置方式标识的路由器请求,并通过消息发送模块12向前接入路由器发送,进行地址配置方式协商,从而实现对有状态地址配置方式既无状态地址配置方式的兼容。 The routerrequest generating module 15 generates a router request carrying an address configuration mode identifier, and sends it to the forward access router through themessage sending module 12, and performs address configuration mode negotiation, thereby realizing a stateful address configuration mode and a stateless address configuration mode. compatible. the

删除模块16用于在完成NCoA到家乡代理及对端节点绑定注册,并且不再使用TCoA时,将TCoA从相应接口上删除,并通过消息发送模块12向新接入路由器发送临时转交地址回收触发消息,通知新接入路由器进行TCoA的回收,从而可及时回收移动节点不再使用的TCoA,使新接入路由器仅需在本地地址池维护较少量的地址。 Thedeletion module 16 is used to delete the TCoA from the corresponding interface when the binding registration of the NCoA to the home agent and the peer node is completed, and the TCoA is no longer used, and send a temporary care-of-address recovery message to the new access router through themessage sending module 12. A message is triggered to notify the new access router to recycle the TCoA, so that the TCoA no longer used by the mobile node can be reclaimed in time, so that the new access router only needs to maintain a small amount of addresses in the local address pool. the

本发明实施例在切换过程中为移动节点分配临时转交地址,使切换过程中的数据传输能够保持较好的连续性;新接入路由器将DHCPv6服务器相关信息通过快速路由器公告消息告知移动节点,移动节点不需搜索DHCPv6服务器,并且该消息的发送不需等待随机时间,从而可有效减少由状态地址配置的延时;通过在多个消息中增加地址配置方式标识实现了对有状态地址配置及无状态地址配置的兼容,移动节点可与前接入路由器协商采用何种地址配置方式;DHCPv6消息中增加认证选项,使移动节点和接入路由器可以对DHCP消息的原地址和内容进行认证,增强了安全性。 In the embodiment of the present invention, a temporary care-of address is assigned to the mobile node during the handover process, so that data transmission during the handover process can maintain better continuity; the new access router informs the mobile node of relevant information about the DHCPv6 server through a fast router announcement message, and the mobile node The node does not need to search for the DHCPv6 server, and the sending of the message does not need to wait for a random time, which can effectively reduce the delay caused by the state address configuration; by adding the address configuration mode identifier in multiple messages, the stateful address configuration and the stateless address configuration are realized. Compatible with the state address configuration, the mobile node can negotiate with the previous access router which address configuration method to use; the authentication option is added to the DHCPv6 message, so that the mobile node and the access router can authenticate the original address and content of the DHCP message, which enhances the safety. the

最后应当说明的是:以上实施例仅用以说明本发明的技术方案而非对其限制;尽管参照较佳实施例对本发明进行了详细的说明,所属领域的普通技术人员应当理解,依然可以对本发明的具体实施方式进行修改或者对部分技术特征进行等同替换;而不脱离本发明技术方案的精神,其均应涵盖在本发明请求保护的技术方案范围当中。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them; although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the present invention can still be Modifications to the specific implementation of the invention or equivalent replacement of some technical features; without departing from the spirit of the technical solution of the present invention, should be included in the scope of the technical solution claimed in the present invention. the

Claims (27)

Translated fromChinese
1.一种快速切换的地址配置方法,其特征在于,所述方法包括:1. An address configuration method for fast switching, characterized in that the method comprises:新接入路由器接收前接入路由器发送的切换发起消息;The new access router receives the handover initiation message sent by the previous access router;所述新接入路由器从本地地址池提取临时转交地址;The new access router extracts a temporary care-of address from a local address pool;所述新接入路由器生成携带有所述临时转交地址的切换应答消息;The new access router generates a handover response message carrying the temporary care-of address;所述新接入路由器向前接入路由器返回所述切换应答消息,以使所述前接入路由器将接收到的所述临时转交地址发送给移动节点。The new access router returns the handover response message to the forward access router, so that the former access router sends the received temporary care-of address to the mobile node.2.根据权利要求1所述的快速切换的地址配置方法,其特征在于,所述本地地址池存储有多个地址,所述多个地址为向动态主机配置DHCP服务器申请的。2. The address configuration method for fast switching according to claim 1, wherein the local address pool stores a plurality of addresses, and the plurality of addresses are applied for from a dynamic host configuration DHCP server.3.根据权利要求1所述的快速切换的地址配置方法,其特征在于,所述方法还包括:3. The address configuration method for fast switching according to claim 1, wherein the method further comprises:接收移动节点发送的快速邻居公告消息;Receive the fast neighbor advertisement message sent by the mobile node;生成携带有DHCP服务器相关信息的快速路由器公告消息;Generate a fast router advertisement message carrying information about the DHCP server;向所述移动节点返回所述快速路由器公告消息。The fast router advertisement message is returned to the mobile node.4.根据权利要求3所述的快速切换的地址配置方法,其特征在于,所述生成携带有DHCP服务器相关信息的快速路由器公告消息具体为:4. the address configuration method of fast switching according to claim 3, is characterized in that, described generation carries the fast router announcement message of DHCP server relevant information specifically:判断所述快速邻居公告消息的源地址类型,若所述源地址是全局IPv6地址,则将所述DHCP服务器相关信息包含在所述快速路由器公告消息中,生成携带有DHCP服务器相关信息的快速路由器公告消息;若所述源地址是链路本地地址,则从本地地址池提取临时转交地址,将所述临时转交地址以及DHCP服务器相关信息包含在所述快速路由器公告消息中,生成携带有DHCP服务器相关信息以及临时转交地址的快速路由器公告消息。Judging the source address type of the fast neighbor advertisement message, if the source address is a global IPv6 address, then including the relevant information of the DHCP server in the fast router advertisement message, generating a fast router carrying relevant information of the DHCP server announcement message; if the source address is a link-local address, extract a temporary care-of address from the local address pool, include the temporary care-of address and DHCP server related information in the fast router announcement message, and generate a message carrying a DHCP server Related information and fast router advertisement messages for the temporary care-of address.5.根据权利要求1或4所述的快速切换的地址配置方法,其特征在于,所述提取临时转交地址具体为:搜索本地地址池,若所述本地地址池中存在与移动节点关联的地址,则提取该关联的地址;若所述本地地址池中不存在与所述移动节点关联的地址,则提取一个状态自由的地址,并将提取的地址与所述移动节点关联。5. The address configuration method for fast handover according to claim 1 or 4, wherein said extracting a temporary care-of address specifically comprises: searching a local address pool, if there is an address associated with the mobile node in the local address pool , then extract the associated address; if there is no address associated with the mobile node in the local address pool, extract an address in a free state, and associate the extracted address with the mobile node.6.根据权利要求4所述的快速切换的地址配置方法,其特征在于,当所述快速邻居公告消息的源地址为链路本地地址时,将所述快速邻居公告消息中携带的快速绑定更新消息的源地址修改为所述临时转交地址,并向所述前接入路由器发送修改后的快速绑定更新消息,与前接入路由器建立所述前接入路由器到所述临时转交地址的双向隧道。6. The address configuration method for fast switching according to claim 4, wherein when the source address of the fast neighbor advertisement message is a link-local address, the fast binding address carried in the fast neighbor advertisement message is Modify the source address of the update message to the temporary care-of address, and send a modified fast binding update message to the former access router, and establish a link between the former access router and the temporary care-of address with the former access router. Two-way tunnel.7.根据权利要求3所述的快速切换的地址配置方法,其特征在于,所述快速邻居通告消息中携带有生存时间,接收到所述快速邻居通告消息时启动定时器;在所述定时器计时超过所述生存时间后,在本地子网内向全节点地址发送邻居公告消息,并将所述本地地址池中所述临时转交地址的状态修改为自由状态;所述邻居公告消息的目标地址为所述新接入路由器的与所述临时转交地址对应的媒体访问控制地址。7. The address configuration method for fast switching according to claim 3, wherein the fast neighbor notification message carries a time-to-live, and a timer is started when the fast neighbor notification message is received; After the timing exceeds the lifetime, send a neighbor advertisement message to the full node address in the local subnet, and modify the state of the temporary care-of address in the local address pool to a free state; the target address of the neighbor advertisement message is A media access control address corresponding to the temporary care-of address of the new access router.8.根据权利要求3所述的快速切换的地址配置方法,其特征在于,所述向所述移动节点返回所述快速路由器公告消息之后还包括:接收所述移动节点发送的临时转交地址回收触发消息;在本地子网内向全节点地址发送邻居公告消息,并将所述本地地址池中所述临时转交地址的状态修改为自由状态;所述邻居公告消息的目标地址为所述新接入路由器的与所述临时转交地址对应的媒体访问控制地址。8. The address configuration method for fast handover according to claim 3, wherein after returning the fast router advertisement message to the mobile node, it further comprises: receiving a temporary care-of address recovery trigger sent by the mobile node message; send a neighbor advertisement message to the full node address in the local subnet, and modify the state of the temporary care-of address in the local address pool to a free state; the target address of the neighbor advertisement message is the new access router The media access control address corresponding to the temporary care-of address.9.根据权利要求1所述的快速切换的地址配置方法,其特征在于,所述方法还包括:9. The address configuration method for fast switching according to claim 1, wherein the method further comprises:接收所述移动节点发送的路由器请求消息,所述路由器请求消息携带有地址配置方式标识;receiving a router solicitation message sent by the mobile node, where the router solicitation message carries an address configuration mode identifier;根据所述地址配置方式标识确定采用无状态地址配置方式或有状态地址配置方式;Determine to adopt a stateless address configuration mode or a stateful address configuration mode according to the address configuration mode identifier;根据采用的地址配置方式,设置代理路由器公告消息的地址配置方式标识;According to the adopted address configuration method, set the address configuration method identifier of the proxy router announcement message;向所述移动节点返回所述代理路由器公告消息。Returning the Proxy Router Advertisement message to the mobile node.10.根据权利要求9所述的快速切换的地址配置方法,其特征在于,在采用有状态地址配置方式时,在向所述移动节点返回所述代理路由器公告消息后还包括:10. The address configuration method of fast switching according to claim 9, is characterized in that, when adopting stateful address configuration mode, after returning described proxy router advertisement message to described mobile node, also comprises:接收所述移动节点发送的快速绑定更新消息;receiving a fast binding update message sent by the mobile node;向新接入路由器发送切换发起消息,所述切换发起消息携带有表示采用有状态地址配置方式的地址配置方式标识;Sending a handover initiation message to the new access router, where the handover initiation message carries an address configuration mode identifier indicating that a stateful address configuration mode is adopted;接收所述新接入路由器返回的切换应答消息,所述切换应答消息携带有临时转交地址;receiving a handover response message returned by the new access router, where the handover response message carries a temporary care-of address;向所述移动节点发送携带有所述临时转交地址的快速绑定应答消息。Sending a fast binding response message carrying the temporary care-of address to the mobile node.11.根据权利要求9所述的快速切换的地址配置方法,其特征在于,采用有状态地址配置方式时,在向所述移动节点返回所述代理路由器公告消息后还包括:11. the address configuration method of fast switching according to claim 9, it is characterized in that, when adopting stateful address configuration mode, after returning described proxy router advertisement message to described mobile node, also comprise:接收新接入路由器发送的快速绑定更新消息,所述快速绑定更新消息的源地址为临时转交地址;receiving a fast binding update message sent by the new access router, where the source address of the fast binding update message is a temporary care-of address;建立到所述临时转交地址的双向隧道;establishing a bidirectional tunnel to the temporary care-of address;向所述新接入路由器返回快速绑定应答消息。Return a fast binding reply message to the new access router.12.一种快速切换的地址配置方法,其特征在于,所述方法包括:12. An address configuration method for fast switching, characterized in that the method comprises:向前接入路由器发送快速绑定更新消息;Send a fast binding update message to the forward access router;若接收到所述前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,向新接入路由器发送源地址为所述临时转交地址的快速邻居公告消息,所述临时转交地址由所述前接入路由器从所述新接入路由器获取得到,所述新接入路由器在接收到所述前接入路由器发送的切换发起消息后,从本地地址池中提取出所述临时转交地址,并返回给所述前接入路由器;If the fast binding response message carrying the temporary care-of address returned by the previous access router is received, after the new link is connected, send a fast neighbor advertisement whose source address is the temporary care-of address to the new access router message, the temporary care-of address is obtained by the former access router from the new access router, and the new access router selects the extracting the temporary care-of address from, and returning to the former access router;若没有接收到所述前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,向所述新接入路由器发送源地址为新链路地址的快速邻居公告消息。If the fast binding response message carrying the temporary care-of address returned by the previous access router is not received, after accessing the new link, send the fast binding response message whose source address is the address of the new link to the new access router. Neighbor announcement message.13.根据权利要求12所述的快速切换的地址配置方法,其特征在于,向新接入路由器发送快速邻居公告消息之后还包括:13. The address configuration method of fast switching according to claim 12, is characterized in that, after sending fast neighbor announcement message to new access router, also comprises:接收所述新接入路由器发送的快速路由器公告消息;所述快速路由器公告消息携带有DHCP服务器相关信息;Receiving a fast router announcement message sent by the new access router; the fast router announcement message carries DHCP server related information;从所述DHCP服务器相关信息中提取DHCP服务器的地址,向所述DHCP服务器发送地址配置信息申请消息;extracting the address of the DHCP server from the related information of the DHCP server, and sending an address configuration information request message to the DHCP server;接收所述DHCP服务器返回的携带有地址配置信息的地址配置信息应答消息;所述地址配置信息至少包含新转交地址。receiving an address configuration information reply message carrying address configuration information returned by the DHCP server; the address configuration information includes at least a new care-of address.14.根据权利要求12所述的快速切换的地址配置方法,其特征在于,所述向前接入路由器发送快速绑定更新消息之前还包括:向所述前接入路由器发送路由器请求,所述路由器请求携带有地址配置方式标识。14. The address configuration method for fast switching according to claim 12, characterized in that before the forward access router sends the fast binding update message, it further comprises: sending a router request to the previous access router, the The router request carries the identifier of the address configuration mode.15.根据权利要求12所述的快速切换的地址配置方法,其特征在于:在完成新转交地址到家乡代理及对端节点绑定注册,并且不再使用所述临时转交地址时,将所述临时转交地址从相应接口上删除,并向所述新接入路由器发送临时转交地址回收触发消息。15. The address configuration method for fast switching according to claim 12, characterized in that: when completing the binding registration of the new care-of address to the home agent and the peer node, and no longer using the temporary care-of address, the The temporary care-of-address is deleted from the corresponding interface, and a temporary care-of-address recycling trigger message is sent to the new access router.16.根据权利要求13所述的快速切换的地址配置方法,其特征在于:所述地址配置信息申请消息携带有认证信息,向所述DHCP服务器发送地址配置信息申请消息之前还包括:向所述DHCP服务器发送认证请求消息;接收所述DHCP服务器返回的携带有密钥信息的认证公告消息;根据所述密钥信息生成认证信息。16. The address configuration method for fast switching according to claim 13, wherein: the address configuration information application message carries authentication information, and before sending the address configuration information application message to the DHCP server, it also includes: sending the address configuration information application message to the DHCP server: The DHCP server sends an authentication request message; receives an authentication announcement message carrying key information returned by the DHCP server; generates authentication information according to the key information.17.根据权利要求13所述的快速切换的地址配置方法,其特征在于,所述接收所述新接入路由器发送的快速路由器公告消息之后还包括:通过所述临时转交地址到所述前接入路由器的双向隧道,接收目的地址为前转交地址的数据,发送源地址为前转交地址的数据;所述双向隧道被拆除时,将所述临时转交地址从相应接口上删除。17. The address configuration method for fast handover according to claim 13, characterized in that, after receiving the fast router advertisement message sent by the new access router, it further comprises: passing the temporary care-of address to the front-end Enter the bidirectional tunnel of the router, receive the data whose destination address is the previous care-of address, and send the data whose source address is the former care-of address; when the bidirectional tunnel is torn down, delete the temporary care-of address from the corresponding interface.18.根据权利要求17所述的快速切换的地址配置方法,其特征在于,在拆除所述双向隧道后,如果前网络采用有状态地址配置,则向前网络的DHCP服务器发送释放消息,释放前转交地址。18. The address configuration method of fast switching according to claim 17, characterized in that, after the two-way tunnel is removed, if the previous network adopts stateful address configuration, then the DHCP server of the previous network sends a release message, and the previous network is released. Care-of address.19.一种接入路由器,包括用于接收消息的接收模块及用于发送消息的发送模块,其特征在于,所述接入路由器还包括:19. An access router, comprising a receiving module for receiving messages and a sending module for sending messages, characterized in that, the access router also includes:提取模块,用于在接收到切换发起消息后,从本地地址池提取临时转交地址;An extraction module, configured to extract the temporary care-of address from the local address pool after receiving the handover initiation message;生成模块,用于生成携带有所述临时转交地址的切换应答消息,并通过所述发送模块将所述切换应答消息返回给发送所述切换发起消息的前接入路由器,以使所述前接入路由器将所述临时转交地址发送给移动节点。A generating module, configured to generate a handover response message carrying the temporary care-of address, and return the handover response message to the former access router that sent the handover initiation message through the sending module, so that the former access router The ingress router sends the temporary care-of address to the mobile node.20.根据权利要求19所述的接入路由器,其特征在于,所述接入路由器还包括:地址申请模块,用于向DHCP服务器申请多个地址,并将申请到的多个地址保存在所述地址池中。20. The access router according to claim 19, further comprising: an address application module, configured to apply for multiple addresses from a DHCP server, and store the applied multiple addresses in the in the above address pool.21.根据权利要求19所述的接入路由器,其特征在于,所述接入路由器还包括:21. The access router according to claim 19, further comprising:地址类型判断模块,用于判断接收到的快速邻居公告消息源地址的类型;An address type judging module, configured to judge the type of the source address of the received Fast Neighbor Advertisement message;快速路由器公告模块,用于在所述快速邻居公告消息源地址为全局IPv6地址时,生成携带有DHCP服务器相关信息的快速路由器公告消息;并在所述源地址为链路本地地址时,生成携带有临时转交地址及DHCP服务器相关信息的快速路由器公告消息;A fast router announcement module, configured to generate a fast router announcement message carrying information about a DHCP server when the source address of the fast neighbor announcement message is a global IPv6 address; and when the source address is a link-local address, generate a message carrying Fast Router Advertisement messages with information about temporary care-of addresses and DHCP servers;修改模块,用于在所述源地址为链路本地地址时,将快速邻居公告消息中携带的快速绑定更新消息的源地址修改为所述临时转交地址。A modifying module, configured to modify the source address of the fast binding update message carried in the fast neighbor advertisement message to the temporary care-of address when the source address is a link-local address.22.根据权利要求21所述的接入路由器,其特征在于,所述接入路由器还包括:22. The access router according to claim 21, further comprising:定时器,用于在接收到所述快速邻居公告消息时启动计时,定时期限为所述快速邻居公告消息携带的生存时间;A timer, configured to start timing when the Fast Neighbor Advertisement message is received, and the timing period is the survival time carried in the Fast Neighbor Advertisement message;临时转交地址回收模块,用于在所述定时器计时超期后,在本地子网内向全节点地址发送邻居公告消息,所述邻居公告消息的目标地址为与所述临时转交地址对应的媒体访问控制地址。The temporary care-of address recovery module is configured to send a neighbor announcement message to the address of all nodes in the local subnet after the timer expires, and the target address of the neighbor announcement message is the media access control address corresponding to the temporary care-of address. address.23.根据权利要求19所述的接入路由器,其特征在于,所述接入路由器还包括:23. The access router according to claim 19, further comprising:确定模块,用于在所述接收模块接收到移动节点发送的携带有地址配置方式标识的路由器请求消息后,根据所述地址配置方式标识确定采用无状态地址配置方式或有状态地址配置方式;The determining module is configured to determine to adopt a stateless address configuration method or a stateful address configuration method according to the address configuration method identifier after the receiving module receives the router request message sent by the mobile node and carries the address configuration method identifier;设置模块,用于根据确定采用的地址配置方式,设置代理路由器公告消息的地址配置方式标识,并通过所述发送模块向所述移动节点返回所述代理路由器公告消息。The setting module is configured to set the address configuration mode identifier of the proxy router advertisement message according to the determined address configuration mode, and return the proxy router advertisement message to the mobile node through the sending module.24.一种移动节点,包括用于接收消息的消息接收模块及用于发送消息的消息发送模块,其特征在于,所述移动节点还包括:24. A mobile node, comprising a message receiving module for receiving a message and a message sending module for sending a message, characterized in that the mobile node also includes:快速邻居公告模块,用于生成快速邻居公告消息,并通过所述消息发送模块向新接入路由器发送所述快速邻居公告消息;若接收到前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,生成源地址为所述临时转交地址的快速邻居公告消息,所述临时转交地址由所述前接入路由器从所述新接入路由器获取得到,所述新接入路由器在接收到所述前接入路由器发送的切换发起消息后,从本地地址池中提取出所述临时转交地址,并返回给所述前接入路由器;若没有接收到所述前接入路由器返回的携带有临时转交地址的快速绑定应答消息,则在接入新链路后,生成源地址为新链路地址的快速邻居公告消息。A fast neighbor advertisement module, configured to generate a fast neighbor advertisement message, and send the fast neighbor advertisement message to a new access router through the message sending module; If the response message is determined, after the new link is connected, a fast neighbor advertisement message whose source address is the temporary care-of address is generated, and the temporary care-of address is obtained by the former access router from the new access router, After the new access router receives the handover initiation message sent by the previous access router, it extracts the temporary care-of address from the local address pool and returns it to the previous access router; if the new access router does not receive the After the fast binding reply message carrying the temporary care-of address returned by the previous access router, after the new link is connected, a fast neighbor advertisement message whose source address is the address of the new link is generated.25.根据权利要求24所述的移动节点,其特征在于,所述移动节点还包括:25. The mobile node according to claim 24, further comprising:地址配置模块,用于从所述消息接收模块接收的快速路由器公告消息中提取DHCP服务器地址;通过所述消息发送模块向所述DHCP服务器发送地址配置信息申请信息;接收所述DHCP服务器返回的携带有地址配置信息的地址配置信息应答消息,所述地址配置信息至少包含新转交地址。The address configuration module is used to extract the DHCP server address from the fast router announcement message received by the message receiving module; send the address configuration information application information to the DHCP server through the message sending module; receive the carrying information returned by the DHCP server An address configuration information response message with address configuration information, where the address configuration information at least includes a new care-of address.26.根据权利要求24所述的移动节点,其特征在于,所述移动节点还包括:路由器请求生成模块,用于生成携带有地址配置方式标识的路由器请求,并通过所述消息发送模块向前接入路由器发送。26. The mobile node according to claim 24, characterized in that, the mobile node further comprises: a router request generating module, configured to generate a router request carrying an address configuration mode identifier, and forward the message through the message sending module Access router sends.27.根据权利要求24所述的移动节点,其特征在于,所述移动节点还包括:删除模块,用于在完成新转交地址到家乡代理及对端节点绑定注册,并且不再使用所述临时转交地址时,将所述临时转交地址从相应接口上删除,并通过所述消息发送模块向所述新接入路由器发送临时转交地址回收触发消息。27. The mobile node according to claim 24, characterized in that, the mobile node further comprises: a deletion module, configured to bind and register a new care-of address with a home agent and a peer node, and no longer use the When the temporary care-of-address is used, delete the temporary care-of-address from the corresponding interface, and send a temporary care-of-address recycling trigger message to the new access router through the message sending module.
CN2007101265476A2007-06-222007-06-22 Address Configuration Method for Mobile Node, Access Router and Fast HandoverExpired - Fee RelatedCN101330527B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2007101265476ACN101330527B (en)2007-06-222007-06-22 Address Configuration Method for Mobile Node, Access Router and Fast Handover

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2007101265476ACN101330527B (en)2007-06-222007-06-22 Address Configuration Method for Mobile Node, Access Router and Fast Handover

Publications (2)

Publication NumberPublication Date
CN101330527A CN101330527A (en)2008-12-24
CN101330527Btrue CN101330527B (en)2011-02-09

Family

ID=40206105

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2007101265476AExpired - Fee RelatedCN101330527B (en)2007-06-222007-06-22 Address Configuration Method for Mobile Node, Access Router and Fast Handover

Country Status (1)

CountryLink
CN (1)CN101330527B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102026318B (en)*2009-09-172013-09-11中兴通讯股份有限公司Switching management method and system and user data management method and system during switching as well as AGR (Access gateway Router)
CN103561122B (en)*2013-10-232017-01-18华为终端有限公司IPv6 address collocation method, IPv6 client and server
CN106487692B (en)*2016-09-282019-07-26中国人民解放军信息工程大学 Hierarchical Mobile IPv6 Fast Handover Method Without Duplicate Address Detection
CN108111412B (en)*2016-11-242020-11-03腾讯科技(深圳)有限公司Data resource scheduling method, first autonomous system and second autonomous system
CN112449752A (en)*2018-12-262021-03-05华为技术有限公司IPv6 address configuration method and routing equipment
CN110233889B (en)*2019-06-112021-09-14常熟理工学院Network data communication implementation method based on cache mechanism
CN114051019B (en)*2021-10-142024-12-24深圳市联洲国际技术有限公司 Network device and method for automatically detecting address configuration mode supported by IPv6 network

Also Published As

Publication numberPublication date
CN101330527A (en)2008-12-24

Similar Documents

PublicationPublication DateTitle
US7630340B2 (en)Handover method
CN100574503C (en)A kind of terminal and terminal switching method and system
CN101330527B (en) Address Configuration Method for Mobile Node, Access Router and Fast Handover
CN100596095C (en) Hierarchical Mobile IPv6 Fast Handover Method and System
US8224327B2 (en)Method and system for handoff of mobile node in mobile communication system supporting proxy mobile internet protocol
US8175102B2 (en)Neighbor discovery method and apparatus for mobile node in heterogeneous network environment
KR20060059064A (en) Mobile communication system and handoff method for the same
JP4902634B2 (en) Method of providing mobility management protocol information for handover in a mobile communication system to a mobile terminal
US20080159222A1 (en)Duplicate Address Detection Optimisation
CN100405871C (en) A Layer 3 Mobile Handover Implementation Method Based on Layer 2 Prediction and Triggering
CN100349432C (en)Tunnel based mobile IPv6 quick switching method
US8767622B2 (en)Method and system for managing address prefix information associated with handover in networks
CN101656641B (en)Method and device for detecting repeated addresses
CN1980252A (en)Address-conflict detection realizing method and address conflict detection agent apparatus
CN100596229C (en) Method for informing target network address binding result and mobile user terminal
US7917142B2 (en)Comprehensive registration method for wireless communication system
CN101471874A (en)Method for switching access gateway
CN101651662A (en)Method and device for allocating simple internet protocol addresses
CN101047997B (en) System and method for implementing dynamic host configuration across sites
KR100943515B1 (en) Address Management Method for Handoff between Heterogeneous Networks
WO2010064181A1 (en)REDUCTION OF HANDOVER DELAYS IN NESTED PROXY MOBILE IPv6 MOBILE IPv6 NETWORKS
CN1972316A (en)Care-of address and its acquisition method and system for configuration information of care-of address
Diab et al.Optimized I-MPLS: a fast and transparent micro-mobility-enabled MPLS framework
CN105827746A (en)Method for active reconfiguration of network prefix in agent mobile IPv6
KR100657514B1 (en) Subnet Handover Method for DHC Service Users in Mobile Internet System

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20110209

Termination date:20140622

EXPYTermination of patent right or utility model

[8]ページ先頭

©2009-2025 Movatter.jp