WO2014043901A1 - Session method, apparatus, and system for distributed mobility management - Google Patents

Session method, apparatus, and system for distributed mobility management Download PDF

Info

Publication number
WO2014043901A1
WO2014043901A1 PCT/CN2012/081779 CN2012081779W WO2014043901A1 WO 2014043901 A1 WO2014043901 A1 WO 2014043901A1 CN 2012081779 W CN2012081779 W CN 2012081779W WO 2014043901 A1 WO2014043901 A1 WO 2014043901A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
router
mobile node
node device
data packet
Prior art date
Application number
PCT/CN2012/081779
Other languages
French (fr)
Chinese (zh)
Inventor
何宁
朱雷
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2012/081779 priority Critical patent/WO2014043901A1/en
Priority to CN201280004180.XA priority patent/CN103891316B/en
Publication of WO2014043901A1 publication Critical patent/WO2014043901A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks

Definitions

  • Session method Session method, device and system for distributed mobility management
  • the present invention relates to the field of communications technologies, and in particular, to a session method, apparatus, and system for distributed mobility management.
  • a first-hop access router (AR) of a mobile node (MN) is generally used as a mobility anchor to perform mobility management functions, for example: Mobile user location updates, periodic updates, authentication, power-on access, shutdown exit, and device identification.
  • the MN moves to the current access router (NAR), it will be attached under nAR, and jtbHt nAR will re-distribute the Internet Protocol (IP) address for the MN, thus making MN
  • IP Internet Protocol
  • the IP address assigned by the nAR to the MN can be used to perform data interaction with a communication node (Correspondent Node, CN for short).
  • a communication node Correspondent Node, CN for short.
  • pAR a previous access router
  • the pAR allocates an IP address to the MN, and the MN enters the nAR network after initiating a session in the pAR network.
  • the session initiated by the MN in the pAR network uses the IP address assigned by the nAR to the MN, which will cause the session initiated by the MN in the pAR network to be interrupted.
  • the inventors have found that at least the following problems exist in the prior art:
  • an embodiment of the present invention provides a session method for distributed mobility management, including: a first router assigning a first IP address to a mobile node device; a router acquiring a second IP address and a third IP address of the communication node, wherein the second IP address is allocated by the second router where the mobile node device is located for the mobile node device; The first session data packet sent by the mobile node device; the first router sends the first session data packet to the communication node by using the first IP address as a source IP address, and the second IP address An address is sent to the communication node to enable After receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and submits the first session data packet and the second IP address to the communication.
  • the receiving, by the first router, the first session data packet sent by the mobile node device includes:
  • the first router receives the first session data packet of the mobile node device with the second IP address as the source IP address and the third IP address as the destination IP address.
  • the first router sends the first router to the communication node by using the first IP address as a source IP address.
  • the session packet including:
  • the first router replaces the second IP address at the source IP address field in the first session data packet with the first IP address.
  • the receiving, by the first router, the first session data packet sent by the mobile node device includes:
  • the first router receives the first session data packet of the mobile node device with the first IP address as the source IP address and the third IP address as the destination IP address.
  • the first router receives a router request message sent by the mobile node device, where the router request message carries a first flag bit, the first flag bit is a first value, and the first value is used to indicate
  • the mobile node device will perform the sending of the first session data packet by using the first IP address as a source IP address;
  • the first router establishes a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message carries the first flag bit, the first IP address, and the second IP address; Receiving, by the first router, a proxy binding response message sent by the communication node with respect to the proxy binding update message, where the proxy binding response message is used to indicate that the communication node agrees to the mobile node device
  • the first IP address is a source IP address for transmitting the first session data packet.
  • the acquiring, by the first router, the second IP address and the third IP address of the communication node includes:
  • the first router acquires session information of the mobile node device by using a centralized device, where the centralized device is used to record session information of the mobile node device, and the session information includes an identity flag of the mobile node device.
  • the second IP address and the third IP address are used to record session information of the mobile node device, and the session information includes an identity flag of the mobile node device.
  • the acquiring, by the first router, the second IP address and the third IP address of the communication node includes:
  • the first router acquires session information of the mobile node device from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the first router acquires the second IP address and the third IP address of the communication node, and the method includes:
  • the first router acquires session information from the mobile node device, and the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • an embodiment of the present invention provides a session method for distributed mobility management, including:
  • the mobile node device After attaching to the first router, the mobile node device receives the first IP address allocated by the first router;
  • Source IP address and submit the first session data packet and the second IP address to an upper layer of a communication node's IP layer;
  • the mobile node device receives a second session data packet sent by the first router and the second IP address; After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address to the mobile The upper layer of the IP layer of the node device.
  • the sending, by the mobile node device, the first session data packet to the first router includes:
  • the mobile node device sends the first session data packet to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
  • the sending, by the mobile node device, the first session data packet to the first router includes:
  • the mobile node device sends the first session data packet to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address.
  • the mobile node device uses the first IP address as a source IP address and the third IP address as a destination Before sending the first session data packet to the first router, the method includes: the mobile node device sending a router request message to the first router, where the router request message carries a first flag bit, where The first flag is a first value, and the first value is used to indicate that the mobile node device sends the first session data packet by using the first IP address as a source IP address.
  • an embodiment of the present invention provides a first router, including: a first allocation unit, configured to allocate a first IP address to the mobile node device;
  • a first acquiring unit configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device;
  • a first receiving unit configured to receive a first session data packet sent by the mobile node device, where the first sending unit is configured to use the first IP address allocated by the first allocating unit as a source IP address to the communication node Transmitting, by the first receiving unit, the first session data packet, and sending the second IP address obtained by the first acquiring unit to the communication node, so that the communication node receives the first After the session data packet, the second IP address is used as the final source IP address, and the first session data packet and the second IP address are delivered to an upper layer of the IP layer of the communication node;
  • a second receiving unit configured to receive, by the communications node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address;
  • the first sending unit is further configured to send, by using the second IP address obtained by the first acquiring unit, the second session data packet received by the second receiving unit to the mobile node device So that the mobile node device, after receiving the second session data packet, uses the second IP address as a final destination IP address, and the second session data packet and the second IP address. Submitted to the upper layer of the IP layer of the mobile node device; or
  • the first sending unit is further configured to send the second receiving order to the mobile node device Receiving the second session data packet, and transmitting the second IP address obtained by the first obtaining unit to the mobile node device, so that the mobile node device after receiving the second session data packet And the second IP address is the final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device.
  • the first receiving unit is specifically configured to:
  • the method further includes:
  • a first replacement unit configured to replace, by the first IP address allocated by the first allocation unit, a second IP address at a source IP address field in the first session data packet received by the first receiving unit.
  • the first receiving unit is specifically configured to:
  • the method further includes: a third receiving unit, configured to receive a router request message sent by the mobile node device, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used for Representing that the mobile node device will perform the sending of the first session data packet by using the first IP address as a source IP address;
  • a first binding unit configured to establish a binding relationship with the communication node by using a proxy binding update message after the third receiving unit receives the router request message, where the proxy binding update message includes the a first flag bit, a first IP address, and a second IP address;
  • a fourth receiving unit configured to receive a proxy binding response message sent by the communications node with respect to the proxy binding update message sent by the first binding unit, where the proxy binding response message is used to indicate the communication
  • the node agrees that the mobile node device performs the sending of the first session data packet by using the first IP address as a source IP address.
  • any one of the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the fifth implementation manner in the third aspect The first obtaining unit:
  • the method is used to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device.
  • the second IP address and the third IP address are described.
  • the first acquiring unit In the mode, any one of the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the sixth implementation in the third aspect
  • the first acquiring unit In the mode, the first acquiring unit:
  • the session information of the mobile node device is obtained from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the first obtaining unit :
  • the session information is obtained from the mobile node device, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • an embodiment of the present invention provides a mobile node device, including:
  • a first receiving unit configured to receive a first IP address allocated by the first router after being attached to the first router
  • a first sending unit configured to send the first session data packet to the first router, so that the first router sends the first session data packet to the communications node by using the first IP address as a source IP address, where And sending, to the communication node, a second IP address of the second router where the mobile node device is located, so that the communication node receives the first session data packet, and the second IP address a final source IP address, and submit the first session data packet and the second IP address to an upper layer of a communication node's IP layer;
  • a second receiving unit configured to receive, by the first router, the second IP address a second session packet for the destination IP address
  • a submitting unit configured to use the second IP address as a final destination IP address, and submit the second session data packet and the second IP address received by the second receiving unit to an IP of the mobile node device The upper layer of the layer.
  • the first sending unit is specifically configured to:
  • the first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
  • the first sending unit is specifically configured to:
  • the first IP address is used as the source IP address
  • the third IP address is used as the destination IP address to send the session data packet to the first router.
  • the method further includes:
  • a second sending unit configured to send a router request message to the first router, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used to indicate The mobile node device will perform the first IP address as a source IP address. The sending of the first session data packet.
  • an embodiment of the present invention provides a first router, including:
  • a first processor configured to allocate a first IP address to the mobile node device
  • a first receiver configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device;
  • the first receiver is further configured to receive a first session data packet sent by the mobile node device
  • a first transmitter configured to send, by using the first IP address allocated by the first processor, a first session data packet received by the first receiver to the communication node, and the first Sending, by the receiver, a second IP address to the communication node, so that after receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and Transmitting the first session data packet and the second IP address to an upper layer of an IP layer of the communication node;
  • the first receiver is further configured to receive, by the communication node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address;
  • the first transmitter is further configured to send the second session data packet received by the first receiver to the mobile node device by directly using the second IP address obtained by the first receiver as a destination IP address. So that the mobile node device, after receiving the second session data packet, Taking the second IP address as a final destination IP address, and submitting the second session data packet and the second IP address to an upper layer of an IP layer of the mobile node device; or
  • the first transmitter is further configured to send the second session data packet received by the first receiver to the mobile node device, and send the second IP address obtained by the first receiver to The mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and the second session data packet and the The second IP address is delivered to the upper layer of the IP layer of the mobile node device.
  • the first receiver is specifically configured to:
  • the first processor is further configured to:
  • the first receiver is specifically configured to:
  • the first receiver is further configured to:
  • the router Receiving a router request message sent by the mobile node device, the router requesting cancellation, with a first flag bit, the first flag bit is a first value, and the first value is used to indicate the mobile node
  • the device will send the first session data packet by using the first IP address as a source IP address;
  • the first transmitter is further configured to: after the first receiver receives the router request message, establish a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message is included The first flag bit, the first IP address, and the second IP address;
  • the first receiver is further configured to receive a proxy binding response message sent by the communications node with respect to a proxy binding update sent by the first sender, where the proxy binding response message is used to indicate
  • the communication node agrees that the mobile node device transmits the session data packet by using the first IP address as a source IP address.
  • the method is further configured to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device.
  • the second IP address and the third IP address are described.
  • the first implementation manner, the second implementation manner, and the third And the first receiver is further configured to acquire session information of the mobile node device from the second router, where the session information includes the mobile node device The identity flag, the second IP address, and the third IP address.
  • the session information including an identity tag of the mobile node device, the second IP address, and a third IP address.
  • an embodiment of the present invention provides a mobile node device, including:
  • a first receiver configured to receive a first IP address assigned by the first router after being attached to the first router
  • a first sender configured to send the first session data packet to the first router, so that the first router sends the first session data packet to the communication node by using the first IP address as a source IP address, And sending, to the communication node, a second IP address of the second router where the mobile node device is located, so that the communication node receives the first session data packet, and the second IP address a final source IP address, and submit the first session data packet and the second IP address to an upper layer of a communication node's IP layer;
  • the first receiver is further configured to receive, by the first router, the second session data packet with the second IP address as a destination IP address; or And configured to receive the second session data packet sent by the first router and the second IP address;
  • a first processor configured to use the second IP address as a final destination IP address, and submit the second session data packet and the second IP address received by the first receiver to a mobile node device The upper layer of the IP layer.
  • the first transmitter is specifically configured to:
  • the first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
  • the first transmitter is specifically configured to:
  • the first session data packet is sent to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address.
  • the first transmitter is further configured to:
  • an embodiment of the present invention provides a session system for distributed mobility management, including a first router, a second router, a mobile node device, and a communication node, where
  • the first router is configured to allocate a first IP address to the mobile node device, obtain a second IP address, and a third IP address of the communication node, where the second IP address is a second router where the mobile node device is located before And allocating, by the mobile node device, a first session data packet sent by the mobile node device, sending the first session data packet to the communication node by using the first IP address as a source IP address, and The second IP address is sent to the communication node, and the second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address is directly received by the communication node.
  • the mobile node device is configured to receive a first IP address allocated by the first router, and send a first session data packet to the first router, where Receiving, by the first router, a second session data packet with the second IP address as the destination IP address, or receiving the second session data packet sent by the first router, and the second IP address.
  • Said second IP address is a final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of an IP layer of the mobile node device;
  • the communication node is configured to: after receiving the first session data packet sent by the first router, use the second IP address as a final source IP address, and the first session data packet and The second IP address is delivered to the upper layer of the IP layer of the communication node, and the third IP address is used as the source IP address, and the first IP address is used as the destination IP address to send the second session data packet to the first router.
  • the session method, device and system for distributed mobility management provided by the embodiment of the present invention, after the mobile node device moves to the network where the first router is located, the communication node receives the first session data packet and the mobile node device receives the second When the session data packet is used, the second IP address assigned by the second router to the mobile node device is the final source IP address and the final destination IP address, thereby ensuring that the mobile node device is in the second place before it.
  • the session initiated by the router is not interrupted, and the first IP address assigned by the first router to the mobile node device is the source IP address when the first router sends the first session data packet to the communication node, and the communication node is the first
  • the second session data packet sent by the router uses the first IP address as the destination IP address, so that the first router does not need to establish a communication tunnel when communicating with the communication node.
  • the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
  • FIG. 1 is a flowchart of a session method for distributed mobility management according to an embodiment of the present invention.
  • 2 is a flowchart of a session method for distributed mobility management according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a session method for distributed mobility management according to another embodiment of the present invention
  • FIG. 4 is a flowchart of a session method for distributed mobility management according to another embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of a first router according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a first router according to another embodiment of the present invention
  • FIG. 9 is a schematic structural diagram of a mobile node device according to an embodiment of the present invention
  • FIG. 10 is a schematic structural diagram of a mobile node device according to another embodiment of the present invention
  • FIG. 11 is a schematic structural diagram of a session system for distributed mobility management according to an embodiment of the present invention.
  • FIG. 1 a session method for distributed mobility management according to an embodiment of the present invention is described from a first router side, where the method includes: 101.
  • the first router allocates a first IP address to the mobile node device.
  • the first router acquires a second IP address and a third IP address of the communication node.
  • the second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
  • the first router may acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, for example, the centralized device stores a policy profile of the mobile node device, where the session information of the mobile node device is recorded in the configuration information, and the session information includes a mobile node identity (Mobile Node Identity, MN-ID for short) ), the second IP address and the third IP address.
  • MN-ID Mobile Node Identity
  • the first router may acquire session information of the mobile node device by using the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the second router may delete session information of the mobile node device to save storage space of the second router.
  • the first router acquires session information from the mobile node device, for example, the mobile node device stores configuration information (the policy profile) of the mobile node device, where the mobile node is recorded in the configuration information. Session information of the device, the session information including an identity flag of the mobile node device, the second IP address, and a third IP address.
  • the acquiring, by the first router, the session information from the mobile node device may also be implemented by receiving a data packet that is sent by the mobile node device and carrying the session information, where the session information includes the mobile node device. The second IP address and the third IP address.
  • the first router receives a first session data packet sent by the mobile node device.
  • the mobile node device may use the first IP address or the second IP address as a source.
  • the IP address is used to send the first session packet. If the mobile node device sends the first session data packet with the first IP address as the source IP address, the second IP address may be the home address option of the first session data packet IP header (Home) Address Option ) Carry.
  • the first router sends the first session data packet to the communication node by using the first IP address as a source IP address, and sends the second IP address to the communication node, so that the first router After receiving the session data packet, the communication node uses the second IP address as the final source IP address, and delivers the first session data packet and the second IP address to the IP layer of the communication node.
  • Upper level the first router sends the first session data packet to the communication node by using the first IP address as a source IP address, and sends the second IP address to the communication node, so that the first router After receiving the session data packet, the communication node uses the second IP address as the final source IP address, and delivers the first session data packet and the second IP address to the IP layer of the communication node.
  • the first router receives the second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address. Then step 106 or step 107 is performed.
  • the second IP address is carried by a Type 2 Routing Header in an IP header of the second session data packet.
  • the first router directly sends the second session data packet to the mobile node device by using a second IP address as a destination IP address, so that the mobile node device receives the second session data packet. Thereafter, the second IP address is used as the final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device.
  • the first router After receiving the second session data packet, the first router replaces the first IP address in the IP header with the second IP address in the Type 2 Routing Header, so that the second The IP address is used as the destination IP address.
  • the first router sends a second session data packet to the mobile node device, and sends the second IP address to the mobile node device, so that the mobile node device receives the second After the session data packet, the second IP address is the final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device.
  • the first router directly forwards the second session data packet, and the second IP address is carried by a Type 2 Routing Header in an IP header of the second session data packet.
  • the session method for distributed mobility management is described from the mobile node device side, and the method includes:
  • the mobile node device After attaching to the first router, the mobile node device receives the first IP address allocated by the first router. 202. The mobile node device sends a first session data packet to the first router, so that the first router sends the first session data packet to the communication node by using the first IP address as a source IP address. And transmitting, to the communication node, a second IP address assigned by the second router where the mobile node device is located, so that the communication node receives the first session data packet, and the second IP address The address is the final source IP address, and the first session data packet and the second IP address are delivered to the upper layer of the IP layer of the communication node. Then step 203 or step 204 is performed.
  • the mobile node device receives, by the first router, a second session data packet with the second IP address as a destination IP address.
  • the mobile node device receives a second session data packet sent by the first router and the second IP address.
  • the mobile node device After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address. Go to the upper layer of the IP layer of the mobile node device.
  • first router and the second router provided by the embodiments of the present invention are generally first-hop access routers (ARs), which can be used as mobile anchor points to perform mobility management functions. .
  • ARs first-hop access routers
  • the session method for distributed mobility management provided by the embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second path
  • the second IP address assigned by the router to the mobile node device is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted.
  • the first router sends the first session data packet to the communication node the first IP address assigned by the first router to the mobile node device is the source IP address, and the second session data packet sent by the communication node to the first router is The first IP address is used as the destination IP address, so that the first router does not need to establish a communication tunnel when communicating with the communication node.
  • the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
  • a session method for distributed mobility management includes:
  • a mobile node (Mobile Node, MN for short) device initiates a session on the second router, and sends a first session data packet to the communication node by using the second IP address assigned by the second router as the source IP address.
  • MN Mobile Node
  • the mobile node device moves to a network of the first router. After the mobile node device is attached to the first router, the first router allocates a first IP address to the mobile node device.
  • the mobile node device sends a router request message to the first router.
  • the router request (Router Solicitation, referred to as RS) message is carried in the message Having a first flag, if the first flag is a first value (eg, using a binary number 1), the first value is used to indicate that the mobile node device will use the first IP address as a source IP address
  • the first session data packet is sent. If the first flag is a second value (for example, using a binary 0), the second value is used to indicate that the mobile node device will perform the first session data packet with the second IP address as the source IP address. send.
  • the first router acquires a second IP address and a third IP address of the communication node.
  • the second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
  • the first router may acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, for example, the centralized device stores a policy profile of the mobile node device, where the session information of the mobile node device is recorded in the configuration information, and the session information includes a mobile node identity (Mobile Node Identity, MN-ID for short) ), the second IP address and the third IP address.
  • MN-ID Mobile Node Identity
  • the first router may acquire session information of the mobile node device by using the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the second router may delete session information of the mobile node device to save storage space of the second router.
  • the first router acquires session information from the mobile node device, for example, the mobile node device stores configuration information (the policy profile) of the mobile node device, where the mobile node is recorded in the configuration information. Session information of the device, the session information including an identity flag of the mobile node device, the second IP address, and a third IP address.
  • the acquiring, by the first router, the session information from the mobile node device may also be implemented by receiving a data packet that is sent by the mobile node device and carrying the session information, where the session information includes the mobile node device.
  • the second IP address and the third IP address may also be implemented by receiving a data packet that is sent by the mobile node device and carrying the session information, where the session information includes the mobile node device.
  • the first router establishes a binding relationship with the communication node by using a Proxy Binding Update (PBU) message, where the proxy binding update message carries the first flag bit, and the first IP address and second IP address.
  • PBU Proxy Binding Update
  • the first flag bit in the PBU message is a first value (for example, using a binary number 1), and indicates that the mobile node device sends the first session data packet by using the first IP address as a source IP address. To maintain the continuity of the session initiated on the second router.
  • the first flag bit in the PBU message is a first value (for example, using a binary number 1), and indicates that the mobile node device sends the first session data packet by using the first IP address as a source IP address. To maintain the continuity of the session initiated on the second router.
  • the IP address can be recorded in a pre-defined current address mobility option (MN Current-Address Mobility Opt ion) in the mobile node device, for example, the format of the Current-Address Mobility Opt ion is as shown in Table 1, where Type represents The type of option (value is an integer, for example defined as 7), Length indicates the length of MN Current-Address (value is 16, the unit is sub-section), MN Current-Address indicates the value of the option is the value of the current address move option And the second IP address can be recorded in The Home Address Option in the IP header of the PBU message Table 1.
  • MN Current-Address Mobility Option option is an integer, for example defined as 7
  • Length indicates the length of MN Current-Address (value is 16, the unit is sub-section)
  • MN Current-Address indicates the value of the option is the value of the current address move option
  • the second IP address can be recorded in The Home Address Option in the IP header of the PBU message Table 1.
  • the communications node After receiving the proxy binding update message, the communications node can satisfy the requirement that the mobile node device sends the first session data packet by using the first IP address as a source IP address. And returning a Proxy Binding Acknowledgement (PBA) message to the first router with respect to the proxy binding update message.
  • PBA Proxy Binding Acknowledgement
  • the PBA message carries the first flag bit, and the first flag bit in the PBA message is a first value (for example, using a binary number 1), and is used to indicate that the communication node agrees to the mobile node.
  • the device sends the first session data packet by using the first IP address as the source IP address.
  • the communication node must maintain the first session data packet when the communication node receives the proxy binding update message and agrees that the mobile node device sends the first session data packet with the first IP address as the source IP address.
  • a binding list includes at least a mobile node identity (Mobile Node Identity, MN_ID), the first flag bit, a home address (HoA), and a current address.
  • the first flag bit in the binding list is a first value (for example, a binary number 1 is used), and the second router where the home address is the mobile node device is the mobile node device.
  • the assigned second IP address, where the current address is a first IP address assigned by the first router where the mobile node device is located to the mobile node device.
  • the communication node determines whether it can meet the requirement of the mobile node device to send the first session data packet by using the first IP address as a source IP address, where the communication node is If the security of the mobile node device is not perfect, the communication node does not accept the request of the mobile node device to send the first session data packet by using the first IP address as the source IP address, in order to ensure And establishing, by the mobile node device, the security of the session initiated by the second router, establishing a communication tunnel between the network where the second router is located and the network where the first router is located, or at the communication node The communication tunnel is established between the networks where the first router is located, but is not limited thereto.
  • the first router receives a proxy binding response message sent by the communications node, and instructs the mobile node device to send the first session data packet by using the first IP address as a source IP address.
  • the first router may send a Router Advertisement (RA) message to the mobile node device, and notify the mobile node device to send the first session data packet by using the first IP address as a source IP address.
  • the router advertisement message carries a first flag bit, the first flag bit is a first value (for example, using a binary number 1), and the first value is used to indicate that the mobile node device is to be the first
  • the IP address is the source IP address for sending the first session data packet.
  • the first flag bit in the router request message in step 303 is a second value (for example, using a binary number 0)
  • the first flag bit in the Router Advertisement (RA) message a second value (for example, using a binary number of 0)
  • the first router must maintain a binding list, the binding list including at least a mobile node identity (Mobile Node Identity, MN-ID), A flag, Home Address (HoA), previous address.
  • MN-ID Mobile Node Identity
  • HoA Home Address
  • the first flag bit in the binding list is a second value (for example, using a binary number 0), and the home address is the first router that the mobile node device is currently located to allocate to the mobile node device.
  • An IP address, the previous address being a second IP address assigned by the second router where the mobile node device was located to the mobile node device.
  • the mobile node device sends the first session data packet to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address.
  • the first session data packet carries a second IP address assigned by the second router where the mobile node device is located to the mobile node device, and the second IP address may be used by the first session data packet.
  • the IP header's Home Address Option is carried.
  • the first router sends a first session data packet to the communication node by using the first IP address as a source IP address, and sends the second IP address to the communication node.
  • the communication node After receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and hands the first session data packet and the second IP address. Go to the upper layer of the IP layer of the communication node.
  • the communication node sends the second session data packet to the first router by using the third IP address as the source IP address and the IP address for the first IP address.
  • the second IP address is carried by the Type 2 Routing Header of the IP header of the second session data packet.
  • the first router After receiving the second session data packet, the first router sends a second session data packet to the mobile node device by using the first IP address as the destination IP address, and sends the second IP address. To the mobile node device.
  • the mobile node device After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address. Go to the upper layer of the IP layer of the mobile node device.
  • a session method for distributed mobility management when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second router is allocated to the mobile node device.
  • the second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the communication to the communication node.
  • the first session data packet is configured with the first IP address assigned by the first router as the mobile node device as the source IP address, and the second session data packet sent by the communication node to the first router is for the first IP address.
  • the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
  • a session method for distributed mobility management includes:
  • the mobile node (Mobile Node, MN for short) device initiates a session on the second router, and sends the first session data packet to the communication node by using the second IP address assigned by the second router as the source IP address.
  • the mobile node device moves to a network of the first router. After the mobile node device is attached to the first router, the first router allocates a first IP address to the mobile node device.
  • the mobile node device sends the first session data packet to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
  • the first router After receiving the first session data packet, the first router replaces the second IP address in the source IP address field in the first session data packet with the first IP address.
  • the first router sends a first session data packet to the communication node by using the first IP address as a source IP address, and sends the second IP address to the communication node.
  • the second IP address is carried by a Home Address Option in an IP header of the first session data packet. 406.
  • the communications node uses the second IP address as a final source IP address, and submits the first session data packet and the second IP address to The upper layer of the IP layer of the communication node.
  • the communication node sends the second session data packet to the first router by using the third IP address as the source IP address and the first IP address as the destination IP address.
  • the second session data packet carries a second IP address assigned by the second router where the mobile node device is located to the mobile node device, and the second IP address is used by the second session data packet.
  • the Type 2 Routing Header in the IP header is carried.
  • the first router After receiving the second session data packet, the first router replaces the first IP address in the source IP address field in the second session data packet with the second IP address.
  • the first router directly sends the second session data packet to the mobile node device by using a second IP address as a destination IP address.
  • the mobile node device After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address. Go to the upper layer of the IP layer of the mobile node device.
  • a session method for distributed mobility management when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second router is allocated to the mobile node device.
  • the second IP address is the final source IP address and most End destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and the first router is the first router when sending the first session data packet to the communication node
  • the first IP address assigned to the mobile node device is the source IP address
  • the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, thereby causing the first router and the There is no need to establish a communication tunnel when the communication node communicates.
  • the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
  • the first router provided by the embodiment of the present invention includes:
  • the first allocating unit 501 is configured to allocate a first IP address to the mobile node device. For details, see step 101 in Figure 1, and no further details are provided here.
  • the first obtaining unit 502 is configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
  • the second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
  • the first receiving unit 503 is configured to receive the first session data packet sent by the mobile node device. For the specific implementation, refer to step 103 in Figure 1, and details are not described here.
  • the first sending unit 504 is configured to send, by using the first IP address that is allocated by the first allocating unit 501 as a source IP address, the first received by the first receiving unit 503 to the communications node. a session data packet, and sending the second IP address obtained by the first obtaining unit 502 to the communication node, so that after receiving the first session data packet, the communication node uses the second IP
  • the address is the final source IP address, and the first session data packet and the second IP address are delivered to the upper layer of the IP layer of the communication node.
  • the second receiving unit 505 is configured to receive, by the communications node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address.
  • the specific implementation manner is shown in step 105 in Figure 1, and will not be described here.
  • the first sending unit 504 is further configured to send, by using the second IP address obtained by the first acquiring unit 502 as the destination IP address, the second session data packet received by the second receiving unit 505 to the Moving the node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and the second session data packet and the first
  • the two IP addresses are delivered to the upper layer of the IP layer of the mobile node device.
  • the first sending unit 504 is further configured to send, by the first router, the second session data packet received by the second receiving unit 505 to the mobile node device, and the first acquiring unit 502 Obtaining the second IP address to be sent to the mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and Transmitting the second session data packet and the second IP address to The upper layer of the IP layer of the mobile node device.
  • the first router the second session data packet received by the second receiving unit 505
  • the first acquiring unit 502 Obtaining the second IP address to be sent to the mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and Transmitting the second session data packet and the second IP address to The upper layer of the IP layer of the mobile node device.
  • the first receiving unit 503 is specifically configured to: receive, by the mobile node device, the second IP address as a source IP address, and the third
  • the IP address is the first session packet of the destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
  • the first router further includes:
  • a first replacing unit 506 configured to replace, by using the first IP address allocated by the first allocating unit 501, a second IP address at a source IP address field in the first session data packet received by the first receiving unit 503 .
  • the first receiving unit 503 is specifically configured to: receive, by the mobile node device, the first IP address as a source IP address, and the third
  • the IP address is the first session packet of the destination IP address. For details, refer to step 308 in Figure 3, and details are not described herein.
  • the first router further includes:
  • the third receiving unit 507 is configured to receive a router request message sent by the mobile node device, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used by Representing that the mobile node device will use the first IP address as the source IP The address performs the transmission of the first session data packet. See the steps in Figure 3 for the specific implementation.
  • the first binding unit 508 is configured to establish, after the third receiving unit 507 receives the router request message, a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message is included.
  • the first flag bit, the first IP address, and the second IP address are included.
  • a fourth receiving unit 509 configured to receive a proxy binding response message sent by the communications node with respect to the proxy binding update message sent by the first binding unit 508, where the proxy binding response message is used to indicate
  • the communication node agrees that the mobile node device performs the sending of the first session data packet by using the first IP address as a source IP address.
  • the first acquiring unit 502 the first acquiring unit 502:
  • the method is used to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device.
  • the second IP address and the third IP address are described. For details, refer to step 304 in Figure 3, and details are not described here.
  • the first acquiring unit 502 the first acquiring unit 502:
  • the method is configured to acquire session information of the mobile node device from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the first acquiring unit 502 the first acquiring unit 502:
  • the session information is obtained from the mobile node device, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • first router and the second router provided by the embodiments of the present invention are generally first-hop access routers (ARs), which can be used as mobile anchor points to perform mobility management functions. .
  • ARs first-hop access routers
  • the first router provided by the embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, is allocated by the second router as the mobile node device.
  • the second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the first node to the communication node.
  • the first IP address assigned by the first router to the mobile node device is the source IP address
  • the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address. An address such that the first router does not need to establish a communication tunnel when communicating with the communication node.
  • a first router includes: a first processor 61, configured to allocate a first IP address to a mobile node device.
  • a first processor 61 configured to allocate a first IP address to a mobile node device.
  • the first receiver 62 is configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
  • the second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
  • the first receiver 62 is further configured to receive a first session data packet sent by the mobile node device.
  • a first session data packet sent by the mobile node device.
  • a first transmitter 63 configured to send, by using the first IP address allocated by the first processor 61, a first session data packet to the communication node, and send the second IP address to the a communication node, such that after receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and the first session data packet and the second IP address
  • the address is delivered to the upper layer of the IP layer of the communication node.
  • the first receiver 62 is further configured to receive, by the communication node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address.
  • the specific implementation is shown in step 105 in Figure 1, and is not described here.
  • the first transmitter 63 is further configured to directly use the second IP address as the destination IP address. Transmitting, by the first receiver 62, the second session data packet to the mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final The destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device.
  • the specific implementation refer to step 106 in Figure 1, and details are not described here.
  • the first transmitter 63 is further configured to send, by the first router, the second session data packet received by the first receiver 62 to the mobile node device, and send the second IP address to the Moving the node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and the second session data packet and the first The two IP addresses are delivered to the upper layer of the IP layer of the mobile node device.
  • the mobile node device uses the second IP address as a final destination IP address, and the second session data packet and the first The two IP addresses are delivered to the upper layer of the IP layer of the mobile node device.
  • the first receiver 62 is specifically configured to:
  • the mobile node device Receiving, by the mobile node device, the second IP address as a source IP address, and the third IP address as a first session data packet of a destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
  • the first processor 61 the first processor 61
  • the first receiver 62 is specifically configured to: receive, by the mobile node device, the first IP address as a source IP address, and the third
  • the IP address is the first session packet of the destination IP address. For details, refer to step 308 in Figure 3, and details are not described herein.
  • the first receiver 62 the first receiver 62
  • a router request message sent by the mobile node device where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used to indicate the mobile
  • the node device will perform the sending of the first session data packet with the first IP address as the source IP address.
  • the router request message has a first flag bit
  • the first flag bit is a first value
  • the first value is used to indicate the mobile
  • the node device will perform the sending of the first session data packet with the first IP address as the source IP address.
  • the first transmitter 63 is further configured to establish a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message carries the first flag bit, the first IP address, and the first Two IP addresses.
  • the proxy binding update message carries the first flag bit, the first IP address, and the first Two IP addresses.
  • the first receiver 62 is further configured to receive a proxy binding response message sent by the communications node with respect to the proxy binding update message, where the proxy binding response message is used to indicate that the communications node agrees to
  • the mobile node device transmits the session data packet by using the first IP address as the source IP address.
  • the first receiver 62 refers to step 306 in Figure 3, and details are not described herein.
  • the method is further configured to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device.
  • the second IP address and the third IP address are described. For the specific implementation, refer to step 304 in Figure 3, and details are not described here.
  • the first receiver 62 the first receiver 62
  • the method is further configured to acquire session information of the mobile node device from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
  • the first receiver 62 the first receiver 62
  • the session information including an identity flag of the mobile node device, the second IP address, and a third IP address.
  • the session information including an identity flag of the mobile node device, the second IP address, and a third IP address.
  • the second router when the communication node receives the first session data packet and the mobile node device receives the second session data packet, the second router is the mobile node device.
  • the assigned second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router is to the communication node
  • the first IP address assigned by the first router to the mobile node device when the first session data packet is sent is the source IP address
  • the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, so that the first router does not need to establish a communication tunnel when communicating with the communication node.
  • the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
  • the mobile node device provided by the embodiment of the present invention includes:
  • the first receiving unit 71 is configured to receive the first IP address allocated by the first router after being attached to the first router. For details, refer to step 201 in Figure 2, and details are not described here.
  • the first sending unit 72 is configured to send the first session data packet to the first router, so that the first router sends the first session data packet to the communication node by using the first IP address as a source IP address. Transmitting, to the communication node, a second IP address of the second router where the mobile node device is located, and then causing the communication node to use the second IP after receiving the first session data packet.
  • the address is the final source IP address, and the first session data packet and the second IP address are delivered to the upper layer of the IP layer of the communication node.
  • the second receiving unit 73 is configured to receive the second session data packet that is sent by the first router by using the second IP address as a destination IP address, or to receive the first Two session data packets and the second IP address. See the specific implementation Step 203 and step 204 are shown in FIG. 2, and details are not described herein again.
  • the submitting unit 74 is configured to use the second IP address as the final destination IP address, and submit the second session data packet and the second IP address received by the second receiving unit 73 to the mobile node device.
  • the upper layer of the IP layer For the specific implementation, refer to step 205 in Figure 2, and the details are not described here.
  • the first sending unit 72 is specifically configured to:
  • the first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
  • the first sending unit 72 is specifically configured to:
  • the first session data packet is sent to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address.
  • first IP address as a source IP address
  • third IP address as a destination IP address.
  • the mobile node device further includes:
  • a second sending unit 75 configured to send a router request message to the first router, where the router request message carries a first flag, the first flag is a first value, and the first value is used Representing that the mobile node device will transmit the first session data packet with the first IP address as a source IP address.
  • the mobile node device provided by the embodiment of the present invention may be a mobile phone, a mobile phone, or the like, but is not limited thereto.
  • the mobile node device when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second IP address assigned by the second router to the mobile node device is the final Source IP address and final destination IP address, thereby ensuring that the mobile node device does not interrupt the session initiated by the second router where it is located, and because the first router sends the first session data packet to the communication node,
  • the first IP address assigned by the first router to the mobile node device is a source IP address
  • the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, thereby causing the The first router does not need to establish a communication tunnel when communicating with the communication node.
  • the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
  • a mobile node device includes: a first receiver 81, configured to receive a first IP address allocated by the first router after being attached to the first router.
  • a first receiver 81 configured to receive a first IP address allocated by the first router after being attached to the first router.
  • the first transmitter 82 is configured to send the first session data packet to the first router, so that the first router sends the first node to the communication node by using the first IP address as a source IP address. a session data packet, and sending a second IP address of the second router where the mobile node device is located to the communication node, so that after receiving the first session data packet, the communication node
  • the second IP address is the final source IP address, and the first session data packet and the second IP address are delivered to an upper layer of the IP layer of the communication node.
  • the first receiver 81 is further configured to receive the second session data packet that is sent by the first router by using the second IP address as a destination IP address, or to receive the a second session data packet and the second IP address.
  • the first receiver 81 is further configured to receive the second session data packet that is sent by the first router by using the second IP address as a destination IP address, or to receive the a second session data packet and the second IP address.
  • the first processor 83 is configured to use the second IP address as a final destination IP address, and submit the second session data packet and the second IP address received by the first receiver 81 to the mobile node device.
  • the upper layer of the IP layer For details, refer to step 205 in Figure 2, and details are not described here.
  • the first transmitter 82 is specifically configured to:
  • the first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
  • the first transmitter 82 is specifically configured to:
  • the first transmitter 82 is further configured to:
  • the first IP address is a source IP address for transmitting the first session data packet.
  • the mobile node device provided by the embodiment of the present invention may be a mobile phone, a mobile phone, or the like, but is not limited thereto.
  • the second IP address assigned by the second router to the mobile node device is respectively The final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the first session data packet to the communication node.
  • the first IP address assigned by the first router to the mobile node device is the source IP address
  • the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, thereby The first router does not need to establish a communication tunnel when communicating with the communication node.
  • the embodiment of the present invention ensures that the mobile node device avoids the application communication tunnel in the case that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving the distribution. Session cost for mobility management.
  • the session system for distributed mobility management includes the first router 91, the second router 92, the mobile node device 93, and the communication node 94.
  • the first router 91 is configured to allocate a first IP address to the mobile node device 93, obtain a second IP address, and a third IP address of the communication node 94, where the second IP address is the previous location of the mobile node device 93.
  • the second router 92 is allocated to the mobile node device 93, receives the first session data packet sent by the mobile node device 93, and sends the first session to the communication node 94 with the first IP address as the source IP address. a session data packet, and sending the second IP address to the communication node 94, and receiving the second session data of the communication node 94 with the third IP address as the source IP address and the first IP address as the destination IP address. Transmitting, by using the second IP address as the destination IP address, the second session data packet to the mobile node device 93, or sending the second session data packet to the mobile node device 93, and The second IP address is sent to the mobile node device 93.
  • the mobile node device 93 is configured to receive a first IP address allocated by the first router 91, send a first session data packet to the first router 91, and receive, by the first router 91, the first IP address.
  • the second session data packet whose IP address is the destination IP address, or the second session data packet sent by the first router 91 and the second IP address, with the second IP address as the final purpose IP address and the second session packet and The second IP address is delivered to the upper layer of the IP layer of the mobile node device 93.
  • the communication node 94 is configured to: after receiving the first session data packet sent by the first router 91, use the second IP address as a final source IP address, and the first session data packet and The second IP address is delivered to the upper layer of the IP layer of the communication node 94, and the third IP address is used as the source IP address, and the first IP address is used as the destination IP address to send the second session data packet to the first router 91.
  • the distributed mobility management session system allocates the first session data packet and the mobile node device receives the second session data packet by using the second router as the mobile node device.
  • the second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the communication to the communication node.
  • the first session data packet is configured with the first IP address assigned by the first router as the mobile node device as the source IP address, and the second session data packet sent by the communication node to the first router is for the first IP address.
  • the IP address such that the first router does not need to establish a communication tunnel when communicating with the communication node.
  • the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Abstract

