WO2007131404A1 - A method and device for realizing fast handover - Google Patents

A method and device for realizing fast handover Download PDF

Info

Publication number
WO2007131404A1
WO2007131404A1 PCT/CN2007/000580 CN2007000580W WO2007131404A1 WO 2007131404 A1 WO2007131404 A1 WO 2007131404A1 CN 2007000580 W CN2007000580 W CN 2007000580W WO 2007131404 A1 WO2007131404 A1 WO 2007131404A1
Authority
WO
WIPO (PCT)
Prior art keywords
tunnel
par
nar
mobile node
address
Prior art date
Application number
PCT/CN2007/000580
Other languages
French (fr)
Chinese (zh)
Inventor
Hongfei Chen
Original Assignee
Huawei Technologies Co., Ltd.
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. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007131404A1 publication Critical patent/WO2007131404A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0019Control or signalling for completing the hand-off for data sessions of end-to-end connection adapted for mobile IP [MIP]

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a method and apparatus for implementing fast handover in Mobile IPv6 (IP Version 6-IP Vers ion 6).
  • the basic principle of the Mobi le I P technology is to enable the mobile node to always use the initial IP address for IP communication during the mobile process, so as to ensure that the upper layer applications carried by the IP network layer maintain uninterrupted and continuable mobility.
  • IPv6 technology will gradually replace the current IPv4 (IP version 4-IP Version technology) based on its huge address space.
  • IPv6-based Mobi le IP namely Mobile IPv6 (Mobi le IPv6) technology
  • Mobi le IPv6 Mobile IPv6
  • the home link and the foreign link are connected to the Internet through the home gateway and the foreign gateway respectively.
  • the mobile node ( ⁇ -Mobi le Node) is a communication node that can move from one network to another on the Internet and can keep the communication uninterrupted, and can communicate with the node as long as it knows the home address of the node.
  • a CN-Correspondence Node is a peer-to-peer node that is communicating with a mobile node, which can be mobile or fixed.
  • a home agent (HA-Home Agent) is a router that has a port connected to the home link of the mobile node. When the mobile node moves to the foreign link, it will be responsible for intercepting those sent to the mobile node. The packet of the home address is then forwarded to the mobile node using the tunneling mechanism and processes the current location information of the maintained mobile node.
  • Home Link refers to the default link of the mobile node and also the link with the same network prefix as the home address of the mobile node (such as the home IP address).
  • a foreign link refers to a link other than the home link whose network prefix is different from the network prefix of the mobile node's home address (such as the home IP address).
  • Care-of Address is the relevant IP address obtained when the mobile node moves to the foreign link.
  • a mobile node can have multiple care-of addresses at the same time.
  • Step 101 When the mobile node connects to its home link, it will work in the same way as other fixed nodes.
  • the mobile node is assigned an address on the home link, called the Home Address. This address is permanently assigned to this node, the same address as the fixed node.
  • the mobile node moves, its home address does not change.
  • Mobile IPv6 include a global unicast home address and network-local home address.
  • Step 102 The mobile node detects whether it has roamed to the foreign link through the IPv6 neighbor discovery mechanism.
  • the IPv6 foreign gateway periodically sends a router advertisement message, which includes the prefix of the foreign link. After receiving the router advertisement message of the foreign gateway, the mobile node checks that the prefix of the foreign link is different from the prefix of the home link. It is considered to have roamed to the foreign link.
  • Step 103 If the mobile node finds that it has moved to the foreign link, it will obtain the relevant IP address on the foreign link through the stateful or stateless address auto-configuration process based on the received router announcement information. , called the care-of address (CoA-Care-of Addres s). At this time, the mobile node has both the home address and the care-of address.
  • the care-of address CoA-Care-of Addres s
  • Step 104 The mobile node registers its own care-of address with the "Binding Update" message to the home agent.
  • the mobile node can also notify the communication partner of this care-of address through the "Binding Update” message registration.
  • the Return Routabi ty (return route reachable) detection process needs to be performed between the mobile node and the communication partner, that is, the mobile node first sends the Home Ini t Tes t message and the handover initialization test (Care- of Ini t Test ) message to the communication partner, the latter handles After that, return Home Tes t (Home Test) message and Care-of Tes t (Transfer Test) message to the mobile node.
  • Step 105 According to the object registered by the "Binding Update" message, the data packet is delivered in the following two forms:
  • the mobile node's communication partner If the mobile node's communication partner does not know its care-of address, it will send the data packet to the mobile node's home link according to the mobile node's home address, and then its home agent will intercept the data packet, and then according to the mobile node's current The care-of address, using the tunneling mechanism to forward these packets to the mobile node.
  • the message sent by the mobile node to the communication partner is also sent to the home agent through the reverse tunnel, and then forwarded to the communication partner by the home agent.
  • the communication partner knows the mobile node's care-of address through the "binding update"
  • it will use the IPv6 routing header to directly transmit the packet to the mobile node.
  • the first destination address of the packet is the handover address
  • the second destination address is the home address. Therefore, the data packet will be sent directly to the mobile node in the foreign link, without the need to transit through the home agent.
  • the source address of the packet sent by the mobile node to the communication partner is the care-of address, and the home address is stored in the destination extension header of the packet.
  • the data packet can also be sent to the home agent without going through the reverse tunnel, but sent directly to the communication partner.
  • the "triangular routing” mode is called the "route optimization” mode.
  • NAR New Acces s Router, access router for the mobile link
  • the central idea of the above existing fast switching method is to get the phase in advance before the "binding update"
  • the information of the neighboring network generates the IP address of the neighboring network. Once the behavior of moving to the neighboring network occurs and the binding update is completed, a tunnel is established between the PAR and the MN to keep the traffic constant. See Figure 3 for the network structure.
  • the network before the MN is moved is referred to as the network to which the PAR belongs, and the access router of the network is the PAR; the network after the MN is moved is referred to as the network to which the NAR belongs, and the access router of the network is the NAR.
  • Step 201 The MN sends an RtSolPr (Router Sol Authenticate for Proxy Advertisement) message to the PAR to request information about the neighboring network NAR.
  • the timing of sending an RtSolPr message can be when an ND (Neighbor Di scover) message is sent.
  • Step 202 The PAR responds to the PrRtAdv (PrRtAdv: Proxy Router Advertisement), and the response message includes information about the neighboring network (that is, the network to which the NAR belongs), where the related information of the neighboring network includes at least Neighbor network access router (ie MR) information.
  • PrRtAdv Proxy Router Advertisement
  • MR Neighbor network access router
  • Step 203 If the returned neighbor network related information does not support fast handover, the fast handover process is terminated. If the returned neighbor network related information supports fast handover, the MN prepares to move to the NAR to generate the NCoA.
  • Step 204 When the MN is about to move to the NAR, send an FBU (Fass t Binding Update) message to the PAR.
  • FBU Fess t Binding Update
  • Step 205 After receiving the FBU message, the PAR binds the PCoA and the NCoA, and then sends the HI (Handover).
  • Step 206 After receiving the HI, the NAR replies with a hack (Handover Acknowledge) message to confirm its legality.
  • a hack Hawover Acknowledge
  • Step 207 The PAR returns a FBack (Fassing Binding Acknowledge) message to the MN and the NAR, and then saves the mapping relationship between the NCoA and the PCoA, establishes a PAR to the MN tunnel, and redirects the CN to the traffic to the tunnel.
  • FBack Fessing Binding Acknowledge
  • Step 208 After the connection between the PAR and the PAR is moved to the NAR, before the binding update is completed, the NCoA is used as the source IP address, and the CN considers that the packet is illegal, and the PCoA is an illegal address in the network to which the NAR belongs. .
  • the following operations are performed separately: a) The traffic sent by the MN to the CN is encapsulated in the tunnel.
  • the IP address of the inner IP header is PCoA
  • the destination address is the CN address
  • the source IP address of the outer IP address is NCoA
  • the destination address is the PAR address.
  • PAR ⁇ will map the source address NCoA and PCoA. It knows that the message is a tunnel, removes the outer IP header, and forwards it to the CN with the inner IP header.
  • the IP header source address is the CN address
  • the destination address is PCoA.
  • the PAR encapsulates the packet according to the mapping between the NCoA and the PCoA.
  • the source IP address of the outer IP address is the PAR address and the destination address is the NCoA address.
  • Step 209 After the binding update of the MN is completed, both the read and the PAR delete the tunnel.
  • the MN then uses NCoA to communicate directly with the CN.
  • step 207, 208 the tunnel is established between the PAR and the MN to ensure that the traffic before the NCoA binding update is completed, but the tunnel between the MN and the PAR is only after the MN moves to the network to which the NAR belongs.
  • the MN is valid before the NCoA binding update is completed.
  • the tunnel lifetime is very short. In a short period of time, the router's control module sends tunnel establishment and cancellation messages to the forwarding module.
  • An object of the embodiments of the present invention is to provide a method and apparatus for implementing fast handover. After a mobile node moves to a new network and before a binding update is completed, the router does not need to generate a large number of temporary tunnels with a large number of MNs, so that packet transmission can be implemented. .
  • An embodiment of the present invention provides a method for implementing fast handover, where the method includes: establishing a static tunnel between an access router PAR of a mobile front link and an access router N AR of a mobile link, before the moving The link is a first link, and the mobile link is a second link; after the mobile node moves from the first link to the second link, before the binding update is completed, the PAR and the NAR are passed The static tunnel between the two transmits the message related to the mobile node.
  • An embodiment of the present invention provides a device for implementing fast handover, where the device includes a tunnel establishment module and a transmission module, where The tunnel establishment module is configured to establish a static tunnel between the access router PAR of the mobile front link and the access router NAR of the mobile link, where the mobile front link is the first link, and the mobile chain is The road is the second link;
  • the transmitting module is configured to pass the static tunnel between the PAR and the NAR to the mobile node after the mobile node moves from the first link to the second link, before the binding update is completed.
  • the message is transmitted.
  • the embodiment of the present invention since a static tunnel is established between the mobile forward link access router and the mobile link link access router, the related mobiles before all binding updates are completed are completed.
  • the packet transmission of the node can be performed through the tunnel, and a large number of tunnel establishment and cancellation messages do not occur.
  • the embodiment of the present invention provides The technical solution can greatly improve the efficiency of the router.
  • FIG. 1 is a network topology diagram of a mobile IPV6 in the prior art
  • FIG. 3 is a topology diagram of a mobile node access network in the prior art
  • FIG. 5 is a flowchart of a method for implementing fast handover according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of an apparatus for implementing fast switching according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for implementing fast switching.
  • FIG. 5 it is a flowchart of a fast handover method according to an embodiment of the present invention, which includes the following steps:
  • Step 301 A static tunnel is established between the PAR and the NAR.
  • the tunnel is established for a long time and does not need to be frequently established or deleted.
  • the static tunnel can adopt various technologies, such as an IP tunnel, an IPSEC tunnel, an MPLS tunnel, and the like. As long as you move from the same PAR to the same NAR, no matter how many, Both use the static tunnel forwarding traffic between the same PAR and NAR.
  • the source address encapsulated in the packet transmitted from the PAR to the NAR through the static tunnel is the PAR address, and the destination address is the NAR address.
  • the source address encapsulated in the packet transmitted from the NAR through the static tunnel to the PAR is NAR address, destination address is PAR address.
  • Step 302 Establish a mapping relationship of the mobile node on the PAR and the NAR before the mobile node binds the update, and the content of the mapping relationship includes a mobile forward care-of address PCoA, a mobile link care-of address NCoA, and a Information about NAR and PAR at both ends of the tunnel.
  • the specific steps are as follows: A) the mobile node sends a request message to the NAR through the PAR in the network to which the PAR belongs, and the NAR sends a response to the mobile node by using the PAR, where the response carries the address information of the NAR, and the mobile node
  • the NCoA is generated according to the address information of the NAR.
  • the PAR can also obtain the NAR address information from other servers. After the mobile node sends a request message to the PAR, the PAR can inform the mobile node of the MR address information obtained from other servers, and the mobile node generates the NAR address information according to the NAR address information. NCoA.
  • the mobile node when the mobile node is about to move to the network to which the NAR belongs, the mobile node sends a request message including the NCoA to the PAR, and after receiving the request message, the PAR sends a request to the NAR to confirm whether the NCoA address is legal.
  • a legality request message where the legality request message carries a mapping relationship between the PCoA, the NCoA, the NAR address information, and the PAR address information; the NAR address information and the PAR address information may be respective IP addresses, or may be able to find The port address to the IP address.
  • the NAR 0 after the NAR receives the legality request message requesting the validity of the request, the NAR
  • the PAR sends a validity confirmation message confirming the validity, and establishes a mapping relationship between the PCoA, the NCoA, the NAR address information, and the PAR address information.
  • the PAR establishes a mapping relationship between the PCoA, the NCoA, the NAR address, and the PAR address after receiving the validity confirmation message.
  • mapping relationship corresponding to each MN is shown in Table 1:
  • MN1 10. 2. 2. 0 10. 1. 1. 0 10. 1. 0. 0 10. 2. 0. 0
  • Step 303 After the foregoing mapping relationship is established, before the mobile node moves to the network to which the NAR belongs, before the binding update is completed, the mobile node and the PAR/NAR perform the setting of the inner layer IP address according to the mapping relationship. The packet is encapsulated and transmitted through a static tunnel between the NAR and the PAR. Perform the following steps based on the different flows of the packets:
  • the MN1 in Table 1 is taken as an example.
  • the packet encapsulated by the tunnel is called a tunnel packet, and is not encapsulated by the tunnel or has been decapsulated by the tunnel.
  • the message is called an ordinary message.
  • Step al ⁇ 1 does not tunnel the ordinary message to be sent to the communication partner.
  • the source IP address is NCoAlO. 1. 1.
  • the destination address is the CN address, and then sent.
  • Step a2 The ordinary message first arrives at the NAR, and the source address and the destination address of the original message are used as the inner layer address, that is, the source IP address of the inner layer IP header is NCoAl O. 1. 1. 0, and the destination address is CN.
  • the outer IP header of the tunnel packet is also The NAR address is 10. 1. 0. 0, and the destination address is PAR address 10. 2. 0. 0. 0.
  • Step a3 After receiving the tunnel message, the PAR performs tunnel decapsulation to obtain an inner layer IP header source address NCoAl O. 1. 1. 0, and the destination address is a CN address, and the PCoA and NCo A in the mapping table are used.
  • the mapping relationship converts the inner IP address source address NCoAl O. 1. 1. 0 into PCoAl O. 2. 2. 0, and sends the decapsulated ordinary packet to the CN.
  • the NAR can also refer to the IP header source address of the common message NCoAlO. 1. 1. 0 to check the mapping table to obtain the corresponding PCoAl O. 2. 2. 0, using PCoAl O. 2. 2 0. Replace NCoAl O. 1. 1. 0 as the inner IP header source address, the inner IP header destination address is the destination address CN address of the packet, and then tunnel the packet according to the packet. IP address source address NCoAlO. 1. 1. 0 look up the mapping table to get the PAR address 10, 2. 0. 0, and set the outer IP header source address to NAR address 10. 1. 0. 0, destination address set The PAR address is 10. 2. 0. 0. In this way, in the above step a3, after the PAR receives the tunnel packet and performs tunnel decapsulation to obtain the inner layer IP header, the PAR does not need to perform IP header address processing, and can directly send the packet to the CN.
  • Step bl The ordinary 4 ⁇ message sent by CN to MN2, whose source address is CN address, and the destination address is PCoAlO. 4. 2. 0.
  • Step b2 After the traffic reaches the PAR, the PAR uses the source address and the destination address of the packet as the inner address, that is, the source IP address of the inner layer is the CN address, and the destination address is PCoAl O. 4. 2. 0.
  • the PAR passes the packet destination address PCoAl O. 4. 2.
  • Q finds the corresponding NAR address in the mapping relationship table, and encapsulates the packet in the tunnel.
  • the outer IP header source address is PAR address 10. 4. 0. 0
  • the destination address is the NAR address 10. 3. 0. 0.
  • the encapsulated tunnel packet is sent to the NAR through a static tunnel between the PAR and the NAR.
  • Step b3 After receiving the tunnel message, the NAR performs tunnel decapsulation to obtain an ordinary packet whose inner IP address is a CN address and whose destination address is PCoAl O. 4. 2. 0, according to the purpose of the packet. Address PCoAl O. 4. 2. 0 Check the mapping relationship between PCoA and NCoA saved in the mapping table to get NCoAl O. 3. 1. 0, and set NCoAlO, 3. 1. 0 as the address of the inner IP header. Only sent to MN2. The relationship is corresponding to NCoAl O. 3. 1. 0, the inner IP header address is set to NCoAl O. 3. 1. 0, the inner IP header source address is set to the CN address, and the PAR passes the document.
  • the address NCoA finds the address of the MR in the mapping table, and the packet is encapsulated in the tunnel.
  • the source IP address of the outer IP address is 10.4, 0, and the destination address is the NAR address 10. 3. 0.
  • the tunnel message is then sent to the MN2 through the tunnel.
  • the NAR performs tunnel decapsulation to obtain an inner layer IP header, and does not need to perform IP header address processing, but can directly send the packet to ⁇ 2.
  • the method for implementing the fast handover according to the embodiment of the present invention further includes: after the completion of the binding update, the message is sent to notify the PAR and the MR, and the PAR and the NAR delete the mapping relationship between the PCoA and the NCoA.
  • a message can be customized during the implementation process. As long as PAR and NAR know that Li has completed the binding update, PAR and NAR will forward the traffic packets related to the ⁇ in the normal way. Therefore, the MN can only announce the completion of the binding update to the PAR and the NAR. As to whether the mapping relationship between the PCoA and the NCoA is deleted by the PAR and the NAR, the MN can be selected according to the specific situation.
  • the aging mechanism of the mapping relationship between the NAR and the PAR is required. After a certain mapping is established, the mapping is not deleted by the packet for a certain period of time.
  • the present invention also provides a fast switching device.
  • a schematic embodiment of the present invention provides a structural apparatus to achieve fast switching, in general terms, the apparatus comprising a tunnel establishing module 61 and transmitting module 62, wherein, the delivery module 62 comprises establishing mapping sub Module 6, tunnel processing submodule 622 and forwarding sub-module 623.
  • the delivery module 62 comprises establishing mapping sub Module 6, tunnel processing submodule 622 and forwarding sub-module 623.
  • the tunnel establishment module 61 is configured to establish a static tunnel between the access router PAR of the mobile front link and the access router NAR of the mobile link.
  • the mobile front link is the first link. After the mobile link is the second link.
  • the transmitting module 62 is configured to transmit a message related to the mobile node by using a static tunnel between the PAR and the MR after the mobile node moves from the first link to the second link and before the binding update is completed.
  • the mapping establishment sub-module 621 establishes a mapping relationship with the mobile node on the PAR and the NAR before the mobile node binding update, where the mapping relationship is specifically the mobile node's mobile forward care-of address PCoA, mobile The post-link care-of address NCoA and the mapping relationship between the NAR and PAR address information at both ends of the tunnel.
  • the tunnel processing sub-module 622 encapsulates/decapsulates the packets entering and leaving the static tunnel based on the mapping relationship of the mobile node after the mobile node moves to the second link and before the binding update is completed.
  • the tunnel processing submodule 622 specifically includes a NAR side tunnel processing unit and a PAR side tunnel processing unit.
  • the NAR side tunnel processing unit uses the NAR address information and the PAR address information as the outer tunnel head to perform tunnel encapsulation on the received common message with the mobile node NCoA as the IP address source address of the temple port; or
  • the PAR tunnel packet is tunnel decapsulated.
  • the PAR side tunnel processing unit is configured to use the PAR address information and the NAR address information as the tunnel header for tunnel encapsulation of the received common packet with the mobile node PCoA as the destination address, or tunnel the tunnel packet from the NAR. Decapsulation.
  • a scheme is: the NAR-side tunnel processing unit replaces the sub-unit with the first address of the NAR side included, and based on the mapping relationship between the mobile node NCoA and the PCoA, the source IP address of the ordinary packet before the tunnel encapsulation is performed.
  • the NCoA is replaced with the corresponding PCoA;
  • the PAR-side tunnel processing unit replaces the sub-unit with the first address of the PAR side included therein, and based on the mapping relationship between the mobile node PCoA and the NCoA, the purpose of the ordinary packet before the tunnel encapsulation is performed.
  • the IP address PCoA is replaced with the corresponding NCoA.
  • the PAR side tunnel processing unit replaces the subunit by the second address of the PAR side included therein, and based on the mapping relationship between the mobile node NCoA and the PCoA, the source of the ordinary packet after the tunnel decapsulation is performed.
  • NAR side tunnel The channel processing unit replaces the sub-unit with the NAR-side second address included in the channel, and replaces the destination IP address PCoA of the ordinary packet after the tunnel decapsulation with the corresponding NCoA based on the mapping relationship between the mobile node NCoA and the PCoA.
  • the message processed by the tunneling sub-module 622 is then forwarded by the forwarding sub-module 623.
  • the forwarding submodule 623 specifically includes a tunnel forwarding unit and a regular forwarding unit.
  • the tunnel forwarding unit tunnels the tunnel packet encapsulated by the tunnel processing sub-module 622 to the other party through the static tunnel between the PAR and the NAR; the conventional forwarding unit performs tunnel decapsulation on the tunnel processing sub-module 622.
  • the subsequent ordinary message is forwarded according to the inner IP header information obtained after decapsulation.
  • the device further includes a mapping deletion module, where the mapping deletion module is configured to delete the mapping relationship between the PAR and the mobile node established on the NAR after the mobile node is bound to the update.
  • the mapping deletion module may not immediately delete the mapping relationship about the mobile node, as long as the PAR and the NAR are prohibited from using the mapping relationship after the mobile node binding update, for example, the mapping deletion module identifies the mapping relationship as prohibited or invalid. , it will not affect the normal message processing after the binding update.