Embodiments of the present invention relate to the technical field of communications. Disclosed are a method, an apparatus, and a system for distributed mobility management, which solve a problem of a high cost of an existing session process for mobility management. The method comprises: a first router assigning a first IP address to a mobile node apparatus, and obtaining a previous second IP address of the mobile node apparatus and a third IP address of a communication node; receiving a first session data packet sent by the mobile node apparatus; sending the first session data packet and the second IP address to the communication node by using the first IP address as a source IP address; receiving a second session data packet with the first IP address as a destination IP address from the communication node; directly sending the second session data packet to the mobile node apparatus by using the second IP address as a destination IP address; or sending the second session data packet and the second IP address to the mobile node apparatus. The present invention applies to a distributed mobility management system.

Description

分布式移动性管理的会话方法、 装置及系统 技术领域  Session method, device and system for distributed mobility management
本发明涉及通信技术领域,尤其涉及一种分布式移动性管理的会话方 法、 装置及系统。  The present invention relates to the field of communications technologies, and in particular, to a session method, apparatus, and system for distributed mobility management.
背景技术 分布式移动性管理是为了解决集中式移动性管理的单点故障、路由冗 余等问题而提出的。 在分布式移动性管理中, 一般由移动节点 (Mobile Node, 简称 MN) 的第一跳接入路由器 ( First-hop Access Router, 简称 AR), 作为移动锚点, 执行移动性管理功能, 例如: 移动用户位置更新、 定期更新、 鉴权、 开机接入、 关机退出和设备识别等。 当 MN移动到当前 的接入路由器 ( New Access Router, 简称 nAR ) 时, 会在 nAR下附着, jtbHt nAR会为 MN重新分酉己互联网十办议 ( Internet Protocol, 简称 IP) 地址, 从而使得 MN在 nAR网络中发起会话时, 能够应用 nAR为 MN分配的 IP地址与通信节点 (Correspondent Node, 简称 CN) 进行数据交互。 当 前, 若 MN在一个以前的接入路由器( Previous Access Router, 简称 pAR ) 中, 所述 pAR为所述 MN分配了 IP地址, MN在 pAR网络中发起了会话后 进入 nAR 网络中, 此时如果 MN在 pAR 网络中发起的会话使用 nAR为 MN 分配的 IP地址, 将引起 MN在 pAR网络中发起的会话中断。 在实现本发明实施例的过程中,发明人发现现有技术中至少存在如下 问题: BACKGROUND OF THE INVENTION Distributed mobility management is proposed to solve the problems of single point of failure, routing redundancy, and the like of centralized mobility management. In the distributed mobility management, a first-hop access router (AR) of a mobile node (MN) is generally used as a mobility anchor to perform mobility management functions, for example: Mobile user location updates, periodic updates, authentication, power-on access, shutdown exit, and device identification. When the MN moves to the current access router (NAR), it will be attached under nAR, and jtbHt nAR will re-distribute the Internet Protocol (IP) address for the MN, thus making MN When a session is initiated in the nAR network, the IP address assigned by the nAR to the MN can be used to perform data interaction with a communication node (Correspondent Node, CN for short). Currently, if the MN is in a previous access router (pAR), the pAR allocates an IP address to the MN, and the MN enters the nAR network after initiating a session in the pAR network. The session initiated by the MN in the pAR network uses the IP address assigned by the nAR to the MN, which will cause the session initiated by the MN in the pAR network to be interrupted. In the process of implementing the embodiments of the present invention, the inventors have found that at least the following problems exist in the prior art:
当前为了保证 MN在 pAR网络中发起的会话不中断, 需要在 pAR网络 与 nAR网络之间建立通信隧道, 或者在 CN与 nAR网络之间建立通信隧道 来完成, 建立通信隧道需要很大成本, 造成了整个分布式移动性管理的会 话过程成本较高的问题。 发明内容  In order to ensure that the session initiated by the MN in the pAR network is not interrupted, a communication tunnel needs to be established between the pAR network and the nAR network, or a communication tunnel is established between the CN and the nAR network, and the establishment of the communication tunnel requires a large cost. The problem of high transaction cost of the entire distributed mobility management session. Summary of the invention
本发明的实施例提供一种分布式移动性管理的会话方法、 装置及系 统,能够解决现有技术中整个分布式移动性管理的会话过程成本较高的问 题。 为达到上述目的, 本发明采用如下技术方案: 第一方面, 本发明实施例提供一种分布式移动性管理的会话方法, 包 括: 第一路由器为移动节点装置分配第一 I P地址; 所述第一路由器获取第二 I P地址以及通信节点的第三 I P地址,其中 所述第二 I P地址为所述移动节点装置之前所在的第二路由器为所述移动 节点装置分配的; 所述第一路由器接收所述移动节点装置发送的第一会话数据包; 所述第一路由器以所述第一 I P地址为源 I P地址向所述通信节点发送 所述第一会话数据包, 并将所述第二 I P地址发送给所述通信节点, 以使 得所述通信节点在接收到所述第一会话数据包后, 以所述第二 IP地址为 最终的源 IP地址,并将所述第一会话数据包和所述第二 IP地址递交到通 信节点的 IP层的上层; The embodiments of the present invention provide a session method, apparatus, and system for distributed mobility management, which can solve the problem of high transaction cost of the entire distributed mobility management in the prior art. In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, an embodiment of the present invention provides a session method for distributed mobility management, including: a first router assigning a first IP address to a mobile node device; a router acquiring a second IP address and a third IP address of the communication node, wherein the second IP address is allocated by the second router where the mobile node device is located for the mobile node device; The first session data packet sent by the mobile node device; the first router sends the first session data packet to the communication node by using the first IP address as a source IP address, and the second IP address An address is sent to the communication node to enable After receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and submits the first session data packet and the second IP address to the communication. The upper layer of the node's IP layer;
所述第一路由器接收所述通信节点以第三 IP地址为源 IP地址, 以第 一 IP地址为目的 IP地址的第二会话数据包;  Receiving, by the first router, the second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address;
所述第一路由器直接以第二 IP地址为目的 IP地址将所述第二会话数 据包发送给所述移动节点装置,以使得所述移动节点装置在接收到所述第 二会话数据包后, 以所述第二 IP地址为最终的目的 IP地址, 并将所述第 二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上层;或 者  Sending, by the first router, the second session data packet to the mobile node device by using the second IP address as the destination IP address, so that after the mobile node device receives the second session data packet, Taking the second IP address as a final destination IP address, and submitting the second session data packet and the second IP address to an upper layer of an IP layer of the mobile node device; or
所述第一路由器向所述移动节点装置发送第二会话数据包, 并将所述 第二 IP地址发送给所述移动节点装置, 以使得所述移动节点装置在接收 到所述第二会话数据包后, 以所述第二 IP地址为最终的目的 IP地址, 并 将所述第二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的 上层。  Transmitting, by the first router, a second session data packet to the mobile node device, and transmitting the second IP address to the mobile node device, so that the mobile node device receives the second session data After the packet, the second IP address is used as the final destination IP address, and the second session data packet and the second IP address are delivered to the upper layer of the IP layer of the mobile node device.
结合所述第一方面, 在所述第一方面的第一种实现方式中, 所述第一 路由器接收所述移动节点装置发送的第一会话数据包, 包括:  With reference to the first aspect, in a first implementation manner of the first aspect, the receiving, by the first router, the first session data packet sent by the mobile node device includes:
所述第一路由器接收所述移动节点装置以所述第二 I P地址为源 I P地 址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。 结合所述第一种实现方式, 在所述第一方面的第二种实现方式中, 在 所述第一路由器以所述第一 IP地址为源 IP地址向所述通信节点发送所述 第一会话数据包之前, 包括: The first router receives the first session data packet of the mobile node device with the second IP address as the source IP address and the third IP address as the destination IP address. In the second implementation manner of the first aspect, the first router sends the first router to the communication node by using the first IP address as a source IP address. Before the session packet, including:
所述第一路由器以所述第一 IP地址替换所述第一会话数据包中的源 IP地址字段处的第二 IP地址。  The first router replaces the second IP address at the source IP address field in the first session data packet with the first IP address.
结合所述第一方面, 在所述第一方面的第三种实现方式中, 所述第一 路由器接收所述移动节点装置发送的第一会话数据包, 包括:  With reference to the first aspect, in a third implementation manner of the first aspect, the receiving, by the first router, the first session data packet sent by the mobile node device includes:
所述第一路由器接收所述移动节点装置以所述第一 I P地址为源 I P地 址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。  The first router receives the first session data packet of the mobile node device with the first IP address as the source IP address and the third IP address as the destination IP address.
结合所述第三种实现方式, 在所述第一方面的第四种实现方式中, 在 所述第一路由器接收所述移动节点装置以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包之前, 包括:  With reference to the third implementation manner, in a fourth implementation manner of the first aspect, the receiving, by the first router, the mobile node device, using the first IP address as a source IP address, Before the third IP address is the first session data packet of the destination IP address, the method includes:
所述第一路由器接收所述移动节点装置发送的路由器请求消息, 所述 路由器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所述第 一数值用于表示所述移动节点装置将以所述第一 IP地址为源 IP地址进行 所述第一会话数据包的发送;  The first router receives a router request message sent by the mobile node device, where the router request message carries a first flag bit, the first flag bit is a first value, and the first value is used to indicate The mobile node device will perform the sending of the first session data packet by using the first IP address as a source IP address;
所述第一路由器通过代理绑定更新消息与所述通信节点建立绑定关 系, 所述代理绑定更新消息中带有所述第一标志位、 第一 IP地址及第二 IP地址; 所述第一路由器接收所述通信节点发送的相对于所述代理绑定更新 消息的代理绑定应答消息,所述代理绑定应答消息用于表示所述通信节点 同意所述移动节点装置以所述第一 I P地址为源 IP地址进行所述第一会话 数据包的发送。 The first router establishes a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message carries the first flag bit, the first IP address, and the second IP address; Receiving, by the first router, a proxy binding response message sent by the communication node with respect to the proxy binding update message, where the proxy binding response message is used to indicate that the communication node agrees to the mobile node device The first IP address is a source IP address for transmitting the first session data packet.
结合所述第一方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种,在所述第一方面的第五种实现 方式中, 所述第一路由器获取第二 I P地址以及通信节点的第三 IP地址, 包括:  With reference to the first aspect, the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the fifth implementation manner in the first aspect The acquiring, by the first router, the second IP address and the third IP address of the communication node, includes:
所述第一路由器通过一集中式装置获取所述移动节点装置的会话信 息, 所述集中式装置用于记录所述移动节点装置的会话信息, 所述会话信 息包括所述移动节点装置的身份标志、所述第二 IP地址以及第三 I P地址。  The first router acquires session information of the mobile node device by using a centralized device, where the centralized device is used to record session information of the mobile node device, and the session information includes an identity flag of the mobile node device. The second IP address and the third IP address.
结合所述第一方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种,在所述第一方面的第六种实现 方式中, 所述第一路由器获取第二 I P地址以及通信节点的第三 IP地址, 包括:  With reference to the first aspect, the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the sixth implementation manner in the first aspect The acquiring, by the first router, the second IP address and the third IP address of the communication node, includes:
所述第一路由器向所述第二路由器获取所述移动节点装置的会话信 息, 所述会话信息包括所述移动节点装置的身份标志、 所述第二 I P地址 以及第三 IP地址。  The first router acquires session information of the mobile node device from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
结合所述第一方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种,在所述第一方面的第七种实现 方式中, 所述第一路由器获取第二 I P地址以及通信节点的第三 IP地址, 包括: With reference to the first aspect, the first implementation manner, the second implementation manner, and the third In a seventh implementation manner of the first aspect, the first router acquires the second IP address and the third IP address of the communication node, and the method includes:
所述第一路由器从所述移动节点装置处获取会话信息, 所述会话信息 包括所述移动节点装置的身份标志、 所述第二 I P地址以及第三 I P地址。  The first router acquires session information from the mobile node device, and the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
第二方面, 本发明实施例提供一种分布式移动性管理的会话方法, 包 括:  In a second aspect, an embodiment of the present invention provides a session method for distributed mobility management, including:
移动节点装置在附着在第一路由器上后,接收所述第一路由器分配的 第一 IP地址;  After attaching to the first router, the mobile node device receives the first IP address allocated by the first router;
所述移动节点装置向所述第一路由器发送第一会话数据包, 以使得所 述第一路由器以所述第一 I P地址为源 I P地址向通信节点发送所述第一会 话数据包, 并将所述移动节点装置之前所在的第二路由器的第二 I P地址 发送给所述通信节点,进而使得所述通信节点在接收到所述第一会话数据 包后, 以所述第二 IP地址为最终的源 I P地址, 并将所述第一会话数据包 和所述第二 I P地址递交到通信节点的 I P层的上层;  Transmitting, by the mobile node device, the first session data packet to the first router, so that the first router sends the first session data packet to the communication node by using the first IP address as a source IP address, and The second IP address of the second router where the mobile node device is located is sent to the communication node, so that after receiving the first session data packet, the communication node ends with the second IP address. Source IP address, and submit the first session data packet and the second IP address to an upper layer of a communication node's IP layer;
所述移动节点装置接收所述第一路由器发送的以所述第二 I P地址为 目的 IP地址的第二会话数据包; 或者  Receiving, by the mobile node device, a second session data packet sent by the first router with the second IP address as a destination IP address; or
所述移动节点装置接收所述第一路由器发送的第二会话数据包以及 所述第二 IP地址; 所述移动节点装置在接收到所述第二会话数据包后, 以所述第二 IP 地址为最终的目的 I P地址,并将所述第二会话数据包和所述第二 IP地址 递交到移动节点装置的 IP层的上层。 The mobile node device receives a second session data packet sent by the first router and the second IP address; After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address to the mobile The upper layer of the IP layer of the node device.
结合所述第二方面, 在所述第二方面的第一种实现方式中, 所述移动 节点装置向所述第一路由器发送第一会话数据包, 包括:  With reference to the second aspect, in a first implementation manner of the second aspect, the sending, by the mobile node device, the first session data packet to the first router includes:
所述移动节点装置以所述第二 I P地址为源 IP地址, 以所述第三 I P 地址为目的 I P地址向所述第一路由器发送所述第一会话数据包。  The mobile node device sends the first session data packet to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
结合所述第二方面, 在所述第二方面的第二种实现方式中, 所述移动 节点装置向所述第一路由器发送第一会话数据包, 包括:  With reference to the second aspect, in a second implementation manner of the second aspect, the sending, by the mobile node device, the first session data packet to the first router includes:
所述移动节点装置以所述第一 I P地址为源 IP地址, 以所述第三 I P 地址为目的 I P地址向所述第一路由器发送所述第一会话数据包。  The mobile node device sends the first session data packet to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address.
结合所述第二种实现方式, 在所述第二方面的第三种实现方式中, 在 所述移动节点装置以所述第一 IP地址为源 I P地址, 以所述第三 I P地址 为目的 I P地址向所述第一路由器发送所述第一会话数据包之前, 包括: 所述移动节点装置向所述第一路由器发送路由器请求消息, 所述路由 器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所述第一数 值用于表示所述移动节点装置将以所述第一 I P地址为源 IP地址进行所述 第一会话数据包的发送。  With reference to the second implementation manner, in a third implementation manner of the second aspect, the mobile node device uses the first IP address as a source IP address and the third IP address as a destination Before sending the first session data packet to the first router, the method includes: the mobile node device sending a router request message to the first router, where the router request message carries a first flag bit, where The first flag is a first value, and the first value is used to indicate that the mobile node device sends the first session data packet by using the first IP address as a source IP address.
第三方面, 本发明实施例提供一种第一路由器, 包括: 第一分配单元, 用于为移动节点装置分配第一 IP地址; In a third aspect, an embodiment of the present invention provides a first router, including: a first allocation unit, configured to allocate a first IP address to the mobile node device;
第一获取单元, 用于获取第二 IP地址以及通信节点的第三 IP地址, 其中所述第二 IP地址为所述移动节点装置之前所在的第二路由器为所述 移动节点装置分配的;  a first acquiring unit, configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device;
第一接收单元, 用于接收所述移动节点装置发送的第一会话数据包; 第一发送单元, 用于以所述第一分配单元分配的第一 IP地址为源 IP 地址向所述通信节点发送所述第一接收单元接收到的第一会话数据包,并 将所述第一获取单元获取的第二 IP地址发送给所述通信节点, 以使得所 述通信节点在接收到所述第一会话数据包后, 以所述第二 IP地址为最终 的源 IP地址,并将所述第一会话数据包和所述第二 IP地址递交到通信节 点的 IP层的上层;  a first receiving unit, configured to receive a first session data packet sent by the mobile node device, where the first sending unit is configured to use the first IP address allocated by the first allocating unit as a source IP address to the communication node Transmitting, by the first receiving unit, the first session data packet, and sending the second IP address obtained by the first acquiring unit to the communication node, so that the communication node receives the first After the session data packet, the second IP address is used as the final source IP address, and the first session data packet and the second IP address are delivered to an upper layer of the IP layer of the communication node;
第二接收单元, 用于接收所述通信节点以第三 IP地址为源 IP地址, 以第一 IP地址为目的 IP地址的第二会话数据包;  a second receiving unit, configured to receive, by the communications node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address;
所述第一发送单元, 还用于直接以所述第一获取单元获取的第二 IP 地址为目的 IP地址将所述第二接收单元接收到的第二会话数据包发送给 所述移动节点装置,以使得所述移动节点装置在接收到所述第二会话数据 包后, 以所述第二 IP地址为最终的目的 IP地址, 并将所述第二会话数据 包和所述第二 IP地址递交到移动节点装置的 IP层的上层; 或者  The first sending unit is further configured to send, by using the second IP address obtained by the first acquiring unit, the second session data packet received by the second receiving unit to the mobile node device So that the mobile node device, after receiving the second session data packet, uses the second IP address as a final destination IP address, and the second session data packet and the second IP address. Submitted to the upper layer of the IP layer of the mobile node device; or
所述第一发送单元,还用于向所述移动节点装置发送所述第二接收单 元接收到的第二会话数据包, 并将所述第一获取单元获取的第二 I P地址 发送给所述移动节点装置,以使得所述移动节点装置在接收到所述第二会 话数据包后, 以所述第二 I P地址为最终的目的 I P地址, 并将所述第二会 话数据包和所述第二 I P地址递交到移动节点装置的 I P层的上层。 The first sending unit is further configured to send the second receiving order to the mobile node device Receiving the second session data packet, and transmitting the second IP address obtained by the first obtaining unit to the mobile node device, so that the mobile node device after receiving the second session data packet And the second IP address is the final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device.
结合所述第三方面, 在所述第三方面的第一种实现方式中, 所述第一 接收单元, 具体用于:  With reference to the third aspect, in a first implementation manner of the third aspect, the first receiving unit is specifically configured to:
接收所述移动节点装置以所述第二 I P地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。  Receiving, by the mobile node device, the second IP address as the source IP address, and the third IP address as the first session data packet of the destination IP address.
结合所述第一种实现方式, 在所述第三方面的第二种实现方式中, 还 包括:  With reference to the first implementation manner, in the second implementation manner of the third aspect, the method further includes:
第一替换单元, 用于以所述第一分配单元分配的第一 I P地址替换所 述第一接收单元接收到的第一会话数据包中的源 IP地址字段处的第二 I P 地址。  And a first replacement unit, configured to replace, by the first IP address allocated by the first allocation unit, a second IP address at a source IP address field in the first session data packet received by the first receiving unit.
结合所述第三方面, 在所述第三方面的第三种实现方式中, 所述第一 接收单元, 具体用于:  With reference to the third aspect, in a third implementation manner of the third aspect, the first receiving unit is specifically configured to:
接收所述移动节点装置以所述第一 I P地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。  Receiving, by the mobile node device, the first IP address as the source IP address, and the third IP address as the first session data packet of the destination IP address.
结合所述第三种实现方式, 在所述第三方面的第四种实现方式中, 还 包括: 第三接收单元, 用于接收所述移动节点装置发送的路由器请求消息, 所述路由器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所 述第一数值用于表示所述移动节点装置将以所述第一 I P地址为源 IP地址 进行所述第一会话数据包的发送; In conjunction with the third implementation manner, in a fourth implementation manner of the third aspect, the method further includes: a third receiving unit, configured to receive a router request message sent by the mobile node device, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used for Representing that the mobile node device will perform the sending of the first session data packet by using the first IP address as a source IP address;
第一绑定单元, 用于在所述第三接收单元接收到路由器请求消息后, 通过代理绑定更新消息与所述通信节点建立绑定关系,所述代理绑定更新 消息中带有所述第一标志位、 第一 I P地址及第二 I P地址;  a first binding unit, configured to establish a binding relationship with the communication node by using a proxy binding update message after the third receiving unit receives the router request message, where the proxy binding update message includes the a first flag bit, a first IP address, and a second IP address;
第四接收单元,用于接收所述通信节点发送的相对于所述第一绑定单 元发送的代理绑定更新消息的代理绑定应答消息,所述代理绑定应答消息 用于表示所述通信节点同意所述移动节点装置以所述第一 I P地址为源 I P 地址进行所述第一会话数据包的发送。  a fourth receiving unit, configured to receive a proxy binding response message sent by the communications node with respect to the proxy binding update message sent by the first binding unit, where the proxy binding response message is used to indicate the communication The node agrees that the mobile node device performs the sending of the first session data packet by using the first IP address as a source IP address.
结合所述第三方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种,在所述第三方面的第五种实现 方式中, 所述第一获取单元:  With reference to the third aspect, any one of the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the fifth implementation manner in the third aspect The first obtaining unit:
具体用于通过一集中式装置获取所述移动节点装置的会话信息, 所述 集中式装置用于记录所述移动节点装置的会话信息,所述会话信息包括所 述移动节点装置的身份标志、 所述第二 IP地址以及第三 I P地址。  Specifically, the method is used to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device. The second IP address and the third IP address are described.
结合所述第三方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种,在所述第三方面的第六种实现 方式中, 所述第一获取单元: With reference to the third aspect, any one of the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the sixth implementation in the third aspect In the mode, the first acquiring unit:
具体用于向所述第二路由器获取所述移动节点装置的会话信息,所述 会话信息包括所述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。  Specifically, the session information of the mobile node device is obtained from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
结合所述第三方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种,在所述第三方面的第七种实现 方式中, 所述第一获取单元:  With reference to the third aspect, the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the seventh implementation manner in the third aspect The first obtaining unit:
具体用于从所述移动节点装置处获取会话信息,所述会话信息包括所 述移动节点装置的身份标志、 所述第二 IP地址以及第三 I P地址。  Specifically, the session information is obtained from the mobile node device, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address.
第四方面, 本发明实施例提供一种移动节点装置, 包括:  In a fourth aspect, an embodiment of the present invention provides a mobile node device, including:
第一接收单元, 用于在附着在第一路由器上后, 接收所述第一路由器 分配的第一 I P地址;  a first receiving unit, configured to receive a first IP address allocated by the first router after being attached to the first router;
第一发送单元, 用于向所述第一路由器发送第一会话数据包, 以使得 所述第一路由器以所述第一 I P地址为源 I P地址向通信节点发送所述第一 会话数据包, 并将所述移动节点装置之前所在的第二路由器的第二 I P地 址发送给所述通信节点,进而使得所述通信节点在接收到所述第一会话数 据包后, 以所述第二 I P地址为最终的源 IP地址, 并将所述第一会话数据 包和所述第二 IP地址递交到通信节点的 I P层的上层;  a first sending unit, configured to send the first session data packet to the first router, so that the first router sends the first session data packet to the communications node by using the first IP address as a source IP address, where And sending, to the communication node, a second IP address of the second router where the mobile node device is located, so that the communication node receives the first session data packet, and the second IP address a final source IP address, and submit the first session data packet and the second IP address to an upper layer of a communication node's IP layer;
第二接收单元, 用于接收所述第一路由器发送的以所述第二 I P地址 为目的 I P地址的第二会话数据包; 或者 a second receiving unit, configured to receive, by the first router, the second IP address a second session packet for the destination IP address; or
用于接收所述第一路由器发送的第二会话数据包以及所述第二 I P地 址;  And receiving, by the first router, a second session data packet and the second IP address;
递交单元, 用于以所述第二 IP地址为最终的目的 I P地址, 并将所述 第二接收单元接收的所述第二会话数据包和所述第二 I P地址递交到移动 节点装置的 I P层的上层。  a submitting unit, configured to use the second IP address as a final destination IP address, and submit the second session data packet and the second IP address received by the second receiving unit to an IP of the mobile node device The upper layer of the layer.
结合所述第四方面, 在所述第四方面的第一种实现方式中, 所述第一 发送单元, 具体用于:  With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the first sending unit is specifically configured to:
以所述第二 I P地址为源 IP地址, 以所述第三 IP地址为目的 I P地址 向所述第一路由器发送所述第一会话数据包。  The first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
结合所述第四方面, 在所述第四方面的第二种实现方式中, 所述第一 发送单元, 具体用于:  With reference to the fourth aspect, in a second implementation manner of the fourth aspect, the first sending unit is specifically configured to:
以所述第一 I P地址为源 IP地址, 以所述第三 IP地址为目的 I P地址 向所述第一路由器发送会话数据包。  The first IP address is used as the source IP address, and the third IP address is used as the destination IP address to send the session data packet to the first router.
结合所述第二种实现方式, 在所述第四方面的第三种实现方式中, 还 包括:  In conjunction with the second implementation manner, in a third implementation manner of the fourth aspect, the method further includes:
第二发送单元, 用于向所述第一路由器发送路由器请求消息, 所述路 由器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所述第一 数值用于表示所述移动节点装置将以所述第一 I P地址为源 I P地址进行所 述第一会话数据包的发送。 a second sending unit, configured to send a router request message to the first router, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used to indicate The mobile node device will perform the first IP address as a source IP address. The sending of the first session data packet.
第五方面, 本发明实施例提供一种第一路由器, 包括:  In a fifth aspect, an embodiment of the present invention provides a first router, including:
第一处理器, 用于为移动节点装置分配第一 IP地址;  a first processor, configured to allocate a first IP address to the mobile node device;
第一接收器, 用于获取第二 IP地址以及通信节点的第三 IP地址, 其 中所述第二 IP地址为所述移动节点装置之前所在的第二路由器为所述移 动节点装置分配的;  a first receiver, configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device;
所述第一接收器,还用于接收所述移动节点装置发送的第一会话数据 包;  The first receiver is further configured to receive a first session data packet sent by the mobile node device;
第一发送器,用于以所述第一处理器分配的第一 IP地址为源 IP地址 向所述通信节点发送所述第一接收器接收的第一会话数据包,并将所述第 一接收器获取的第二 IP地址发送给所述通信节点, 以使得所述通信节点 在接收到所述第一会话数据包后 ,以所述第二 IP地址为最终的源 IP地址 , 并将所述第一会话数据包和所述第二 IP地址递交到通信节点的 IP层的上 层;  a first transmitter, configured to send, by using the first IP address allocated by the first processor, a first session data packet received by the first receiver to the communication node, and the first Sending, by the receiver, a second IP address to the communication node, so that after receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and Transmitting the first session data packet and the second IP address to an upper layer of an IP layer of the communication node;
所述第一接收器,还用于接收所述通信节点以第三 IP地址为源 IP地 址, 以第一 IP地址为目的 IP地址的第二会话数据包;  The first receiver is further configured to receive, by the communication node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address;
所述第一发送器, 还用于直接以所述第一接收器获取的第二 IP地址 为目的 IP地址将所述第一接收器接收到的第二会话数据包发送给所述移 动节点装置, 以使得所述移动节点装置在接收到所述第二会话数据包后, 以所述第二 I P地址为最终的目的 IP地址,并将所述第二会话数据包和所 述第二 I P地址递交到移动节点装置的 I P层的上层; 或者 The first transmitter is further configured to send the second session data packet received by the first receiver to the mobile node device by directly using the second IP address obtained by the first receiver as a destination IP address. So that the mobile node device, after receiving the second session data packet, Taking the second IP address as a final destination IP address, and submitting the second session data packet and the second IP address to an upper layer of an IP layer of the mobile node device; or
所述第一发送器,还用于所述向所述移动节点装置发送所述第一接收 器接收到的第二会话数据包, 并将所述第一接收器获取的第二 I P地址发 送给所述移动节点装置,以使得所述移动节点装置在接收到所述第二会话 数据包后, 以所述第二 I P地址为最终的目的 IP地址, 并将所述第二会话 数据包和所述第二 IP地址递交到移动节点装置的 I P层的上层。  The first transmitter is further configured to send the second session data packet received by the first receiver to the mobile node device, and send the second IP address obtained by the first receiver to The mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and the second session data packet and the The second IP address is delivered to the upper layer of the IP layer of the mobile node device.
结合所述第五方面, 在所述第五方面的第一种实现方式中, 所述第一 接收器, 具体用于:  With reference to the fifth aspect, in a first implementation manner of the fifth aspect, the first receiver is specifically configured to:
接收所述移动节点装置以所述第二 I P地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。  Receiving, by the mobile node device, the second IP address as the source IP address, and the third IP address as the first session data packet of the destination IP address.
结合所述第一种实现方式, 在所述第五方面的第二种实现方式中, 所 述第一处理器, 还用于:  In conjunction with the first implementation, in a second implementation manner of the fifth aspect, the first processor is further configured to:
以所述第一处理器分配的第一 I P地址替换所述第一接收器接收到的 第一会话数据包中的源 I P地址字段处的第二 IP地址。  Replacing the second IP address at the source IP address field in the first session data packet received by the first receiver with the first IP address assigned by the first processor.
结合所述第五方面, 在所述第五方面的第三种实现方式中, 所述第一 接收器, 具体用于:  With reference to the fifth aspect, in a third implementation manner of the fifth aspect, the first receiver is specifically configured to:
接收所述移动节点装置以所述第一 I P地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。 结合所述第三种实现方式, 在所述第五方面的第四种实现方式中, 所 述第一接收器, 还用于: Receiving, by the mobile node device, the first IP address as the source IP address, and the third IP address as the first session data packet of the destination IP address. In conjunction with the third implementation manner, in a fourth implementation manner of the fifth aspect, the first receiver is further configured to:
接收所述移动节点装置发送的路由器请求消息, 所述路由器请求消 , ¾ 中带有第一标志位, 所述第一标志位为第一数值, 所述第一数值用于表示 所述移动节点装置将以所述第一 IP地址为源 I P地址进行所述第一会话数 据包的发送;  Receiving a router request message sent by the mobile node device, the router requesting cancellation, with a first flag bit, the first flag bit is a first value, and the first value is used to indicate the mobile node The device will send the first session data packet by using the first IP address as a source IP address;
所述第一发送器, 还用于在所述第一接收器接收到路由器请求消息 后, 通过代理绑定更新消息与所述通信节点建立绑定关系, 所述代理绑定 更新消息中带有所述第一标志位、 第一 IP地址及第二 IP地址;  The first transmitter is further configured to: after the first receiver receives the router request message, establish a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message is included The first flag bit, the first IP address, and the second IP address;
所述第一接收器,还用于接收所述通信节点发送的相对于所述第一发 送器发送的代理绑定更新消, 的代理绑定应答消息,所述代理绑定应答消 息用于表示所述通信节点同意所述移动节点装置以所述第一 I P地址为源 I P地址进行会话数据包的发送。  The first receiver is further configured to receive a proxy binding response message sent by the communications node with respect to a proxy binding update sent by the first sender, where the proxy binding response message is used to indicate The communication node agrees that the mobile node device transmits the session data packet by using the first IP address as a source IP address.
结合所述第五方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种, 所述第一接收器,  With reference to the fifth aspect, the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the first receiver,
还用于通过一集中式装置获取所述移动节点装置的会话信息, 所述集 中式装置用于记录所述移动节点装置的会话信息,所述会话信息包括所述 移动节点装置的身份标志、 所述第二 I P地址以及第三 IP地址。  And the method is further configured to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device. The second IP address and the third IP address are described.
结合所述第五方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种, 所述第一接收器, 还用于向所述第二路由器获取所述移动节点装置的会话信息,所述会 话信息包括所述移动节点装置的身份标志、 所述第二 IP地址以及第三 I P 地址。 With reference to the fifth aspect, the first implementation manner, the second implementation manner, and the third And the first receiver is further configured to acquire session information of the mobile node device from the second router, where the session information includes the mobile node device The identity flag, the second IP address, and the third IP address.
结合所述第五方面, 所述第一种实现方式、 第二种实现方式、 第三种 实现方式及第四种实现方式中的任意一种, 所述第一接收器,  With reference to the fifth aspect, the first implementation manner, the second implementation manner, the third implementation manner, and the fourth implementation manner, the first receiver,
还用于从所述移动节点装置处获取会话信息,所述会话信息包括所述 移动节点装置的身份标志、 所述第二 I P地址以及第三 IP地址。  Also used to obtain session information from the mobile node device, the session information including an identity tag of the mobile node device, the second IP address, and a third IP address.
第六方面, 本发明实施例提供一种移动节点装置, 包括:  In a sixth aspect, an embodiment of the present invention provides a mobile node device, including:
第一接收器, 用于在附着在第一路由器上后, 接收所述第一路由器分 配的第一 IP地址;  a first receiver, configured to receive a first IP address assigned by the first router after being attached to the first router;
第一发送器, 用于向所述第一路由器发送第一会话数据包, 以使得所 述第一路由器以所述第一 I P地址为源 I P地址向通信节点发送所述第一会 话数据包, 并将所述移动节点装置之前所在的第二路由器的第二 I P地址 发送给所述通信节点,进而使得所述通信节点在接收到所述第一会话数据 包后, 以所述第二 IP地址为最终的源 I P地址, 并将所述第一会话数据包 和所述第二 I P地址递交到通信节点的 I P层的上层;  a first sender, configured to send the first session data packet to the first router, so that the first router sends the first session data packet to the communication node by using the first IP address as a source IP address, And sending, to the communication node, a second IP address of the second router where the mobile node device is located, so that the communication node receives the first session data packet, and the second IP address a final source IP address, and submit the first session data packet and the second IP address to an upper layer of a communication node's IP layer;
第一接收器, 还用于接收所述第一路由器发送的以所述第二 I P地址 为目的 I P地址的所述第二会话数据包; 或者 还用于接收所述第一路由器发送的所述第二会话数据包以及所述第 二 IP地址; The first receiver is further configured to receive, by the first router, the second session data packet with the second IP address as a destination IP address; or And configured to receive the second session data packet sent by the first router and the second IP address;
第一处理器, 用于以所述第二 IP地址为最终的目的 IP地址, 并将所 述第一接收器接收的所述第二会话数据包和所述第二 IP地址递交到移动 节点装置的 IP层的上层。  a first processor, configured to use the second IP address as a final destination IP address, and submit the second session data packet and the second IP address received by the first receiver to a mobile node device The upper layer of the IP layer.
结合所述第六方面, 在所述第六方面的第一种实现方式中, 所述第一 发送器, 具体用于:  With reference to the sixth aspect, in a first implementation manner of the sixth aspect, the first transmitter is specifically configured to:
以所述第二 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。  The first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
结合所述第六方面, 在所述第六方面的第二种实现方式中, 所述第一 发送器, 具体用于:  With reference to the sixth aspect, in a second implementation manner of the sixth aspect, the first transmitter is specifically configured to:
以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。  The first session data packet is sent to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address.
结合所述第二种实现方式, 在所述第六方面的第三种实现方式中, 所 述第一发送器, 还用于:  In conjunction with the second implementation manner, in a third implementation manner of the sixth aspect, the first transmitter is further configured to:
向所述第一路由器发送路由器请求消息,所述路由器请求消息中带有 第一标志位, 所述第一标志位为第一数值, 所述第一数值用于表示所述移 动节点装置将以所述第一 IP地址为源 IP地址进行所述第一会话数据包的 发送。 第七方面, 本发明实施例提供一种分布式移动性管理的会话系统, 包 括第一路由器、 第二路由器、 移动节点装置以及通信节点, 其中, Sending a router request message to the first router, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used to indicate that the mobile node device is to The first IP address is a source IP address for transmitting the first session data packet. According to a seventh aspect, an embodiment of the present invention provides a session system for distributed mobility management, including a first router, a second router, a mobile node device, and a communication node, where
所述第一路由器, 用于为移动节点装置分配第一 IP地址, 获取第二 IP地址以及通信节点的第三 IP地址, 所述第二 I P地址为所述移动节点 装置之前所在的第二路由器为所述移动节点装置分配的,接收所述移动节 点装置发送的第一会话数据包,以所述第一 I P地址为源 I P地址向所述通 信节点发送所述第一会话数据包, 并将所述第二 IP地址发送给所述通信 节点, 接收所述通信节点以第三 I P地址为源 IP地址, 以第一 I P地址为 目的 I P地址的第二会话数据包, 直接以第二 IP地址为目的 I P地址将所 述第二会话数据包发送给所述移动节点装置,或者向所述移动节点装置发 送所述第二会话数据包,并将所述第二 I P地址发送给所述移动节点装置; 所述移动节点装置, 用于接收所述第一路由器分配的第一 I P地址, 向所述第一路由器发送第一会话数据包,接收所述第一路由器发送的以所 述第二 I P地址为目的 I P地址的第二会话数据包,或者接收所述第一路由 器发送的第二会话数据包以及所述第二 IP地址,以所述第二 IP地址为最 终的目的 IP地址,并将所述第二会话数据包和所述第二 I P地址递交到移 动节点装置的 IP层的上层;  The first router is configured to allocate a first IP address to the mobile node device, obtain a second IP address, and a third IP address of the communication node, where the second IP address is a second router where the mobile node device is located before And allocating, by the mobile node device, a first session data packet sent by the mobile node device, sending the first session data packet to the communication node by using the first IP address as a source IP address, and The second IP address is sent to the communication node, and the second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address is directly received by the communication node. Transmitting the second session data packet to the mobile node device for a destination IP address, or transmitting the second session data packet to the mobile node device, and transmitting the second IP address to the mobile node The mobile node device is configured to receive a first IP address allocated by the first router, and send a first session data packet to the first router, where Receiving, by the first router, a second session data packet with the second IP address as the destination IP address, or receiving the second session data packet sent by the first router, and the second IP address. Said second IP address is a final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of an IP layer of the mobile node device;
所述通信节点,用于在接收到第一路由器发送的所述第一会话数据包 后, 以所述第二 I P地址为最终的源 I P地址, 并将所述第一会话数据包和 所述第二 IP地址递交到通信节点的 I P层的上层, 以第三 I P地址为源 I P 地址,以第一 I P地址为目的 I P地址向所述第一路由器发送第二会话数据 包。 The communication node is configured to: after receiving the first session data packet sent by the first router, use the second IP address as a final source IP address, and the first session data packet and The second IP address is delivered to the upper layer of the IP layer of the communication node, and the third IP address is used as the source IP address, and the first IP address is used as the destination IP address to send the second session data packet to the first router.
本发明实施例提供的分布式移动性管理的会话方法、 装置及系统, 由 于所述移动节点装置移动到第一路由器所在的网络之后,通信节点接收第 一会话数据包和移动节点装置接收第二会话数据包时,分别以第二路由器 为所述移动节点装置分配的第二 I P地址为最终的源 IP地址和最终的目的 IP 地址, 从而保证了所述移动节点装置在其之前所在的第二路由器发起 的会话不会中断,并由于第一路由器向通信节点发送第一会话数据包时以 所述第一路由器为移动节点装置分配的第一 I P地址为源 I P地址,且通信 节点向第一路由器发送的第二会话数据包以所述第一 I P 地址为目的 IP 地址, 从而使得所述第一路由器与所述通信节点通信时无需建立通信隧 道。 与现有技术相比, 本发明实施例在保证了移动节点装置在其之前所在 的第二路由器发起的会话不会中断的情况下,避免了应用通信隧道, 从而 节省了分布式移动性管理的会话成本。 附图说明  The session method, device and system for distributed mobility management provided by the embodiment of the present invention, after the mobile node device moves to the network where the first router is located, the communication node receives the first session data packet and the mobile node device receives the second When the session data packet is used, the second IP address assigned by the second router to the mobile node device is the final source IP address and the final destination IP address, thereby ensuring that the mobile node device is in the second place before it. The session initiated by the router is not interrupted, and the first IP address assigned by the first router to the mobile node device is the source IP address when the first router sends the first session data packet to the communication node, and the communication node is the first The second session data packet sent by the router uses the first IP address as the destination IP address, so that the first router does not need to establish a communication tunnel when communicating with the communication node. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost. DRAWINGS
实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。 图 1 为本发明实施例提供的分布式移动性管理的会话方法的流程图 图 2 为本发明实施例提供的分布式移动性管理的会话方法的流程图 The drawings used in the embodiments or the description of the prior art are briefly introduced. It is obvious that the drawings in the following description are only some embodiments of the present invention, and are not creative to those skilled in the art. Other drawings can also be obtained from these drawings on the premise of labor. FIG. 1 is a flowchart of a session method for distributed mobility management according to an embodiment of the present invention. 2 is a flowchart of a session method for distributed mobility management according to an embodiment of the present invention.
图 3 为本发明又一实施例提供的分布式移动性管理的会话方法的流 程图; 图 4 为本发明另一实施例提供的分布式移动性管理的会话方法的流 程图; 图 5为本发明实施例提供的第一路由器的结构示意图一; 图 6为本发明实施例提供的第一路由器的结构示意图二; 图 7为本发明又一实施例提供的第一路由器的结构示意图; 图 8为本发明实施例提供的移动节点装置的结构示意图一; 图 9为本发明实施例提供的移动节点装置的结构示意图二; 图 1 0为本发明又一实施例提供的移动节点装置的结构示意图; 图 1 1为本发明实施例提供的分布式移动性管理的会话系统的结构示 意图。 FIG. 3 is a flowchart of a session method for distributed mobility management according to another embodiment of the present invention; FIG. 4 is a flowchart of a session method for distributed mobility management according to another embodiment of the present invention; FIG. 6 is a schematic structural diagram of a first router according to an embodiment of the present invention; FIG. 7 is a schematic structural diagram of a first router according to another embodiment of the present invention; FIG. 9 is a schematic structural diagram of a mobile node device according to an embodiment of the present invention; FIG. 10 is a schematic structural diagram of a mobile node device according to another embodiment of the present invention; FIG. 11 is a schematic structural diagram of a session system for distributed mobility management according to an embodiment of the present invention.
具体实施方式 detailed description
为使本发明技术方案的优点更加清楚,下面结合附图和实施例对本发 明作伴细说明。 如图 1所示, 本发明实施例提供的分布式移动性管理的会话方法, 从 第一路由器侧进行阐述, 所述方法包括: 101、 第一路由器为移动节点装置分配第一 IP地址。 In order to make the advantages of the technical solutions of the present invention more clear, the present invention will be described in detail below with reference to the accompanying drawings and embodiments. As shown in FIG. 1 , a session method for distributed mobility management according to an embodiment of the present invention is described from a first router side, where the method includes: 101. The first router allocates a first IP address to the mobile node device.
102、所述第一路由器获取第二 IP地址以及通信节点的第三 IP地址。 其中, 所述第二 IP地址为所述移动节点装置之前所在的第二路由器 为所述移动节点装置分配的。  102. The first router acquires a second IP address and a third IP address of the communication node. The second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
其中,所述第一路由器可以通过一个集中式装置获取所述移动节点装 置的会话信息, 所述集中式装置用于记录所述移动节点装置的会话信息, 例如所述集中式装置中存储有所述移动节点装置的配置信息 ( policy profile), 所述配置信息中记录有所述移动节点装置的会话信息, 所述会 话信息包括所述移动节点装置的身份标志 ( Mobile Node Identity, 简称 MN-ID)、 所述第二 IP地址以及第三 IP地址。  The first router may acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, for example, the centralized device stores a policy profile of the mobile node device, where the session information of the mobile node device is recorded in the configuration information, and the session information includes a mobile node identity (Mobile Node Identity, MN-ID for short) ), the second IP address and the third IP address.
或者, 所述第一路由器可以通过向所述第二路由器获取所述移动节点 装置的会话信息, 所述会话信息包括所述移动节点装置的身份标志、 所述 第二 IP地址以及第三 IP地址。 此外, 在所述第一路由器从所述第二路由 器获取所述移动节点装置会话信息之后,所述第二路由器可以删除该移动 节点装置的会话信息, 以节省所述第二路由器的存储空间。  Alternatively, the first router may acquire session information of the mobile node device by using the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address. . In addition, after the first router acquires the mobile node device session information from the second router, the second router may delete session information of the mobile node device to save storage space of the second router.
或者, 所述第一路由器从所述移动节点装置处获取会话信息, 例如所 述移动节点装置存储有所述移动节点装置的配置信息( policy profile ), 所述配置信息中记录有所述移动节点装置的会话信息,所述会话信息包括 所述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 或者, 所述第一路由器从所述移动节点装置处获取会话信息还可以通 过接收所述移动节点装置发出的携带有所述会话信息的数据包来实现,所 述会话信息包括所述移动节点装置的所述第二 IP地址以及第三 IP地址。 Or the first router acquires session information from the mobile node device, for example, the mobile node device stores configuration information (the policy profile) of the mobile node device, where the mobile node is recorded in the configuration information. Session information of the device, the session information including an identity flag of the mobile node device, the second IP address, and a third IP address. Alternatively, the acquiring, by the first router, the session information from the mobile node device may also be implemented by receiving a data packet that is sent by the mobile node device and carrying the session information, where the session information includes the mobile node device. The second IP address and the third IP address.
103、所述第一路由器接收所述移动节点装置发送的第一会话数据包。 其中, 所述移动节点装置可以以所述第一 IP地址或第二 IP地址为源 103. The first router receives a first session data packet sent by the mobile node device. The mobile node device may use the first IP address or the second IP address as a source.
IP 地址进行第一会话数据包的发送。 如果所述移动节点装置以所述第一 IP地址为源 IP地址进行第一会话数据包的发送, 则所述第二 IP地址可 以由所述第一会话数据包 IP头的家乡地址选项 (Home Address Option ) 携带。 The IP address is used to send the first session packet. If the mobile node device sends the first session data packet with the first IP address as the source IP address, the second IP address may be the home address option of the first session data packet IP header (Home) Address Option ) Carry.
104、 所述第一路由器以所述第一 IP地址为源 IP地址向所述通信节 点发送所述第一会话数据包,并将所述第二 IP地址发送给所述通信节点, 以使得所述通信节点在接收到所述会话数据包后, 以所述第二 IP地址为 最终的源 IP地址,并将所述第一会话数据包和所述第二 IP地址递交到通 信节点的 IP层的上层。  The first router sends the first session data packet to the communication node by using the first IP address as a source IP address, and sends the second IP address to the communication node, so that the first router After receiving the session data packet, the communication node uses the second IP address as the final source IP address, and delivers the first session data packet and the second IP address to the IP layer of the communication node. Upper level.
105、所述第一路由器接收所述通信节点以第三 IP地址为源 IP地址, 以第一 IP地址为目的 IP地址的第二会话数据包。之后执行步骤 106或者 步骤 107。  105. The first router receives the second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address. Then step 106 or step 107 is performed.
其中, 所述第二 IP地址以所述第二会话数据包的 IP头中的类型 2路 由头 ( Type 2 Routing Header ) 携带。 106、 所述第一路由器直接以第二 IP地址为目的 IP地址将所述第二 会话数据包发送给所述移动节点装置,以使得所述移动节点装置在接收到 所述第二会话数据包后, 以所述第二 IP地址为最终的目的 IP地址, 并将 所述第二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上 层。 The second IP address is carried by a Type 2 Routing Header in an IP header of the second session data packet. 106. The first router directly sends the second session data packet to the mobile node device by using a second IP address as a destination IP address, so that the mobile node device receives the second session data packet. Thereafter, the second IP address is used as the final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device.
其中, 所述第一路由器在接收到所述第二会话数据包后, 以所述 Type 2 Routing Header中的所述第二 IP地址替代 IP头中的第一 IP地址, 以 使得所述第二 IP地址作为目的 IP地址。  After receiving the second session data packet, the first router replaces the first IP address in the IP header with the second IP address in the Type 2 Routing Header, so that the second The IP address is used as the destination IP address.
107、 所述第一路由器向所述移动节点装置发送第二会话数据包, 并 将所述第二 IP地址发送给所述移动节点装置, 以使得所述移动节点装置 在接收到所述第二会话数据包后, 以所述第二 IP 地址为最终的目的 IP 地址, 并将所述第二会话数据包和所述第二 IP地址递交到移动节点装置 的 IP层的上层。  107. The first router sends a second session data packet to the mobile node device, and sends the second IP address to the mobile node device, so that the mobile node device receives the second After the session data packet, the second IP address is the final destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device.
其中, 所述第一路由器直接转发所述第二会话数据包, 所述第二 IP 地址以所述第二会话数据包的 IP头中的 Type 2 Routing Header携带。  The first router directly forwards the second session data packet, and the second IP address is carried by a Type 2 Routing Header in an IP header of the second session data packet.
如图 2所示, 本发明实施例提供的分布式移动性管理的会话方法, 从 移动节点装置侧进行阐述, 所述方法包括:  As shown in FIG. 2, the session method for distributed mobility management according to the embodiment of the present invention is described from the mobile node device side, and the method includes:
201、 移动节点装置在附着在第一路由器上后, 接收所述第一路由器 分配的第一 IP地址。 202、 所述移动节点装置向所述第一路由器发送第一会话数据包, 以 使得所述第一路由器以所述第一 IP地址为源 IP地址向通信节点发送所述 第一会话数据包,并将所述移动节点装置之前所在的第二路由器分配的第 二 IP地址发送给所述通信节点, 进而使得所述通信节点在接收到所述第 一会话数据包后, 以所述第二 IP地址为最终的源 IP地址, 并将所述第一 会话数据包和所述第二 IP地址递交到通信节点的 IP层的上层。之后执行 步骤 203或者步骤 204。 201. After attaching to the first router, the mobile node device receives the first IP address allocated by the first router. 202. The mobile node device sends a first session data packet to the first router, so that the first router sends the first session data packet to the communication node by using the first IP address as a source IP address. And transmitting, to the communication node, a second IP address assigned by the second router where the mobile node device is located, so that the communication node receives the first session data packet, and the second IP address The address is the final source IP address, and the first session data packet and the second IP address are delivered to the upper layer of the IP layer of the communication node. Then step 203 or step 204 is performed.
203、所述移动节点装置接收所述第一路由器发送的以所述第二 IP地 址为目的 IP地址的第二会话数据包。  203. The mobile node device receives, by the first router, a second session data packet with the second IP address as a destination IP address.
204、 所述移动节点装置接收所述第一路由器发送的第二会话数据包 以及所述第二 IP地址。  204. The mobile node device receives a second session data packet sent by the first router and the second IP address.
205、 所述移动节点装置在接收到所述第二会话数据包后, 以所述第 二 IP地址为最终的目的 IP地址, 并将所述第二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上层。  205. After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address. Go to the upper layer of the IP layer of the mobile node device.
值得说明的是,本发明实施例提供的第一路由器和第二路由器一般均 为第一跳接入路由器 ( First-hop Access Router, 简称 AR ), 其可作为 移动锚点, 执行移动性管理功能。  It should be noted that the first router and the second router provided by the embodiments of the present invention are generally first-hop access routers (ARs), which can be used as mobile anchor points to perform mobility management functions. .
本发明实施例提供的分布式移动性管理的会话方法,由于通信节点接 收第一会话数据包和移动节点装置接收第二会话数据包时,分别以第二路 由器为所述移动节点装置分配的第二 IP地址为最终的源 IP地址和最终的 目的 IP地址, 从而保证了所述移动节点装置在其之前所在的第二路由器 发起的会话不会中断,并由于第一路由器向通信节点发送第一会话数据包 时以所述第一路由器为移动节点装置分配的第一 IP地址为源 IP地址,且 通信节点向第一路由器发送的第二会话数据包以所述第一 IP地址为目的 IP 地址, 从而使得所述第一路由器与所述通信节点通信时无需建立通信 隧道。 与现有技术相比, 本发明实施例在保证了移动节点装置在其之前所 在的第二路由器发起的会话不会中断的情况下, 避免了应用通信隧道, 从 而节省了分布式移动性管理的会话成本。 The session method for distributed mobility management provided by the embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second path The second IP address assigned by the router to the mobile node device is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted. And when the first router sends the first session data packet to the communication node, the first IP address assigned by the first router to the mobile node device is the source IP address, and the second session data packet sent by the communication node to the first router is The first IP address is used as the destination IP address, so that the first router does not need to establish a communication tunnel when communicating with the communication node. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
如图 3 所示, 本发明又一实施例提供的分布式移动性管理的会话方 法, 包括:  As shown in FIG. 3, a session method for distributed mobility management according to another embodiment of the present invention includes:
301、 移动节点 (Mobile Node, 简称 MN ) 装置在第二路由器上发起 会话,以所述第二路由器为其分配的第二 IP地址为源 IP地址向通信节点 发送第一会话数据包。  301. A mobile node (Mobile Node, MN for short) device initiates a session on the second router, and sends a first session data packet to the communication node by using the second IP address assigned by the second router as the source IP address.
302、 所述移动节点装置移动到第一路由器的网络中, 在移动节点装 置在附着在第一路由器上后, 所述第一路由器为移动节点装置分配第一 IP地址。  302. The mobile node device moves to a network of the first router. After the mobile node device is attached to the first router, the first router allocates a first IP address to the mobile node device.
303、 所述移动节点装置向所述第一路由器发送路由器请求消息。 其中, 所述路由器请求 ( Router Solicitation, 简称 RS) 消息中带 有第一标志位, 如果所述第一标志位为第一数值(例如采用二进制数 1 ), 所述第一数值用于表示所述移动节点装置将以所述第一 IP 地址为源 IP 地址进行第一会话数据包的发送。 如果所述第一标志位为第二数值(例如 采用二进制 0), 所述第二数值用于表示所述移动节点装置将以所述第二 IP地址为源 IP地址进行第一会话数据包的发送。 303. The mobile node device sends a router request message to the first router. The router request (Router Solicitation, referred to as RS) message is carried in the message Having a first flag, if the first flag is a first value (eg, using a binary number 1), the first value is used to indicate that the mobile node device will use the first IP address as a source IP address The first session data packet is sent. If the first flag is a second value (for example, using a binary 0), the second value is used to indicate that the mobile node device will perform the first session data packet with the second IP address as the source IP address. send.
304、所述第一路由器获取第二 IP地址以及通信节点的第三 IP地址。 其中, 所述第二 IP地址为所述移动节点装置之前所在的第二路由器 为所述移动节点装置分配的。  304. The first router acquires a second IP address and a third IP address of the communication node. The second IP address is allocated by the second router where the mobile node device is located for the mobile node device.
其中,所述第一路由器可以通过一个集中式装置获取所述移动节点装 置的会话信息, 所述集中式装置用于记录所述移动节点装置的会话信息, 例如所述集中式装置中存储有所述移动节点装置的配置信息 ( policy profile), 所述配置信息中记录有所述移动节点装置的会话信息, 所述会 话信息包括所述移动节点装置的身份标志 ( Mobile Node Identity, 简称 MN-ID)、 所述第二 IP地址以及第三 IP地址。  The first router may acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, for example, the centralized device stores a policy profile of the mobile node device, where the session information of the mobile node device is recorded in the configuration information, and the session information includes a mobile node identity (Mobile Node Identity, MN-ID for short) ), the second IP address and the third IP address.
或者, 所述第一路由器可以通过向所述第二路由器获取所述移动节点 装置的会话信息, 所述会话信息包括所述移动节点装置的身份标志、 所述 第二 IP地址以及第三 IP地址。 此外, 在所述第一路由器从所述第二路由 器获取所述移动节点装置会话信息之后,所述第二路由器可以删除该移动 节点装置的会话信息, 以节省所述第二路由器的存储空间。 或者, 所述第一路由器从所述移动节点装置处获取会话信息, 例如所 述移动节点装置存储有所述移动节点装置的配置信息( policy profile ), 所述配置信息中记录有所述移动节点装置的会话信息,所述会话信息包括 所述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 Alternatively, the first router may acquire session information of the mobile node device by using the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address. . In addition, after the first router acquires the mobile node device session information from the second router, the second router may delete session information of the mobile node device to save storage space of the second router. Or the first router acquires session information from the mobile node device, for example, the mobile node device stores configuration information (the policy profile) of the mobile node device, where the mobile node is recorded in the configuration information. Session information of the device, the session information including an identity flag of the mobile node device, the second IP address, and a third IP address.
或者, 所述第一路由器从所述移动节点装置处获取会话信息还可以通 过接收所述移动节点装置发出的携带有所述会话信息的数据包来实现,所 述会话信息包括所述移动节点装置的所述第二 IP地址以及第三 IP地址。  Alternatively, the acquiring, by the first router, the session information from the mobile node device may also be implemented by receiving a data packet that is sent by the mobile node device and carrying the session information, where the session information includes the mobile node device. The second IP address and the third IP address.
305、 所述第一路由器通过代理绑定更新 (Proxy Binding Update, 简称 PBU) 消息与所述通信节点建立绑定关系, 所述代理绑定更新消息中 带有所述第一标志位、 第一 IP地址及第二 IP地址。  305. The first router establishes a binding relationship with the communication node by using a Proxy Binding Update (PBU) message, where the proxy binding update message carries the first flag bit, and the first IP address and second IP address.
其中, 所述 PBU消息中的第一标志位为第一数值(例如采用二进制数 1 ),指示所述移动节点装置将以所述第一 IP地址为源 IP地址进行第一会 话数据包的发送, 以维持在第二路由器上发起的会话的连续。 所述第一 The first flag bit in the PBU message is a first value (for example, using a binary number 1), and indicates that the mobile node device sends the first session data packet by using the first IP address as a source IP address. To maintain the continuity of the session initiated on the second router. The first
IP 地址可以记录在移动节点装置中的一个预先定义的当前地址移动选项 ( MN Current-Address Mobility Opt ion ) 中 , 例 如 所 述 ΜΝ Current-Address Mobility Opt ion的格式如表 1 所示, 其中 Type表示 选项的类型 ( 值为整型数, 例如定义为 7 )、 Length 表示 MN Current-Address 的长度 (值为 16, 单位为子节 )、 MN Current-Address 表示选项的值为当前地址移动选项的值, 而所述第二 IP地址可以记录在 所述 PBU消息的 IP头中的家乡地址选项 (Home Address Option ) 中 表 1. MN Current-Address Mobility Option选项的格式:
Figure imgf000030_0001
The IP address can be recorded in a pre-defined current address mobility option (MN Current-Address Mobility Opt ion) in the mobile node device, for example, the format of the Current-Address Mobility Opt ion is as shown in Table 1, where Type represents The type of option (value is an integer, for example defined as 7), Length indicates the length of MN Current-Address (value is 16, the unit is sub-section), MN Current-Address indicates the value of the option is the value of the current address move option And the second IP address can be recorded in The Home Address Option in the IP header of the PBU message Table 1. Format of the MN Current-Address Mobility Option option:
Figure imgf000030_0001
306、 所述通信节点在接收到所述代理绑定更新消息后, 在其自身能 够满足所述移动节点装置的以所述第一 IP地址为源 IP地址进行第一会话 数据包的发送的要求时,向所述第一路由器返回相对于所述代理绑定更新 消息的代理绑定应答 ( Proxy Binding Acknowledgement, 简称 PBA ) 消 息。  306. After receiving the proxy binding update message, the communications node can satisfy the requirement that the mobile node device sends the first session data packet by using the first IP address as a source IP address. And returning a Proxy Binding Acknowledgement (PBA) message to the first router with respect to the proxy binding update message.
其中, 所述 PBA消息中带有所述第一标志位, 所述 PBA消息中的第一 标志位为第一数值 (例如采用二进制数 1 ), 用于表示所述通信节点同意 所述移动节点装置以所述第一 I P地址为源 I P地址进行第一会话数据包的 发送。  The PBA message carries the first flag bit, and the first flag bit in the PBA message is a first value (for example, using a binary number 1), and is used to indicate that the communication node agrees to the mobile node. The device sends the first session data packet by using the first IP address as the source IP address.
其中,所述通信节点在接收到所述代理绑定更新消息并同意所述移动 节点装置以所述第一 IP地址为源 IP地址进行第一会话数据包的发送时, 所述通信节点必须维持一个绑定列表,所述绑定列表至少包含所述移动节 点装置的身份标志 (Mobile Node Identity, 简称 MN_ID)、 所述第一标 志位、 家乡地址 (Home Address, 简称 HoA )、 当前地址。 其中, 所述绑 定列表中的所述第一标志位为第一数值 (例如采用二进制数 1 ), 所述家 乡地址为所述移动节点装置之前所在的第二路由器为所述移动节点装置 分配的第二 IP地址, 所述当前地址为所述移动节点装置当前所在的第一 路由器为所述移动节点装置分配的第一 IP地址。 The communication node must maintain the first session data packet when the communication node receives the proxy binding update message and agrees that the mobile node device sends the first session data packet with the first IP address as the source IP address. A binding list, the binding list includes at least a mobile node identity (Mobile Node Identity, MN_ID), the first flag bit, a home address (HoA), and a current address. The first flag bit in the binding list is a first value (for example, a binary number 1 is used), and the second router where the home address is the mobile node device is the mobile node device. The assigned second IP address, where the current address is a first IP address assigned by the first router where the mobile node device is located to the mobile node device.
具体的,所述通信节点会判断其自身是否能够满足所述移动节点装置 的以所述第一 IP地址为源 IP地址进行第一会话数据包的发送的要求,其 中, 若所述通信节点与所述移动节点装置的安全性不完善, 则所述通信节 点不接受所述移动节点装置的以所述第一 IP地址为源 IP地址进行第一会 话数据包的发送的要求,此时为了保证所述移动节点装置在所述第二路由 器上发起的会话的安全性,则采取在所述第二路由器所在的网络与第一路 由器所在的网络之间建立通信隧道,或者在所述通信节点与所述第一路由 器所在的网络之间建立通信隧道来完成, 但不仅局限于此。  Specifically, the communication node determines whether it can meet the requirement of the mobile node device to send the first session data packet by using the first IP address as a source IP address, where the communication node is If the security of the mobile node device is not perfect, the communication node does not accept the request of the mobile node device to send the first session data packet by using the first IP address as the source IP address, in order to ensure And establishing, by the mobile node device, the security of the session initiated by the second router, establishing a communication tunnel between the network where the second router is located and the network where the first router is located, or at the communication node The communication tunnel is established between the networks where the first router is located, but is not limited thereto.
307、 所述第一路由器接收所述通信节点发送的代理绑定应答消息, 告知所述移动节点装置以所述第一 IP地址为源 IP地址发送所述第一会话 数据包。  307. The first router receives a proxy binding response message sent by the communications node, and instructs the mobile node device to send the first session data packet by using the first IP address as a source IP address.
其中, 第一路由器可以向所述移动节点装置发送路由器通告( Router Advertisement, 简称 RA ) 消息, 告知所述移动节点装置以所述第一 IP 地址为源 IP地址发送所述第一会话数据包。 所述路由器通告消息中带有 第一标志位, 所述第一标志位为第一数值 (例如采用二进制数 1 ), 所述 第一数值用于表示所述移动节点装置将以所述第一 IP地址为源 IP地址进 行第一会话数据包的发送。 如果步骤 303 中所述路由器请求消息中的所述第一标志位为第二数 值 (例如采用二进制数 0), 则所述路由器通告 ( Router Advertisement, 简称 RA) 消息中的所述第一标志位为第二数值 (例如采用二进制数 0), 并且所述第一路由器必须维持一个绑定列表,所述绑定列表至少包含移动 节点装置的身份标志 (Mobile Node Identity, 简称 MN-ID)、 第一标志 位、 家乡地址 ( Home Address, 简称 HoA)、 以前地址。 The first router may send a Router Advertisement (RA) message to the mobile node device, and notify the mobile node device to send the first session data packet by using the first IP address as a source IP address. The router advertisement message carries a first flag bit, the first flag bit is a first value (for example, using a binary number 1), and the first value is used to indicate that the mobile node device is to be the first The IP address is the source IP address for sending the first session data packet. If the first flag bit in the router request message in step 303 is a second value (for example, using a binary number 0), the first flag bit in the Router Advertisement (RA) message a second value (for example, using a binary number of 0), and the first router must maintain a binding list, the binding list including at least a mobile node identity (Mobile Node Identity, MN-ID), A flag, Home Address (HoA), previous address.
所述绑定列表中的所述第一标志位为第二数值 (例如采用二进制数 0 ),所述家乡地址为所述移动节点装置当前所在的第一路由器为所述移动 节点装置分配的第一 IP地址, 所述以前地址为所述移动节点装置之前所 在的第二路由器为所述移动节点装置分配的第二 IP地址。  The first flag bit in the binding list is a second value (for example, using a binary number 0), and the home address is the first router that the mobile node device is currently located to allocate to the mobile node device. An IP address, the previous address being a second IP address assigned by the second router where the mobile node device was located to the mobile node device.
308、 所述移动节点装置以所述第一 IP地址为源 IP地址, 以所述第 三 IP地址为目的 IP地址向所述第一路由器发送第一会话数据包。  308. The mobile node device sends the first session data packet to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address.
其中,所述第一会话数据包会携带所述移动节点装置之前所在的第二 路由器为所述移动节点装置分配的第二 IP地址,所述第二 IP地址可以由 所述第一会话数据包 IP头的家乡地址选项( Home Address Option )携带。  The first session data packet carries a second IP address assigned by the second router where the mobile node device is located to the mobile node device, and the second IP address may be used by the first session data packet. The IP header's Home Address Option is carried.
309、 所述第一路由器以所述第一 IP地址为源 IP地址向所述通信节 点发送第一会话数据包, 并将所述第二 IP地址发送给所述通信节点。  309. The first router sends a first session data packet to the communication node by using the first IP address as a source IP address, and sends the second IP address to the communication node.
310、 所述通信节点在接收到所述第一会话数据包后, 以所述第二 IP 地址为最终的源 IP地址,并将所述第一会话数据包和所述第二 IP地址递 交到通信节点的 IP层的上层。 After receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and hands the first session data packet and the second IP address. Go to the upper layer of the IP layer of the communication node.
311、 所述通信节点以第三 IP地址为源 IP地址, 以第一 IP地址为目 的 IP地址向所述第一路由器发送第二会话数据包。  311. The communication node sends the second session data packet to the first router by using the third IP address as the source IP address and the IP address for the first IP address.
其中, 此时所述第二 IP地址由所述第二会话数据包的 IP头的类型 2 路由头 ( Type 2 Routing Header ) 携带。  The second IP address is carried by the Type 2 Routing Header of the IP header of the second session data packet.
312、 所述第一路由器在接收到所述第二会话数据包后, 以第一 IP 地址为目的 IP地址向所述移动节点装置发送第二会话数据包, 并将所述 第二 IP地址发送给所述移动节点装置。  312. After receiving the second session data packet, the first router sends a second session data packet to the mobile node device by using the first IP address as the destination IP address, and sends the second IP address. To the mobile node device.
313、 所述移动节点装置在接收到所述第二会话数据包后, 以所述第 二 IP地址为最终的目的 IP地址, 并将所述第二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上层。  313. After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address. Go to the upper layer of the IP layer of the mobile node device.
本发明又一实施例提供的分布式移动性管理的会话方法,由于通信节 点接收第一会话数据包和移动节点装置接收第二会话数据包时,分别以第 二路由器为所述移动节点装置分配的第二 IP地址为最终的源 IP地址和最 终的目的 IP地址, 从而保证了所述移动节点装置在其之前所在的第二路 由器发起的会话不会中断,并由于第一路由器向通信节点发送第一会话数 据包时以所述第一路由器为移动节点装置分配的第一 IP地址为源 IP地 址, 且通信节点向第一路由器发送的第二会话数据包以所述第一 IP地址 为目的 IP地址, 从而使得所述第一路由器与所述通信节点通信时无需建 立通信隧道。 与现有技术相比, 本发明实施例在保证了移动节点装置在其 之前所在的第二路由器发起的会话不会中断的情况下,避免了应用通信隧 道, 从而节省了分布式移动性管理的会话成本。 A session method for distributed mobility management according to another embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second router is allocated to the mobile node device. The second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the communication to the communication node. The first session data packet is configured with the first IP address assigned by the first router as the mobile node device as the source IP address, and the second session data packet sent by the communication node to the first router is for the first IP address. IP address, so that the first router does not need to be built when communicating with the communication node Establish a communication tunnel. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
如图 4 所示, 本发明另一实施例提供的分布式移动性管理的会话方 法, 包括:  As shown in FIG. 4, a session method for distributed mobility management according to another embodiment of the present invention includes:
401、 移动节点 (Mobile Node, 简称 MN ) 装置在第二路由器上发起 会话,以所述第二路由器为其分配的第二 IP地址为源 IP地址向通信节点 发送第一会话数据包。  401. The mobile node (Mobile Node, MN for short) device initiates a session on the second router, and sends the first session data packet to the communication node by using the second IP address assigned by the second router as the source IP address.
402、 所述移动节点装置移动到第一路由器的网络中, 在移动节点装 置在附着在第一路由器上后, 所述第一路由器为移动节点装置分配第一 IP地址。  402. The mobile node device moves to a network of the first router. After the mobile node device is attached to the first router, the first router allocates a first IP address to the mobile node device.
403、 所述移动节点装置以所述第二 IP地址为源 IP地址, 以所述第 三 IP地址为目的 IP地址向所述第一路由器发送第一会话数据包。  403. The mobile node device sends the first session data packet to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address.
404、 所述第一路由器在接收到所述第一会话数据包后, 以所述第一 IP地址替换所述第一会话数据包中的源 IP地址字段处的第二 IP地址。  404. After receiving the first session data packet, the first router replaces the second IP address in the source IP address field in the first session data packet with the first IP address.
405、 所述第一路由器以所述第一 IP地址为源 IP地址向所述通信节 点发送第一会话数据包, 并将所述第二 IP地址发送给所述通信节点。  405. The first router sends a first session data packet to the communication node by using the first IP address as a source IP address, and sends the second IP address to the communication node.
其中,所述第二 IP地址由所述第一会话数据包的 IP头中的家乡地址 选项 ( Home Address Option) 携带。 406、 所述通信节点在接收到所述第一会话数据包后, 以所述第二 IP 地址为最终的源 IP地址,并将所述第一会话数据包和所述第二 IP地址递 交到通信节点的 IP层的上层。 The second IP address is carried by a Home Address Option in an IP header of the first session data packet. 406. After receiving the first session data packet, the communications node uses the second IP address as a final source IP address, and submits the first session data packet and the second IP address to The upper layer of the IP layer of the communication node.
407、 所述通信节点以第三 IP地址为源 IP地址, 以第一 IP地址为目 的 IP地址向所述第一路由器发送第二会话数据包。  407. The communication node sends the second session data packet to the first router by using the third IP address as the source IP address and the first IP address as the destination IP address.
其中,所述第二会话数据包会携带所述移动节点装置之前所在的第二 路由器为所述移动节点装置分配的第二 IP地址,所述第二 IP地址由所述 第二会话数据包的 IP头中的类型 2路由头 ( Type 2 Routing Header ) 携 带。  The second session data packet carries a second IP address assigned by the second router where the mobile node device is located to the mobile node device, and the second IP address is used by the second session data packet. The Type 2 Routing Header in the IP header is carried.
408、 所述第一路由器在接收到所述第二会话数据包后, 以所述第二 IP地址替换所述第二会话数据包中的源 IP地址字段处的第一 IP地址。  408. After receiving the second session data packet, the first router replaces the first IP address in the source IP address field in the second session data packet with the second IP address.
409、 所述第一路由器直接以第二 IP地址为目的 IP地址将所述第二 会话数据包发送给所述移动节点装置。  409. The first router directly sends the second session data packet to the mobile node device by using a second IP address as a destination IP address.
410、 所述移动节点装置在接收到所述第二会话数据包后, 以所述第 二 IP地址为最终的目的 IP地址, 并将所述第二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上层。  410. After receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and submits the second session data packet and the second IP address. Go to the upper layer of the IP layer of the mobile node device.
本发明另一实施例提供的分布式移动性管理的会话方法,由于通信节 点接收第一会话数据包和移动节点装置接收第二会话数据包时,分别以第 二路由器为所述移动节点装置分配的第二 IP地址为最终的源 IP地址和最 终的目的 IP地址, 从而保证了所述移动节点装置在其之前所在的第二路 由器发起的会话不会中断,并由于第一路由器向通信节点发送第一会话数 据包时以所述第一路由器为移动节点装置分配的第一 IP地址为源 IP地 址, 且通信节点向第一路由器发送的第二会话数据包以所述第一 IP地址 为目的 IP地址, 从而使得所述第一路由器与所述通信节点通信时无需建 立通信隧道。 与现有技术相比, 本发明实施例在保证了移动节点装置在其 之前所在的第二路由器发起的会话不会中断的情况下,避免了应用通信隧 道, 从而节省了分布式移动性管理的会话成本。 A session method for distributed mobility management according to another embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second router is allocated to the mobile node device. The second IP address is the final source IP address and most End destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and the first router is the first router when sending the first session data packet to the communication node The first IP address assigned to the mobile node device is the source IP address, and the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, thereby causing the first router and the There is no need to establish a communication tunnel when the communication node communicates. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
如图 5所示, 本发明实施例提供的第一路由器, 包括:  As shown in FIG. 5, the first router provided by the embodiment of the present invention includes:
第一分配单元 501, 用于为移动节点装置分配第一 IP 地址。 其具体 实现方式参见图 1 中步骤 101所示, 此处不再贅述。  The first allocating unit 501 is configured to allocate a first IP address to the mobile node device. For details, see step 101 in Figure 1, and no further details are provided here.
第一获取单元 502, 用于获取第二 IP地址以及通信节点的第三 IP地 址, 其中所述第二 IP地址为所述移动节点装置之前所在的第二路由器为 所述移动节点装置分配的。 其具体实现方式参见图 1 中步骤 102所示, 此 处不再赘述。  The first obtaining unit 502 is configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device. For the specific implementation, refer to step 102 in Figure 1, and no further details are provided here.
第一接收单元 503, 用于接收所述移动节点装置发送的第一会话数据 包。 其具体实现方式参见图 1 中步骤 103所示, 此处不再贅述。  The first receiving unit 503 is configured to receive the first session data packet sent by the mobile node device. For the specific implementation, refer to step 103 in Figure 1, and details are not described here.
第一发送单元 504, 用于以所述第一分配单元 501 分配的第一 IP地 址为源 IP地址向所述通信节点发送所述第一接收单元 503接收到的第一 会话数据包, 并将所述第一获取单元 502获取的第二 IP地址发送给所述 通信节点, 以使得所述通信节点在接收到所述第一会话数据包后, 以所述 第二 IP地址为最终的源 IP地址, 并将所述第一会话数据包和所述第二 IP地址递交到通信节点的 IP层的上层。 其具体实现方式参见图 1 中步骤 104所示, 此处不再贅述。 The first sending unit 504 is configured to send, by using the first IP address that is allocated by the first allocating unit 501 as a source IP address, the first received by the first receiving unit 503 to the communications node. a session data packet, and sending the second IP address obtained by the first obtaining unit 502 to the communication node, so that after receiving the first session data packet, the communication node uses the second IP The address is the final source IP address, and the first session data packet and the second IP address are delivered to the upper layer of the IP layer of the communication node. For the specific implementation, refer to step 104 in Figure 1, and details are not described herein.
第二接收单元 505, 用于接收所述通信节点以第三 IP地址为源 IP地 址, 以第一 IP地址为目的 IP地址的第二会话数据包。 其具体实现方式参 见图 1 中步骤 105所示, 此处不再贅述。  The second receiving unit 505 is configured to receive, by the communications node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address. The specific implementation manner is shown in step 105 in Figure 1, and will not be described here.
所述第一发送单元 504, 还用于直接以所述第一获取单元 502获取的 第二 IP地址为目的 IP地址将所述第二接收单元 505接收到的第二会话数 据包发送给所述移动节点装置,以使得所述移动节点装置在接收到所述第 二会话数据包后, 以所述第二 IP地址为最终的目的 IP地址, 并将所述第 二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上层。其 具体实现方式参见图 1 中步骤 106所示, 此处不再贅述。  The first sending unit 504 is further configured to send, by using the second IP address obtained by the first acquiring unit 502 as the destination IP address, the second session data packet received by the second receiving unit 505 to the Moving the node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and the second session data packet and the first The two IP addresses are delivered to the upper layer of the IP layer of the mobile node device. For details, see step 106 in Figure 1, and no further details are provided here.
或者, 所述第一发送单元 504, 还用于所述第一路由器向所述移动节 点装置发送所述第二接收单元 505接收到的第二会话数据包,并将所述第 一获取单元 502获取的第二 IP地址发送给所述移动节点装置, 以使得所 述移动节点装置在接收到所述第二会话数据包后, 以所述第二 IP地址为 最终的目的 IP地址,并将所述第二会话数据包和所述第二 IP地址递交到 移动节点装置的 IP层的上层。其具体实现方式参见图 1 中步骤 107所示, 此处不再贅述。 Or the first sending unit 504 is further configured to send, by the first router, the second session data packet received by the second receiving unit 505 to the mobile node device, and the first acquiring unit 502 Obtaining the second IP address to be sent to the mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and Transmitting the second session data packet and the second IP address to The upper layer of the IP layer of the mobile node device. For the specific implementation, refer to step 107 in Figure 1, and details are not described here.
进一步的, 如图 6所示, 所述第一接收单元 503, 具体用于: 接收所述移动节点装置以所述第二 IP地址为源 IP地址, 以所述第三 Further, as shown in FIG. 6, the first receiving unit 503 is specifically configured to: receive, by the mobile node device, the second IP address as a source IP address, and the third
IP地址为目的 IP地址的第一会话数据包。 其具体实现方式参见图 4中步 骤 403所示, 此处不再贅述。 The IP address is the first session packet of the destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
进一步的, 如图 6所示, 所述第一路由器, 还包括:  Further, as shown in FIG. 6, the first router further includes:
第一替换单元 506, 用于以所述第一分配单元 501 分配的第一 IP地 址替换所述第一接收单元 503接收到的第一会话数据包中的源 IP地址字 段处的第二 IP地址。 其具体实现方式参见图 4 中步骤 404所示, 此处不 再赘述。  a first replacing unit 506, configured to replace, by using the first IP address allocated by the first allocating unit 501, a second IP address at a source IP address field in the first session data packet received by the first receiving unit 503 . For details, refer to step 404 in Figure 4, and details are not described here.
进一步的, 如图 6所示, 所述第一接收单元 503, 具体用于: 接收所述移动节点装置以所述第一 IP地址为源 IP地址, 以所述第三 Further, as shown in FIG. 6, the first receiving unit 503 is specifically configured to: receive, by the mobile node device, the first IP address as a source IP address, and the third
IP地址为目的 IP地址的第一会话数据包。 其具体实现方式参见图 3中步 骤 308所示, 此处不再贅述。 The IP address is the first session packet of the destination IP address. For details, refer to step 308 in Figure 3, and details are not described herein.
进一步的, 如图 6所示, 所述第一路由器, 还包括:  Further, as shown in FIG. 6, the first router further includes:
第三接收单元 507, 用于接收所述移动节点装置发送的路由器请求消 息 ,所述路由器请求消息中带有第一标志位 ,所述第一标志位为第一数值 , 所述第一数值用于表示所述移动节点装置将以所述第一 IP 地址为源 IP 地址进行所述第一会话数据包的发送。 其具体实现方式参见图 3 中步骤The third receiving unit 507 is configured to receive a router request message sent by the mobile node device, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used by Representing that the mobile node device will use the first IP address as the source IP The address performs the transmission of the first session data packet. See the steps in Figure 3 for the specific implementation.
303所示, 此处不再贅述。 As shown in 303, it will not be described here.
第一绑定单元 508 , 用于在所述第三接收单元 507接收到路由器请求 消息后, 通过代理绑定更新消息与所述通信节点建立绑定关系, 所述代理 绑定更新消息中带有所述第一标志位、 第一 I P地址及第二 I P地址。 其具 体实现方式参见图 3中步骤 305所示, 此处不再贅述。  The first binding unit 508 is configured to establish, after the third receiving unit 507 receives the router request message, a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message is included The first flag bit, the first IP address, and the second IP address. For the specific implementation, refer to step 305 in Figure 3, and details are not described herein.
第四接收单元 509 , 用于接收所述通信节点发送的相对于所述第一绑 定单元 508发送的代理绑定更新消息的代理绑定应答消息,所述代理绑定 应答消息用于表示所述通信节点同意所述移动节点装置以所述第一 I P地 址为源 I P地址进行所述第一会话数据包的发送。 其具体实现方式参见图 3中步骤 306所示, 此处不再贅述。  a fourth receiving unit 509, configured to receive a proxy binding response message sent by the communications node with respect to the proxy binding update message sent by the first binding unit 508, where the proxy binding response message is used to indicate The communication node agrees that the mobile node device performs the sending of the first session data packet by using the first IP address as a source IP address. For the specific implementation, refer to step 306 in Figure 3, and details are not described herein.
进一步的, 如图 6所示, 所述第一获取单元 502 :  Further, as shown in FIG. 6, the first acquiring unit 502:
具体用于通过一集中式装置获取所述移动节点装置的会话信息, 所述 集中式装置用于记录所述移动节点装置的会话信息,所述会话信息包括所 述移动节点装置的身份标志、 所述第二 IP地址以及第三 I P地址。 其具体 实现方式参见图 3中步骤 304所示, 此处不再贅述。  Specifically, the method is used to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device. The second IP address and the third IP address are described. For details, refer to step 304 in Figure 3, and details are not described here.
或者, 如图 6所示, 所述第一获取单元 502 :  Or, as shown in FIG. 6, the first acquiring unit 502:
具体用于向所述第二路由器获取所述移动节点装置的会话信息, 所述 会话信息包括所述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 其具体实现方式参见图 3中步骤 304所示, 此处不再贅述。 或者, 如图 6所示, 所述第一获取单元 502: Specifically, the method is configured to acquire session information of the mobile node device from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address. For the specific implementation, refer to step 304 in Figure 3, and details are not described herein. Or, as shown in FIG. 6, the first acquiring unit 502:
具体用于从所述移动节点装置处获取会话信息, 所述会话信息包括所 述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 其具体 实现方式参见图 3中步骤 304所示, 此处不再贅述。  Specifically, the session information is obtained from the mobile node device, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address. For details, refer to step 304 in Figure 3, and details are not described here.
值得说明的是,本发明实施例提供的第一路由器和第二路由器一般均 为第一跳接入路由器 ( First-hop Access Router, 简称 AR ), 其可作为 移动锚点, 执行移动性管理功能。  It should be noted that the first router and the second router provided by the embodiments of the present invention are generally first-hop access routers (ARs), which can be used as mobile anchor points to perform mobility management functions. .
本发明实施例提供的第一路由器,由于所述通信节点在接收到第一会 话数据包和移动节点装置在接收到第二会话数据包时,分别以第二路由器 为所述移动节点装置分配的第二 IP地址为最终的源 IP地址和最终的目的 IP 地址, 从而保证了所述移动节点装置在其之前所在的第二路由器发起 的会话不会中断,并由于第一路由器向通信节点发送第一会话数据包时以 所述第一路由器为移动节点装置分配的第一 IP地址为源 IP地址,且通信 节点向第一路由器发送的第二会话数据包以所述第一 IP 地址为目的 IP 地址, 从而使得所述第一路由器与所述通信节点通信时无需建立通信隧 道。 与现有技术相比, 本发明实施例在保证了移动节点装置在其之前所在 的第二路由器发起的会话不会中断的情况下, 避免了应用通信隧道, 从而 节省了分布式移动性管理的会话成本。 如图 7所示, 本发明又一实施例提供的第一路由器, 包括: 第一处理器 61, 用于为移动节点装置分配第一 IP地址。 其具体实现 方式参见图 1 中步骤 101所示, 此处不再贅述。 The first router provided by the embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, is allocated by the second router as the mobile node device. The second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the first node to the communication node. The first IP address assigned by the first router to the mobile node device is the source IP address, and the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address. An address such that the first router does not need to establish a communication tunnel when communicating with the communication node. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost. As shown in FIG. 7, a first router according to another embodiment of the present invention includes: a first processor 61, configured to allocate a first IP address to a mobile node device. For the specific implementation, refer to step 101 in Figure 1, and details are not described herein.
第一接收器 62, 用于获取第二 IP地址以及通信节点的第三 IP地址, 其中所述第二 IP地址为所述移动节点装置之前所在的第二路由器为所述 移动节点装置分配的。 其具体实现方式参见图 1 中步骤 102所示, 此处不 再赘述。  The first receiver 62 is configured to acquire a second IP address and a third IP address of the communication node, where the second IP address is allocated by the second router where the mobile node device is located for the mobile node device. For the specific implementation, refer to step 102 in Figure 1, and no further details are provided here.
所述第一接收器 62, 还用于接收所述移动节点装置发送的第一会话 数据包。 其具体实现方式参见图 1 中步骤 103所示, 此处不再贅述。  The first receiver 62 is further configured to receive a first session data packet sent by the mobile node device. For the specific implementation, refer to step 103 in Figure 1, and details are not described here.
第一发送器 63, 用于以所述第一处理器 61 分配的第一 IP地址为源 IP地址向所述通信节点发送第一会话数据包, 并将所述第二 IP地址发送 给所述通信节点, 以使得所述通信节点在接收到所述第一会话数据包后, 以所述第二 IP地址为最终的源 IP地址,并将所述第一会话数据包和所述 第二 IP 地址递交到通信节点的 IP 层的上层。 其具体实现方式参见图 1 中步骤 104所示, 此处不再贅述。  a first transmitter 63, configured to send, by using the first IP address allocated by the first processor 61, a first session data packet to the communication node, and send the second IP address to the a communication node, such that after receiving the first session data packet, the communication node uses the second IP address as a final source IP address, and the first session data packet and the second IP address The address is delivered to the upper layer of the IP layer of the communication node. For the specific implementation, refer to step 104 in Figure 1, and details are not described here.
所述第一接收器 62,还用于接收所述通信节点以第三 IP地址为源 IP 地址, 以第一 IP地址为目的 IP地址的第二会话数据包。 其具体实现方式 参见图 1 中步骤 105所示, 此处不再贅述。  The first receiver 62 is further configured to receive, by the communication node, a second session data packet with the third IP address as the source IP address and the first IP address as the destination IP address. The specific implementation is shown in step 105 in Figure 1, and is not described here.
所述第一发送器 63, 还用于直接以第二 IP地址为目的 IP地址将所 述第一接收器 62接收的第二会话数据包发送给所述移动节点装置, 以使 得所述移动节点装置在接收到所述第二会话数据包后, 以所述第二 IP地 址为最终的目的 IP地址,并将所述第二会话数据包和所述第二 IP地址递 交到移动节点装置的 IP层的上层。 其具体实现方式参见图 1 中步骤 106 所示, 此处不再贅述。 The first transmitter 63 is further configured to directly use the second IP address as the destination IP address. Transmitting, by the first receiver 62, the second session data packet to the mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final The destination IP address, and the second session data packet and the second IP address are delivered to an upper layer of the IP layer of the mobile node device. For the specific implementation, refer to step 106 in Figure 1, and details are not described here.
或者, 所述第一发送器 63, 还用于所述第一路由器向所述移动节点 装置发送第一接收器 62接收的第二会话数据包,并将所述第二 IP地址发 送给所述移动节点装置,以使得所述移动节点装置在接收到所述第二会话 数据包后, 以所述第二 IP地址为最终的目的 IP地址, 并将所述第二会话 数据包和所述第二 IP地址递交到移动节点装置的 IP层的上层。其具体实 现方式参见图 1 中步骤 107所示, 此处不再贅述。  Or the first transmitter 63 is further configured to send, by the first router, the second session data packet received by the first receiver 62 to the mobile node device, and send the second IP address to the Moving the node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as a final destination IP address, and the second session data packet and the first The two IP addresses are delivered to the upper layer of the IP layer of the mobile node device. For the specific implementation, refer to step 107 in Figure 1, and details are not described here.
进一步的, 如图 7所示, 所述第一接收器 62, 具体用于:  Further, as shown in FIG. 7, the first receiver 62 is specifically configured to:
接收所述移动节点装置以所述第二 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。 其具体实现方式参见图 4中步 骤 403所示, 此处不再贅述。  Receiving, by the mobile node device, the second IP address as a source IP address, and the third IP address as a first session data packet of a destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
进一步的, 如图 7所示, 所述第一处理器 61,  Further, as shown in FIG. 7, the first processor 61,
还用于以所述第一 IP地址替换所述第一会话数据包中的源 IP地址字 段处的第二 IP地址。 其具体实现方式参见图 4 中步骤 404所示, 此处不 进一步的, 如图 7所示, 所述第一接收器 62 , 具体用于: 接收所述移动节点装置以所述第一 I P地址为源 IP地址, 以所述第三Also for replacing the second IP address at the source IP address field in the first session data packet with the first IP address. For the specific implementation, refer to step 404 in Figure 4, where not Further, as shown in FIG. 7, the first receiver 62 is specifically configured to: receive, by the mobile node device, the first IP address as a source IP address, and the third
IP地址为目的 IP地址的第一会话数据包。 其具体实现方式参见图 3中步 骤 308所示, 此处不再贅述。 The IP address is the first session packet of the destination IP address. For details, refer to step 308 in Figure 3, and details are not described herein.
进一步的, 如图 7所示, 所述第一接收器 62 ,  Further, as shown in FIG. 7, the first receiver 62,
还用于接收所述移动节点装置发送的路由器请求消息, 所述路由器请 求消息中带有第一标志位, 所述第一标志位为第一数值, 所述第一数值用 于表示所述移动节点装置将以所述第一 I P地址为源 I P地址进行所述第一 会话数据包的发送。 其具体实现方式参见图 3中步骤 303所示, 此处不再 贅述。  And a router request message sent by the mobile node device, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used to indicate the mobile The node device will perform the sending of the first session data packet with the first IP address as the source IP address. For the specific implementation, refer to step 303 in Figure 3, and details are not described herein.
所述第一发送器 63 , 还用于通过代理绑定更新消息与所述通信节点 建立绑定关系, 所述代理绑定更新消息中带有所述第一标志位、 第一 I P 地址及第二 I P地址。 其具体实现方式参见图 3中步骤 305所示, 此处不 再赘述。  The first transmitter 63 is further configured to establish a binding relationship with the communication node by using a proxy binding update message, where the proxy binding update message carries the first flag bit, the first IP address, and the first Two IP addresses. For details, refer to step 305 in Figure 3, and details are not described here.
所述第一接收器 62 , 还用于接收所述通信节点发送的相对于所述代 理绑定更新消息的代理绑定应答消息,所述代理绑定应答消息用于表示所 述通信节点同意所述移动节点装置以所述第一 I P地址为源 I P地址进行会 话数据包的发送。 其具体实现方式参见图 3中步骤 306所示, 此处不再贅 述。 进一步的, 如图 7所示, 所述第一接收器 62 , The first receiver 62 is further configured to receive a proxy binding response message sent by the communications node with respect to the proxy binding update message, where the proxy binding response message is used to indicate that the communications node agrees to The mobile node device transmits the session data packet by using the first IP address as the source IP address. For the specific implementation, refer to step 306 in Figure 3, and details are not described herein. Further, as shown in FIG. 7, the first receiver 62,
还用于通过一集中式装置获取所述移动节点装置的会话信息, 所述集 中式装置用于记录所述移动节点装置的会话信息,所述会话信息包括所述 移动节点装置的身份标志、 所述第二 I P地址以及第三 I P地址。 其具体实 现方式参见图 3中步骤 304所示, 此处不再贅述。  And the method is further configured to acquire session information of the mobile node device by using a centralized device, where the centralized device is configured to record session information of the mobile node device, where the session information includes an identity identifier of the mobile node device. The second IP address and the third IP address are described. For the specific implementation, refer to step 304 in Figure 3, and details are not described here.
进一步的, 如图 7所示, 所述第一接收器 62 ,  Further, as shown in FIG. 7, the first receiver 62,
还用于向所述第二路由器获取所述移动节点装置的会话信息,所述会 话信息包括所述移动节点装置的身份标志、 所述第二 IP地址以及第三 I P 地址。 其具体实现方式参见图 3中步骤 304所示, 此处不再贅述。  And the method is further configured to acquire session information of the mobile node device from the second router, where the session information includes an identity identifier of the mobile node device, the second IP address, and a third IP address. For the specific implementation, refer to step 304 in Figure 3, and details are not described herein.
进一步的, 如图 7所示, 所述第一接收器 62 ,  Further, as shown in FIG. 7, the first receiver 62,
还用于从所述移动节点装置处获取会话信息,所述会话信息包括所述 移动节点装置的身份标志、 所述第二 I P地址以及第三 I P地址。 其具体实 现方式参见图 3中步骤 304所示, 此处不再贅述。  Also used to obtain session information from the mobile node device, the session information including an identity flag of the mobile node device, the second IP address, and a third IP address. For the specific implementation, refer to step 304 in Figure 3, and details are not described here.
本发明又一实施例提供的第一路由器,由于所述通信节点在接收到第 一会话数据包和移动节点装置在接收到第二会话数据包时,分别以第二路 由器为所述移动节点装置分配的第二 IP地址为最终的源 I P地址和最终的 目的 I P地址, 从而保证了所述移动节点装置在其之前所在的第二路由器 发起的会话不会中断,并由于第一路由器向通信节点发送第一会话数据包 时以所述第一路由器为移动节点装置分配的第一 IP地址为源 I P地址,且 通信节点向第一路由器发送的第二会话数据包以所述第一 IP地址为目的 IP 地址, 从而使得所述第一路由器与所述通信节点通信时无需建立通信 隧道。 与现有技术相比, 本发明实施例在保证了移动节点装置在其之前所 在的第二路由器发起的会话不会中断的情况下, 避免了应用通信隧道, 从 而节省了分布式移动性管理的会话成本。 According to still another embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, the second router is the mobile node device. The assigned second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router is to the communication node The first IP address assigned by the first router to the mobile node device when the first session data packet is sent is the source IP address, and The second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, so that the first router does not need to establish a communication tunnel when communicating with the communication node. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
如图 8所示, 本发明实施例提供的移动节点装置, 包括:  As shown in FIG. 8, the mobile node device provided by the embodiment of the present invention includes:
第一接收单元 71, 用于在附着在第一路由器上后, 接收所述第一路 由器分配的第一 IP地址。 其具体实现方式参见图 2 中步骤 201所示, 此 处不再赘述。  The first receiving unit 71 is configured to receive the first IP address allocated by the first router after being attached to the first router. For details, refer to step 201 in Figure 2, and details are not described here.
第一发送单元 72, 用于向所述第一路由器发送第一会话数据包, 以 使得所述第一路由器以所述第一 IP地址为源 IP地址向通信节点发送所述 第一会话数据包, 并将所述移动节点装置之前所在的第二路由器的第二 IP 地址发送给所述通信节点, 进而使得所述通信节点在接收到所述第一 会话数据包后, 以所述第二 IP地址为最终的源 IP地址, 并将所述第一会 话数据包和所述第二 IP地址递交到通信节点的 IP层的上层。其具体实现 方式参见图 2中步骤 202所示, 此处不再贅述。  The first sending unit 72 is configured to send the first session data packet to the first router, so that the first router sends the first session data packet to the communication node by using the first IP address as a source IP address. Transmitting, to the communication node, a second IP address of the second router where the mobile node device is located, and then causing the communication node to use the second IP after receiving the first session data packet The address is the final source IP address, and the first session data packet and the second IP address are delivered to the upper layer of the IP layer of the communication node. For details, refer to step 202 in Figure 2, and details are not described here.
第二接收单元 73, 用于接收所述第一路由器发送的以所述第二 IP地 址为目的 IP地址的所述第二会话数据包, 或者用于接收所述第一路由器 发送的所述第二会话数据包以及所述第二 IP地址。 其具体实现方式参见 图 2中步骤 203及步骤 204所示, 此处不再贅述。 The second receiving unit 73 is configured to receive the second session data packet that is sent by the first router by using the second IP address as a destination IP address, or to receive the first Two session data packets and the second IP address. See the specific implementation Step 203 and step 204 are shown in FIG. 2, and details are not described herein again.
递交单元 74, 用于以所述第二 IP地址为最终的目的 IP地址, 并将 所述第二接收单元 73接收的所述第二会话数据包和所述第二 IP地址递交 到移动节点装置的 IP层的上层。 其具体实现方式参见图 2 中步骤 205所 示, 此处不再赘述„  The submitting unit 74 is configured to use the second IP address as the final destination IP address, and submit the second session data packet and the second IP address received by the second receiving unit 73 to the mobile node device. The upper layer of the IP layer. For the specific implementation, refer to step 205 in Figure 2, and the details are not described here.
进一步的, 如图 9所示, 所述第一发送单元 72, 具体用于:  Further, as shown in FIG. 9, the first sending unit 72 is specifically configured to:
以所述第二 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 其具体实现方式参见图 4 中步骤 403所示, 此处不再贅述。  The first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
进一步的, 如图 9所示, 所述第一发送单元 72, 具体用于:  Further, as shown in FIG. 9, the first sending unit 72 is specifically configured to:
以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 其具体实现方式参见图 3 中步骤 308所示, 此处不再贅述。  The first session data packet is sent to the first router by using the first IP address as a source IP address and the third IP address as a destination IP address. For the specific implementation, refer to step 308 in Figure 3, and details are not described herein.
进一步的, 如图 9所示, 所述移动节点装置, 还包括:  Further, as shown in FIG. 9, the mobile node device further includes:
第二发送单元 75, 用于向所述第一路由器发送路由器请求消息, 所 述路由器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所述 第一数值用于表示所述移动节点装置将以所述第一 IP地址为源 IP地址进 行所述第一会话数据包的发送。其具体实现方式参见图 3中步骤 303所示, 值得说明的是, 本发明实施例提供的移动节点装置可以是手机、 可移 动电话机等, 但不仅局限于此。 a second sending unit 75, configured to send a router request message to the first router, where the router request message carries a first flag, the first flag is a first value, and the first value is used Representing that the mobile node device will transmit the first session data packet with the first IP address as a source IP address. For the specific implementation, refer to step 303 in Figure 3. It should be noted that the mobile node device provided by the embodiment of the present invention may be a mobile phone, a mobile phone, or the like, but is not limited thereto.
本发明实施例提供的移动节点装置,由于通信节点接收第一会话数据 包和移动节点装置接收第二会话数据包时,分别以第二路由器为所述移动 节点装置分配的第二 I P地址为最终的源 I P地址和最终的目的 I P地址, 从而保证了所述移动节点装置在其之前所在的第二路由器发起的会话不 会中断,并由于第一路由器向通信节点发送第一会话数据包时以所述第一 路由器为移动节点装置分配的第一 I P地址为源 I P地址,且通信节点向第 一路由器发送的第二会话数据包以所述第一 I P地址为目的 I P地址,从而 使得所述第一路由器与所述通信节点通信时无需建立通信隧道。与现有技 术相比,本发明实施例在保证了移动节点装置在其之前所在的第二路由器 发起的会话不会中断的情况下, 避免了应用通信隧道, 从而节省了分布式 移动性管理的会话成本。  The mobile node device provided by the embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, respectively, the second IP address assigned by the second router to the mobile node device is the final Source IP address and final destination IP address, thereby ensuring that the mobile node device does not interrupt the session initiated by the second router where it is located, and because the first router sends the first session data packet to the communication node, The first IP address assigned by the first router to the mobile node device is a source IP address, and the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, thereby causing the The first router does not need to establish a communication tunnel when communicating with the communication node. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost.
如图 1 0所示, 本发明又一实施例提供的移动节点装置, 包括: 第一接收器 81 , 用于在附着在第一路由器上后, 接收所述第一路由 器分配的第一 I P地址。 其具体实现方式参见图 2 中步骤 201所示, 此处 不再赘述。  As shown in FIG. 10, a mobile node device according to another embodiment of the present invention includes: a first receiver 81, configured to receive a first IP address allocated by the first router after being attached to the first router. . For details, refer to step 201 in Figure 2, and details are not described here.
第一发送器 82 , 用于向所述第一路由器发送第一会话数据包, 以使 得所述第一路由器以所述第一 I P地址为源 IP地址向通信节点发送所述第 一会话数据包, 并将所述移动节点装置之前所在的第二路由器的第二 IP 地址发送给所述通信节点,进而使得所述通信节点在接收到所述第一会话 数据包后, 以所述第二 IP地址为最终的源 IP地址, 并将所述第一会话数 据包和所述第二 IP地址递交到通信节点的 IP层的上层。其具体实现方式 参见图 2中步骤 202所示, 此处不再贅述。 The first transmitter 82 is configured to send the first session data packet to the first router, so that the first router sends the first node to the communication node by using the first IP address as a source IP address. a session data packet, and sending a second IP address of the second router where the mobile node device is located to the communication node, so that after receiving the first session data packet, the communication node The second IP address is the final source IP address, and the first session data packet and the second IP address are delivered to an upper layer of the IP layer of the communication node. For the specific implementation, refer to step 202 in Figure 2, and details are not described herein.
第一接收器 81, 还用于接收所述第一路由器发送的以所述第二 IP地 址为目的 IP地址的所述第二会话数据包, 或者用于接收所述第一路由器 发送的所述第二会话数据包以及所述第二 IP地址。 其具体实现方式参见 图 2中步骤 203及步骤 204所示, 此处不再贅述。  The first receiver 81 is further configured to receive the second session data packet that is sent by the first router by using the second IP address as a destination IP address, or to receive the a second session data packet and the second IP address. For details, refer to steps 203 and 204 in Figure 2, and details are not described here.
第一处理器 83, 用于以所述第二 IP地址为最终的目的 IP地址, 并 将所述第一接收器 81接收的第二会话数据包和所述第二 IP地址递交到移 动节点装置的 IP层的上层。 其具体实现方式参见图 2 中步骤 205所示, 此处不再贅述。  The first processor 83 is configured to use the second IP address as a final destination IP address, and submit the second session data packet and the second IP address received by the first receiver 81 to the mobile node device. The upper layer of the IP layer. For details, refer to step 205 in Figure 2, and details are not described here.
进一步的, 如图 10所示, 所述第一发送器 82, 具体用于:  Further, as shown in FIG. 10, the first transmitter 82 is specifically configured to:
以所述第二 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 其具体实现方式参见图 4 中步骤 403所示, 此处不再贅述。  The first session data packet is sent to the first router by using the second IP address as a source IP address and the third IP address as a destination IP address. For details, refer to step 403 in Figure 4, and details are not described here.
进一步的, 如图 10所示, 所述第一发送器 82, 具体用于:  Further, as shown in FIG. 10, the first transmitter 82 is specifically configured to:
以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 其具体实现方式参见图 3 中步骤 308所示, 此处不再贅述。 Taking the first IP address as the source IP address and the third IP address as the destination IP address Sending the first session data packet to the first router. For the specific implementation, refer to step 308 in Figure 3, and details are not described herein.
进一步的, 如图 1 0所示, 所述第一发送器 82 , 还用于:  Further, as shown in FIG. 10, the first transmitter 82 is further configured to:
向所述第一路由器发送路由器请求消息,所述路由器请求消息中带有 第一标志位, 所述第一标志位为第一数值, 所述第一数值用于表示所述移 动节点装置将以所述第一 IP地址为源 I P地址进行所述第一会话数据包的 发送。 其具体实现方式参见图 3中步骤 303所示, 此处不再贅述。  Sending a router request message to the first router, where the router request message has a first flag bit, the first flag bit is a first value, and the first value is used to indicate that the mobile node device is to The first IP address is a source IP address for transmitting the first session data packet. For the specific implementation, refer to step 303 in Figure 3, and details are not described herein.
值得说明的是, 本发明实施例提供的移动节点装置可以是手机、 可移 动电话机等, 但不仅局限于此。  It should be noted that the mobile node device provided by the embodiment of the present invention may be a mobile phone, a mobile phone, or the like, but is not limited thereto.
本发明又一实施例提供的移动节点装置,由于通信节点接收第一会话 数据包和移动节点装置接收第二会话数据包时,分别以第二路由器为所述 移动节点装置分配的第二 I P地址为最终的源 I P地址和最终的目的 I P地 址,从而保证了所述移动节点装置在其之前所在的第二路由器发起的会话 不会中断,并由于第一路由器向通信节点发送第一会话数据包时以所述第 一路由器为移动节点装置分配的第一 I P地址为源 IP地址,且通信节点向 第一路由器发送的第二会话数据包以所述第一 I P地址为目的 IP地址,从 而使得所述第一路由器与所述通信节点通信时无需建立通信隧道。与现有 技术相比,本发明实施例在保证了移动节点装置在其之前所在的第二路由 器发起的会话不会中断的情况下, 避免了应用通信隧道, 从而节省了分布 式移动性管理的会话成本。 According to still another embodiment of the present invention, when the communication node receives the first session data packet and the mobile node device receives the second session data packet, the second IP address assigned by the second router to the mobile node device is respectively The final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the first session data packet to the communication node. The first IP address assigned by the first router to the mobile node device is the source IP address, and the second session data packet sent by the communication node to the first router uses the first IP address as the destination IP address, thereby The first router does not need to establish a communication tunnel when communicating with the communication node. Compared with the prior art, the embodiment of the present invention ensures that the mobile node device avoids the application communication tunnel in the case that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving the distribution. Session cost for mobility management.
如图 11所示, 本发明实施例提供的分布式移动性管理的会话系统, 包括上述的第一路由器 91、 第二路由器 92、 移动节点装置 93以及通信节 点 94 , 其中,  As shown in FIG. 11, the session system for distributed mobility management according to the embodiment of the present invention includes the first router 91, the second router 92, the mobile node device 93, and the communication node 94.
所述第一路由器 91, 用于为移动节点装置 93分配第一 IP地址, 获 取第二 IP地址以及通信节点 94的第三 IP地址,所述第二 IP地址为移动 节点装置 93之前所在的第二路由器 92为所述移动节点装置 93分配的, 接收所述移动节点装置 93发送的第一会话数据包,以所述第一 IP地址为 源 IP地址向所述通信节点 94 发送所述第一会话数据包, 并将所述第二 IP地址发送给所述通信节点 94, 接收所述通信节点 94以第三 IP地址为 源 IP地址, 以第一 IP地址为目的 IP地址的第二会话数据包, 直接以第 二 IP地址为目的 IP地址将所述第二会话数据包发送给所述移动节点装置 93, 或者向所述移动节点装置 93发送所述第二会话数据包, 并将所述第 二 IP地址发送给所述移动节点装置 93。  The first router 91 is configured to allocate a first IP address to the mobile node device 93, obtain a second IP address, and a third IP address of the communication node 94, where the second IP address is the previous location of the mobile node device 93. The second router 92 is allocated to the mobile node device 93, receives the first session data packet sent by the mobile node device 93, and sends the first session to the communication node 94 with the first IP address as the source IP address. a session data packet, and sending the second IP address to the communication node 94, and receiving the second session data of the communication node 94 with the third IP address as the source IP address and the first IP address as the destination IP address. Transmitting, by using the second IP address as the destination IP address, the second session data packet to the mobile node device 93, or sending the second session data packet to the mobile node device 93, and The second IP address is sent to the mobile node device 93.
所述移动节点装置 93, 用于接收所述第一路由器 91 分配的第一 IP 地址, 向所述第一路由器 91发送第一会话数据包, 接收所述第一路由器 91发送的以所述第二 IP地址为目的 IP地址的所述第二会话数据包, 或 者接收所述第一路由器 91发送的第二会话数据包以及所述第二 IP地址, 以所述第二 IP地址为最终的目的 IP地址,并将所述第二会话数据包和所 述第二 IP地址递交到移动节点装置 93的 IP层的上层。 The mobile node device 93 is configured to receive a first IP address allocated by the first router 91, send a first session data packet to the first router 91, and receive, by the first router 91, the first IP address. The second session data packet whose IP address is the destination IP address, or the second session data packet sent by the first router 91 and the second IP address, with the second IP address as the final purpose IP address and the second session packet and The second IP address is delivered to the upper layer of the IP layer of the mobile node device 93.
所述通信节点 94, 用于在接收到第一路由器 91发送的所述第一会话 数据包后, 以所述第二 IP地址为最终的源 IP地址, 并将所述第一会话数 据包和所述第二 IP地址递交到通信节点 94 的 IP层的上层, 以第三 IP 地址为源 IP地址, 以第一 IP地址为目的 IP地址向所述第一路由器 91 发送第二会话数据包。  The communication node 94 is configured to: after receiving the first session data packet sent by the first router 91, use the second IP address as a final source IP address, and the first session data packet and The second IP address is delivered to the upper layer of the IP layer of the communication node 94, and the third IP address is used as the source IP address, and the first IP address is used as the destination IP address to send the second session data packet to the first router 91.
其具体实现方式参见上述的第一路由器和移动节点装置的具体实施 例, 此处不再贅述。  For a specific implementation manner, refer to the foregoing specific embodiments of the first router and the mobile node device, and details are not described herein again.
本发明实施例提供的分布式移动性管理的会话系统,由于通信节,、接 收第一会话数据包和移动节点装置接收第二会话数据包时,分别以第二路 由器为所述移动节点装置分配的第二 IP地址为最终的源 IP地址和最终的 目的 IP地址, 从而保证了所述移动节点装置在其之前所在的第二路由器 发起的会话不会中断,并由于第一路由器向通信节点发送第一会话数据包 时以所述第一路由器为移动节点装置分配的第一 IP地址为源 IP地址,且 通信节点向第一路由器发送的第二会话数据包以所述第一 IP地址为目的 IP 地址, 从而使得所述第一路由器与所述通信节点通信时无需建立通信 隧道。 与现有技术相比, 本发明实施例在保证了移动节点装置在其之前所 在的第二路由器发起的会话不会中断的情况下, 避免了应用通信隧道, 从 而节省了分布式移动性管理的会话成本。 通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到 本发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬 件, 但很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技 术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式 体现出来, 该计算机软件产品存储在可读取的存储介质中, 如计算机的软 盘, 硬盘或光盘等, 包括若干指令用以使得一台计算机设备(可以是个人 计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述的方法。 The distributed mobility management session system provided by the embodiment of the present invention allocates the first session data packet and the mobile node device receives the second session data packet by using the second router as the mobile node device. The second IP address is the final source IP address and the final destination IP address, thereby ensuring that the session initiated by the mobile node device at the second router where it is located is not interrupted, and because the first router sends the communication to the communication node. The first session data packet is configured with the first IP address assigned by the first router as the mobile node device as the source IP address, and the second session data packet sent by the communication node to the first router is for the first IP address. The IP address, such that the first router does not need to establish a communication tunnel when communicating with the communication node. Compared with the prior art, the embodiment of the present invention avoids the application communication tunnel when the mobile node device ensures that the session initiated by the second router where the mobile node is located is not interrupted, thereby saving distributed mobility management. Session cost. Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 claims
1、 一种分布式移动性管理的会话方法, 其特征在于, 包括: 第一路由器为移动节点装置分配第一 IP地址; 1. A session method for distributed mobility management, characterized in that it includes: the first router allocates a first IP address to the mobile node device;
所述第一路由器获取第二 IP地址以及通信节点的第三 IP地址, 其中 所述第二 IP 地址为所述移动节点装置之前所在的第二路由器为所述移动 节点装置分配的; The first router obtains a second IP address and a third IP address of the communication node, wherein the second IP address is assigned to the mobile node device by the second router where the mobile node device was previously located;
所述第一路由器接收所述移动节点装置发送的第一会话数据包; 所述第一路由器以所述第一 IP地址为源 IP地址向所述通信节点发送 所述第一会话数据包, 并将所述第二 I P地址发送给所述通信节点, 以使得 所述通信节点在接收到所述第一会话数据包后,以所述第二 I P地址为最终 的源 IP地址, 并将所述第一会话数据包和所述第二 IP地址递交到通信节 点的 IP层的上层; The first router receives the first session data packet sent by the mobile node device; the first router sends the first session data packet to the communication node using the first IP address as the source IP address, and Send the second IP address to the communication node, so that after receiving the first session data packet, the communication node uses the second IP address as the final source IP address, and sends the The first session data packet and the second IP address are submitted to an upper layer of the IP layer of the communication node;
所述第一路由器接收所述通信节点以第三 IP地址为源 IP地址, 以第 一 I P地址为目的 IP地址的第二会话数据包; The first router receives the second session data packet of the communication node with the third IP address as the source IP address and the first IP address as the destination IP address;
所述第一路由器直接以第二 IP地址为目的 IP地址将所述第二会话数 据包发送给所述移动节点装置, 以使得所述移动节点装置在接收到所述第 二会话数据包后, 以所述第二 IP地址为最终的目的 IP地址, 并将所述第 二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上层; 或 者 所述第一路由器向所述移动节点装置发送第二会话数据包, 并将所述 第二 IP地址发送给所述移动节点装置,以使得所述移动节点装置在接收到 所述第二会话数据包后, 以所述第二 IP地址为最终的目的 IP地址, 并将 所述第二会话数据包和所述第二 IP地址递交到移动节点装置的 IP层的上 层。 The first router directly sends the second session data packet to the mobile node device using the second IP address as the destination IP address, so that after the mobile node device receives the second session data packet, Using the second IP address as the final destination IP address, and submitting the second session data packet and the second IP address to the upper layer of the IP layer of the mobile node device; or The first router sends a second session data packet to the mobile node device, and sends the second IP address to the mobile node device, so that the mobile node device receives the second session data After receiving the packet, the second IP address is used as the final destination IP address, and the second session data packet and the second IP address are submitted to the upper layer of the IP layer of the mobile node device.
2、 根据权利要求 1所述的方法, 其特征在于, 所述第一路由器接收所 述移动节点装置发送的第一会话数据包, 包括: 2. The method according to claim 1, wherein the first router receives the first session data packet sent by the mobile node device, including:
所述第一路由器接收所述移动节点装置以所述第二 IP地址为源 IP地 址, 以所述第三 IP地址为目的 I P地址的第一会话数据包。 The first router receives the first session data packet in which the mobile node device uses the second IP address as the source IP address and the third IP address as the destination IP address.
3、 根据权利要求 2所述的方法, 其特征在于, 在所述第一路由器以所 述第一 IP地址为源 IP地址向所述通信节点发送所述第一会话数据包之前, 包括: 3. The method according to claim 2, characterized in that, before the first router sends the first session data packet to the communication node using the first IP address as the source IP address, it includes:
所述第一路由器以所述第一 I P 地址替换所述第一会话数据包中的源 IP地址字段处的第二 I P地址。 The first router replaces the second IP address at the source IP address field in the first session packet with the first IP address.
4、 根据权利要求 1所述的方法, 其特征在于, 所述第一路由器接收所 述移动节点装置发送的第一会话数据包, 包括: 4. The method according to claim 1, wherein the first router receives the first session data packet sent by the mobile node device, including:
所述第一路由器接收所述移动节点装置以所述第一 IP地址为源 IP地 址, 以所述第三 IP地址为目的 I P地址的第一会话数据包。 The first router receives the first session data packet in which the mobile node device uses the first IP address as the source IP address and the third IP address as the destination IP address.
5、 根据权利要求 4所述的方法, 其特征在于, 在所述第一路由器接收 所述移动节点装置以所述第一 IP地址为源 IP地址,以所述第三 IP地址为 目的 IP地址的第一会话数据包之前, 包括: 5. The method according to claim 4, characterized in that: receiving at the first router Before the first session data packet in which the mobile node device uses the first IP address as the source IP address and the third IP address as the destination IP address, it includes:
所述第一路由器接收所述移动节点装置发送的路由器请求消息, 所述 路由器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所述第 一数值用于表示所述移动节点装置将以所述第一 IP地址为源 IP地址进行 所述第一会话数据包的发送; The first router receives the router request message sent by the mobile node device, the router request message carries a first flag bit, the first flag bit is a first value, and the first value is used to represent the The mobile node device will use the first IP address as the source IP address to send the first session data packet;
所述第一路由器通过代理绑定更新消息与所述通信节点建立绑定关 系, 所述代理绑定更新消息中带有所述第一标志位、 第一 I P 地址及第二 IP地址; The first router establishes a binding relationship with the communication node through a proxy binding update message, and the proxy binding update message carries the first flag, the first IP address and the second IP address;
所述第一路由器接收所述通信节点发送的相对于所述代理绑定更新消 息的代理绑定应答消息, 所述代理绑定应答消息用于表示所述通信节点同 意所述移动节点装置以所述第一 IP地址为源 IP地址进行所述第一会话数 据包的发送。 The first router receives a proxy binding response message sent by the communication node relative to the proxy binding update message, and the proxy binding response message is used to indicate that the communication node agrees with the mobile node device in the The first IP address is the source IP address for sending the first session data packet.
6、 根据权利要求 1 -5任一项所述的方法, 其特征在于, 所述第一路由 器获取第二 IP地址以及通信节点的第三 IP地址, 包括: 6. The method according to any one of claims 1 to 5, characterized in that the first router obtains the second IP address and the third IP address of the communication node, including:
所述第一路由器通过一集中式装置获取所述移动节点装置的会话信 息, 所述集中式装置用于记录所述移动节点装置的会话信息, 所述会话信 息包括所述移动节点装置的身份标志、所述第二 IP地址以及第三 IP地址。 The first router obtains the session information of the mobile node device through a centralized device. The centralized device is used to record the session information of the mobile node device. The session information includes the identity mark of the mobile node device. , the second IP address and the third IP address.
7、 根据权利要求 1 -5任一项所述的方法, 其特征在于, 所述第一路由 器获取第二 IP地址以及通信节点的第三 IP地址, 包括: 7. The method according to any one of claims 1 to 5, characterized in that, the first route The server obtains the second IP address and the third IP address of the communication node, including:
所述第一路由器向所述第二路由器获取所述移动节点装置的会话信 息, 所述会话信息包括所述移动节点装置的身份标志、 所述第二 IP地址以 及第三 IP地址。 The first router obtains the session information of the mobile node device from the second router, and the session information includes the identity flag of the mobile node device, the second IP address, and the third IP address.
8、 根据权利要求 1 -5任一项所述的方法, 其特征在于, 所述第一路由 器获取第二 IP地址以及通信节点的第三 IP地址, 包括: 8. The method according to any one of claims 1 to 5, characterized in that the first router obtains the second IP address and the third IP address of the communication node, including:
所述第一路由器从所述移动节点装置处获取会话信息, 所述会话信息 包括所述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 The first router obtains session information from the mobile node device, and the session information includes the identity flag of the mobile node device, the second IP address, and the third IP address.
9、 一种分布式移动性管理的会话方法, 其特征在于, 包括: 9. A session method for distributed mobility management, characterized by including:
移动节点装置在附着在第一路由器上后, 接收所述第一路由器分配的 第一 IP地址; After the mobile node device is attached to the first router, it receives the first IP address assigned by the first router;
所述移动节点装置向所述第一路由器发送第一会话数据包, 以使得所 述第一路由器以所述第一 IP地址为源 IP地址向通信节点发送所述第一会 话数据包,并将所述移动节点装置之前所在的第二路由器的第二 I P地址发 送给所述通信节点, 进而使得所述通信节点在接收到所述第一会话数据包 后, 以所述第二 IP地址为最终的源 I P地址, 并将所述第一会话数据包和 所述第二 IP地址递交到通信节点的 IP层的上层; The mobile node device sends a first session data packet to the first router, so that the first router uses the first IP address as the source IP address to send the first session data packet to the communication node, and The second IP address of the second router where the mobile node device was previously located is sent to the communication node, so that after receiving the first session data packet, the communication node uses the second IP address as the final the source IP address, and submit the first session data packet and the second IP address to the upper layer of the IP layer of the communication node;
所述移动节点装置接收所述第一路由器发送的以所述第二 IP地址为目 的 IP地址的第二会话数据包; 或者 所述移动节点装置接收所述第一路由器发送的第二会话数据包以及所 述第二 IP地址; The mobile node device receives a second session data packet sent by the first router with the second IP address as the destination IP address; or The mobile node device receives the second session data packet and the second IP address sent by the first router;
所述移动节点装置在接收到所述第二会话数据包后, 以所述第二 IP地 址为最终的目的 IP地址, 并将所述第二会话数据包和所述第二 IP地址递 交到移动节点装置的 IP层的上层。 After receiving the second session data packet, the mobile node device uses the second IP address as the final destination IP address, and submits the second session data packet and the second IP address to the mobile node device. The upper layer of the IP layer of the node device.
10、 根据权利要求 9 所述的方法, 其特征在于, 所述移动节点装置向 所述第一路由器发送第一会话数据包, 包括: 10. The method according to claim 9, wherein the mobile node device sends a first session data packet to the first router, including:
所述移动节点装置以所述第二 IP地址为源 IP地址, 以所述第三 I P地 址为目的 IP地址向所述第一路由器发送所述第一会话数据包。 The mobile node device uses the second IP address as the source IP address and the third IP address as the destination IP address to send the first session data packet to the first router.
11、 根据权利要求 9 所述的方法, 其特征在于, 所述移动节点装置向 所述第一路由器发送第一会话数据包, 包括: 11. The method according to claim 9, wherein the mobile node device sends a first session data packet to the first router, including:
所述移动节点装置以所述第一 IP地址为源 IP地址, 以所述第三 I P地 址为目的 IP地址向所述第一路由器发送所述第一会话数据包。 The mobile node device uses the first IP address as the source IP address and uses the third IP address as the destination IP address to send the first session data packet to the first router.
12、 根据权利要求 11所述的方法, 其特征在于, 在所述移动节点装置 以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址向所 述第一路由器发送所述第一会话数据包之前, 包括: 12. The method according to claim 11, characterized in that, in the mobile node device, the first IP address is used as the source IP address, and the third IP address is used as the destination IP address to send data to the first router. Before sending the first session data packet, include:
所述移动节点装置向所述第一路由器发送路由器请求消息, 所述路由 器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所述第一数 值用于表示所述移动节点装置将以所述第一 IP地址为源 IP地址进行所述 第一会话数据包的发送。 The mobile node device sends a router request message to the first router, the router request message carries a first flag bit, the first flag bit is a first value, and the first value is used to represent the The mobile node device will use the first IP address as the source IP address to perform the Sending of the first session packet.
1 3、 一种第一路由器, 其特征在于, 包括: 1 3. A first router, characterized in that it includes:
第一分配单元, 用于为移动节点装置分配第一 I P地址; A first allocation unit, configured to allocate a first IP address to the mobile node device;
第一获取单元, 用于获取第二 IP地址以及通信节点的第三 IP地址, 其中所述第二 I P 地址为所述移动节点装置之前所在的第二路由器为所述 移动节点装置分配的; The first obtaining unit is used to obtain the second IP address and the third IP address of the communication node, wherein the second IP address is assigned to the mobile node device by the second router where the mobile node device was previously located;
第一接收单元, 用于接收所述移动节点装置发送的第一会话数据包; 第一发送单元, 用于以所述第一分配单元分配的第一 IP地址为源 IP 地址向所述通信节点发送所述第一接收单元接收到的第一会话数据包, 并 将所述第一获取单元获取的第二 I P地址发送给所述通信节点,以使得所述 通信节点在接收到所述第一会话数据包后,以所述第二 I P地址为最终的源 IP地址, 并将所述第一会话数据包和所述第二 IP地址递交到通信节点的 IP层的上层; The first receiving unit is configured to receive the first session data packet sent by the mobile node device; the first sending unit is configured to use the first IP address allocated by the first allocating unit as the source IP address to the communication node. Send the first session data packet received by the first receiving unit, and send the second IP address obtained by the first obtaining unit to the communication node, so that the communication node receives the first After receiving the session data packet, use the second IP address as the final source IP address, and submit the first session data packet and the second IP address to the upper layer of the IP layer of the communication node;
第二接收单元, 用于接收所述通信节点以第三 I P地址为源 IP地址, 以第一 IP地址为目的 IP地址的第二会话数据包; The second receiving unit is configured to receive the second session data packet of the communication node with the third IP address as the source IP address and the first IP address as the destination IP address;
所述第一发送单元, 还用于直接以所述第一获取单元获取的第二 I P地 址为目的 IP 地址将所述第二接收单元接收到的第二会话数据包发送给所 述移动节点装置, 以使得所述移动节点装置在接收到所述第二会话数据包 后, 以所述第二 IP地址为最终的目的 IP地址, 并将所述第二会话数据包 和所述第二 IP地址递交到移动节点装置的 IP层的上层; 或者 所述第一发送单元, 还用于所述向所述移动节点装置发送所述第二接 收单元接收到的第二会话数据包,并将所述第一获取单元获取的第二 IP地 址发送给所述移动节点装置, 以使得所述移动节点装置在接收到所述第二 会话数据包后, 以所述第二 I P地址为最终的目的 IP地址, 并将所述第二 会话数据包和所述第二 IP地址递交到移动节点装置的 I P层的上层。 The first sending unit is also configured to directly send the second session data packet received by the second receiving unit to the mobile node device using the second IP address obtained by the first obtaining unit as the destination IP address. , so that after receiving the second session data packet, the mobile node device uses the second IP address as the final destination IP address, and sends the second session data packet and submit the second IP address to the upper layer of the IP layer of the mobile node device; or the first sending unit is further configured to send the second session received by the second receiving unit to the mobile node device. data packet, and sends the second IP address obtained by the first obtaining unit to the mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address The address is the final destination IP address, and the second session data packet and the second IP address are delivered to the upper layer of the IP layer of the mobile node device.
14、 根据权利要求 1 3所述的第一路由器, 其特征在于, 所述第一接收 单元, 具体用于: 14. The first router according to claim 13, characterized in that the first receiving unit is specifically used for:
接收所述移动节点装置以所述第二 IP地址为源 I P地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。 Receive a first session data packet in which the mobile node device uses the second IP address as the source IP address and the third IP address as the destination IP address.
15、 根据权利要求 14所述的第一路由器, 其特征在于, 还包括: 第一替换单元, 用于以所述第一分配单元分配的第一 IP地址替换所述 第一接收单元接收到的第一会话数据包中的源 I P地址字段处的第二 IP地 址。 15. The first router according to claim 14, further comprising: a first replacement unit, configured to replace the IP address received by the first receiving unit with the first IP address allocated by the first allocating unit. The second IP address at the source IP address field in the first session packet.
16、 根据权利要求 1 3所述的第一路由器, 其特征在于, 所述第一接收 单元, 具体用于: 16. The first router according to claim 13, characterized in that the first receiving unit is specifically used for:
接收所述移动节点装置以所述第一 IP地址为源 I P地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。 Receive a first session data packet in which the mobile node device uses the first IP address as the source IP address and the third IP address as the destination IP address.
17、 根据权利要求 16所述的第一路由器, 其特征在于, 还包括: 第三接收单元, 用于接收所述移动节点装置发送的路由器请求消息, 所述路由器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所 述第一数值用于表示所述移动节点装置将以所述第一 IP地址为源 I P地址 进行所述第一会话数据包的发送; 17. The first router according to claim 16, further comprising: The third receiving unit is configured to receive the router request message sent by the mobile node device, the router request message carries a first flag bit, the first flag bit is a first value, and the first value is used for Indicates that the mobile node device will use the first IP address as the source IP address to send the first session data packet;
第一绑定单元, 用于在所述第三接收单元接收到路由器请求消息后, 通过代理绑定更新消息与所述通信节点建立绑定关系, 所述代理绑定更新 消息中带有所述第一标志位、 第一 IP地址及第二 IP地址; The first binding unit is configured to establish a binding relationship with the communication node through a proxy binding update message after the third receiving unit receives the router request message, and the proxy binding update message carries the The first flag, the first IP address and the second IP address;
第四接收单元, 用于接收所述通信节点发送的相对于所述第一绑定单 元发送的代理绑定更新消息的代理绑定应答消息, 所述代理绑定应答消息 用于表示所述通信节点同意所述移动节点装置以所述第一 IP地址为源 IP 地址进行所述第一会话数据包的发送。 The fourth receiving unit is configured to receive a proxy binding response message sent by the communication node relative to the proxy binding update message sent by the first binding unit, where the proxy binding response message is used to indicate the communication The node agrees that the mobile node device uses the first IP address as the source IP address to send the first session data packet.
18、 根据权利要求 1 3-17任一项所述的第一路由器, 其特征在于, 所 述第一获取单元: 18. The first router according to any one of claims 13-17, characterized in that the first acquisition unit:
具体用于通过一集中式装置获取所述移动节点装置的会话信息, 所述 集中式装置用于记录所述移动节点装置的会话信息, 所述会话信息包括所 述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 Specifically used to obtain the session information of the mobile node device through a centralized device. The centralized device is used to record the session information of the mobile node device. The session information includes the identity mark of the mobile node device, the The second IP address and the third IP address are mentioned above.
19、 根据权利要求 1 3-17任一项所述的第一路由器, 其特征在于, 所 述第一获取单元: 19. The first router according to any one of claims 13-17, characterized in that the first acquisition unit:
具体用于向所述第二路由器获取所述移动节点装置的会话信息, 所述 会话信息包括所述移动节点装置的身份标志、 所述第二 IP 地址以及第三 IP地址。 Specifically used to obtain session information of the mobile node device from the second router, The session information includes the identity mark of the mobile node device, the second IP address and the third IP address.
20、 跟据权利要求 1 3-17任一项所述的第一路由器, 其特征在于, 所 述第一获取单元: 20. The first router according to any one of claims 1 to 17, characterized in that, the first acquisition unit:
具体用于从所述移动节点装置处获取会话信息, 所述会话信息包括所 述移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 Specifically used to obtain session information from the mobile node device, where the session information includes the identity mark of the mobile node device, the second IP address and the third IP address.
21、 一种移动节点装置, 其特征在于, 包括: 21. A mobile node device, characterized in that it includes:
第一接收单元, 用于在附着在第一路由器上后, 接收所述第一路由器 分配的第一 IP地址; The first receiving unit is configured to receive the first IP address assigned by the first router after being attached to the first router;
第一发送单元, 用于向所述第一路由器发送第一会话数据包, 以使得 所述第一路由器以所述第一 IP地址为源 IP地址向通信节点发送所述第一 会话数据包,并将所述移动节点装置之前所在的第二路由器的第二 IP地址 发送给所述通信节点, 进而使得所述通信节点在接收到所述第一会话数据 包后, 以所述第二 IP地址为最终的源 IP地址, 并将所述第一会话数据包 和所述第二 IP地址递交到通信节点的 IP层的上层; The first sending unit is configured to send the first session data packet to the first router, so that the first router sends the first session data packet to the communication node using the first IP address as the source IP address, and send the second IP address of the second router where the mobile node device was previously located to the communication node, thereby causing the communication node to use the second IP address after receiving the first session data packet. is the final source IP address, and submits the first session data packet and the second IP address to the upper layer of the IP layer of the communication node;
第二接收单元, 用于接收所述第一路由器发送的以所述第二 IP地址为 目的 IP地址的第二会话数据包; 或者 A second receiving unit configured to receive a second session data packet sent by the first router with the second IP address as the destination IP address; or
用于接收所述第一路由器发送的第二会话数据包以及所述第二 IP 地 址; 递交单元, 用于以所述第二 IP地址为最终的目的 IP地址, 并将所述 第二接收单元接收的所述第二会话数据包和所述第二 IP 地址递交到移动 节点装置的 IP层的上层。 For receiving the second session data packet sent by the first router and the second IP address; A delivery unit, configured to use the second IP address as the final destination IP address, and deliver the second session data packet and the second IP address received by the second receiving unit to the IP address of the mobile node device. The upper layer of the layer.
22、 根据权利要求 21所述的移动节点装置, 其特征在于, 所述第一发 送单元, 具体用于: 22. The mobile node device according to claim 21, characterized in that the first sending unit is specifically used for:
以所述第二 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 Using the second IP address as the source IP address and the third IP address as the destination IP address, send the first session data packet to the first router.
23、 根据权利要求 21所述的移动节点装置, 其特征在于, 所述第一发 送单元, 具体用于: 23. The mobile node device according to claim 21, characterized in that the first sending unit is specifically used for:
以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 Using the first IP address as the source IP address and the third IP address as the destination IP address, send the first session data packet to the first router.
24、 根据权利要求 23所述的移动节点装置, 其特征在于, 还包括: 第二发送单元, 用于向所述第一路由器发送路由器请求消息, 所述路 由器请求消息中带有第一标志位, 所述第一标志位为第一数值, 所述第一 数值用于表示所述移动节点装置将以所述第一 IP地址为源 IP地址进行所 述第一会话数据包的发送。 24. The mobile node device according to claim 23, further comprising: a second sending unit, configured to send a router request message to the first router, the router request message carrying a first flag bit , the first flag bit is a first value, and the first value is used to indicate that the mobile node device will use the first IP address as the source IP address to send the first session data packet.
25、 一种第一路由器, 其特征在于, 包括: 25. A first router, characterized by including:
第一处理器, 用于为移动节点装置分配第一 IP地址; A first processor configured to allocate a first IP address to the mobile node device;
第一接收器, 用于获取第二 IP地址以及通信节点的第三 IP地址, 其 中所述第二 I P 地址为所述移动节点装置之前所在的第二路由器为所述移 动节点装置分配的; The first receiver is used to obtain the second IP address and the third IP address of the communication node, which The second IP address is assigned to the mobile node device by the second router where the mobile node device was previously located;
所述第一接收器, 还用于接收所述移动节点装置发送的第一会话数据 包; The first receiver is also used to receive the first session data packet sent by the mobile node device;
第一发送器, 用于以所述第一处理器分配的第一 IP地址为源 IP地址 向所述通信节点发送所述第一接收器接收的第一会话数据包, 并将所述第 一接收器获取的第二 I P地址发送给所述通信节点,以使得所述通信节点在 接收到所述第一会话数据包后, 以所述第二 IP地址为最终的源 IP地址, 并将所述第一会话数据包和所述第二 IP地址递交到通信节点的 IP层的上 层; The first sender is configured to send the first session data packet received by the first receiver to the communication node using the first IP address allocated by the first processor as the source IP address, and send the first session data packet to the communication node. The second IP address obtained by the receiver is sent to the communication node, so that after receiving the first session data packet, the communication node uses the second IP address as the final source IP address, and The first session data packet and the second IP address are submitted to an upper layer of the IP layer of the communication node;
所述第一接收器, 还用于接收所述通信节点以第三 IP地址为源 IP地 址, 以第一 IP地址为目的 I P地址的第二会话数据包; The first receiver is also used to receive the second session data packet of the communication node with the third IP address as the source IP address and the first IP address as the destination IP address;
所述第一发送器, 还用于直接以所述第一接收器获取的第二 IP地址为 目的 I P 地址将所述第一接收器接收到的第二会话数据包发送给所述移动 节点装置, 以使得所述移动节点装置在接收到所述第二会话数据包后, 以 所述第二 IP地址为最终的目的 IP地址, 并将所述第二会话数据包和所述 第二 IP地址递交到移动节点装置的 IP层的上层; 或者 The first sender is also configured to directly send the second session data packet received by the first receiver to the mobile node device using the second IP address obtained by the first receiver as the destination IP address. , so that after receiving the second session data packet, the mobile node device uses the second IP address as the final destination IP address, and combines the second session data packet with the second IP address Delivered to a layer above the IP layer of the mobile node device; or
所述第一发送器, 还用于所述向所述移动节点装置发送所述第一接收 器接收到的第二会话数据包,并将所述第一接收器获取的第二 IP地址发送 给所述移动节点装置, 以使得所述移动节点装置在接收到所述第二会话数 据包后, 以所述第二 IP地址为最终的目的 IP地址, 并将所述第二会话数 据包和所述第二 IP地址递交到移动节点装置的 IP层的上层。 The first sender is further configured to send the second session data packet received by the first receiver to the mobile node device, and send the second IP address obtained by the first receiver. to the mobile node device, so that after receiving the second session data packet, the mobile node device uses the second IP address as the final destination IP address, and combines the second session data packet with The second IP address is submitted to an upper layer of the IP layer of the mobile node device.
26、 根据权利要求 25所述的第一路由器, 其特征在于, 所述第一接收 器, 具体用于: 26. The first router according to claim 25, characterized in that the first receiver is specifically used for:
接收所述移动节点装置以所述第二 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。 Receive a first session data packet in which the mobile node device uses the second IP address as the source IP address and the third IP address as the destination IP address.
27、 根据权利要求 26所述的第一路由器, 其特征在于, 所述第一处理 器, 还用于: 27. The first router according to claim 26, characterized in that the first processor is also used to:
以所述第一处理器分配的第一 IP地址替换所述第一接收器接收到的第 一会话数据包中的源 IP地址字段处的第二 IP地址。 Replace the second IP address at the source IP address field in the first session data packet received by the first receiver with the first IP address assigned by the first processor.
28、 根据权利要求 25所述的第一路由器, 其特征在于, 所述第一接收 器, 具体用于: 28. The first router according to claim 25, characterized in that the first receiver is specifically used for:
接收所述移动节点装置以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址的第一会话数据包。 Receive a first session data packet in which the mobile node device uses the first IP address as the source IP address and the third IP address as the destination IP address.
29、 根据权利要求 28所述的第一路由器, 其特征在于, 所述第一接收 器, 还用于: 29. The first router according to claim 28, characterized in that the first receiver is also used for:
接收所述移动节点装置发送的路由器请求消息, 所述路由器请求消 , ¾ 中带有第一标志位, 所述第一标志位为第一数值, 所述第一数值用于表示 所述移动节点装置将以所述第一 I P地址为源 I P地址进行所述第一会话数 据包的发送; Receive a router request message sent by the mobile node device, the router request message contains a first flag bit, the first flag bit is a first value, and the first value is used to represent The mobile node device will use the first IP address as the source IP address to send the first session data packet;
所述第一发送器, 还用于在所述第一接收器接收到路由器请求消息后, 通过代理绑定更新消息与所述通信节点建立绑定关系, 所述代理绑定更新 消息中带有所述第一标志位、 第一 I P地址及第二 I P地址; The first sender is also configured to establish a binding relationship with the communication node through a proxy binding update message after the first receiver receives the router request message, and the proxy binding update message contains The first flag, the first IP address and the second IP address;
所述第一接收器, 还用于接收所述通信节点发送的相对于所述第一发 送器发送的代理绑定更新消息的代理绑定应答消息, 所述代理绑定应答消 息用于表示所述通信节点同意所述移动节点装置以所述第一 I P 地址为源 I P地址进行会话数据包的发送。 The first receiver is also configured to receive a proxy binding response message sent by the communication node relative to the proxy binding update message sent by the first sender, where the proxy binding response message is used to represent the The communication node agrees that the mobile node device uses the first IP address as the source IP address to send session data packets.
30、 根据权利要求 25-29任一项所述的第一路由器, 其特征在于, 所 述第一接收器, 30. The first router according to any one of claims 25-29, characterized in that, the first receiver,
还用于通过一集中式装置获取所述移动节点装置的会话信息, 所述集 中式装置用于记录所述移动节点装置的会话信息, 所述会话信息包括所述 移动节点装置的身份标志、 所述第二 I P地址以及第三 I P地址。 It is also used to obtain the session information of the mobile node device through a centralized device. The centralized device is used to record the session information of the mobile node device. The session information includes the identity mark of the mobile node device, the The second IP address and the third IP address.
31、 根据权利要求 25-29任一项所述的第一路由器, 其特征在于, 所 述第一接收器, 31. The first router according to any one of claims 25-29, characterized in that, the first receiver,
还用于向所述第二路由器获取所述移动节点装置的会话信息, 所述会 话信息包括所述移动节点装置的身份标志、 所述第二 I P 地址以及第三 I P 地址。 It is also used to obtain session information of the mobile node device from the second router, where the session information includes the identity flag of the mobile node device, the second IP address and the third IP address.
32、 根据权利要求 25-29所述的第一路由器, 其特征在于, 所述第一 接收器, 32. The first router according to claims 25-29, characterized in that, the first receiver,
还用于从所述移动节点装置处获取会话信息, 所述会话信息包括所述 移动节点装置的身份标志、 所述第二 IP地址以及第三 IP地址。 It is also used to obtain session information from the mobile node device, where the session information includes the identity mark of the mobile node device, the second IP address and the third IP address.
33、 一种移动节点装置, 其特征在于, 包括: 33. A mobile node device, characterized in that it includes:
第一接收器, 用于在附着在第一路由器上后, 接收所述第一路由器分 配的第一 IP地址; The first receiver is configured to receive the first IP address assigned by the first router after being attached to the first router;
第一发送器, 用于向所述第一路由器发送第一会话数据包, 以使得所 述第一路由器以所述第一 IP地址为源 IP地址向通信节点发送所述第一会 话数据包,并将所述移动节点装置之前所在的第二路由器的第二 I P地址发 送给所述通信节点, 进而使得所述通信节点在接收到所述第一会话数据包 后, 以所述第二 IP地址为最终的源 I P地址, 并将所述第一会话数据包和 所述第二 IP地址递交到通信节点的 IP层的上层; The first sender is configured to send a first session data packet to the first router, so that the first router sends the first session data packet to the communication node using the first IP address as the source IP address, And send the second IP address of the second router where the mobile node device was previously located to the communication node, so that after receiving the first session data packet, the communication node uses the second IP address is the final source IP address, and submits the first session data packet and the second IP address to the upper layer of the IP layer of the communication node;
第一接收器, 还用于接收所述第一路由器发送的以所述第二 IP地址为 目的 IP地址的所述第二会话数据包; 或者 The first receiver is also configured to receive the second session data packet sent by the first router with the second IP address as the destination IP address; or
还用于接收所述第一路由器发送的所述第二会话数据包以及所述第二 Also configured to receive the second session data packet sent by the first router and the second
IP地址; IP address;
第一处理器, 用于以所述第二 IP地址为最终的目的 IP地址, 并将所 述第一接收器接收的所述第二会话数据包和所述第二 IP 地址递交到移动 节点装置的 IP层的上层。 The first processor is configured to use the second IP address as the final destination IP address, and submit the second session data packet and the second IP address received by the first receiver to the mobile phone The upper layer of the IP layer of the node device.
34、 根据权利要求 33所述的移动节点装置, 其特征在于, 所述第一发 送器, 具体用于: 34. The mobile node device according to claim 33, characterized in that the first transmitter is specifically used for:
以所述第二 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 Using the second IP address as the source IP address and the third IP address as the destination IP address, send the first session data packet to the first router.
35、 根据权利要求 33所述的移动节点装置, 其特征在于, 所述第一发 送器, 具体用于: 35. The mobile node device according to claim 33, characterized in that the first transmitter is specifically used for:
以所述第一 IP地址为源 IP地址, 以所述第三 IP地址为目的 IP地址 向所述第一路由器发送所述第一会话数据包。 Using the first IP address as the source IP address and the third IP address as the destination IP address, send the first session data packet to the first router.
36、 根据权利要求 35所述的移动节点装置, 其特征在于, 所述第一发 送器, 还用于: 36. The mobile node device according to claim 35, characterized in that the first transmitter is also used for:
向所述第一路由器发送路由器请求消息, 所述路由器请求消息中带有 第一标志位, 所述第一标志位为第一数值, 所述第一数值用于表示所述移 动节点装置将以所述第一 IP地址为源 IP地址进行所述第一会话数据包的 发送。 Send a router request message to the first router, the router request message carries a first flag bit, the first flag bit is a first value, and the first value is used to indicate that the mobile node device will The first IP address is a source IP address for sending the first session data packet.
37、 一种分布式移动性管理的会话系统, 其特征在于, 包括第一路由 器、 第二路由器、 移动节点装置以及通信节点, 其中, 37. A session system for distributed mobility management, characterized by including a first router, a second router, a mobile node device and a communication node, wherein,
所述第一路由器, 用于为移动节点装置分配第一 IP 地址, 获取第二 IP地址以及通信节点的第三 IP地址, 所述第二 IP地址为所述移动节点装 置之前所在的第二路由器为所述移动节点装置分配的, 接收所述移动节点 装置发送的第一会话数据包, 以所述第一 IP地址为源 IP地址向所述通信 节点发送所述第一会话数据包, 并将所述第二 IP 地址发送给所述通信节 点, 接收所述通信节点以第三 IP地址为源 IP地址, 以第一 IP地址为目的 IP地址的第二会话数据包, 直接以第二 IP地址为目的 I P地址将所述第二 会话数据包发送给所述移动节点装置, 或者向所述移动节点装置发送所述 第二会话数据包, 并将所述第二 I P地址发送给所述移动节点装置; The first router is used to allocate a first IP address to the mobile node device, and obtain a second IP address and a third IP address of the communication node. The second IP address is the mobile node device. assigned to the mobile node device by the second router where it was previously located, receiving the first session data packet sent by the mobile node device, and sending the first session data packet to the communication node using the first IP address as the source IP address. A session data packet, and sends the second IP address to the communication node, and receives the second session data packet from the communication node with the third IP address as the source IP address and the first IP address as the destination IP address. , directly send the second session data packet to the mobile node device with the second IP address as the destination IP address, or send the second session data packet to the mobile node device, and send the second IP address to the mobile node device. The address is sent to the mobile node device;
所述移动节点装置, 用于接收所述第一路由器分配的第一 IP地址, 向 所述第一路由器发送第一会话数据包, 接收所述第一路由器发送的以所述 第二 IP地址为目的 IP地址的第二会话数据包, 或者接收所述第一路由器 发送的第二会话数据包以及所述第二 IP地址, 以所述第二 IP地址为最终 的目的 IP地址, 并将所述第二会话数据包和所述第二 IP地址递交到移动 节点装置的 IP层的上层; The mobile node device is configured to receive the first IP address assigned by the first router, send a first session data packet to the first router, and receive the second IP address sent by the first router. The second session data packet of the destination IP address, or receive the second session data packet sent by the first router and the second IP address, use the second IP address as the final destination IP address, and send the second session data packet to the destination IP address. The second session data packet and the second IP address are submitted to an upper layer of the IP layer of the mobile node device;
所述通信节点, 用于在接收到第一路由器发送的所述第一会话数据包 后, 以所述第二 IP地址为最终的源 IP地址, 并将所述第一会话数据包和 所述第二 IP地址递交到通信节点的 IP层的上层, 以第三 IP地址为源 I P 地址, 以第一 I P地址为目的 I P地址向所述第一路由器发送第二会话数据 包。 The communication node is configured to, after receiving the first session data packet sent by the first router, use the second IP address as the final source IP address, and combine the first session data packet with the The second IP address is submitted to the upper layer of the IP layer of the communication node, the third IP address is used as the source IP address, and the first IP address is used as the destination IP address to send the second session data packet to the first router.
PCT/CN2012/081779 2012-09-21 2012-09-21 Session method, apparatus, and system for distributed mobility management WO2014043901A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/081779 WO2014043901A1 (en) 2012-09-21 2012-09-21 Session method, apparatus, and system for distributed mobility management
CN201280004180.XA CN103891316B (en) 2012-09-21 2012-09-21 Session method, the apparatus and system of distributed mobile management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/081779 WO2014043901A1 (en) 2012-09-21 2012-09-21 Session method, apparatus, and system for distributed mobility management

Publications (1)

Publication Number Publication Date
WO2014043901A1 true WO2014043901A1 (en) 2014-03-27

Family

ID=50340556

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/081779 WO2014043901A1 (en) 2012-09-21 2012-09-21 Session method, apparatus, and system for distributed mobility management

Country Status (2)

Country Link
CN (1) CN103891316B (en)
WO (1) WO2014043901A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416598B (en) * 2020-12-01 2023-07-25 网易(杭州)网络有限公司 Message processing method, device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929680A (en) * 2005-09-05 2007-03-14 华为技术有限公司 Method for improving reliability of fast switch over business
CN101051986A (en) * 2006-05-15 2007-10-10 华为技术有限公司 Method and device for realizing quick switch
CN101127727A (en) * 2007-09-28 2008-02-20 电信科学技术研究院 IP address configuration and mobile detection method for mobile IP
US7606201B2 (en) * 2005-04-25 2009-10-20 Telefonaktiebolaget Lm Ericsson (Publ) Handover enabler

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI108834B (en) * 1999-03-29 2002-03-28 Nokia Corp IP mobility management in a mobile communication system
JP4289030B2 (en) * 2002-07-30 2009-07-01 パナソニック株式会社 Mobility management method and mobile terminal
JP3694000B2 (en) * 2003-02-24 2005-09-14 日本電気株式会社 COMMUNICATION SYSTEM AND COMMUNICATION METHOD, AND MOBILE NODE AND GATEWAY USED FOR THE SYSTEM
US20100040016A1 (en) * 2008-08-15 2010-02-18 Kar-Wing Edward Lor Wireless Network Handoff Method and Mobile Device Using Same
CN102075420B (en) * 2010-12-27 2013-05-01 北京邮电大学 Location identifier and host identifier separation-based system and mobility management method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7606201B2 (en) * 2005-04-25 2009-10-20 Telefonaktiebolaget Lm Ericsson (Publ) Handover enabler
CN1929680A (en) * 2005-09-05 2007-03-14 华为技术有限公司 Method for improving reliability of fast switch over business
CN101051986A (en) * 2006-05-15 2007-10-10 华为技术有限公司 Method and device for realizing quick switch
CN101127727A (en) * 2007-09-28 2008-02-20 电信科学技术研究院 IP address configuration and mobile detection method for mobile IP

Also Published As

Publication number Publication date
CN103891316A (en) 2014-06-25
CN103891316B (en) 2017-11-28

Similar Documents

Publication Publication Date Title
KR101400415B1 (en) Network-based Flow Binding Method Through Terminal's Notification
WO2014048294A1 (en) Data flow control method and corresponding apparatus and communications system
JP2016507930A5 (en)
WO2008006314A1 (en) A gateway system and the method for implementing various media accesses
WO2009089780A1 (en) Method for establishing data connection in mobile network, mobile network and policy control entity
JP2016220195A (en) Radio communication method, radio communication system, terminal management device and virtual terminal
US10326520B2 (en) Method and apparatus for providing relay service using a relay user equipment
WO2008151557A1 (en) Method, equipment and proxy mobile ip system for triggering route optimization
WO2010108430A1 (en) Method of allocating prefixes, network system and local mobile anchor points
WO2010000180A1 (en) A message transfer method, interworking proxy node, data gateway and network system
US20130110994A1 (en) Apparatus and method for relaying communication
WO2011032417A1 (en) Method and system for initiating forwarding of communicaiton, information and data message and for routing configuration
WO2010072135A1 (en) Method, device and system for network handoff
WO2009003397A1 (en) Method, apparatus and device for managing binding information on the network side
WO2017124231A1 (en) Internet protocol (ip) address allocation method, control plane gateway and user plane gateway
JP4726860B2 (en) Gateway device, access gateway device, core network system, program, and packet transfer method
WO2014043901A1 (en) Session method, apparatus, and system for distributed mobility management
CN101790146A (en) Method for allocating address information, network equipment and network system
WO2014000489A1 (en) Method for establishing communication link between multi-mode rru and bbu, multi-mode rru and bbu
WO2014169590A1 (en) Data service communication method, device, and system
WO2013097614A1 (en) Method and system for allocating ip address to ue, and tnan and ue
CN102480468B (en) A kind of data flow transmission method, Apparatus and system
EP3637817B1 (en) Communication method
WO2015013883A1 (en) Data transmission method and device
WO2012163271A1 (en) Method and device for managing mobile ip key

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: 12884969

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: 12884969

Country of ref document: EP

Kind code of ref document: A1