Abstract

A method for realizing fast handover includes: establishing static tunnel between PAR and NAR, and the previous mobile link being the first link, the new mobile link being the second link; before finishing binding update and after mobile node(MN) moving from the first link to the second link, the message involving the MN being transmitted through the static tunnel between the PAR and the NAR. A device for realizing fast handover is involved in the invention. In the invention, all the messages transmission involving MN could be performed in one static tunnel before finishing all binding update, no too much tunnels establishment and canceled messages emerges, and establishing abundant temporary tunnel is avoided, and the routers efficiency is improved.

Description

一种实现快速切换的方法及装置  Method and device for realizing fast switching
本申请要求于 2006 年 5 月 15 日提交中国专利局、 申请号为 200610082243. X, 发明名称为 "一种实现快速切换的方法及装置,, 的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims to be filed on May 15, 2006, the Chinese Patent Office, Application No. 200610082243. X, entitled "A Method and Apparatus for Implementing Fast Switching," the priority of the Chinese Patent Application, the entire contents of which are incorporated by reference. Combined in this application.
技术领域 本发明涉及移动通信领域, 特别涉及一种在移动 IPv6 ( IP 版本 6-IP Vers ion 6 ) 中实现快速切换的方法及装置。 TECHNICAL FIELD The present invention relates to the field of mobile communications, and in particular, to a method and apparatus for implementing fast handover in Mobile IPv6 (IP Version 6-IP Vers ion 6).
背景技术 Background technique
随着网络技术的发展以及大量可移动的终端的出现, 如笔记本电脑、 掌 上电脑、 手机、 车载设备等, 掀起了移动计算的热潮, 越来越多的用户可以 通过各种各样的终端, 在任意地点通过公用移动无线网连接到 Internet 为 解决移动业务的需求, 在网络层面上引入了移动 IP ( Mobi le IP )技术。  With the development of network technology and the emergence of a large number of mobile terminals, such as laptops, PDAs, mobile phones, and in-vehicle devices, the mobile computing boom has been launched, and more and more users can pass various terminals. Connecting to the Internet through a public mobile wireless network at any location To address the needs of mobile services, Mobile IP (Mobi le IP) technology was introduced at the network level.
Mobi le I P技术的基本原理是使移动节点在移动过程中始终可以用初始 的 IP地址进行 IP通信, 从而保证 IP网络层承载的上层应用保持移动中的不中 断和可接续性。  The basic principle of the Mobi le I P technology is to enable the mobile node to always use the initial IP address for IP communication during the mobile process, so as to ensure that the upper layer applications carried by the IP network layer maintain uninterrupted and continuable mobility.
目前随着网络规模的扩大, IPv6技术以其庞大的地址空间等优势将逐渐 取代目前的 IPv4 ( IP 版本 4-IP Version 技术。 基于 IPv6的 Mobi le IP, 即移动 IPv6 ( Mobi le IPv6 )技术,借助 IPv6自身的技术优势和对 Mobi le IPv4 技术的改进, 正成为 Mobi le IP领域的新贵, 越来越被逐步广泛地应用起来。  At present, with the expansion of the network scale, IPv6 technology will gradually replace the current IPv4 (IP version 4-IP Version technology) based on its huge address space. IPv6-based Mobi le IP, namely Mobile IPv6 (Mobi le IPv6) technology, With the technical advantages of IPv6 and the improvement of Mobi le IPv4 technology, it is becoming a newcomer in the field of Mobi le IP, and it is gradually being widely applied.
参见图 1 , 为移动 IPv6的拓朴图, 家乡链路和外地链路分别通过家乡网 关和外地网关与 Internet相连。  Referring to Figure 1, for the mobile IPv6 topology, the home link and the foreign link are connected to the Internet through the home gateway and the foreign gateway respectively.
其中移动节点 (匪- Mobi le Node )是在因特网上可以从一个网络移动到 另一个网络, 并且能保持通信不中断的通信节点, 只要知道该节点的家乡地 址就可以与其进行通信。  The mobile node (匪-Mobi le Node) is a communication node that can move from one network to another on the Internet and can keep the communication uninterrupted, and can communicate with the node as long as it knows the home address of the node.
通信伙伴(CN- Correspondence Node )是与移动节点正在通信的具有同 等地位的节点, 该节点可以是移动的, 或者是固定的。  A CN-Correspondence Node is a peer-to-peer node that is communicating with a mobile node, which can be mobile or fixed.
家乡代理(HA- Home Agent )是有一个端口与移动节点的家乡链路相连 的路由器。 当移动节点移动至外地链路时, 它将负责截取那些发给移动节点 的家乡地址的信息包, 然后利用隧道机制转发给移动节点, 并处理维护移动 节点的目前位置信息。 A home agent (HA-Home Agent) is a router that has a port connected to the home link of the mobile node. When the mobile node moves to the foreign link, it will be responsible for intercepting those sent to the mobile node. The packet of the home address is then forwarded to the mobile node using the tunneling mechanism and processes the current location information of the maintained mobile node.
家乡链路(Home Link )是指移动节点的缺省链路, 也是与所述移动节 点的家乡地址(如家乡 IP地址)具有相同网络前缀的链路。  Home Link refers to the default link of the mobile node and also the link with the same network prefix as the home address of the mobile node (such as the home IP address).
外地链路(Foreign Link )是指除了家乡链路以外的链路, 其网络前缀 与所述移动节点的家乡地址(如家乡 IP地址) 的网络前缀不同。  A foreign link (Foreign Link) refers to a link other than the home link whose network prefix is different from the network prefix of the mobile node's home address (such as the home IP address).
转交地址(CoA: Care-of Address )是当移动节点移动至外地链路时所 获得的相关 IP地址, 一个移动节点可以同时有多个转交地址。  CoA: Care-of Address is the relevant IP address obtained when the mobile node moves to the foreign link. A mobile node can have multiple care-of addresses at the same time.
参见图 2, 移动 IPv6的工作过程如下:  Referring to Figure 2, the working process of mobile IPv6 is as follows:
步驟 101: 当移动节点连接到它的家乡链路上时, 它将采取与其它的固 定节点一样的方式工作。 该移动节点在家乡链路上被分配给一个地址, 称为 家乡地址(Home Address ) 。 此地址是永久分配给该节点的, 与固定节点的 地址相同。 当移动节点移动时, 其家乡地址不会改变。 在移动 IPv6中包括全 球单播的家乡地址和网络-本地家乡地址。  Step 101: When the mobile node connects to its home link, it will work in the same way as other fixed nodes. The mobile node is assigned an address on the home link, called the Home Address. This address is permanently assigned to this node, the same address as the fixed node. When the mobile node moves, its home address does not change. In Mobile IPv6, include a global unicast home address and network-local home address.
步骤 102: 移动节点通过 IPv6的邻居发现机制检测自己是否已漫游至外 地链路上。 IPv6的外地网关会周期地发送路由器宣告消息, 其中包含该外地 链路的前缀, 移动节点收到外地网关的路由器宣告消息后, 检查其中的外地 链路的前缀与家乡链路的前缀不同, 则认为已漫游至外地链路。  Step 102: The mobile node detects whether it has roamed to the foreign link through the IPv6 neighbor discovery mechanism. The IPv6 foreign gateway periodically sends a router advertisement message, which includes the prefix of the foreign link. After receiving the router advertisement message of the foreign gateway, the mobile node checks that the prefix of the foreign link is different from the prefix of the home link. It is considered to have roamed to the foreign link.
步骤 103: 若移动节点发现自己已经移动到外地链路上时, 它将在收到 的路由器宣告信息的基础上, 通过有状态或者无状态的地址自动配置过程, 获得外地链路上相关 IP地址, 称为转交地址(CoA-Care- of Addres s ) 。 此 时移动节点同时拥有家乡地址和转交地址。  Step 103: If the mobile node finds that it has moved to the foreign link, it will obtain the relevant IP address on the foreign link through the stateful or stateless address auto-configuration process based on the received router announcement information. , called the care-of address (CoA-Care-of Addres s). At this time, the mobile node has both the home address and the care-of address.
步骤 104: 移动节点将自己的这个转交地址通过 "绑定更新" 消息注册 到家乡代理上。  Step 104: The mobile node registers its own care-of address with the "Binding Update" message to the home agent.
移动节点除了将转交地址通过 "绑定更新" 消息注册到家乡代理之外, 还可以将此转交地址通过 "绑定更新" 消息注册通知给它的通信伙伴。 注册 前, 移动节点和通信伙伴之间需要先执行 Return Routabi l i ty (返回路由 可达) 检测过程, 即移动节点先发送家乡初始化测试(Home Ini t Tes t ) 消息和转交初始化测试(Care- of Ini t Test ) 消息给通信伙伴, 后者处理 后, 返回 Home Tes t (家乡测试) 消息和 Care- of Tes t (转交测试) 消息给 移动节点。 In addition to registering the care-of address with the "Binding Update" message to the home agent, the mobile node can also notify the communication partner of this care-of address through the "Binding Update" message registration. Before registration, the Return Routabi ty (return route reachable) detection process needs to be performed between the mobile node and the communication partner, that is, the mobile node first sends the Home Ini t Tes t message and the handover initialization test (Care- of Ini t Test ) message to the communication partner, the latter handles After that, return Home Tes t (Home Test) message and Care-of Tes t (Transfer Test) message to the mobile node.
步驟 105 : 根据 "绑定更新" 消息注册的对象不同, 数据包的传递方式 有以下两种形式:  Step 105: According to the object registered by the "Binding Update" message, the data packet is delivered in the following two forms:
a) 三角路由方式:  a) Triangle routing:
移动节点的通信伙伴如果不知道其转交地址, 就将按照移动节点的家乡 地址将数据包发送到移动节点的家乡链路上, 然后其家乡代理将截取到这些 数据包, 再根据移动节点当前的转交地址, 利用隧道机制将这些数据包转发 给移动节点。  If the mobile node's communication partner does not know its care-of address, it will send the data packet to the mobile node's home link according to the mobile node's home address, and then its home agent will intercept the data packet, and then according to the mobile node's current The care-of address, using the tunneling mechanism to forward these packets to the mobile node.
而移动节点发给通信伙伴的报文也会先通过反向隧道发给家乡代理, 再 由家乡代理转交给通信伙伴。  The message sent by the mobile node to the communication partner is also sent to the home agent through the reverse tunnel, and then forwarded to the communication partner by the home agent.
由于在这种方式下, 通信伙伴和移动节点之间的数据包都要通过家乡代 理来中转, 所以称为 "三角路由" 方式。  In this way, the data packets between the communication partner and the mobile node are transited by the home agent, so it is called the "triangular routing" mode.
b) 路由优化方式:  b) Route optimization method:
若通信伙伴通过 "绑定更新"知道移动节点的转交地址,它就会利用 IPv6 的路由报头直接将数据包传送给移动节点。 数据包的第一目的地址是转交地 址, 第二目的地址才是家乡地址。 所以数据包会直接发给外地链路中的移动 节点, 而不需要经过家乡代理中转。  If the communication partner knows the mobile node's care-of address through the "binding update", it will use the IPv6 routing header to directly transmit the packet to the mobile node. The first destination address of the packet is the handover address, and the second destination address is the home address. Therefore, the data packet will be sent directly to the mobile node in the foreign link, without the need to transit through the home agent.
相反方向上, 移动节点发给通信伙伴的数据包源地址是转交地址, 而家 乡地址保存在数据包的目的地扩展头中。 这样, 数据包也可以不经过反向隧 道发给家乡代理, 而是直接发给通信伙伴。  In the opposite direction, the source address of the packet sent by the mobile node to the communication partner is the care-of address, and the home address is stored in the destination extension header of the packet. In this way, the data packet can also be sent to the home agent without going through the reverse tunnel, but sent directly to the communication partner.
这种方式, 对应 "三角路由" 方式, 称为 "路由优化" 方式。  In this way, the "triangular routing" mode is called the "route optimization" mode.
由于移动 IPv6的移动节点在网絡间切换会导致业务中断, 所以在现有技 术中描述了一种快速切换的方法。 其中引入了以下 4个新概念:  Since mobile IPv6 mobile nodes switch between networks, which causes service interruption, a fast handover method is described in the prior art. It introduces the following four new concepts:
· PAR: Previous Acces s Router,移动前链路的接入路由器  · PAR: Previous Acces s Router, the access router of the mobile front link
• NAR: New Acces s Router,移动后链路的接入路由器  • NAR: New Acces s Router, access router for the mobile link
• PCoA: 移动前链路的转交地址  • PCoA: Care-of address of the mobile front link
• NCoA: 移动后链路的转交地址  • NCoA: Care-of address of the link after the move
上述现有快速切换方法的中心思想是在 "绑定更新" 之前, 提前得到相 邻网络的信息, 生成相邻网络的 IP地址, 一旦移动到相邻网絡的行为发生、 绑定更新完成之前, 就在 PAR和 MN之间建立隧道, 保持流量不断, 网络结构 参见图 3。 为以下叙述方便, 将 MN移动前的网络称为 PAR所属网络, 该网络的 接入路由器是 PAR; 将 MN移动后的网络称为 NAR所属网络, 该网络的接入路由 器是 NAR。 The central idea of the above existing fast switching method is to get the phase in advance before the "binding update" The information of the neighboring network generates the IP address of the neighboring network. Once the behavior of moving to the neighboring network occurs and the binding update is completed, a tunnel is established between the PAR and the MN to keep the traffic constant. See Figure 3 for the network structure. For the convenience of the following description, the network before the MN is moved is referred to as the network to which the PAR belongs, and the access router of the network is the PAR; the network after the MN is moved is referred to as the network to which the NAR belongs, and the access router of the network is the NAR.
参见图 4 , 快速切换过程为以下步驟:  Referring to Figure 4, the fast switching process is as follows:
步驟 201: MN在 PAR所属网络中时发送 RtSolPr ( Router Sol ici tat ion for Proxy Advert isement-对代理公告的路由器请求消息) 消息给 PAR, 请求相 邻网络 NAR的相关信息。 发送 RtSolPr消息的时机可以是发送 ND ( Neighbor Di scover-邻居发现) 消息的时候。  Step 201: The MN sends an RtSolPr (Router Sol Authenticate for Proxy Advertisement) message to the PAR to request information about the neighboring network NAR. The timing of sending an RtSolPr message can be when an ND (Neighbor Di scover) message is sent.
步骤 202: PAR应答 PrRtAdv ( PrRtAdv: Proxy Router Advert i sement- 代理路由器公告),应答消息中包含相邻网络(即 NAR所属网络) 的相关信 息, 其中, 所述相邻网络的相关信息至少包括相邻网络接入路由器(即 MR ) 的信息。  Step 202: The PAR responds to the PrRtAdv (PrRtAdv: Proxy Router Advertisement), and the response message includes information about the neighboring network (that is, the network to which the NAR belongs), where the related information of the neighboring network includes at least Neighbor network access router (ie MR) information.
步骤 203: 如果返回的相邻网络相关信息不支持快速切换, 则匪终止快 速切换过程,如果返回的相邻网络相关信息支持快速切换,则丽为移动到 NAR 作准备, 生成 NCoA。  Step 203: If the returned neighbor network related information does not support fast handover, the fast handover process is terminated. If the returned neighbor network related information supports fast handover, the MN prepares to move to the NAR to generate the NCoA.
步骤 204: 当 MN将要移动至 NAR时, 发送 FBU ( Fas t Binding Update -快 速绑定更新) 消息给 PAR。  Step 204: When the MN is about to move to the NAR, send an FBU (Fass t Binding Update) message to the PAR.
步骤 205: PAR收到 FBU消息后, 绑定 PCoA和 NCoA, 然后发 HI ( Handover Step 205: After receiving the FBU message, the PAR binds the PCoA and the NCoA, and then sends the HI (Handover).
Ini t iate,切换初始化) 消息到 NAR, 检查 NCoA是否合法。 Ini t iate, switch initialization) message to NAR, check if NCoA is legal.
步骤 206: NAR收到 HI后回复 Hack ( Handover Acknowledge, 切换应答) 消息, 确认其合法性。  Step 206: After receiving the HI, the NAR replies with a Hack (Handover Acknowledge) message to confirm its legality.
步骤 207: PAR给 MN和 NAR回复 FBack ( Fas t Binding Acknowledge , 快 速绑定应答)报文, 之后保存 NCoA和 PCoA映射关系, 建立 PAR到 MN的隧道, 将 CN到匪的流量重定向到隧道。  Step 207: The PAR returns a FBack (Fassing Binding Acknowledge) message to the MN and the NAR, and then saves the mapping relationship between the NCoA and the PCoA, establishes a PAR to the MN tunnel, and redirects the CN to the traffic to the tunnel.
步骤 208: 当丽与 PAR断开连接移动到 NAR后, 还没有完成绑定更新前, 这时候用 NCoA作为源 IP地址, CN会认为报文非法, 而 PCoA在 NAR所属网络中 又是非法地址。 根据数据包的流向分别进行下迷操作: a) MN发向 CN的流量, 在匪上进行隧道封装, 内层 IP头源 IP地址为 PCoA, 目的地址为 CN地址, 外层 IP头源地址为 NCoA , 目的地址为 PAR地址。 报文经 过 NAR会到达 PAR , PAR^艮据源地址 NCoA和 PCoA映射关系, 知道这个艮文为隧 道才艮文, 将外层 IP头去掉, 用内层 IP头继续转发到 CN。 Step 208: After the connection between the PAR and the PAR is moved to the NAR, before the binding update is completed, the NCoA is used as the source IP address, and the CN considers that the packet is illegal, and the PCoA is an illegal address in the network to which the NAR belongs. . According to the flow direction of the data packet, the following operations are performed separately: a) The traffic sent by the MN to the CN is encapsulated in the tunnel. The IP address of the inner IP header is PCoA, the destination address is the CN address, the source IP address of the outer IP address is NCoA, and the destination address is the PAR address. After the message passes the NAR, it will reach PAR. PAR^ will map the source address NCoA and PCoA. It knows that the message is a tunnel, removes the outer IP header, and forwards it to the CN with the inner IP header.
b) CN发向讀的流量, 在 CN上 IP头源地址为 CN地址, 目的地址为 PCoA。 报文到达 PAR时, PAR根据 NCoA和 PCoA映射关系, 将报文进行隧道封装, 外层 IP头源地址为 PAR地址, 目的地址为 NCoA地址。  b) The traffic sent by the CN to the read. On the CN, the IP header source address is the CN address, and the destination address is PCoA. When the packet arrives at the PAR, the PAR encapsulates the packet according to the mapping between the NCoA and the PCoA. The source IP address of the outer IP address is the PAR address and the destination address is the NCoA address.
步骤 209: 当 MN的绑定更新完成后, 讀和 PAR都把隧道删除。 之后 MN使用 NCoA直接和 CN通信。  Step 209: After the binding update of the MN is completed, both the read and the PAR delete the tunnel. The MN then uses NCoA to communicate directly with the CN.
现有技术在步骤 207 , 208 , 采用了 PAR和 MN之间建立隧道方式保证丽完 成 NCoA的绑定更新之前的流量不中断, 但是, 由于 MN和 PAR间隧道只在 MN移 动到 NAR所属网络后、 MN没有完成 NCoA绑定更新之前有效, 隧道生存时间很 短, 短时间内路由器的控制模块会向转发模块分别发送隧道建立和取消消 息。 同一时刻在 PAR所属网络和 NAR所属网络之间切换的 MN数目很大时, 路由 器的控制模块和转发模块间会有大量的隧道建立和取消消息, 路由器上需要 建立和移动的 MN数目相同的临时隧道, 由此导致路由器性能下降。  In the prior art, in step 207, 208, the tunnel is established between the PAR and the MN to ensure that the traffic before the NCoA binding update is completed, but the tunnel between the MN and the PAR is only after the MN moves to the network to which the NAR belongs. The MN is valid before the NCoA binding update is completed. The tunnel lifetime is very short. In a short period of time, the router's control module sends tunnel establishment and cancellation messages to the forwarding module. At the same time, when the number of MNs that are switched between the network to which the PAR belongs and the network to which the NAR belongs is large, there are a large number of tunnel establishment and cancellation messages between the control module and the forwarding module of the router, and the number of MNs on the router that need to be established and moved is the same. Tunneling, which causes router performance to degrade.
发明内容 Summary of the invention
本发明实施例的目的在于提供一种实现快速切换的方法及装置,在移 动节点移动到新网络之后、 绑定更新完成之前, 路由器不需要和大量 MN产 生大量临时隧道, 就可以实现报文传输。  An object of the embodiments of the present invention is to provide a method and apparatus for implementing fast handover. After a mobile node moves to a new network and before a binding update is completed, the router does not need to generate a large number of temporary tunnels with a large number of MNs, so that packet transmission can be implemented. .
本发明实施例提供了一种实现快速切换的方法, 所述方法包括: 在移 动前链路的接入路由器 PAR和移动后链路的接入路由器 N AR之间建立静态 隧道, 所述移动前链路为第一链路, 所述移动后链路为第二链路; 在移动 节点自所述第一链路移动到第二链路之后、绑定更新完成之前,通过所述 PAR 和 NAR之间的静态隧道对涉及所述移动节点的报文进行传输。  An embodiment of the present invention provides a method for implementing fast handover, where the method includes: establishing a static tunnel between an access router PAR of a mobile front link and an access router N AR of a mobile link, before the moving The link is a first link, and the mobile link is a second link; after the mobile node moves from the first link to the second link, before the binding update is completed, the PAR and the NAR are passed The static tunnel between the two transmits the message related to the mobile node.
本发明实施例提供了一种实现快速切换的装置,所述装置包括隧道建 立模块和传送模块, 其中, 所述隧道建立模块用于在移动前链路的接入路由器 PAR 和移动后链 路的接入路由器 NAR之间建立静态隧道, 所述移动前链路为第一链路, 所 述移动后链路为第二链路; An embodiment of the present invention provides a device for implementing fast handover, where the device includes a tunnel establishment module and a transmission module, where The tunnel establishment module is configured to establish a static tunnel between the access router PAR of the mobile front link and the access router NAR of the mobile link, where the mobile front link is the first link, and the mobile chain is The road is the second link;
所述传送模块用于在移动节点自所述第一链路移动到所述第二链路之 后、 绑定更新完成之前, 通过 PAR和 NAR之间的所述静态隧道对涉及所述 移动节点的报文进行传输。  The transmitting module is configured to pass the static tunnel between the PAR and the NAR to the mobile node after the mobile node moves from the first link to the second link, before the binding update is completed. The message is transmitted.
通过上述技术方案可以看出, 在本发明实施例中, 由于采用在移动前链 路接入路由器和移动后链路接入路由器之间建立一个静态隧道, 使得所有绑 定更新完成之前的有关移动节点的报文传输都可以通过这个隧道进行, 不会 出现大量隧道建立和取消的消息, 与现有技术中路由器上需要建立和移动的 匪数目相同的临时隧道比较可知, 采用本发明实施例提供的技术方案, 可以 大大提高路由器的效率。  It can be seen from the foregoing technical solution that, in the embodiment of the present invention, since a static tunnel is established between the mobile forward link access router and the mobile link link access router, the related mobiles before all binding updates are completed are completed. The packet transmission of the node can be performed through the tunnel, and a large number of tunnel establishment and cancellation messages do not occur. Compared with the temporary tunnels of the same number of ports that need to be established and moved on the router in the prior art, the embodiment of the present invention provides The technical solution can greatly improve the efficiency of the router.
附图说明 DRAWINGS
图 1是现有技术中移动 IPV6的网络拓朴图;  1 is a network topology diagram of a mobile IPV6 in the prior art;
图 2是现有技术中移动 IPv6的工作流程图;  2 is a flow chart of the operation of the mobile IPv6 in the prior art;
图 3是现有技术中移动节点接入网络拓朴图;  3 is a topology diagram of a mobile node access network in the prior art;
图 4是现有技术中实现快速切换的方法的流程图;  4 is a flow chart of a method for implementing fast switching in the prior art;
图 5为本发明实施例实现快速切换的方法的流程图;  FIG. 5 is a flowchart of a method for implementing fast handover according to an embodiment of the present invention;
图 6为本发明实施例实现快速切换的装置的结构图。  FIG. 6 is a structural diagram of an apparatus for implementing fast switching according to an embodiment of the present invention.
具体实施方式 detailed description
为了解决现有技术中存在的 PAR 需要和大量移动节点产生临时大量隧 道的问题, 本发明实施例提供了一种实现快速切换的方法。  In order to solve the problem that the PAR existing in the prior art and the large number of mobile nodes generate a temporary large number of tunnels, the embodiment of the present invention provides a method for implementing fast switching.
本发明实施例所述技术方案在大量匪移动到 NAR后, 还没有完成绑定更 新前执行下列步骤, 以减少隧道个数。  After the technical solution of the embodiment of the present invention moves to the NAR, the following steps are performed before the binding update is completed, so as to reduce the number of tunnels.
请参见图 5 , 其为本发明实施例实现快速切换方法的流程图, 包括以下 步骤:  Referring to FIG. 5, it is a flowchart of a fast handover method according to an embodiment of the present invention, which includes the following steps:
步骤 301 : PAR和 NAR之间建立静态隧道, 这个隧道长期建立存在, 不需 要频繁建立、 删除。 所述静态隧道可以采用各种技术, 如 IP隧道、 IPSEC隧 道、 MPLS隧道等。 只要从同一个 PAR移动到同一个 NAR的匪, 不管数目多少, 都使用同一个 PAR与 NAR之间的所述静态隧道转发流量。 从 PAR上通过所述静 态隧道向 NAR传输的报文所封装的源地址为 PAR地址, 目的地址为 NAR地址, 从 NAR上通过所述静态隧道向 PAR传输的 4艮文所封装的源地址为 NAR地址, 目 的地址为 PAR地址。 Step 301: A static tunnel is established between the PAR and the NAR. The tunnel is established for a long time and does not need to be frequently established or deleted. The static tunnel can adopt various technologies, such as an IP tunnel, an IPSEC tunnel, an MPLS tunnel, and the like. As long as you move from the same PAR to the same NAR, no matter how many, Both use the static tunnel forwarding traffic between the same PAR and NAR. The source address encapsulated in the packet transmitted from the PAR to the NAR through the static tunnel is the PAR address, and the destination address is the NAR address. The source address encapsulated in the packet transmitted from the NAR through the static tunnel to the PAR is NAR address, destination address is PAR address.
步骤 302: 在移动节点绑定更新之前分别在所述 PAR和 NAR上建立移动 节点的映射关系,所述映射关系的内容包括移动前链路转交地址 PCoA、 移动 后链路转交地址 NCoA、 以及所述隧道两端 NAR、 PAR的信息。 具体步骤如下: A )移动节点在 PAR所属网络通过所述 PAR向 NAR发出请求消息, NAR 通过所述 PAR向所述移动节点发出响应,所述响应中带有 NAR的地址信息, 所述移动节点才艮据所述 NAR的地址信息生成 NCoA。 此外, PAR也可以从其 他服务器上获得 NAR地址信息, 即在移动节点向 PAR发出请求消息后, PAR 可以将自其他服务器获得的 MR地址信息告知移动节点,进而移动节点根 据所述 NAR地址信息生成 NCoA。  Step 302: Establish a mapping relationship of the mobile node on the PAR and the NAR before the mobile node binds the update, and the content of the mapping relationship includes a mobile forward care-of address PCoA, a mobile link care-of address NCoA, and a Information about NAR and PAR at both ends of the tunnel. The specific steps are as follows: A) the mobile node sends a request message to the NAR through the PAR in the network to which the PAR belongs, and the NAR sends a response to the mobile node by using the PAR, where the response carries the address information of the NAR, and the mobile node The NCoA is generated according to the address information of the NAR. In addition, the PAR can also obtain the NAR address information from other servers. After the mobile node sends a request message to the PAR, the PAR can inform the mobile node of the MR address information obtained from other servers, and the mobile node generates the NAR address information according to the NAR address information. NCoA.
B )当所述移动节点即将移动到 NAR所属网络时,所述移动节点向 PAR 发送包含了 NCoA的请求消息, 所述 PAR收到所述请求消息后, 向 NAR发 送请求确认 NCoA地址是否合法的合法性请求消息 , 所述合法性请求消息 携带 PCoA、 NCoA, NAR地址信息、 PAR地址信息之间的映射关系; 所述 NAR 地址信息和 PAR地址信息可以是各自的 IP地址, 也可以是能够查找到所述 IP地址的端口地址。  B) when the mobile node is about to move to the network to which the NAR belongs, the mobile node sends a request message including the NCoA to the PAR, and after receiving the request message, the PAR sends a request to the NAR to confirm whether the NCoA address is legal. a legality request message, where the legality request message carries a mapping relationship between the PCoA, the NCoA, the NAR address information, and the PAR address information; the NAR address information and the PAR address information may be respective IP addresses, or may be able to find The port address to the IP address.
0 所述 NAR收到所述请求确认合法性的合法性请求消息后, 向所述 0 after the NAR receives the legality request message requesting the validity of the request, the NAR
PAR发送确认合法性的合法性确认消息, 并建立 PCoA、 NCoA, NAR地址信 息、 PAR地址信息之间的映射关系。 The PAR sends a validity confirmation message confirming the validity, and establishes a mapping relationship between the PCoA, the NCoA, the NAR address information, and the PAR address information.
D ) 所述 PAR收到所述合法性确认消息后建立 PCoA、 NCoA, NAR地址、 PAR地址之间的映射关系。  D) The PAR establishes a mapping relationship between the PCoA, the NCoA, the NAR address, and the PAR address after receiving the validity confirmation message.
每个 MN对应的映射关系参见表 1所示: The mapping relationship corresponding to each MN is shown in Table 1:
Figure imgf000009_0001
Figure imgf000009_0001
匪 PCoA NCoA NAR PAR 匪 PCoA NCoA NAR PAR
MN1 10. 2. 2. 0 10. 1. 1. 0 10. 1. 0. 0 10. 2. 0. 0MN1 10. 2. 2. 0 10. 1. 1. 0 10. 1. 0. 0 10. 2. 0. 0
MN2 10. 4. 2. 0 10. 3. 1. 0 10. 3. 0. 0 10. 4. 0. 0 步驟 303: 建立了上述映射关系后, 在匪移动到 NAR所属网络后, 还没 有完成绑定更新前, 所述移动节点和 PAR/ NAR才艮据所述映射关系进行内层 IP头地址的设定及报文封装,并通过 NAR与 PAR之间的静态隧道进行报文传 送。 根据数据包的不同流向分别执行以下步骤: MN2 10. 4. 2. 0 10. 3. 1. 0 10. 3. 0. 0 10. 4. 0. 0 Step 303: After the foregoing mapping relationship is established, before the mobile node moves to the network to which the NAR belongs, before the binding update is completed, the mobile node and the PAR/NAR perform the setting of the inner layer IP address according to the mapping relationship. The packet is encapsulated and transmitted through a static tunnel between the NAR and the PAR. Perform the following steps based on the different flows of the packets:
a) MN发向 CN的流量:本实施例以表 1中 MN1为例, 为叙述方便, 将经隧道 封装后的报文称为隧道报文, 未经隧道封装或已经进行过隧道解封装的报文 称为普通报文。  a) Traffic sent by the MN to the CN: In this embodiment, the MN1 in Table 1 is taken as an example. For the convenience of description, the packet encapsulated by the tunnel is called a tunnel packet, and is not encapsulated by the tunnel or has been decapsulated by the tunnel. The message is called an ordinary message.
步驟 al: 丽 1对准备发往通信伙伴的普通报文不进行隧道封装, 源 IP地 址为 NCoAlO. 1. 1. 0, 目的地址为 CN地址, 然后发送。  Step al: 丽1 does not tunnel the ordinary message to be sent to the communication partner. The source IP address is NCoAlO. 1. 1. 0, the destination address is the CN address, and then sent.
步骤 a2: 所述普通报文首先到达 NAR, 将该原 艮文的源地址和目的地址 作为内层地址, 即内层 IP头源 IP地址为 NCoAl O. 1. 1. 0, 目的地址为 CN地址, NAR通过才艮文的源地址 NCo A在映射关系表中查到 PAR的地址 , 将报文进行隧道 封装形成隧道 4艮文, 所述隧道报文的外层 IP头源^也址为 NAR地址 10. 1. 0. 0 , 目的地址为 PAR地址 10. 2. 0. 0。  Step a2: The ordinary message first arrives at the NAR, and the source address and the destination address of the original message are used as the inner layer address, that is, the source IP address of the inner layer IP header is NCoAl O. 1. 1. 0, and the destination address is CN. Address: The NAR uses the source address of the source NCo A to find the address of the PAR in the mapping table, and encapsulates the packet into a tunnel. The outer IP header of the tunnel packet is also The NAR address is 10. 1. 0. 0, and the destination address is PAR address 10. 2. 0. 0.
步骤 a3: PAR收到所述隧道报文后进行隧道解封装, 得到内层 IP头源地 址 NCoAl O. 1. 1. 0, 目的地址为 CN地址, 才艮据映射表中 PCoA和 NCo A的映射关系 将内层 IP头源地址 NCoAl O. 1. 1. 0转换成 PCoAl O. 2. 2. 0, 将所述解封装后的普 通报文发给 CN。  Step a3: After receiving the tunnel message, the PAR performs tunnel decapsulation to obtain an inner layer IP header source address NCoAl O. 1. 1. 0, and the destination address is a CN address, and the PCoA and NCo A in the mapping table are used. The mapping relationship converts the inner IP address source address NCoAl O. 1. 1. 0 into PCoAl O. 2. 2. 0, and sends the decapsulated ordinary packet to the CN.
在上述步骤 a2中 NAR也可以才艮据所述普通报文的 IP头源地址 NCoAlO. 1. 1. 0查映射表得到相应的 PCoAl O. 2. 2. 0 , 用 PCoAl O. 2. 2. 0替换 NCoAl O. 1. 1. 0作为内层 IP头源地址, 内层 IP头目的地址为该报文的目的地址 CN地址, 然后再对该报文进行隧道封装, 根据所述报文的 IP头源地址 NCoAlO. 1. 1. 0查映射表得到 PAR地址 10, 2. 0. 0, 并将外层 IP头源地址设定为 NAR地址 10. 1. 0. 0, 目的地址设定为 PAR地址 10. 2. 0. 0。 这样的话, 在上述步 驟 a3中 PAR收到隧道报文后进行隧道解封装得到内层 IP头, 就不需要再进行 IP头地址处理, 而可直接将报文发给 CN。  In the above step a2, the NAR can also refer to the IP header source address of the common message NCoAlO. 1. 1. 0 to check the mapping table to obtain the corresponding PCoAl O. 2. 2. 0, using PCoAl O. 2. 2 0. Replace NCoAl O. 1. 1. 0 as the inner IP header source address, the inner IP header destination address is the destination address CN address of the packet, and then tunnel the packet according to the packet. IP address source address NCoAlO. 1. 1. 0 look up the mapping table to get the PAR address 10, 2. 0. 0, and set the outer IP header source address to NAR address 10. 1. 0. 0, destination address set The PAR address is 10. 2. 0. 0. In this way, in the above step a3, after the PAR receives the tunnel packet and performs tunnel decapsulation to obtain the inner layer IP header, the PAR does not need to perform IP header address processing, and can directly send the packet to the CN.
b) CN发向丽的流量: 本实施例以表 1中丽 2为例,  b) The flow rate of CN to Li: This embodiment takes Li 2 in Table 1 as an example.
步骤 bl : CN向 MN2发送的普通 4艮文, 其源地址为 CN地址, 目的地址为 PCoAlO. 4. 2. 0。 Step bl: The ordinary 4 艮 message sent by CN to MN2, whose source address is CN address, and the destination address is PCoAlO. 4. 2. 0.
步骤 b2: 上述流量到达 PAR后, PAR将该报文的源地址和目的地址作为内 层地址, 即内层 IP头源地址为 CN地址, 目的地址为 PCoAl O. 4. 2. 0。 PAR通过 报文目的地址 PCoAl O. 4. 2. Q在映射关系表中查到对应的 NAR地址, 将报文进 行隧道封装, 外层 IP头源地址为 PAR地址 10. 4. 0. 0 , 目的地址为 NAR地址 10. 3. 0. 0 , 将封装后的隧道报文通过 PAR和 NAR之间的静态隧道将发送给 NAR。  Step b2: After the traffic reaches the PAR, the PAR uses the source address and the destination address of the packet as the inner address, that is, the source IP address of the inner layer is the CN address, and the destination address is PCoAl O. 4. 2. 0. The PAR passes the packet destination address PCoAl O. 4. 2. Q finds the corresponding NAR address in the mapping relationship table, and encapsulates the packet in the tunnel. The outer IP header source address is PAR address 10. 4. 0. 0 , The destination address is the NAR address 10. 3. 0. 0. The encapsulated tunnel packet is sent to the NAR through a static tunnel between the PAR and the NAR.
步骤 b3: NAR收到所述隧道^文后进行隧道解封装, 得到内层 IP头源地 址为 CN地址、 目的地址为 PCoAl O. 4. 2. 0的普通报文, 根据该报文的目的地址 PCoAl O. 4. 2. 0查映射表保存的 PCoA和 NCoA的映射关系得到 NCoAl O. 3. 1. 0, 并 将 NCoAlO, 3. 1. 0设为内层 IP头目的地址, 将该才艮文发给 MN2。 关系得到相应的 NCoAl O. 3. 1. 0, 将内层 IP头目的地址设定为 NCoAl O. 3. 1. 0, 内层 IP头源地址设定为 CN地址, PAR通过才艮文目的地址 NCoA在映射关系表中 查到 MR的地址,将报文进行隧道封装,外层 IP头源地址为 PAR地址 10. 4. 0, 0, 目的地址为 NAR地址 10. 3. 0. 0, 然后通过隧道将所述隧道报文发送给 MN2。 这 样的话, 在上述步骤 b3中 NAR收到所述隧道报文后进行隧道解封装得到内层 IP头, 就不需要再进行 IP头地址处理, 而可直接将报文发给匪 2。  Step b3: After receiving the tunnel message, the NAR performs tunnel decapsulation to obtain an ordinary packet whose inner IP address is a CN address and whose destination address is PCoAl O. 4. 2. 0, according to the purpose of the packet. Address PCoAl O. 4. 2. 0 Check the mapping relationship between PCoA and NCoA saved in the mapping table to get NCoAl O. 3. 1. 0, and set NCoAlO, 3. 1. 0 as the address of the inner IP header. Only sent to MN2. The relationship is corresponding to NCoAl O. 3. 1. 0, the inner IP header address is set to NCoAl O. 3. 1. 0, the inner IP header source address is set to the CN address, and the PAR passes the document. The address NCoA finds the address of the MR in the mapping table, and the packet is encapsulated in the tunnel. The source IP address of the outer IP address is 10.4, 0, and the destination address is the NAR address 10. 3. 0. 0, The tunnel message is then sent to the MN2 through the tunnel. In this way, in the above step b3, after receiving the tunnel packet, the NAR performs tunnel decapsulation to obtain an inner layer IP header, and does not need to perform IP header address processing, but can directly send the packet to 匪 2.
本发明实施例所述一种实现快速切换的方法还包括: 当丽完成绑定更 新后 , 发消息通知 PAR和 MR, PAR和 NAR删除 PCoA和 NCoA的映射关系。 在实施过程中可以自定义一个消息发送。 只要 PAR和 NAR知道丽已经完成 了绑定更新, 那么 PAR和 NAR就会对涉及该匪的流经报文按照正常途径转 发。 因此, MN可以只向 PAR和 NAR通告绑定更新完成, 至于 PAR和 NAR是否 删除 PCoA和 NCoA之间的映射关系 , 可以根据具体情况予以选择。  The method for implementing the fast handover according to the embodiment of the present invention further includes: after the completion of the binding update, the message is sent to notify the PAR and the MR, and the PAR and the NAR delete the mapping relationship between the PCoA and the NCoA. A message can be customized during the implementation process. As long as PAR and NAR know that Li has completed the binding update, PAR and NAR will forward the traffic packets related to the 按照 in the normal way. Therefore, the MN can only announce the completion of the binding update to the PAR and the NAR. As to whether the mapping relationship between the PCoA and the NCoA is deleted by the PAR and the NAR, the MN can be selected according to the specific situation.
同时 NAR和 PAR需要提供映射关系的老化机制, 当某个映射建立后, 这个 映射没有被报文使用的时间达到一定时间后, 需自动删除映射关系。  At the same time, the aging mechanism of the mapping relationship between the NAR and the PAR is required. After a certain mapping is established, the mapping is not deleted by the packet for a certain period of time.
基于与前述实现快速切换的方法同一发明构思,本发明还提供了一种 实现快速切换装置。 请参见图 6 , 本发明一种实现快速切换装置的实施例 结构示意图,总体上而言,所述装置包括隧道建立模块 61和传送模块 62, 其中, 所述传送模块 62 具体包括映射建立子模块 6 、 隧道处理子模块 622和转发子模块 623。下面结合其具体工作原理进一步介绍本装置的内部 结构。 Based on the same inventive concept as the foregoing method for implementing fast switching, the present invention also provides a fast switching device. Referring to Figure 6, a schematic embodiment of the present invention provides a structural apparatus to achieve fast switching, in general terms, the apparatus comprising a tunnel establishing module 61 and transmitting module 62, wherein, the delivery module 62 comprises establishing mapping sub Module 6, tunnel processing submodule 622 and forwarding sub-module 623. The internal structure of the device will be further described below in conjunction with its specific working principle.
所述隧道建立模块 61用于在移动前链路的接入路由器 PAR和移动后 链路的接入路由器 NAR之间建立一条静态隧道, 在本实施例中, 移动前链 路为第一链路, 移动后链路为第二链路。  The tunnel establishment module 61 is configured to establish a static tunnel between the access router PAR of the mobile front link and the access router NAR of the mobile link. In this embodiment, the mobile front link is the first link. After the mobile link is the second link.
所述传送模块 62用于在移动节点自第一链路移动到第二链路之后、 绑 定更新完成之前, 通过 PAR和 MR之间的静态隧道对涉及所述移动节点的 报文进行传输。 具体而言, 映射建立子模块 621 在移动节点绑定更新之前 分别在 PAR和 NAR 上建立关于所述移动节点的映射关系,所述映射关系具体 为移动节点的移动前链路转交地址 PCoA、 移动后链路转交地址 NCoA、 以及 所述隧道两端的 NAR、 PAR地址信息之间的映射关系。 隧道处理子模块 622 在移动节点移动到第二链路之后、 绑定更新完成之前, 基于所述移动节点的 映射关系对进出所述静态隧道的报文进行封装 /解封装。  The transmitting module 62 is configured to transmit a message related to the mobile node by using a static tunnel between the PAR and the MR after the mobile node moves from the first link to the second link and before the binding update is completed. Specifically, the mapping establishment sub-module 621 establishes a mapping relationship with the mobile node on the PAR and the NAR before the mobile node binding update, where the mapping relationship is specifically the mobile node's mobile forward care-of address PCoA, mobile The post-link care-of address NCoA and the mapping relationship between the NAR and PAR address information at both ends of the tunnel. The tunnel processing sub-module 622 encapsulates/decapsulates the packets entering and leaving the static tunnel based on the mapping relationship of the mobile node after the mobile node moves to the second link and before the binding update is completed.
具体而言, 所述隧道处理子模块 622具体包括 NAR侧隧道处理单元和 PAR侧隧道处理单元。 其中, NAR侧隧道处理单元对接收到的以所述移动节 点 NCoA为寺艮文 IP头源地址的普通 4艮文采用 NAR地址信息和 PAR地址信息作 为外层隧道头进行隧道封装; 或者对来自 PAR的隧道报文进行隧道解封装。 PAR侧隧道处理单元,用以对接收到的以所述移动节点 PCoA为目的地址的普 通报文采用 PAR地址信息和 NAR地址信息作为隧道头进行隧道封装; 或者对 来自 NAR的隧道报文进行隧道解封装。  Specifically, the tunnel processing submodule 622 specifically includes a NAR side tunnel processing unit and a PAR side tunnel processing unit. The NAR side tunnel processing unit uses the NAR address information and the PAR address information as the outer tunnel head to perform tunnel encapsulation on the received common message with the mobile node NCoA as the IP address source address of the temple port; or The PAR tunnel packet is tunnel decapsulated. The PAR side tunnel processing unit is configured to use the PAR address information and the NAR address information as the tunnel header for tunnel encapsulation of the received common packet with the mobile node PCoA as the destination address, or tunnel the tunnel packet from the NAR. Decapsulation.
一种方案是: NAR侧隧道处理单元通过其包括的 NAR侧第一地址替换子 单元, 基于所述移动节点 NCoA与 PCoA之间的映射关系, 将进行隧道封装 之前的普通报文的源 IP地址 NCoA替换为对应的 PCoA; PAR侧隧道处理单 元通过其包括的 PAR侧第一地址替换子单元, 基于所述移动节点 PCoA与 NCoA之间的映射关系, 将进行隧道封装之前的普通报文的目的 IP 地址 PCoA替换为对应的 NCoA。  A scheme is: the NAR-side tunnel processing unit replaces the sub-unit with the first address of the NAR side included, and based on the mapping relationship between the mobile node NCoA and the PCoA, the source IP address of the ordinary packet before the tunnel encapsulation is performed. The NCoA is replaced with the corresponding PCoA; the PAR-side tunnel processing unit replaces the sub-unit with the first address of the PAR side included therein, and based on the mapping relationship between the mobile node PCoA and the NCoA, the purpose of the ordinary packet before the tunnel encapsulation is performed. The IP address PCoA is replaced with the corresponding NCoA.
另外一种方案是: PAR侧隧道处理单元通过其包括的 PAR侧第二地址 替换子单元, 基于所述移动节点 NCoA与 PCoA之间的映射关系, 将进行隧 道解封装之后的普通报文的源 IP地址 NCoA替换为对应的 PCoA; NAR侧隧 道处理单元通过其包括的 NAR侧第二地址替换子单元, 基于所述移动节点 NCoA与 PCoA之间的映射关系, 将进行隧道解封装之后的普通报文的目的 IP地址 PCoA替换为对应的 NCoA。 Another solution is: the PAR side tunnel processing unit replaces the subunit by the second address of the PAR side included therein, and based on the mapping relationship between the mobile node NCoA and the PCoA, the source of the ordinary packet after the tunnel decapsulation is performed. Replace the IP address NCoA with the corresponding PCoA; NAR side tunnel The channel processing unit replaces the sub-unit with the NAR-side second address included in the channel, and replaces the destination IP address PCoA of the ordinary packet after the tunnel decapsulation with the corresponding NCoA based on the mapping relationship between the mobile node NCoA and the PCoA. .
然后, 由转发子模块 623将经所述隧道处理子模块 622处理过的报文进 行转发。 所述转发子模块 623具体包括隧道转发单元和常规转发单元。 其 中,隧道转发单元对经隧道处理子模块 622进行了隧道封装的隧道报文通 过所述 PAR和 NAR之间的静态隧道转发至对方; 常规转发单元对经隧道处 理子模块 622进行了隧道解封装后的普通报文,按照解封装后获得的内层 IP 头信息进行常规转发。  The message processed by the tunneling sub-module 622 is then forwarded by the forwarding sub-module 623. The forwarding submodule 623 specifically includes a tunnel forwarding unit and a regular forwarding unit. The tunnel forwarding unit tunnels the tunnel packet encapsulated by the tunnel processing sub-module 622 to the other party through the static tunnel between the PAR and the NAR; the conventional forwarding unit performs tunnel decapsulation on the tunnel processing sub-module 622. The subsequent ordinary message is forwarded according to the inner IP header information obtained after decapsulation.
优选的, 上述装置还包括映射删除模块, 所述映射删除模块用于在所述 移动节点绑定更新之后, 分别删除所述 PAR和所述 NAR上建立的所述移动 节点的映射关系。 当然, 映射删除模块也可以不立即删除关于移动节点的映 射关系, 只要在移动节点绑定更新之后禁止 PAR和 NAR使用所述映射关系, 例如映射删除模块将所述映射关系标识为禁止使用或失效,就不会影响绑 定更新之后的正常报文处理。  Preferably, the device further includes a mapping deletion module, where the mapping deletion module is configured to delete the mapping relationship between the PAR and the mobile node established on the NAR after the mobile node is bound to the update. Of course, the mapping deletion module may not immediately delete the mapping relationship about the mobile node, as long as the PAR and the NAR are prohibited from using the mapping relationship after the mobile node binding update, for example, the mapping deletion module identifies the mapping relationship as prohibited or invalid. , it will not affect the normal message processing after the binding update.
以上只是本发明的优选实施方式进行了描述,本领域的技术人员在本 发明技术的方案范围内进行的通常变化和替换,都应包含在本发明的保护 范围内。  The above are only the preferred embodiments of the present invention, and those skilled in the art should be included in the scope of the present invention within the scope of the present invention.

Claims

权 利 要 求 Rights request
1. 一种实现快速切换的方法, 其特征在于, 所述方法包括: 在移动前链路的接入路由器 PAR和移动后链路的接入路由器 N AR之间 建立静态隧道,所述移动前链路为第一链路,所述移动后链路为第二链路; 在移动节点自所述第一链路移动到第二链路之后、 绑定更新完成之前, 通过所述 PAR和 NAR之间的静态隧道对涉及所述移动节点的报文进行传 输。  A method for implementing fast handover, the method comprising: establishing a static tunnel between an access router PAR of a mobile front link and an access router NAR of a mobile back link, before the moving The link is a first link, and the mobile link is a second link; after the mobile node moves from the first link to the second link, before the binding update is completed, the PAR and the NAR are passed The static tunnel between the two transmits the message related to the mobile node.
2.如权利要求 1所述的方法, 其特征在于, 所述通过静态隧道对涉及 所述移动节点的报文进行传输具体包括:  The method according to claim 1, wherein the transmitting, by the static tunnel, the packet related to the mobile node comprises:
在移动节点绑定更新之前分别在 PAR和 NAR 上建立关于所述移动节点 的映射关系;  Establishing a mapping relationship with the mobile node on the PAR and the NAR before the mobile node binding update;
在移动节点自所述第一链路移动到第二链路之后、 绑定更新完成之前, 基于所述移动节点的映射关系对进 /出所述静态隧道的报文进行隧道封装 / 解封装;  After the mobile node moves from the first link to the second link, before the binding update is completed, tunneling/decapsulating the packets entering or leaving the static tunnel is performed based on the mapping relationship of the mobile node;
将隧道封装 /解封装后的报文进行转发。  Forwards the encapsulated/decapsulated packets of the tunnel.
3.如权利要求 2所述的方法, 其特征在于, 所述关于移动节点的映射 关系具体为所述移动节点的移动前链路转交地址 PCoA、 移动后链路转交地 址 NCoA以及所述隧道两端的 NAR、 PAR地址信息之间的映射关系。  The method according to claim 2, wherein the mapping relationship with respect to the mobile node is specifically a mobile forward care-of address PCoA, a mobile link care-of address NCoA, and the tunnel The mapping between the NAR and PAR address information of the terminal.
4.如权利要求 2 所述的方法, 其特征在于: 所述将封装 /解封装后的 报文进行转发具体包括:  The method of claim 2, wherein: the forwarding, after the encapsulating/decapsulating the packet, specifically includes:
对经过隧道封装后的隧道寺艮文,通过所述 PAR和 NAR之间的静态隧道 转发至对方;  Passing through the tunnel encapsulation tunnel, the tunnel is forwarded to the other party through the static tunnel between the PAR and the NAR;
对经过隧道解封装后的普通报文, 按照解封装后获得的内层 IP 头信息 进行常规转发。  The ordinary packet that has been decapsulated by the tunnel is forwarded according to the inner IP header information obtained after decapsulation.
5.如权利要求 3所述的方法, 其特征在于, 所述基于移动节点的映射 关系对进 /出所述静态隧道的报文进行封装 /解封装的过程具体包括: NAR对接收到的以所述移动节点 NCoA为报文 IP头源地址的普通报文 采用 NAR地址信息和 PAR地址信息作为外层隧道头进行隧道封装; 或者对来 自 PAR的隧道艮文进行隧道解封装; The method of claim 3, wherein the process of encapsulating/decapsulating the packets entering or leaving the static tunnel based on the mapping relationship of the mobile node includes: The NAR uses the NAR address information and the PAR address information as the outer tunnel header to encapsulate the received common packet with the mobile node NCoA as the source IP address of the packet, or tunnels the tunnel packet from the PAR. Package
PAR对接收到的以所述移动节点 PCoA为目的地址的普通报文采用 PAR地 址信息和 NAR地址信息作为隧道头进行隧道封装; 或者对来自 NAR的隧道 4艮 文进行隧道解封装。  The PAR tunnels the received packet with the destination address of the mobile node PCoA as the destination address by using the PAR address information and the NAR address information as the tunnel header; or tunnel decapsulation of the tunnel from the NAR.
6.如权利要求 5所述的方法, 其特征在于, 所述基于移动节点的映射 关系对进 /出所述静态隧道的报文进行封装 /解封装的过程还包括:  The method according to claim 5, wherein the process of encapsulating/decapsulating the packets entering or leaving the static tunnel based on the mapping relationship of the mobile node further includes:
NAR基于所述移动节点 NCoA与 PCoA之间的映射关系, 将进行隧道封 装之前的普通 ^艮文的源 IP地址 NCoA替换为对应的 PCoA;  Based on the mapping relationship between the mobile node NCoA and the PCoA, the NAR replaces the source IP address NCoA of the common 艮 message before the tunnel encapsulation with the corresponding PCoA;
PAR基于所述移动节点 PCoA与 NCoA之间的映射关系, 将进行隧道封 装之前的普通 4艮文的目的 IP地址 PCoA替换为对应的 NCoA。  Based on the mapping relationship between the mobile node PCoA and the NCoA, the PAR replaces the destination IP address PCoA of the ordinary packet before the tunnel encapsulation with the corresponding NCoA.
7.如权利要求 5所述的方法, 其特征在于, 所述基于移动节点的映射 关系对进 /出所述静态隧道的报文进行封装 /解封装的过程还包括:  The method according to claim 5, wherein the process of encapsulating/decapsulating the packets entering or leaving the static tunnel based on the mapping relationship of the mobile node further includes:
PAR基于所述移动节点 NCoA与 PCoA之间的映射关系, 将进行隧道解 封装之后的普通报文的源 IP地址 NCoA替换为对应的 PCoA;  The PAR replaces the source IP address NCoA of the ordinary packet after the tunnel decapsulation with the corresponding PCoA based on the mapping relationship between the mobile node NCoA and the PCoA;
NAR基于所述移动节点 NCoA与 PCoA之间的映射关系, 将进行隧道解 封装之后的普通报文的目的 IP地址 PCoA替换为对应的 NCoA。  The NAR replaces the destination IP address PCoA of the ordinary packet after the tunnel decapsulation with the corresponding NCoA based on the mapping relationship between the mobile node NCoA and the PCoA.
8. 如权利要求 1至 7中任意一项所述的方法, 其特征在于, 所述方 法还包括:  The method according to any one of claims 1 to 7, wherein the method further comprises:
在所述移动节点绑定更新完成之后, 所述 PAR和 NAR接收到关于所述 移动节点绑定更新完成的通告消息。  After the mobile node binding update is completed, the PAR and the NAR receive an announcement message regarding the completion of the mobile node binding update.
9. 如权利要求 2至 7中任意一项所述的方法, 其特征在于, 所述在 PAR和 NAR上建立关于所述移动节点的映射关系的具体过程包括:  The method according to any one of claims 2 to 7, wherein the specific process of establishing a mapping relationship between the PAR and the NAR on the mobile node comprises:
移动节点¾ PAR'所属网络生成 NCoA; ! The mobile node ¾ PAR 'relevant to the network generates the NCoA;!
所述 NAR建立 PCoA、 NCoA, NAR地址信息以及 PAR地址信息之间的映射 关系;  The NAR establishes a mapping relationship between PCoA, NCoA, NAR address information, and PAR address information;
所述 PAR建立 PCoA, NCoA. NAR地址信息以及 PAR地址信息之间的映射 关系。 The PAR establishes a mapping relationship between PCoA, NCoA. NAR address information and PAR address information.
10. 如权利要求 9所述的实现快速切换的方法,其特征在于,所述 NAR 建立映射关系具体包括: The method for implementing the fast handover according to claim 9, wherein the establishing the mapping relationship by the NAR specifically includes:
当所述移动节点移动到 NAR所属网络前,所述移动节点向 PAR发送包 含了 NCoA的请求消息, 所述 PAR收到所述请求消息后, 向 NAR发送请求 确认 NCoA 地址是否合法的合法性请求消息, 所述合法性请求消息携带 PCoA、 NCoA, NAR地址信息以及 PAR地址信息之间的映射关系;  Before the mobile node moves to the network to which the NAR belongs, the mobile node sends a request message including the NCoA to the PAR, and after receiving the request message, the PAR sends a request for validity to the NAR to confirm whether the NCoA address is legal. a message, the legality request message carries a mapping relationship between PCoA, NCoA, NAR address information, and PAR address information;
所述 NAR收到所述合法性请求消息后, 建立 PCoA、 NCoA, NAR地址信 息以及 PAR地址信息之间的映射关系。  After receiving the legality request message, the NAR establishes a mapping relationship between PCoA, NCoA, NAR address information, and PAR address information.
11. 如权利要求 10 所述的实现快速切换的方法, 其特征在于, 所述 NAR收到所述合法性请求消息后建立映射关系的过程还包括:  The method for implementing the fast handover according to claim 10, wherein the process of establishing a mapping relationship after the NAR receives the legality request message further includes:
所述 NAR收到所述合法性请求消息后, 向所述 PAR发送确认 NCoA合 法性 ¾合法性确认消息;  After receiving the legality request message, the NAR sends an acknowledgement NCoA legality confirmation message to the PAR;
相应地, 所述 PAR建立映射关系的过程具体为:  Correspondingly, the process of establishing a mapping relationship by the PAR is specifically:
所述 PAR收到所述合法性确认消息后, 建立 PCoA、 NCoA, NAR地址信息 以及 PAR地址信息之间的映射关系。  After receiving the legality confirmation message, the PAR establishes a mapping relationship between the PCoA, the NCoA, the NAR address information, and the PAR address information.
12. 一种实现快速切换的装置, 其特征在于, 所述装置包括隧道建立 模块和传送模块, 其中,  An apparatus for implementing fast switching, wherein the apparatus includes a tunnel establishment module and a transmission module, where
所述隧道建立模块用于在移动前链路的接入路由器 PAR 和移动后链 路的接入路由器 NAR之间建立静态隧道, 所述移动前链路为第一链路, 所 述移动后链路为第二链路;  The tunnel establishment module is configured to establish a static tunnel between the access router PAR of the mobile front link and the access router NAR of the mobile link, where the mobile front link is the first link, and the mobile chain is The road is the second link;
所述传送模块用于在移动节点自所述第一链路移动到所述第二链路之 后、 绑定更新完成之前, 通过 PAR和 NAR之间的所述静态隧道对涉及所述 移动节点的报文进行传输。  The transmitting module is configured to pass the static tunnel between the PAR and the NAR to the mobile node after the mobile node moves from the first link to the second link, before the binding update is completed. The message is transmitted.
1 3.如权利要求 12所述的装置,其特征在于,所述传送模块具体包括: 映射建立子模块,用于在移动节点绑定更新之前分别在 PAR和 NAR 上建 立关于所述移动节点的映射关系;  The device according to claim 12, wherein the transmitting module comprises: a mapping establishing submodule, configured to establish, on the PAR and the NAR, the mobile node respectively before the mobile node binds the update Mapping relations;
隧道处理子模块, 用于在移动节点自所述第一链路移动到第二链路之 后、 绑定更新完成之前, 基于所述移动节点的映射关系对进出所述静态隧道 的报文进行封装解封装; 转发子模块, 用以将经所述隧道处理子模块处理过的报文进行转发。 a tunneling submodule, configured to encapsulate a packet entering and leaving the static tunnel based on a mapping relationship of the mobile node after the mobile node moves from the first link to the second link and before the binding update is completed. Decapsulation And a forwarding submodule, configured to forward the packet processed by the tunnel processing submodule.
14.如权利要求 13所述的装置, 其特征在于, 所述关于移动节点的映 射关系具体为所述移动节点的移动前链路转交地址 PCoA、 移动后链路转交 地址 NCoA、 以及所述隧道两端的 NAR、 PAR地址信息之间的映射关系。 The device according to claim 13, wherein the mapping relationship with respect to the mobile node is specifically a mobile forward care-of address PCoA, a mobile link care-of address NCoA, and the tunnel of the mobile node. The mapping between NAR and PAR address information at both ends.
15.如权利要求 1 3所述的装置,其特征在于: 所述转发子模块具体包 括:  The device according to claim 13, wherein the forwarding submodule specifically includes:
隧道转发单元,用以对经隧道处理子模块进行了隧道封装的隧道报文 通过所述 PAR和 NAR之间的静态隧道转发至对方;  a tunnel forwarding unit, configured to forward a tunnel packet encapsulated by the tunnel processing sub-module to the other party through a static tunnel between the PAR and the NAR;
常规转发单元, 用以对经隧道处理子模块进行了隧道解封装后的普通报 文, 按照解封装后获得的内层 IP头信息进行常规转发。  The conventional forwarding unit is configured to perform normal forwarding of the common IP packet obtained by decapsulating the tunneled sub-module according to the inner IP header information obtained after decapsulation.
16.如权利要求 14所述的装置, 其特征在于, 所述隧道处理子模块具 体包括:  The device according to claim 14, wherein the tunnel processing submodule comprises:
NAR侧隧道处理单元,用于对接收到的以所述移动节点 NCoA为 艮文 IP 头源地址的普通报文采用 NAR地址信息和 PAR地址信息作为隧道头进行隧道 封装; 或者对来自 PAR的隧道 文进行隧道解封装;  The NAR side tunnel processing unit is configured to use the NAR address information and the PAR address information as a tunnel header for tunnel encapsulation of the received common packet with the mobile node NCoA as the source IP address of the mobile node; or tunnel to the PAR The tunnel is decapsulated;
PAR侧隧道处理单元,用以对接收到的以所述移动节点 PCoA为目的地址 的普通 4艮文采用 PAR地址信息和 NAR地址信息作为隧道头进行隧道封装; 或 者对来自 NAR的隧道报文进行隧道解封装。  The PAR side tunnel processing unit is configured to use the PAR address information and the NAR address information as the tunnel header for tunnel encapsulation of the received common destination address of the mobile node PCoA, or to tunnel the packet from the NAR. Tunnel decapsulation.
17.如权利要求 16所述的装置, 其特征在于,  17. Apparatus according to claim 16 wherein:
NAR侧隧道处理单元还包括 NAR侧第一地址替换子单元 ,用以基于所述 移动节点 NCoA与 PCoA之间的映射关系, 将进行隧道封装之前的普通报文 的源 IP地址 NCoA替换为对应的 PCoA;  The NAR-side tunnel processing unit further includes a NAR-side first address replacement sub-unit, and replaces the source IP address NCoA of the common packet before the tunnel encapsulation with the corresponding one based on the mapping relationship between the mobile node NCoA and the PCoA. PCoA;
PAR侧隧道处理单元还包括 PAR侧第一地址替换子单元, 用以基于所述 移动节点 PCoA与 NCoA之间的映射关系, 将进行隧道封装之前的普通报文 的目的 IP地址 PCoA替换为对应的 NCoA。  The PAR-side tunnel processing unit further includes a PAR-side first address replacement sub-unit, configured to replace the destination IP address PCoA of the ordinary packet before the tunnel encapsulation with the corresponding one based on the mapping relationship between the mobile node PCoA and the NCoA. NCoA.
18.如权利要求 16所述的装置, 其特征在于,  18. Apparatus according to claim 16 wherein:
PAR侧隧道处理单元还包括 PAR侧第二地址替换子单元, 用以基于所述 移动节点 NCoA与 PCoA之间的映射关系 , 将进行隧道解封装之后的普通报 文的源 IP地址 NCoA替换为对应的 PCoA; NAR侧隧道处理单元还包括 NAR侧第二地址替换子单元,用以基于所述 移动节点 NCoA与 PCoA之间的映射关系, 将进行隧道解封装之后的普通报 文的目的 IP地址 PCoA替换为对应的 NCoA。 - ' 1 9. 如权利要求 1 3至 18 中任意一项所述的装置, 其特征在于, 所述 装置还包括映射删除模块, 用于在所述移动节点绑定更新之后, 分别删除所 述 PAR和 NAR上建立的关于所述移动节点的映射关系。 The PAR-side tunnel processing unit further includes a PAR-side second address replacement sub-unit, configured to replace the source IP address NCoA of the common packet after the tunnel decapsulation with the corresponding mapping based on the mapping relationship between the mobile node NCoA and the PCoA. PCoA; The NAR-side tunnel processing unit further includes a NAR-side second address replacement sub-unit for replacing the destination IP address PCoA of the ordinary packet after the tunnel decapsulation with the mapping relationship between the mobile node NCoA and the PCoA. NCoA. The device according to any one of claims 1 to 3, wherein the device further comprises a mapping deletion module, configured to delete the mobile node after the binding update A mapping relationship established on the PAR and the NAR with respect to the mobile node.
PCT/CN2007/000580 2006-05-15 2007-02-16 A method and device for realizing fast handover WO2007131404A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200610082243.X 2006-05-15
CN200610082243XA CN101051986B (en) 2006-05-15 2006-05-15 Method and device for realizing quick switch

Publications (1)

Publication Number Publication Date
WO2007131404A1 true WO2007131404A1 (en) 2007-11-22

Family

ID=38693526

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/000580 WO2007131404A1 (en) 2006-05-15 2007-02-16 A method and device for realizing fast handover

Country Status (2)

Country Link
CN (1) CN101051986B (en)
WO (1) WO2007131404A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2003826A2 (en) * 2006-06-24 2008-12-17 Huawei Technologies Co., Ltd. A method, system and apparatus for realizing fast handover
CN113098751A (en) * 2021-03-23 2021-07-09 新华三软件有限公司 Path switching method and device
CN116996587A (en) * 2023-09-25 2023-11-03 北京持安科技有限公司 Distributed sdp tunnel control method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742485B (en) * 2008-11-21 2013-01-09 华为技术有限公司 Method and device for transmitting data
CN103037352B (en) * 2011-09-29 2017-05-24 中兴通讯股份有限公司 Node communication method and communication system at roam between proxy mobile internet protocol (PMIP) regions
CN103037351B (en) * 2011-09-29 2017-10-27 中兴通讯股份有限公司 A kind of node communication method and communication system in PMIP domains internetwork roaming
CN103037350B (en) * 2011-09-29 2017-03-22 中兴通讯股份有限公司 Node communication method and communication system during proxy mobile internet protocol (PMIP) inter-domain roaming
CN102655476B (en) * 2012-04-19 2014-11-05 华为技术有限公司 Internet protocol flow transmitting method and device
CN103891316B (en) * 2012-09-21 2017-11-28 华为技术有限公司 Session method, the apparatus and system of distributed mobile management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050099148A (en) * 2004-04-09 2005-10-13 경희대학교 산학협력단 Fast hand-off method using mobility prediction in hierarchical hmipv6 network
CN1705285A (en) * 2004-05-31 2005-12-07 中国科学院声学研究所 Tunnel based mobile IPv6 quick switching method
JP2006024982A (en) * 2004-07-06 2006-01-26 Keio Gijuku Method of establishing security association

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100512525C (en) * 2004-11-29 2009-07-08 中兴通讯股份有限公司 Fast switching method in MAP field of HMIPv6

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050099148A (en) * 2004-04-09 2005-10-13 경희대학교 산학협력단 Fast hand-off method using mobility prediction in hierarchical hmipv6 network
CN1705285A (en) * 2004-05-31 2005-12-07 中国科学院声学研究所 Tunnel based mobile IPv6 quick switching method
JP2006024982A (en) * 2004-07-06 2006-01-26 Keio Gijuku Method of establishing security association

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2003826A2 (en) * 2006-06-24 2008-12-17 Huawei Technologies Co., Ltd. A method, system and apparatus for realizing fast handover
EP2003826A4 (en) * 2006-06-24 2009-07-01 Huawei Tech Co Ltd A method, system and apparatus for realizing fast handover
CN113098751A (en) * 2021-03-23 2021-07-09 新华三软件有限公司 Path switching method and device
CN116996587A (en) * 2023-09-25 2023-11-03 北京持安科技有限公司 Distributed sdp tunnel control method and device
CN116996587B (en) * 2023-09-25 2024-01-23 北京持安科技有限公司 Distributed sdp tunnel control method and device

Also Published As

Publication number Publication date
CN101051986B (en) 2010-04-07
CN101051986A (en) 2007-10-10

Similar Documents

Publication Publication Date Title
JP5227960B2 (en) Packet transfer for proxy mobile IP
US9516495B2 (en) Apparatus and methods of PMIPv6 route optimization protocol
US8570976B2 (en) Method and system for fast handover in hierarchical mobile IPv6
US8873578B2 (en) Method and apparatus for use in a communications network
RU2530694C2 (en) Method (versions) and system providing information exchange with mobile node
WO2007131404A1 (en) A method and device for realizing fast handover
JP2012085311A (en) Method for enabling simultaneous use of foreign network and another network
JP2009529265A (en) Method and system for fast handover using dynamic router advertisement
WO2011001594A1 (en) Redirection method, redirection system, mobile node, home agent, and proxy node
WO2008000133A1 (en) A method, system and apparatus for realizing fast handover
JP5059181B2 (en) Communication system and communication method of communication system
JP2011504349A (en) Support for continuity of tunnel communication for mobile nodes with multiple care-of addressing
JPWO2008132780A1 (en) Overlay network node, mobile node and mobile router
US8824353B2 (en) Mobility route optimization in a network having distributed local mobility anchors
WO2009006825A1 (en) Handover method, method for joining multicast group and access router in proxy mobile ip
JP3573098B2 (en) Mobile terminal management system, access router and mobile terminal management method in mobile network
WO2007022697A1 (en) A METHOD FOR COMMUNICATING BETWEEN THE IPv6 COMMUNICATION PARTNER AND THE MOBILE IPv6 NODE AS WELL AS THE COMMUNICATION PARTNER AGENT GATEWAY
JP2006352444A (en) System and method for packet transfer
WO2013007133A1 (en) Method and system for managing packet forwarding path, and network element
WO2018137462A1 (en) Switching method and device
WO2008017253A1 (en) A multiple hosts access method, system and apparatus supporting mixed ip
US8270968B1 (en) Systems and methods for mobile node handoff
KR100700526B1 (en) Method for handover on mobility network
WO2010064181A1 (en) REDUCTION OF HANDOVER DELAYS IN NESTED PROXY MOBILE IPv6 MOBILE IPv6 NETWORKS
WO2014000175A1 (en) Session routing method, apparatus and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07710996

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07710996

Country of ref document: EP

Kind code of ref document: A1