WO2010015173A1 - Mobile ip packet transmission method and device - Google Patents

Mobile ip packet transmission method and device Download PDF

Info

Publication number
WO2010015173A1
WO2010015173A1 PCT/CN2009/072889 CN2009072889W WO2010015173A1 WO 2010015173 A1 WO2010015173 A1 WO 2010015173A1 CN 2009072889 W CN2009072889 W CN 2009072889W WO 2010015173 A1 WO2010015173 A1 WO 2010015173A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
packet
identifier
association relationship
sent
Prior art date
Application number
PCT/CN2009/072889
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 华为技术有限公司
Publication of WO2010015173A1 publication Critical patent/WO2010015173A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/04Network layer protocols, e.g. mobile IP [Internet Protocol]

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method and an apparatus for transmitting a mobile IP packet.
  • Mobile IPV6 is a solution for mobility at the network layer.
  • MN mobile node
  • CN communication peer
  • Correspondent mobile node
  • the MN does not interrupt its ongoing home address (HoA, Home) while the MN is moving from one link to another.
  • HoA ongoing home address
  • the mobility of the MN is transparent to the transport layer and other higher layer protocols, and the HoA of a MN can uniquely identify the MN.
  • the HA intercepts the packet sent by the CN to the MN's home network and the MN.
  • the format of the packet is as shown in Figure 1.
  • the HA then tunnels the packet to the MN through the tunnel mode.
  • the HA performs the HA.
  • the format of the packet encapsulated by the tunnel is shown in Figure 2.
  • the MN sends a packet to the CN
  • the packet is encapsulated in the tunnel mode and then sent to the HA.
  • the format of the packet encapsulated by the MN is as shown in Figure 3.
  • the HA performs the MN on the MN.
  • the packet encapsulated by the tunnel is encapsulated and then forwarded to the CN.
  • the format of the packet after the tunnel is encapsulated by the HA is shown in Figure 4.
  • oNAF is the non-address field in the outer header
  • iSRC is the inner header source address
  • iD EST is the inner header address
  • iNAF is the non-address field in the inner header.
  • the 40-byte header in the above IPv6 tunnel encapsulation is a non-negligible overhead for the MN communicating over the wireless link. How to reduce the encapsulation overhead and increase the effective utilization of bandwidth is of great significance to wireless links.
  • a method for transmitting an IP packet that reduces the overhead of a mobile IP tunnel encapsulation in the prior art is: a tunnel optimization method.
  • a tunnel optimization method when the MN needs to communicate with the CN, in the process of registering in the hometown, according to the address of the CoA of the MN, the address of the CN, and the address of the home agent (HAA, Home Agent
  • the MN sends a BU message carrying the address translator to the HA, and after receiving the BU message, the HA saves the address translation in the BU message. After that, the data message that the MN communicates with the CN does not need to be tunnel encapsulated.
  • the MN When the MN sends an IP packet to the CN, the MN fills in the source address of the IP packet as CoA, and the destination address is filled in as HA A.
  • the HA queries the saved address translation function according to the CoA and HAA in the IP packet to obtain the corresponding CN address.
  • HA also obtains the corresponding HoA based on the CoA.
  • the HA translates the source address of the IP packet into ⁇ , and the destination address is translated into the address of the CN, and the translated message can be normally received and processed by the CN.
  • the CN When the CN sends an IP packet to the MN, the CN fills the source address of the IP packet with the address of the CN, and the destination address is filled with the HoA. After receiving the IP packet, the HA queries the saved address translator according to the address of the CN in the IP packet to obtain the corresponding CoA.
  • the HA translates the source address of the IP packet into a HAA, and the destination address is translated into CoA, and the translated message is sent to the MN.
  • the MN queries the saved address translation character according to the CoA and HAA in the IP packet to obtain the corresponding CN address, and the MN replaces the source address of the IP packet with the CN.
  • the address, the destination address is replaced with HoA.
  • the purpose of the embodiments of the present invention is to provide a method and an apparatus for transmitting a mobile IP packet, so as to solve the above-mentioned prior art, the MN needs to support multiple CoA mechanisms, and the MN and the HA cannot perform the received message. Effectively differentiated issues.
  • a method for transmitting a mobile IP packet comprising:
  • the home agent HA of the mobile node MN receives the first IP packet sent by the MN to the communication peer CN; [24] the HA according to the address of the CN carried in the first IP packet The corresponding identifier queries the association relationship between the address of the CN stored locally and the corresponding identifier, and obtains the address of the CN from the association relationship;
  • the HA replaces the source address of the first IP packet with the care-of address CoA of the MN with the home address of the MN, and the destination address of the first IP packet is The HA address of the HA is replaced with the address of the CN; the HA sends the first IP packet after the address translation to the CN.
  • a method for transmitting a mobile IP packet comprising:
  • the home agent HA of the mobile node MN receives the second IP packet sent by the communication peer CN to the MN; [28] the HA checks the address of the CN carried in the second IP packet. Querying the association relationship and obtaining an identifier corresponding to the address of the CN, and replacing the source address of the second IP packet with the address of the CN by the HA address of the HA, and the second IP packet.
  • the destination address of the MN is replaced by the MN's home address H oA as the MN's care-of address CoA, and the identifier corresponding to the CN address is carried in the second IP packet;
  • the HA sends the second IP packet after the address translation to the MN.
  • a home agent HA which is used as a home agent of the mobile node MN.
  • the HA is used to forward the first IP packet sent by the MN to the CN and the CN to the MN.
  • Second IP packet wherein the HA comprises:
  • an association relationship storage module configured to store an association relationship between an address of the CN and an identifier corresponding to the address of the CN;
  • a message receiving module configured to receive the first IP packet and the second IP packet
  • an address conversion module configured to query an association relationship stored by the association relationship storage module according to an identifier corresponding to the address of the CN carried in the first IP packet, and obtain an address of the CN from the Replacing the source address of the first IP packet with the home address HoA of the MN by the care-of address CoA of the MN, and replacing the destination address of the first IP packet with the HAA of the HA An address of the CN; and, according to the address of the CN carried in the second IP packet, querying an association relationship stored by the association relationship storage module, and acquiring an identifier corresponding to the address of the CN, The source address of the second IP packet is replaced by the address of the CN as the HAA of the HA, and the destination address of the second IP packet is replaced by the MN's home address HoA to the MN. Handing over the address CoA, and carrying the identifier in the second IP packet;
  • the message sending module is configured to send the IP packet that is address-converted by the address translation module to the CN or MN that is the receiving end of the IP packet.
  • a mobile node MN configured to communicate with a communication peer CN by a home agent HA, where the HA is used to forward an IP packet that is communicated between the MN and the CN, where the IP packet includes The first IP packet sent by the MN to the CN, where the MN includes:
  • an association relationship storage module configured to store an association relationship between an address of the CN and an identifier corresponding to the address of the CN;
  • a message sending module configured to query, according to an address of the receiving end CN of the first IP packet, an association relationship stored in the association relationship storage module, and obtain an identifier corresponding to the address of the CN, Adding the identifier to the first IP packet, and sending the first IP packet carrying the identifier to the HA
  • a system for transmitting a mobile IP packet includes at least one home agent HA, and the home agent HA is configured to receive a first IP packet sent by the corresponding mobile node MN to the communication peer CN.
  • Querying, by the CN, the second IP packet sent by the CN to the MN, and querying, according to the identifier corresponding to the address of the CN, the address of the CN and the corresponding Relationship between identifiers Obtaining the address of the CN from the association relationship, replacing the source address of the first IP packet with the care-of address CoA of the MN, and replacing the home address of the MN with the MN, and the first The destination address of the IP packet is replaced by the address HAA of the HA to the address of the CN; and the association relationship is queried according to the address of the CN carried in the second IP packet and the Corresponding identifier, the source address of the second IP packet is replaced by the address of the CN by the address HAA of the HA, and the
  • the embodiment of the present invention stores the association relationship between the address of the CN and the corresponding identifier in the HA and the MN, and the HA receives the received relationship according to the association relationship.
  • the IP packet communicated between the MN and the CN performs address translation processing, so that when the MN communicates with multiple CNs, the MN does not have to support multiple CoA functions.
  • the HA and the MN can correctly identify the packet according to the identifier corresponding to the address of the CN carried in the received packet.
  • FIG. 1 is a schematic diagram of a format of a message transmitted by a CN intercepted by a CN to a home network of a MN and a MN communication;
  • FIG. 2 is a schematic diagram of a format of a packet encapsulated by a HA in a prior art
  • FIG. 3 is a schematic diagram of a format of a packet encapsulated by a MN after tunnel encapsulation in the prior art
  • FIG. 4 is a schematic diagram of a packet format of a HA after tunnel encapsulation in the prior art
  • FIG. 5 is a schematic diagram of a packet format of an IPv6 tunnel encapsulation in the prior art
  • FIG. 6 is a flowchart of processing a message transmission method in a mobile IP according to Embodiment 1 of the present invention
  • FIG. 7 is an option of a destination address sent by a MN according to Embodiment 1 of the present invention
  • FIG. 9 is a flowchart of processing a packet transmission method in a mobile IP according to Embodiment 2 of the present invention.
  • FIG. 10 is a packet in a mobile IP according to Embodiment 3 of the present invention; [Processing flow chart of the transmission method;
  • FIG. 11 is a schematic structural diagram of a HA according to an embodiment of the present invention;
  • FIG. 12 is a schematic structural diagram of a MN according to an embodiment of the present invention.
  • the MN or the HA allocates an identifier corresponding to the address of the CN, and the association relationship between the address of the CN and the corresponding identifier is saved in both the MN and the HA.
  • the HA receives the IP packet of the communication between the MN and the CN, performs address translation processing on the IP packet according to the association relationship stored locally, and sends the IP packet after the address translation processing to the CN or MN at the receiving end of the IP packet.
  • the source address of the first IP packet is the care-of address CoA of the MN.
  • the destination address is the address HAA of the HA, and the HA queries the association relationship information according to the identifier to obtain the address of the CN corresponding to the identifier, and replaces the destination address of the first IP packet with the CN.
  • the IP address of the first IP packet is replaced with the home address of the MN, and the IP packet that has been replaced is sent to the CN.
  • the source address of the second IP packet is the address of the CN, and the destination address is ⁇ of the MN.
  • the HA queries the association information according to the address of the CN to obtain an identifier corresponding to the address of the CN, and replaces the destination address of the second IP packet with the CoA of the MN, and replaces the source address with the HAA.
  • the second IP packet is sent to the MN.
  • the MN receives the second IP packet sent by the HA, and extracts the identifier in the second IP packet, and the MN queries the association relationship information according to the identifier to obtain the identifier.
  • the address of the corresponding CN is replaced by the source address of the second IP packet with the address of the CN, and the destination address is replaced by the HoA.
  • the identifier corresponding to the address of the CN may be an integer shorter than the IPv6 address, and may also be referred to as a label.
  • the identifier may be: an identifier of a binding cache entry that stores an address of the CN.
  • FIG. 62 A processing flow of a message transmission method in mobile IP according to Embodiment 1 of the present invention is shown in FIG. Including the following processing steps:
  • Step 61 The MN sends a BU message carrying the address of CN1 to the HA.
  • the MN When the MN needs to communicate with CN1 through HA, the MN adds a mobile CN option to the BU message, which includes the address of CN1. Then, the MN sends a BU message carrying the above mobile CN option to the HA.
  • Step 62 The HA saves the received address of the CN1, and records an identifier ID 1 corresponding to the address of the CN1.
  • the HA After receiving the BU message from the MN, the HA verifies the BU message, and after the verification succeeds, acquires the address information of the CN1 included in the mobile CN option from the BU message.
  • the HA searches for the address information of CN1 in the locally saved CN list, and if not, adds the address information of CN1 to the CN list, and records an identifier ID1 corresponding to the address of CN1.
  • the correspondence between the CoA of the MN and the HoA is also stored in the HA.
  • Step 63 The HA sends the address of the CN1 and the corresponding identifier ID1 to the MN.
  • the HA When the HA needs to reply to the MN message, the HA adds a mobile CN option to the BA message, and the mobile CN option includes the address information of CN1 and the corresponding ID1. The HA then sends a BA message carrying the mobile CN option to the MN.
  • the MN After receiving the foregoing BA message, the MN obtains the address information of the CN1 and the corresponding I from the BA message.
  • Step 64 The MN sends an IP packet carrying the identifier ID1 corresponding to the address information of the CN1 to the HA, and the HA is the I.
  • the MN sends an IP packet to CN1.
  • the source address of the IP packet is the care-of address CoA of the MN, and the destination address is the HA address of the HA.
  • the MN adds the ID1 corresponding to the address information of the above CN1 in the header of the IP packet.
  • ID1 is carried in the option of the destination address in the header of the IP packet.
  • the HA After receiving the IP packet sent by the MN, the HA extracts the ID1 carried in the IP packet, and the source address CoA and the destination address HAA. Then, the HA queries the saved CN list according to the above ID1, obtains the address of the CN1 corresponding to the ID1, and acquires the HoA associated with the association according to the CoA. [75] Then, the HA uses the HoA to replace the source address CoA of the IP packet, and replaces the IP address of the IP packet with the address of the CN1, and sends the IP packet with the address replacement to CN1.
  • Step 65 The HA receives the IP packet sent by the CN1 to the MN, and replaces the source address and the destination address of the IP packet, and then sends the IP packet to the MN.
  • CN1 sends an IP packet to the MN.
  • the source address of the IP packet is the address of CN1, and the destination address is Ho A of the MN.
  • the HA receives the IP packet sent by the CN1 to the MN, and extracts the address of the CN1 and the Ho A in the IP packet. Then, the HA queries the saved CN list according to the address of the above CN1, obtains the identifier ID1 corresponding to the address of the CN1, and acquires the CoA saved by the association according to the HoA. The HA adds the above ID1 to the packet header, replaces the source address in the packet with the HAA, and replaces the destination address with the CoA and sends it to the MN.
  • a schematic diagram of a packet format of the identifier ID1 corresponding to the address information of the CN1 in the packet header is shown in FIG. 8.
  • the MN After receiving the IP packet sent by the HA, the MN extracts the ID 1, HAA, and CoA in the IP packet.
  • the MN obtains the address of the CN1 whose association is saved according to the above ID1, and acquires the HoA whose association is saved according to the CoA.
  • the MN replaces the source address of the IP packet with the address of CN1, and replaces the destination address with HoA.
  • the processing flow of the packet transmission method in the mobile IP provided by the second embodiment of the present invention is as shown in FIG. 9, and includes the following processing steps:
  • Step 91 The MN assigns the identifier ID1 to the CN1, and sends the CN1 and the corresponding identifier ID1 to the HA.
  • the MN When the MN intends to communicate with CN1 using the bidirectional tunnel mode via HA, the MN assigns CN1 an identification ID 1, which is used to distinguish between different CNs communicating with the MN.
  • the MN sends a BU message to the HA, and adds a mobility option to the BU message, the mobile option including the address of CN 1 and the corresponding identification ID 1.
  • Step 92 The HA saves the received CN1 and the corresponding ID1 information.
  • the HA After receiving the above BU message from the MN, the HA verifies the BU message. After the verification is passed, the corresponding BCE1 (Binding Cache)
  • binding cache entry saves the address of CN1 and the corresponding ID1 information.
  • HA replies to the BA message to the MN.
  • Step 93 The MN sends an IP packet carrying the identifier ID1 corresponding to the CN1 to the HA, and the HA replaces the source address and the destination address of the IP packet, and then sends the packet to the CN1.
  • the source address of the IP packet is the care-of address CoA of the MN, and the destination address is the HA address of the HA.
  • the MN adds the identifier ID 1 corresponding to the CN 1 in the header of the IP packet.
  • the IP packet sent by the MN is received by the HA, and the HA extracts the ID 1, CoA, and ⁇ in the IP packet, and indexes the corresponding BCEl according to the ID1 to obtain the address of the corresponding CN1 stored in the BCEl. .
  • the HA also queries the HoA whose association is saved based on the CoA.
  • the HA uses the HoA to replace the source address CoA of the IP packet, and uses the address of the CN1 to replace the destination address HAA of the IP packet, and sends the IP packet with the address replacement to CN1.
  • FIG. 10 The processing flow of the packet transmission method in the mobile IP provided by the third embodiment of the present invention is as shown in FIG. 10, and includes the following processing steps:
  • Step 101 The MN sends a BU message carrying the address of CN1 to the HA.
  • the MN When the MN needs to communicate with CN1 through HA, the MN adds a mobile CN option to the BU message, which contains the address of CN1. Then, the MN sends a BU message carrying the above mobile CN option to the HA.
  • Step 102 The HA saves the received address information of CN1 in BCE1.
  • the HA After receiving the BU message from the MN, the HA verifies the BU message, and after the verification is passed, obtains the address information of the CN1 included in the mobile CN option.
  • the HA stores the address of CN1 and the corresponding ID1 information of BCE1 in BCE1. Also store in HA
  • Step 103 The HA sends the address information of CN1 and the identifier ID1 of the corresponding BCE1 to the MN.
  • the CN option includes the address information of the above CN1 and the identifier ID1 of the corresponding BCE1.
  • the HA then sends the BA message carrying the mobile CN option to the MN.
  • the MN After receiving the foregoing BA message, the MN obtains the address information of the CN1 and the corresponding B from the BA message. CE1 identifies ID1 and stores it in association. Similarly, the correspondence between the CoA of the MN and the HoA is also stored in the MN.
  • Step 104 The MN sends an IP packet carrying the ID1 of the BCE1 to the HA, and the HA replaces the source address and the destination address of the IP packet, and then sends the packet to the CN1.
  • the source address of the IP packet is the care-of address CoA of the MN
  • the destination address is the HA address of the HA.
  • the MN adds the identifier ID1 of the BCE1 to the header of the IP packet, and the identifier ID1 of the BCE1 is carried in the option of the destination address in the header of the IP packet.
  • the IP packet sent by the MN is received by the HA, and the HA extracts the identifier I D1 of the BCE1 carried in the IP packet, and the source address CoA and the destination address HAA. Then, the HA queries the corresponding BCE1 according to the identifier ID1 of the BCE1, and acquires the address of the CN1 stored in the BCE1. The HA also obtains the HoA whose association is saved based on the CoA.
  • the HA uses the HoA to replace the source address CoA of the IP packet, and uses the address of CN1 to replace the destination address HAA of the IP packet, and sends the IP packet with the address replacement to CN1.
  • FIG. 11 A schematic structural diagram of an HA according to an embodiment of the present invention is shown in FIG. 11.
  • the HA is a home agent of a mobile node MN, and when the MN roams to a foreign network, the HA is used to forward the MN and
  • the IP packet of the communication between the peer CNs, the IP packet includes a first IP packet sent by the MN to the CN, and a second IP packet sent by the CN to the MN, where the HA includes the following modules:
  • the association relationship storage module 111 is configured to store an association relationship between the address of the CN and the identifier corresponding to the address of the CN.
  • One mode is that after the HA receives the address of the CN sent by the MN, the HA assigns a corresponding identifier to the address of the CN.
  • Another way is that the HA extracts the CN address and the corresponding identifier directly from the BU message sent by the MN.
  • the message receiving module 112 is configured to receive an IP packet for communication between the MN and the CN. Further, when the MN sends the corresponding identifier to the address of the CN, the message receiving module 112 is further configured to receive the address of the CN sent by the MN and the address of the CN. And the identifier corresponding to the address of the CN and the address of the CN may be carried in a BU message sent by the MN to the HA; when the HA allocates the corresponding identifier to the address of the CN, the report The text receiving module 112 is further configured to receive an address of the CN sent by the MN, where the address of the CN may be carried by the MN to the HA The BU message sent.
  • the address conversion module 113 is configured to query the association relationship stored by the association relationship storage module 111 according to the corresponding identifier carried in the first IP packet, and obtain an address of the CN from the The address of the CN is used as the destination address of the first IP packet, and performs address translation on the first IP packet, where the identifier corresponding to the address of the CN may be carried in the report of the first IP packet.
  • the address conversion module 113 is configured to query the association relationship stored by the association relationship storage module 111 according to the corresponding identifier carried in the first IP packet, and obtain an address of the CN from the The address of the CN is used as the destination address of the first IP packet, and performs address translation on the first IP packet, where the identifier corresponding to the address of the CN may be carried in the report of the first IP packet.
  • the header as shown in the In dex option in FIG.
  • the Index option may include an identifier type (Type) of 1B, an identifier length (Length) of IB, and specific identifier content information (Index);
  • the address of the CN carried in the second IP packet is used to query the association relationship stored by the association relationship storage module 111, and obtain an identifier corresponding to the address of the CN, and perform an address on the second IP packet. Conversion.
  • the address of the CN is used as the destination address of the first IP packet, and performing address translation on the first IP packet specifically includes: using the source address of the first IP packet by the The care-of address CoA of the MN is replaced with the home address of the MN, and the destination address of the first IP packet is replaced by the address of the HA, H AA, with the address of the CN.
  • the address conversion of the second IP packet includes: replacing the source address of the second IP packet with the address of the CN by the HA address of the HA, and using the second IP address.
  • the destination address of the message is replaced by the home address HoA of the MN as the care-of address CoA of the MN, and the identifier is carried in the second IP packet.
  • the identifier corresponding to the address of the CN may be carried in the header of the second IP packet, as shown by the Index option in FIG.
  • the message sending module 114 is configured to send the IP packet that has been address-converted by the address translation module 113 to the CN or MN that is the receiving end of the IP packet. Further, when the HA receives the BU message that is sent by the MN and carries the identifier corresponding to the address of the CN and the address of the CN, the message sending module 114 is further configured to reply the BA to the MN.
  • the packet sending module 114 is further configured to: An identifier corresponding to the address of the CN and the address of the CN is sent to the MN, and the identifier corresponding to the address of the CN and the address of the CN may be carried in the BA message sent by the HA to the MN.
  • the HA may further include:
  • an identifier allocation module 115 configured to address the address of the CN received by the message receiving module 112 An identifier corresponding to the address of the CN, the identifier being used to uniquely identify the address of the CN.
  • the HA provided by the foregoing embodiment may also implement the unidirectional forwarding of the IP packet of the communication between the MN and the CN.
  • Each module in the HA is also used to implement an IP packet for forwarding between the MN and the CN in one direction.
  • the embodiment of the present invention further provides an HA for forwarding a first IP packet sent by the MN to the CN, and an HA for forwarding the second IP packet sent by the CN to the MN.
  • FIG. 12 A schematic diagram of a structure of a mobile node MN according to an embodiment of the present invention is shown in FIG. 12, the home agent of the MN is an HA, and the MN is used to communicate with the communication CN through the HA.
  • the MN roams to the foreign network, and the HA is used to forward the IP packet of the communication between the MN and the CN, where the IP packet includes the first IP packet sent by the MN to the CN and the CN
  • a second IP packet sent to the MN where the MN includes the following modules:
  • the association relationship storage module 121 is configured to store an association relationship between an address of the CN and an identifier corresponding to the address of the CN.
  • One way is to allocate the address of the CN to the HA, and allocate the address of the CN to the CN. After the corresponding identifier, the address corresponding to the CN returned by the HA and the identifier corresponding to the address of the CN are received; another way is to directly assign a corresponding identifier to the address of the CN.
  • the message sending module 122 is configured to query the association relationship stored in the association relationship storage module 121 according to the address of the receiving end CN of the first IP packet, and obtain an identifier corresponding to the address of the CN Adding the identifier to the first IP packet, and sending the first IP packet carrying the identifier to the HA, where the source address of the first IP packet is the MN
  • the CoA the destination address is the address of the HA, HAAo, where the identifier corresponding to the address of the CN may be carried in the header of the first IP packet, as shown by the Index option in FIG.
  • the options may include 1B's identification type (Type), 1 B's identification length (Length), and specific identification content information (Index).
  • the packet sending module 122 is further configured to send, by the HA, the address of the CN and the address of the CN. And the identifier corresponding to the address of the CN and the address of the CN may be carried in a BU message sent by the MN to the HA; when the HA is assigned an identifier corresponding to the address of the CN, The message sending module 122 is further configured to send the address of the CN to the HA, where the address of the CN may be carried by the MN to the HA The BU message sent.
  • the MN may further include:
  • the message receiving module 123 is configured to receive a second IP packet that is forwarded by the HA and that carries an identifier corresponding to the address of the CN, and is configured according to the identifier that is carried in the second IP packet.
  • the association relationship is stored in the association relationship, and the source address of the CN corresponding to the identifier is obtained, and the source address of the second IP packet is replaced with the address of the CN.
  • the destination address of the second IP packet is replaced with the home address HoA of the MN.
  • the identifier may be carried in the header of the second IP packet, as shown by the Index option in FIG.
  • the message receiving module 123 is further configured to receive the BA message that is replied by the HA.
  • the message receiving module 123 is further configured to receive the HA sent by the HA.
  • An identifier corresponding to the address of the CN and the address of the CN, and the identifier corresponding to the address of the CN and the address of the CN may be carried in the BA message replied by the HA.
  • the MN may further include:
  • the identifier allocation module 124 is configured to allocate a corresponding identifier to the address of the CN, where the identifier is used to uniquely identify the address of the CN.
  • the embodiment of the present invention further provides a system for transmitting a mobile IP packet, including at least one home agent HA, where the home agent HA is configured to receive a first mobile node MN to send to the communication peer CN.
  • the IP packet and the second IP packet sent by the CN to the MN; querying the locally stored address of the CN according to the identifier corresponding to the address of the CN carried in the first IP packet.
  • the association between the identifiers corresponding to the addresses of the CN, and the address of the CN is obtained from the association relationship, and the source address of the first IP packet is replaced by the care-of address CoA of the MN.
  • the home address of the MN is ⁇ , and the destination address of the first IP packet is replaced by the address HAA of the HA to the address of the CN; and, according to the CN carried in the second IP packet Querying the association relationship and obtaining an identifier corresponding to the address of the CN, and replacing the source address of the second IP packet with the address of the CN by the address HAA of the HA, The destination address of the second IP packet is replaced by the home address HoA of the MN as the handover destination of the MN. Address CoA, and carrying the identifier in the second IP packet; The converted IP packet is sent to the CN or MN that is the receiving end of the IP packet.
  • the MN when the MN communicates with multiple CNs, the MN does not have to support multiple CoA functions, and it is not necessary to configure one CoA for each CN that communicates with it. .
  • the embodiment of the present invention is for HA and M.
  • N's storage resources are relatively small.
  • the present invention can be implemented by hardware, or can be realized by means of software plus necessary general hardware platform, the present invention.
  • the technical solution can be embodied in the form of a software product, which can be stored in a computer readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a plurality of instructions for making a computer device (may be a personal computer, server, or network device, etc.) Perform the methods described in various embodiments of the present invention.

Landscapes

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

Abstract

A mobile IP packet transmission method and device are provided. The method comprises: the HA (Home Agent) receives the IP packet communicated between the MN (Mobile Node) and the CN (Correspondent Node), the HA performs an address translation processing to the IP packet according to the associated relation between its stored CN’s address and the corresponding identification and transmits the IP packet to which an address translation processing has been performed to the CN or MN which acts as the receiver of the IP packet. By using the invention it could be realized that the MN does not need to support multiple Care-of-Address function when the MN communicates with multiple CNs. The HA and MN could identify the packet accurately according to the identification corresponding to the CN’s address carried in the received packet.

Description

说明书 移动 IP报文的传输方法和装置  Mobile IP packet transmission method and device
[1] 本申请要求了 2008年 8月 7日提交的、 申请号为 2008101118223.2、 发明名称为" 移动 IP报文的传输方法装置 "的中国申请的优先权, 其全部内容通过引用结合在 本申请中。  [1] The present application claims the priority of the Chinese application filed on Aug. 7, 2008, with the application number 2008101118223.2, entitled "Transmission Method Device for Mobile IP Messages", the entire contents of which are incorporated herein by reference. in.
[2] 技术领域  [2] Technical field
[3] 本发明涉及网络通信领域, 尤其涉及一种移动 IP报文的传输方法和装置。  [3] The present invention relates to the field of network communications, and in particular, to a method and an apparatus for transmitting a mobile IP packet.
[4] 发明背景  [4] Background of the invention
[5] 随着计算机网络技术和移动通信计算的快速发展, 对移动性支持提出了需求, 移动 IPV6是一种在网络层解决移动性的方案。 移动 IPv6中有三种基本的网络实 体: 移动节点 (MN, Mobile Node) 、 通信对端 (CN, Correspondent  [5] With the rapid development of computer network technology and mobile communication computing, there is a demand for mobility support. Mobile IPV6 is a solution for mobility at the network layer. There are three basic network entities in mobile IPv6: mobile node (MN, Mobile Node), communication peer (CN, Correspondent)
Node) 和家乡代理 (ΗΑ' Home Agent) 。  Node) and home agent (ΗΑ' Home Agent).
[6] 按照移动 IPv6规范要求, 在 MN从一条链路移动到另一链路的过程中, MN不中 断其正在进行的使用家乡地址 (HoA, Home  [6] In accordance with the Mobile IPv6 specification, the MN does not interrupt its ongoing home address (HoA, Home) while the MN is moving from one link to another.
Address) 的通信。 MN的移动性对传输层和其它高层协议都是透明的, 一个 MN 的 HoA可以唯一地识别出该 MN。  Address) communication. The mobility of the MN is transparent to the transport layer and other higher layer protocols, and the HoA of a MN can uniquely identify the MN.
[7] 在 MN漫游到外地网络吋, MN将通过一定方式生成转交地址 (CoA, Care-of-A ddress) , 并通过绑定更新 (Binding Update [7] After the MN roams to the foreign network, the MN will generate a care-of-ad dress (CoA, Care-of-A ddress) in a certain way, and update through the binding (Binding Update)
, BU) 消息将该 CoA通知给 MN的 HA, HA收到该 BU消息后, 将回复绑定确认 (Binding Acknowledge  , BU) The message informs the MN of the HA of the CoA, and after receiving the BU message, the HA will reply with a binding confirmation (Binding Acknowledge)
, BA) 消息给 MN。 然后, HA会截获 CN发送到 MN的家乡网络和 MN通信的报 文, 该报文的格式如图 1所示, HA再通过隧道模式对该报文进行隧道封装后转发 给 MN, 该 HA进行了隧道封装后的报文的格式如图 2所示。 当 MN向 CN发送报文 吋, 需要通过隧道模式对报文进行隧道封装后, 再发送到 HA, 该 MN进行了隧 道封装后的报文的格式如图 3所示, HA对该 MN进行了隧道封装后的报文进行解 隧道封装后转发给 CN, HA解隧道封装后的报文格式如图 4所示。  , BA) Message to MN. Then, the HA intercepts the packet sent by the CN to the MN's home network and the MN. The format of the packet is as shown in Figure 1. The HA then tunnels the packet to the MN through the tunnel mode. The HA performs the HA. The format of the packet encapsulated by the tunnel is shown in Figure 2. After the MN sends a packet to the CN, the packet is encapsulated in the tunnel mode and then sent to the HA. The format of the packet encapsulated by the MN is as shown in Figure 3. The HA performs the MN on the MN. The packet encapsulated by the tunnel is encapsulated and then forwarded to the CN. The format of the packet after the tunnel is encapsulated by the HA is shown in Figure 4.
[8] 上述 MN和 CN经过 HA中转的通信方式被称为双向隧道通信模式, 在这种双向 隧道通信模式中, 与 MN通信的数据报文都要进行隧道封装, 在 IPv6隧道封装中 需要 40字节的报文头。 IPv6隧道封装的报文格式如图 5所示。 在图 5中, oSRC为 外层头源地址, oDEST [8] The communication method in which the above MN and CN transit through HA is called a bidirectional tunnel communication mode, in this two-way In the tunnel communication mode, data packets that communicate with the MN are encapsulated in a tunnel. A 40-byte header is required in the IPv6 tunnel encapsulation. The packet format of an IPv6 tunnel encapsulation is shown in Figure 5. In Figure 5, oSRC is the outer head source address, oDEST
为外层头目的地址, oNAF为外层头中的非地址字段, iSRC为内层头源地址, iD EST为内层头目的地址, iNAF为内层头中的非地址字段。 For the destination address of the outer header, oNAF is the non-address field in the outer header, iSRC is the inner header source address, iD EST is the inner header address, and iNAF is the non-address field in the inner header.
上述 IPv6隧道封装中的 40字节的报文头对通过无线链路进行通信的 MN而言, 是一个不可忽视的开销。 如何降低封装开销, 提高带宽的有效利用率, 对无线 链路具有重要意义。  The 40-byte header in the above IPv6 tunnel encapsulation is a non-negligible overhead for the MN communicating over the wireless link. How to reduce the encapsulation overhead and increase the effective utilization of bandwidth is of great significance to wireless links.
现有技术中的一种减小移动 IP隧道封装开销的 IP报文的传输方法为: 隧道优化 的方法。 在该方法中, 当 MN需要与 CN通信吋, 在进行家乡注册的过程, 根据 M N的 CoA、 CN的地址和家乡代理的地址 (HAA, Home Agent  A method for transmitting an IP packet that reduces the overhead of a mobile IP tunnel encapsulation in the prior art is: a tunnel optimization method. In this method, when the MN needs to communicate with the CN, in the process of registering in the hometown, according to the address of the CoA of the MN, the address of the CN, and the address of the home agent (HAA, Home Agent
Address) 生成一个地址翻译符, MN将该地址翻译符进行保存。 Address) Generate an address translator, and MN will save the address translator.
然后, MN向 HA发送携带上述地址翻译符的 BU消息, HA收到该 BU消息后, 将该 BU消息中的地址翻译符进行保存。 之后, MN与 CN通信的数据报文不必再 进行隧道封装。  Then, the MN sends a BU message carrying the address translator to the HA, and after receiving the BU message, the HA saves the address translation in the BU message. After that, the data message that the MN communicates with the CN does not need to be tunnel encapsulated.
当 MN向 CN发送 IP报文吋, MN将 IP报文的源地址填为 CoA, 目的地址填为 HA A。 HA收到该 IP报文后, 根据该 IP报文中的 CoA、 HAA査询上述保存的地址翻 译符, 获取相应的 CN的地址。 HA还根据 CoA获取相应的 HoA。 HA将该 IP报文 的源地址翻译为 ΗοΑ, 目的地址翻译为 CN的地址, 该翻译后的报文就可以被 CN 正常地接收处理。  When the MN sends an IP packet to the CN, the MN fills in the source address of the IP packet as CoA, and the destination address is filled in as HA A. After receiving the IP packet, the HA queries the saved address translation function according to the CoA and HAA in the IP packet to obtain the corresponding CN address. HA also obtains the corresponding HoA based on the CoA. The HA translates the source address of the IP packet into ΗοΑ, and the destination address is translated into the address of the CN, and the translated message can be normally received and processed by the CN.
当 CN向 MN发送 IP报文吋, CN将 IP报文的源地址填为 CN的地址, 目的地址填 为 HoA。 HA收到该 IP报文后, 根据该 IP报文中的 CN的地址、 HoA査询上述保存 的地址翻译符, 获取相应的 CoA。  When the CN sends an IP packet to the MN, the CN fills the source address of the IP packet with the address of the CN, and the destination address is filled with the HoA. After receiving the IP packet, the HA queries the saved address translator according to the address of the CN in the IP packet to obtain the corresponding CoA.
HA将该 IP报文的源地址翻译为 HAA, 目的地址翻译为 CoA, 将该翻译后的报 文发送给 MN。 MN收到该翻译后的 IP报文后, 根据该 IP报文中的 CoA、 HAA査 询上述保存的地址翻译符, 获取相应的 CN的地址, MN将该 IP报文的源地址替换 为 CN的地址, 目的地址替换为 HoA。  The HA translates the source address of the IP packet into a HAA, and the destination address is translated into CoA, and the translated message is sent to the MN. After receiving the translated IP packet, the MN queries the saved address translation character according to the CoA and HAA in the IP packet to obtain the corresponding CN address, and the MN replaces the source address of the IP packet with the CN. The address, the destination address is replaced with HoA.
上述现有技术中减小移动 IP隧道封装开销的 IP报文的传输方法的缺点为: [16] 1、 当一个 MN与多个 CN进行通信吋, 需要 MN支持多 CoA机制; The disadvantages of the foregoing method for transmitting IP packets that reduce the overhead of mobile IP tunnel encapsulation are as follows: [16] 1. When a MN communicates with multiple CNs, the MN needs to support multiple CoA mechanisms;
[17] 2、 当 MN收到来自 HA的报文吋, 难以区分该报文是进行了上述隧道优化后的 报文, 还是没有进行上述隧道优化的与 MN的 CoA通信的报文;  [17] 2. When the MN receives the message from the HA, it is difficult to distinguish whether the message is the message optimized by the tunnel or the message of the CoA communication with the MN without the tunnel optimization;
[18] 3、 当 HA收到来自 MN的报文吋, 难区分该报文是进行了上述隧道优化后的 MN 与其他节点通信的报文, 还是没有进行上述隧道优化的与 HA直接通信的报文。 [18] 3. When the HA receives the message from the MN, it is difficult to distinguish whether the message is the message that the MN communicates with other nodes after the tunnel optimization, or the direct communication with the HA without the above tunnel optimization. Message.
[19] 发明内容 [19] Summary of the invention
[20] 本发明实施例的目的是提供一种移动 IP报文的传输方法和装置, 从而可以解决 上述现有技术中需要 MN支持多 CoA机制, 以及 MN和 HA无法对接收到的报文进 行有效地区分的问题。  [20] The purpose of the embodiments of the present invention is to provide a method and an apparatus for transmitting a mobile IP packet, so as to solve the above-mentioned prior art, the MN needs to support multiple CoA mechanisms, and the MN and the HA cannot perform the received message. Effectively differentiated issues.
[21] 本发明实施例的目的是通过以下技术方案实现的:  [21] The purpose of the embodiment of the present invention is achieved by the following technical solutions:
[22] 一种移动 IP报文的传输方法, 包括:  [22] A method for transmitting a mobile IP packet, comprising:
[23] 移动节点 MN的家乡代理 HA接收所述 MN发送给通信对端 CN的第一 IP报文; [24] 所述 HA根据所述第一 IP报文中携带的与所述 CN的地址对应的标识査询本地存 储的所述 CN的地址和所述对应的标识之间的关联关系, 并从所述关联关系中获 取所述 CN的地址;  [23] The home agent HA of the mobile node MN receives the first IP packet sent by the MN to the communication peer CN; [24] the HA according to the address of the CN carried in the first IP packet The corresponding identifier queries the association relationship between the address of the CN stored locally and the corresponding identifier, and obtains the address of the CN from the association relationship;
[25] 所述 HA将所述第一 IP报文的源地址由所述 MN的转交地址 CoA替换为所述 MN 的家乡地址 ΗοΑ, 并将所述第一 IP报文的目的地址由所述 HA的地址 HAA替换为 所述 CN的地址; 所述 HA将进行地址转换后的所述第一 IP报文发送给所述 CN。  [25] The HA replaces the source address of the first IP packet with the care-of address CoA of the MN with the home address of the MN, and the destination address of the first IP packet is The HA address of the HA is replaced with the address of the CN; the HA sends the first IP packet after the address translation to the CN.
[26] 一种移动 IP报文的传输方法, 包括:  [26] A method for transmitting a mobile IP packet, comprising:
[27] 移动节点 MN的家乡代理 HA接收通信对端 CN发送给所述 MN的第二 IP报文; [28] 所述 HA根据所述第二 IP报文中携带的所述 CN的地址査询所述关联关系并从中 获取所述 CN的地址对应的标识, 将所述第二 IP报文的源地址由所述 CN的地址替 换为所述 HA的地址 HAA, 将所述第二 IP报文的目的地址由所述 MN的家乡地址 H oA替换为所述 MN的转交地址 CoA, 并将所述 CN的地址对应的标识携带在所述 第二 IP报文中;  [27] The home agent HA of the mobile node MN receives the second IP packet sent by the communication peer CN to the MN; [28] the HA checks the address of the CN carried in the second IP packet. Querying the association relationship and obtaining an identifier corresponding to the address of the CN, and replacing the source address of the second IP packet with the address of the CN by the HA address of the HA, and the second IP packet The destination address of the MN is replaced by the MN's home address H oA as the MN's care-of address CoA, and the identifier corresponding to the CN address is carried in the second IP packet;
[29] 所述 HA将进行地址转换后的所述第二 IP报文发送给所述 MN。  [29] The HA sends the second IP packet after the address translation to the MN.
[30] 一种家乡代理 HA, 用作移动节点 MN的家乡代理, 当所述 MN漫游到外地网络 吋, 所述 HA用于转发 MN发送给 CN的第一 IP报文和 CN发送给 MN的第二 IP报文 , 其特征在于, 所述 HA包括: [30] A home agent HA, which is used as a home agent of the mobile node MN. When the MN roams to the foreign network, the HA is used to forward the first IP packet sent by the MN to the CN and the CN to the MN. Second IP packet , wherein the HA comprises:
[31] 关联关系存储模块, 用于存储所述 CN的地址和所述 CN的地址对应的标识之间 的关联关系; [31] an association relationship storage module, configured to store an association relationship between an address of the CN and an identifier corresponding to the address of the CN;
[32] 报文接收模块, 用于接收所述第一 IP报文和第二 IP报文;  [32] a message receiving module, configured to receive the first IP packet and the second IP packet;
[33] 地址转换模块, 用于根据所述第一 IP报文中携带的所述 CN的地址对应的标识 査询所述关联关系存储模块所存储的关联关系并从中获取所述 CN的地址, 将所 述第一 IP报文的源地址由所述 MN的转交地址 CoA替换为所述 MN的家乡地址 HoA , 并将所述第一 IP报文的目的地址由所述 HA的地址 HAA替换为所述 CN的地址; 以及, 根据所述第二 IP报文中携带的所述 CN的地址査询所述关联关系存储模块 所存储的关联关系并从中获取所述 CN的地址对应的标识, 将所述第二 IP报文的 源地址由所述 CN的地址替换为所述 HA的地址 HAA, 将所述第二 IP报文的目的地 址由所述 MN的家乡地址 HoA替换为所述 MN的转交地址 CoA, 并将所述标识携 带在所述第二 IP报文中;  [33] an address conversion module, configured to query an association relationship stored by the association relationship storage module according to an identifier corresponding to the address of the CN carried in the first IP packet, and obtain an address of the CN from the Replacing the source address of the first IP packet with the home address HoA of the MN by the care-of address CoA of the MN, and replacing the destination address of the first IP packet with the HAA of the HA An address of the CN; and, according to the address of the CN carried in the second IP packet, querying an association relationship stored by the association relationship storage module, and acquiring an identifier corresponding to the address of the CN, The source address of the second IP packet is replaced by the address of the CN as the HAA of the HA, and the destination address of the second IP packet is replaced by the MN's home address HoA to the MN. Handing over the address CoA, and carrying the identifier in the second IP packet;
[34] 报文发送模块, 用于将经所述地址转换模块进行地址转换后的所述 IP报文发送 给作为所述 IP报文的接收端的 CN或 MN。  [34] The message sending module is configured to send the IP packet that is address-converted by the address translation module to the CN or MN that is the receiving end of the IP packet.
[35] 一种移动节点 MN, 用于通过家乡代理 HA与通信对端 CN进行通信, 所述 HA用 于转发所述 MN和所述 CN之间通信的 IP报文, 所述 IP报文包括所述 MN发送给所 述 CN的第一 IP报文, 其特征在于, 所述 MN包括:  [35] A mobile node MN, configured to communicate with a communication peer CN by a home agent HA, where the HA is used to forward an IP packet that is communicated between the MN and the CN, where the IP packet includes The first IP packet sent by the MN to the CN, where the MN includes:
[36] 关联关系存储模块, 用于存储所述 CN的地址和所述 CN的地址对应的标识之间 的关联关系;  [36] an association relationship storage module, configured to store an association relationship between an address of the CN and an identifier corresponding to the address of the CN;
[37] 报文发送模块, 用于根据所述第一 IP报文的接收端 CN的地址査询所述关联关 系存储模块中存储的关联关系并从中获取所述 CN的地址对应的标识, 将所述标 识添加于所述第一 IP报文中, 并向所述 HA发送携带了该标识的所述第一 IP报文  [37] a message sending module, configured to query, according to an address of the receiving end CN of the first IP packet, an association relationship stored in the association relationship storage module, and obtain an identifier corresponding to the address of the CN, Adding the identifier to the first IP packet, and sending the first IP packet carrying the identifier to the HA
[38] 一种用于传输移动 IP报文的系统, 所述系统至少包括一家乡代理 HA, 所述家 乡代理 HA用于接收对应的移动节点 MN发送给通信对端 CN的第一 IP报文和所述 CN发送给所述 MN的第二 IP报文; 根据所述第一 IP报文中携带的与所述 CN的地 址对应的标识査询本地存储的所述 CN的地址和所述对应的标识之间的关联关系 , 并从所述关联关系中获取所述 CN的地址, 将所述第一 IP报文的源地址由所述 MN的转交地址 CoA替换为所述 MN的家乡地址 ΗοΑ, 并将所述第一 IP报文的目的 地址由所述 HA的地址 HAA替换为所述 CN的地址; 以及, 根据所述第二 IP报文中 携带的所述 CN的地址査询所述关联关系并从中获取所述对应的标识, 将所述第 二 IP报文的源地址由所述 CN的地址替换为所述 HA的地址 HAA, 将所述第二 IP报 文的目的地址由所述 MN的家乡地址 HoA替换为所述 MN的转交地址 CoA, 并将 所述标识携带在所述第二 IP报文中; 将进行地址转换后的所述 IP报文发送给作为 所述 IP报文的接收端的 CN或 MN。 [38] A system for transmitting a mobile IP packet, the system includes at least one home agent HA, and the home agent HA is configured to receive a first IP packet sent by the corresponding mobile node MN to the communication peer CN. Querying, by the CN, the second IP packet sent by the CN to the MN, and querying, according to the identifier corresponding to the address of the CN, the address of the CN and the corresponding Relationship between identifiers Obtaining the address of the CN from the association relationship, replacing the source address of the first IP packet with the care-of address CoA of the MN, and replacing the home address of the MN with the MN, and the first The destination address of the IP packet is replaced by the address HAA of the HA to the address of the CN; and the association relationship is queried according to the address of the CN carried in the second IP packet and the Corresponding identifier, the source address of the second IP packet is replaced by the address of the CN by the address HAA of the HA, and the destination address of the second IP packet is replaced by the home address HoA of the MN The bearer address CoA of the MN, and the identifier is carried in the second IP packet; the IP packet that is subjected to the address translation is sent to the CN or MN that is the receiving end of the IP packet. .
[39] 由上述本发明实施例提供的技术方案可以看出, 本发明实施例通过在 HA和 MN 中存储 CN的地址和对应的标识之间的关联关系, HA根据该关联关系对接收到的 MN和 CN之间通信的 IP报文进行地址转换处理, 可以实现当 MN与多个 CN进行通 信吋, MN不必支持多 CoA功能。 HA和 MN可以根据接收到的报文中携带的 CN的 地址对应的标识, 对报文进行正确的识别。  According to the technical solution provided by the foregoing embodiment of the present invention, the embodiment of the present invention stores the association relationship between the address of the CN and the corresponding identifier in the HA and the MN, and the HA receives the received relationship according to the association relationship. The IP packet communicated between the MN and the CN performs address translation processing, so that when the MN communicates with multiple CNs, the MN does not have to support multiple CoA functions. The HA and the MN can correctly identify the packet according to the identifier corresponding to the address of the CN carried in the received packet.
[40] 附图简要说明  [40] BRIEF DESCRIPTION OF THE DRAWINGS
[41] 图 1为现有技术中 HA截获的 CN发送到 MN的家乡网络和 MN通信的报文的格式 示意图;  [41] FIG. 1 is a schematic diagram of a format of a message transmitted by a CN intercepted by a CN to a home network of a MN and a MN communication;
[42] 图 2为现有技术中 HA进行隧道封装后的报文的格式示意图;  [2] FIG. 2 is a schematic diagram of a format of a packet encapsulated by a HA in a prior art;
[43] 图 3为现有技术中 MN进行隧道封装后的报文的格式示意图; [43] FIG. 3 is a schematic diagram of a format of a packet encapsulated by a MN after tunnel encapsulation in the prior art;
[44] 图 4为现有技术中 HA解隧道封装后的报文格式示意图; [44] FIG. 4 is a schematic diagram of a packet format of a HA after tunnel encapsulation in the prior art;
[45] 图 5为现有技术中 IPv6隧道封装的报文格式示意图; [45] FIG. 5 is a schematic diagram of a packet format of an IPv6 tunnel encapsulation in the prior art;
[46] 图 6为本发明实施例一提供的一种移动 IP中的报文传输方法的处理流程图; [47] 图 7为本发明实施例一所述 MN发送的在目的地址的选项中携带了 CN1的地址信 息对应的 ID 1的报文的格式示意图;  6 is a flowchart of processing a message transmission method in a mobile IP according to Embodiment 1 of the present invention; [47] FIG. 7 is an option of a destination address sent by a MN according to Embodiment 1 of the present invention; A format diagram of a packet carrying the ID 1 corresponding to the address information of the CN1;
[48] 图 8为本发明实施例一所述 HA发送的在报文头中携带了 CN1的地址信息对应的 I8 is a corresponding to the address information of the CN1 carried in the packet header by the HA according to the first embodiment of the present invention.
D的报文的格式示意图; a format diagram of the message of D;
[49] 图 9为本发明实施例二所述的一种移动 IP中的报文传输方法的处理流程图; [50] 图 10为本发明实施例三提供的一种移动 IP中的报文传输方法的处理流程图; [51] 图 11为本发明实施例提供的一种 HA的结构示意图; [52] 图 12为本发明实施例提供的一种 MN的结构示意图。 9 is a flowchart of processing a packet transmission method in a mobile IP according to Embodiment 2 of the present invention; [10] FIG. 10 is a packet in a mobile IP according to Embodiment 3 of the present invention; [Processing flow chart of the transmission method; [51] FIG. 11 is a schematic structural diagram of a HA according to an embodiment of the present invention; FIG. 12 is a schematic structural diagram of a MN according to an embodiment of the present invention.
[53] 实施本发明的方式 [53] Mode for carrying out the invention
[54] 下面将参考附图详细说明本发明实施例。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[55] 在本发明实施例中, MN或 HA给 CN的地址分配对应的标识, 在 MN和 HA中都 保存 CN的地址和对应的标识之间的关联关系信息。 HA接收 MN和 CN之间通信的 IP报文, 根据本地存储的上述关联关系, 对所述 IP报文进行地址转换处理, 将进 行了地址转换处理后的所述 IP报文发送给作为所述 IP报文接收端的 CN或 MN。  In the embodiment of the present invention, the MN or the HA allocates an identifier corresponding to the address of the CN, and the association relationship between the address of the CN and the corresponding identifier is saved in both the MN and the HA. The HA receives the IP packet of the communication between the MN and the CN, performs address translation processing on the IP packet according to the association relationship stored locally, and sends the IP packet after the address translation processing to the CN or MN at the receiving end of the IP packet.
[56] 在上述处理过程中, HA接收到 MN发送的携带了 CN的地址对应的标识的第一 I P报文后, 所述第一 IP报文的源地址为所述 MN的转交地址 CoA, 目的地址为所述 HA的地址 HAA, 所述 HA根据所述标识査询所述关联关系信息获取所述标识对 应的 CN的地址, 将所述第一 IP报文的目的地址替换为所述 CN的地址, 所述第一 IP报文的源地址替换为所述 MN的家乡地址 ΗοΑ, 将进行了替换处理的 IP报文发 送给所述 CN。  [56] In the foregoing process, after the HA receives the first IP packet that is sent by the MN and carries the identifier corresponding to the address of the CN, the source address of the first IP packet is the care-of address CoA of the MN. The destination address is the address HAA of the HA, and the HA queries the association relationship information according to the identifier to obtain the address of the CN corresponding to the identifier, and replaces the destination address of the first IP packet with the CN. The IP address of the first IP packet is replaced with the home address of the MN, and the IP packet that has been replaced is sent to the CN.
[57] 在上述处理过程中, HA接收到 CN发送的第二 IP报文后, 所述第二 IP报文的源 地址为所述 CN的地址, 目的地址为所述 MN的 ΗοΑ, 所述 HA根据所述 CN的地址 査询所述关联关系信息获取所述 CN的地址对应的标识, 将所述第二 IP报文的目 的地址替换为所述 MN的 CoA, 源地址替换为所述 HAA, 将所述标识携带在所述 进行了替换处理的第二 IP报文中后, 将所述第二 IP报文发送给所述 MN。  [57] In the foregoing process, after the HA receives the second IP packet sent by the CN, the source address of the second IP packet is the address of the CN, and the destination address is ΗοΑ of the MN. The HA queries the association information according to the address of the CN to obtain an identifier corresponding to the address of the CN, and replaces the destination address of the second IP packet with the CoA of the MN, and replaces the source address with the HAA. After the identifier is carried in the second IP packet that has undergone the replacement process, the second IP packet is sent to the MN.
[58] 所述 MN接收所述 HA发送的第二 IP报文, 提取出该第二 IP报文中的所述标识, 所述 MN根据所述标识査询所述关联关系信息获取所述标识对应的 CN的地址, 将所述第二 IP报文的源地址替换为 CN的地址, 目的地址替换为 HoA。  [0] The MN receives the second IP packet sent by the HA, and extracts the identifier in the second IP packet, and the MN queries the association relationship information according to the identifier to obtain the identifier. The address of the corresponding CN is replaced by the source address of the second IP packet with the address of the CN, and the destination address is replaced by the HoA.
[59] 进一步地, 上述 CN的地址对应的标识可以是一个比 IPv6地址短的整数, 也可 以称为标签。 在实际应用中, 该标识可以为: 保存所述 CN的地址的绑定缓存条 目的标识。  [59] Further, the identifier corresponding to the address of the CN may be an integer shorter than the IPv6 address, and may also be referred to as a label. In an actual application, the identifier may be: an identifier of a binding cache entry that stores an address of the CN.
[60] 为便于对本发明实施例的理解, 下面将结合附图以几个具体实施例为例做进一 步的解释说明, 且各个实施例并不构成对本发明实施例的限定。  The following is a description of the embodiments of the present invention, and the embodiments of the present invention are not to be construed as limiting.
[61] 实施例一 [61] Embodiment 1
[62] 本发明实施例一提供的一种移动 IP中的报文传输方法的处理流程如图 6所示, 包括如下处理步骤: [62] A processing flow of a message transmission method in mobile IP according to Embodiment 1 of the present invention is shown in FIG. Including the following processing steps:
[63] 步骤 61、 MN向 HA发送携带了 CN1的地址的 BU消息。 [63] Step 61: The MN sends a BU message carrying the address of CN1 to the HA.
[64] 当 MN需要通过 HA与 CN1进行通信吋, MN在 BU消息中添加一移动 CN选项, 该移动 CN选项中包含 CN1的地址。 然后, MN向 HA发送携带了上述移动 CN选项 的 BU消息。  [64] When the MN needs to communicate with CN1 through HA, the MN adds a mobile CN option to the BU message, which includes the address of CN1. Then, the MN sends a BU message carrying the above mobile CN option to the HA.
[65] 步骤 62、 HA将接收到的 CN1的地址进行保存, 并记录一个与所述 CN1的地址对 应的标识 ID 1。  [65] Step 62: The HA saves the received address of the CN1, and records an identifier ID 1 corresponding to the address of the CN1.
[66] HA收到来自 MN的上述 BU消息后, 对该 BU消息进行验证, 在验证通过后, 从 所述 BU消息中获取上述移动 CN选项中包含的 CN1的地址信息。  [66] After receiving the BU message from the MN, the HA verifies the BU message, and after the verification succeeds, acquires the address information of the CN1 included in the mobile CN option from the BU message.
[67] HA在本地保存的 CN列表中査找 CN1的地址信息, 如果査不到则将 CN1的地址 信息添加到 CN列表中, 并记录一个与 CN1的地址对应的标识 ID1。 在 HA中还要 存储 MN的 CoA与 HoA的对应关系。  [67] The HA searches for the address information of CN1 in the locally saved CN list, and if not, adds the address information of CN1 to the CN list, and records an identifier ID1 corresponding to the address of CN1. The correspondence between the CoA of the MN and the HoA is also stored in the HA.
[68] 步骤 63、 HA将 CN1的地址和相应的标识 ID1发送给 MN。  [68] Step 63: The HA sends the address of the CN1 and the corresponding identifier ID1 to the MN.
[69] 当 HA需要向 MN回复 B A消息吋, HA在 BA消息中添加一移动 CN选项, 该移动 CN选项中包含 CN1的地址信息和相应的 ID1。 然后, HA将携带了该移动 CN选项 的 BA消息发送给 MN。  [69] When the HA needs to reply to the MN message, the HA adds a mobile CN option to the BA message, and the mobile CN option includes the address information of CN1 and the corresponding ID1. The HA then sends a BA message carrying the mobile CN option to the MN.
[70] MN收到上述 BA消息后, 从所述 BA消息中获取上述 CN1的地址信息和相应的 I [70] After receiving the foregoing BA message, the MN obtains the address information of the CN1 and the corresponding I from the BA message.
Dl, 并进行关联存储。 同样, 在 MN中还要存储 MN的 CoA与 HoA的对应关系。 Dl, and associate storage. Similarly, the correspondence between the MN's CoA and the HoA is also stored in the MN.
[71] 步骤 64、 MN向 HA发送携带 CN1的地址信息对应的标识 ID1的 IP报文, HA对该 I[71] Step 64: The MN sends an IP packet carrying the identifier ID1 corresponding to the address information of the CN1 to the HA, and the HA is the I.
P报文的源地址和目的地址进行替换后, 再发送给 CN1。 After the source and destination addresses of the P packet are replaced, they are sent to CN1.
[72] MN向 CNl发送 IP报文吋, 该 IP报文的源地址为 MN的转交地址 CoA, 目的地址 为 HA的地址 HAA。 MN在该 IP报文的头部中添加上述 CNl的地址信息对应的 ID1[72] The MN sends an IP packet to CN1. The source address of the IP packet is the care-of address CoA of the MN, and the destination address is the HA address of the HA. The MN adds the ID1 corresponding to the address information of the above CN1 in the header of the IP packet.
, 该 ID1携带在 IP报文的头部中的目的地址的选项中。 , ID1 is carried in the option of the destination address in the header of the IP packet.
[73] 该 MN发送的在目的地址的选项中携带了 CN1的地址信息对应的 ID1的报文格式 示意图如图 7所示。 [73] The message format of the ID1 corresponding to the address information of the CN1 in the option of the destination address sent by the MN is as shown in FIG. 7.
[74] HA收到上述 MN发送的 IP报文后, 提取该 IP报文中携带的上述 ID1, 以及源地 址 CoA、 目的地址 HAA。 然后, HA根据上述 ID1査询其保存的上述 CN列表, 获 取上述 ID1对应的 CN1的地址, 再根据 CoA获取其关联保存的 HoA。 [75] 然后, HA使用 HoA代替上述 IP报文的源地址 CoA, 使用 CNl的地址代替上述 IP 报文的目的地址 HAA, 将进行了地址替换后的 IP报文发送给 CN1。 [74] After receiving the IP packet sent by the MN, the HA extracts the ID1 carried in the IP packet, and the source address CoA and the destination address HAA. Then, the HA queries the saved CN list according to the above ID1, obtains the address of the CN1 corresponding to the ID1, and acquires the HoA associated with the association according to the CoA. [75] Then, the HA uses the HoA to replace the source address CoA of the IP packet, and replaces the IP address of the IP packet with the address of the CN1, and sends the IP packet with the address replacement to CN1.
[76] 步骤 65、 HA接收到 CN1发送给 MN的 IP报文, 对该 IP报文的源地址和目的地址 进行替换后, 再发送给 MN。  [76] Step 65: The HA receives the IP packet sent by the CN1 to the MN, and replaces the source address and the destination address of the IP packet, and then sends the IP packet to the MN.
[77] CNl向 MN发送 IP报文, 该 IP报文的源地址为 CNl的地址, 目的地址为 MN的 Ho A。  [77] CN1 sends an IP packet to the MN. The source address of the IP packet is the address of CN1, and the destination address is Ho A of the MN.
[78] HA接收到上述 CNl发送给 MN的 IP报文, 提取出该 IP报文中的 CNl的地址和 Ho A。 然后, HA根据上述 CNl的地址査询其保存的上述 CN列表, 获取上述 CN1的 地址对应的标识 ID1, 再根据 HoA获取其关联保存的 CoA。 HA将上述 IDl添加在 报文头中, 将报文中的源地址替换为 HAA, 目的地址替换为 CoA后发送给 MN。 该 HA发送的在报文头中携带了 CNl的地址信息对应的标识 IDl的报文格式示意图 如图 8所示。  [78] The HA receives the IP packet sent by the CN1 to the MN, and extracts the address of the CN1 and the Ho A in the IP packet. Then, the HA queries the saved CN list according to the address of the above CN1, obtains the identifier ID1 corresponding to the address of the CN1, and acquires the CoA saved by the association according to the HoA. The HA adds the above ID1 to the packet header, replaces the source address in the packet with the HAA, and replaces the destination address with the CoA and sends it to the MN. A schematic diagram of a packet format of the identifier ID1 corresponding to the address information of the CN1 in the packet header is shown in FIG. 8.
[79] MN接收到上述 HA发送的 IP报文后, 提取出该 IP报文中的 ID 1、 HAA和 CoA。  [79] After receiving the IP packet sent by the HA, the MN extracts the ID 1, HAA, and CoA in the IP packet.
然后, MN根据上述 IDl获取其关联保存的 CNl的地址, 再根据 CoA获取其关联保 存的 HoA。  Then, the MN obtains the address of the CN1 whose association is saved according to the above ID1, and acquires the HoA whose association is saved according to the CoA.
[80] MN将该 IP报文的源地址替换为 CNl的地址, 目的地址替换为 HoA。  [80] The MN replaces the source address of the IP packet with the address of CN1, and replaces the destination address with HoA.
[81] 实施例二 [81] Example 2
[82] 本发明实施例二提供的一种移动 IP中的报文传输方法的处理流程如图 9所示, 包括如下处理步骤:  [82] The processing flow of the packet transmission method in the mobile IP provided by the second embodiment of the present invention is as shown in FIG. 9, and includes the following processing steps:
[83] 步骤 91、 MN给 CN1分配标识 ID1, 将 CNl和对应的标识 IDl发送给 HA。  [83] Step 91: The MN assigns the identifier ID1 to the CN1, and sends the CN1 and the corresponding identifier ID1 to the HA.
[84] 当 MN打算与 CNl使用经由 HA的双向隧道模式进行通信吋, MN为 CN1分配一 个标识 ID 1, 该标识用于区分与 MN通信的不同 CN。  [84] When the MN intends to communicate with CN1 using the bidirectional tunnel mode via HA, the MN assigns CN1 an identification ID 1, which is used to distinguish between different CNs communicating with the MN.
[85] 然后, MN向 HA发送 BU消息, 在 BU消息中添加一移动选项, 该移动选项中包 含 CN 1的地址及对应的标识 ID 1。 [85] Then, the MN sends a BU message to the HA, and adds a mobility option to the BU message, the mobile option including the address of CN 1 and the corresponding identification ID 1.
[86] 步骤 92、 HA保存接收到的 CN1和对应的标识 ID1信息。 [86] Step 92: The HA saves the received CN1 and the corresponding ID1 information.
[87] HA收到来自 MN的上述 BU消息后, 对该 BU消息进行验证, 在验证通过后, 在 相应的 BCE1 (Binding Cache  [87] After receiving the above BU message from the MN, the HA verifies the BU message. After the verification is passed, the corresponding BCE1 (Binding Cache)
Entry, 绑定缓存条目) 中保存 CN1的地址和对应的 ID1信息。 [88] HA向 MN回复 BA消息。 Entry, binding cache entry) saves the address of CN1 and the corresponding ID1 information. [88] HA replies to the BA message to the MN.
[89] 步骤 93、 MN向 HA发送携带 CNl对应的标识 IDl的 IP报文, HA对该 IP报文的源 地址和目的地址进行替换后, 再发送给 CN1。  [89] Step 93: The MN sends an IP packet carrying the identifier ID1 corresponding to the CN1 to the HA, and the HA replaces the source address and the destination address of the IP packet, and then sends the packet to the CN1.
[90] 当 MN需要向 CNl发送 IP报文吋, 该 IP报文的源地址为 MN的转交地址 CoA, 目 的地址为 HA的地址 HAA。 MN在该 IP报文的头部中添加上述 CN 1对应的标识 ID 1 [90] When the MN needs to send an IP packet to CN1, the source address of the IP packet is the care-of address CoA of the MN, and the destination address is the HA address of the HA. The MN adds the identifier ID 1 corresponding to the CN 1 in the header of the IP packet.
[91] 上述 MN发送的 IP报文被 HA收到, HA提取该 IP报文中的 ID 1、 CoA和 ΗΑΑ, 根 据所述 IDl索引到相应的 BCEl , 获取 BCEl中存储的对应的 CNl的地址。 HA还根 据 CoA査询其关联保存的 HoA。 [91] The IP packet sent by the MN is received by the HA, and the HA extracts the ID 1, CoA, and ΗΑΑ in the IP packet, and indexes the corresponding BCEl according to the ID1 to obtain the address of the corresponding CN1 stored in the BCEl. . The HA also queries the HoA whose association is saved based on the CoA.
[92] 然后, HA使用 HoA代替上述 IP报文的源地址 CoA, 使用 CNl的地址代替上述 IP 报文的目的地址 HAA, 将进行了地址替换后的 IP报文发送给 CN1。  [92] Then, the HA uses the HoA to replace the source address CoA of the IP packet, and uses the address of the CN1 to replace the destination address HAA of the IP packet, and sends the IP packet with the address replacement to CN1.
[93] 实施例三  [93] Example 3
[94] 本发明实施例三提供的一种移动 IP中的报文传输方法的处理流程如图 10所示, 包括如下处理步骤:  [00] The processing flow of the packet transmission method in the mobile IP provided by the third embodiment of the present invention is as shown in FIG. 10, and includes the following processing steps:
[95] 步骤 101、 MN向 HA发送携带了 CN1的地址的 BU消息。 [95] Step 101: The MN sends a BU message carrying the address of CN1 to the HA.
[96] 当 MN需要通过 HA与 CN1进行通信吋, MN在 BU消息中添加一移动 CN选项, 该移动 CN选项中包含 CN1的地址。 然后, MN向 HA发送携带了上述移动 CN选项 的 BU消息。  [96] When the MN needs to communicate with CN1 through HA, the MN adds a mobile CN option to the BU message, which contains the address of CN1. Then, the MN sends a BU message carrying the above mobile CN option to the HA.
[97] 步骤 102、 HA将接收到的 CN1的地址信息在 BCE1中进行保存。  [97] Step 102: The HA saves the received address information of CN1 in BCE1.
[98] HA收到来自 MN的上述 BU消息后, 对该 BU消息进行验证, 在验证通过后, 获 取上述移动 CN选项中包含的 CN1的地址信息。  [98] After receiving the BU message from the MN, the HA verifies the BU message, and after the verification is passed, obtains the address information of the CN1 included in the mobile CN option.
[99] HA在 BCE1中存储 CN1的地址和对应的 BCE1的标识 ID1信息。 在 HA中还要存储[99] The HA stores the address of CN1 and the corresponding ID1 information of BCE1 in BCE1. Also store in HA
MN的 CoA与 HoA的对应关系。 The correspondence between MN's CoA and HoA.
[100] 步骤 103、 HA将 CN1的地址信息和对应的 BCE1的标识 ID1发送给 MN。 [100] Step 103: The HA sends the address information of CN1 and the identifier ID1 of the corresponding BCE1 to the MN.
[101] 当 HA需要向 MN回复 B A消息吋, HA在 BA消息中添加一移动 CN选项, 该移动[101] When the HA needs to reply to the MN with a B A message, the HA adds a mobile CN option to the BA message, the move
CN选项中包含上述 CN1的地址信息和对应的 BCE1的标识 ID1。 然后, HA将携带 了该移动 CN选项的 BA消息发送给 MN。 The CN option includes the address information of the above CN1 and the identifier ID1 of the corresponding BCE1. The HA then sends the BA message carrying the mobile CN option to the MN.
[102] MN收到上述 BA消息后, 从所述 BA消息中获取上述 CN1的地址信息和对应的 B CE1的标识 ID1, 并进行关联存储。 同样, 在 MN中还要存储 MN的 CoA与 HoA的 对应关系。 [102] After receiving the foregoing BA message, the MN obtains the address information of the CN1 and the corresponding B from the BA message. CE1 identifies ID1 and stores it in association. Similarly, the correspondence between the CoA of the MN and the HoA is also stored in the MN.
[103] 步骤 104、 MN向 HA发送携带 BCE1的标识 ID1的 IP报文, HA对该 IP报文的源地 址和目的地址进行替换后, 再发送给 CN1。  [103] Step 104: The MN sends an IP packet carrying the ID1 of the BCE1 to the HA, and the HA replaces the source address and the destination address of the IP packet, and then sends the packet to the CN1.
[104] 当 MN需要向 CN1发送 IP报文吋, 该 IP报文的源地址为 MN的转交地址 CoA, 目 的地址为 HA的地址 HAA。 MN在该 IP报文的头部中添加上述 BCE1的标识 ID1, 该 BCE1的标识 ID1携带在 IP报文的头部中的目的地址的选项中。  [104] When the MN needs to send an IP packet to CN1, the source address of the IP packet is the care-of address CoA of the MN, and the destination address is the HA address of the HA. The MN adds the identifier ID1 of the BCE1 to the header of the IP packet, and the identifier ID1 of the BCE1 is carried in the option of the destination address in the header of the IP packet.
[105] 上述 MN发送的 IP报文被 HA收到, HA提取该 IP报文中携带的上述 BCE1的标识 I D1 , 以及源地址 CoA、 目的地址 HAA。 然后, HA根据上述 BCE1的标识 ID1査询 相应的 BCE1 , 再获取 BCE1中存储的 CN1的地址。 HA还根据 CoA获取其关联保 存的 HoA。  [105] The IP packet sent by the MN is received by the HA, and the HA extracts the identifier I D1 of the BCE1 carried in the IP packet, and the source address CoA and the destination address HAA. Then, the HA queries the corresponding BCE1 according to the identifier ID1 of the BCE1, and acquires the address of the CN1 stored in the BCE1. The HA also obtains the HoA whose association is saved based on the CoA.
[106] 然后, HA使用 HoA代替上述 IP报文的源地址 CoA, 使用 CN1的地址代替上述 IP 报文的目的地址 HAA, 将进行了地址替换后的 IP报文发送给 CN1。  [106] Then, the HA uses the HoA to replace the source address CoA of the IP packet, and uses the address of CN1 to replace the destination address HAA of the IP packet, and sends the IP packet with the address replacement to CN1.
[107] 本发明实施例提供的一种 HA的结构示意图如图 11所示, 所述 HA是移动节点 M N的家乡代理, 当所述 MN漫游到外地网络吋, 所述 HA用于转发 MN和通信对端 CN之间通信的 IP报文, 所述 IP报文包括 MN发送给 CN的第一 IP报文和 CN发送给 MN的第二 IP报文, 该 HA包括如下模块:  [107] A schematic structural diagram of an HA according to an embodiment of the present invention is shown in FIG. 11. The HA is a home agent of a mobile node MN, and when the MN roams to a foreign network, the HA is used to forward the MN and The IP packet of the communication between the peer CNs, the IP packet includes a first IP packet sent by the MN to the CN, and a second IP packet sent by the CN to the MN, where the HA includes the following modules:
[108] 关联关系存储模块 111, 用于存储所述 CN的地址和所述 CN的地址对应的标识 之间的关联关系。 HA获取所述 CN的地址和所述对应的标识的方式至少有两种: 一种方式是 HA收到所述 MN发送过来的所述 CN的地址后, 给该 CN的地址分配对 应的标识; 另一种方式是 HA直接从所述 MN发来的 BU消息中提取所述 CN地址和 所述对应的标识。  [108] The association relationship storage module 111 is configured to store an association relationship between the address of the CN and the identifier corresponding to the address of the CN. There are at least two ways for the HA to obtain the address of the CN and the corresponding identifier. One mode is that after the HA receives the address of the CN sent by the MN, the HA assigns a corresponding identifier to the address of the CN. Another way is that the HA extracts the CN address and the corresponding identifier directly from the BU message sent by the MN.
[109] 报文接收模块 112, 用于接收所述 MN和 CN之间通信的 IP报文。 进一步地, 当 由所述 MN给所述 CN的地址分配对应的标识吋, 所述报文接收模块 112还用于接 收所述 MN发送过来的所述 CN的地址和所述 CN的地址对应的标识, 所述 CN的地 址和所述 CN的地址对应的标识可以携带于所述 MN向所述 HA发送的 BU消息; 当 HA为所述 CN的地址分配所述对应的标识吋, 所述报文接收模块 112还用于接收 所述 MN发送的所述 CN的地址, 所述 CN的地址可以携带于所述 MN向所述 HA发 送的 BU消息。 [109] The message receiving module 112 is configured to receive an IP packet for communication between the MN and the CN. Further, when the MN sends the corresponding identifier to the address of the CN, the message receiving module 112 is further configured to receive the address of the CN sent by the MN and the address of the CN. And the identifier corresponding to the address of the CN and the address of the CN may be carried in a BU message sent by the MN to the HA; when the HA allocates the corresponding identifier to the address of the CN, the report The text receiving module 112 is further configured to receive an address of the CN sent by the MN, where the address of the CN may be carried by the MN to the HA The BU message sent.
[110] 地址转换模块 113, 用于根据所述第一 IP报文中携带的所述对应的标识査询所 述关联关系存储模块 111所存储的关联关系并从中获取所述 CN的地址, 将所述 C N的地址作为所述第一 IP报文的目的地址, 对所述第一 IP报文进行地址转换, 其 中所述 CN的地址对应的标识可以携带于所述第一 IP报文的报文头中, 如图 7中 In dex选项所示, 所述 Index选项中可以包括 1B的标识类型 (Type) 、 IB的标识长 度 (Length) 和具体的标识内容信息 (Index) ; 以及, 根据所述第二 IP报文中 携带的所述 CN的地址査询所述关联关系存储模块 111所存储的关联关系并从中获 取所述 CN的地址对应的标识, 对所述第二 IP报文进行地址转换。  [110] The address conversion module 113 is configured to query the association relationship stored by the association relationship storage module 111 according to the corresponding identifier carried in the first IP packet, and obtain an address of the CN from the The address of the CN is used as the destination address of the first IP packet, and performs address translation on the first IP packet, where the identifier corresponding to the address of the CN may be carried in the report of the first IP packet. In the header, as shown in the In dex option in FIG. 7, the Index option may include an identifier type (Type) of 1B, an identifier length (Length) of IB, and specific identifier content information (Index); The address of the CN carried in the second IP packet is used to query the association relationship stored by the association relationship storage module 111, and obtain an identifier corresponding to the address of the CN, and perform an address on the second IP packet. Conversion.
[111] 上述将所述 CN的地址作为所述第一 IP报文的目的地址, 对所述第一 IP报文进行 地址转换具体包括: 将所述第一 IP报文的源地址由所述 MN的转交地址 CoA替换 为所述 MN的家乡地址 ΗοΑ, 并将所述第一 IP报文的目的地址由所述 HA的地址 H AA替换为所述 CN的地址。  [111] The address of the CN is used as the destination address of the first IP packet, and performing address translation on the first IP packet specifically includes: using the source address of the first IP packet by the The care-of address CoA of the MN is replaced with the home address of the MN, and the destination address of the first IP packet is replaced by the address of the HA, H AA, with the address of the CN.
[112] 上述对所述第二 IP报文进行地址转换具体包括: 将所述第二 IP报文的源地址由 所述 CN的地址替换为所述 HA的地址 HAA, 将所述第二 IP报文的目的地址由所述 MN的家乡地址 HoA替换为所述 MN的转交地址 CoA, 并将所述标识携带在所述 第二 IP报文中。 其中, 所述 CN的地址对应的标识可以携带于所述第二 IP报文的 报文头中, 如图 8中 Index选项所示。  The address conversion of the second IP packet includes: replacing the source address of the second IP packet with the address of the CN by the HA address of the HA, and using the second IP address. The destination address of the message is replaced by the home address HoA of the MN as the care-of address CoA of the MN, and the identifier is carried in the second IP packet. The identifier corresponding to the address of the CN may be carried in the header of the second IP packet, as shown by the Index option in FIG.
[113] 报文发送模块 114, 用于将经所述地址转换模块 113进行地址转换后的所述 IP报 文发送给作为所述 IP报文的接收端的 CN或 MN。 进一步地, 当所述 HA接收所述 MN发送的携带了所述 CN的地址和所述 CN的地址对应的标识的 BU消息吋, 所述 报文发送模块 114还用于向所述 MN回复 BA消息, 以确认已收到所述 CN地址和所 述 CN的地址对应的标识; 当所述 HA为所述 CN的地址分配对应的标识吋, 所述 报文发送模块 114还用于将所述 CN的地址和所述 CN的地址对应的标识发送给所 述 MN, 所述 CN的地址和所述 CN的地址对应的标识可以携带于所述 HA向所述 M N发送的 BA消息中。  The message sending module 114 is configured to send the IP packet that has been address-converted by the address translation module 113 to the CN or MN that is the receiving end of the IP packet. Further, when the HA receives the BU message that is sent by the MN and carries the identifier corresponding to the address of the CN and the address of the CN, the message sending module 114 is further configured to reply the BA to the MN. a message, to confirm that the identifier corresponding to the CN address and the address of the CN has been received; and when the HA is configured to assign a corresponding identifier to the address of the CN, the packet sending module 114 is further configured to: An identifier corresponding to the address of the CN and the address of the CN is sent to the MN, and the identifier corresponding to the address of the CN and the address of the CN may be carried in the BA message sent by the HA to the MN.
[114] 所述 HA还可以包括:  [114] The HA may further include:
[115] 标识分配模块 115, 用于给所述报文接收模块 112接收的所述 CN的地址分配所 述 CN的地址对应的标识, 该标识用于唯一地识别出所述 CN的地址。 [115] an identifier allocation module 115, configured to address the address of the CN received by the message receiving module 112 An identifier corresponding to the address of the CN, the identifier being used to uniquely identify the address of the CN.
[116] 上述实施例提供的 HA也可以实现单方向转发 MN和 CN之间通信的 IP报文的形 态存在, [116] The HA provided by the foregoing embodiment may also implement the unidirectional forwarding of the IP packet of the communication between the MN and the CN.
HA中的各模块也对应地用于实现单方向转发 MN和 CN之间通信的 IP报文。 换言 之, 本发明实施例还提供一种用于转发 MN向 CN发送的第一 IP报文的 HA, 和一 种用于转发 CN向 MN发送的第二 IP报文的 HA。  Each module in the HA is also used to implement an IP packet for forwarding between the MN and the CN in one direction. In other words, the embodiment of the present invention further provides an HA for forwarding a first IP packet sent by the MN to the CN, and an HA for forwarding the second IP packet sent by the CN to the MN.
[117] 本发明实施例提供的一种移动节点 MN的结构示意图如图 12所示, 所述 MN的家 乡代理为 HA, 所述 MN用于通过所述 HA与通信对端 CN进行通信, 当所述 MN漫 游到外地网络吋, 所述 HA用于转发 MN和 CN之间通信的 IP报文, 所述 IP报文包 括所述 MN发送给所述 CN的第一 IP报文和所述 CN发送给所述 MN的第二 IP报文, 该 MN包括如下模块: [117] A schematic diagram of a structure of a mobile node MN according to an embodiment of the present invention is shown in FIG. 12, the home agent of the MN is an HA, and the MN is used to communicate with the communication CN through the HA. The MN roams to the foreign network, and the HA is used to forward the IP packet of the communication between the MN and the CN, where the IP packet includes the first IP packet sent by the MN to the CN and the CN A second IP packet sent to the MN, where the MN includes the following modules:
[118] 关联关系存储模块 121, 用于存储所述 CN的地址和所述 CN的地址对应的标识 之间的关联关系。 MN获取所述 CN的地址和所述 CN的地址对应的标识的方式至 少有两种: 一种方式是将所述 CN的地址发给所述 HA后, 在所述 HA给上述 CN的 地址分配对应的标识后, 接收所述 HA返回的所述 CN的地址和所述 CN的地址对 应的标识; 另一种方式是直接为所述 CN的地址分配对应的标识。  [118] The association relationship storage module 121 is configured to store an association relationship between an address of the CN and an identifier corresponding to the address of the CN. There are at least two ways for the MN to obtain the identifier corresponding to the address of the CN and the address of the CN. One way is to allocate the address of the CN to the HA, and allocate the address of the CN to the CN. After the corresponding identifier, the address corresponding to the CN returned by the HA and the identifier corresponding to the address of the CN are received; another way is to directly assign a corresponding identifier to the address of the CN.
[119] 报文发送模块 122, 用于根据所述第一 IP报文的接收端 CN的地址査询所述关联 关系存储模块 121中存储的关联关系并从中获取所述 CN的地址对应的标识, 将所 述标识添加于所述第一 IP报文中, 并向所述 HA发送携带了所述标识的所述第一 I P报文, 所述第一 IP报文的源地址为所述 MN的 CoA, 目的地址为所述 HA的地址 HAAo 其中, 所述 CN的地址对应的标识可以携带于所述第一 IP报文的报文头中 , 如图 7中 Index选项所示, 所述 Index选项中可以包括 1B的标识类型 (Type) 、 1 B的标识长度 (Length) 和具体的标识内容信息 (Index) 。  The message sending module 122 is configured to query the association relationship stored in the association relationship storage module 121 according to the address of the receiving end CN of the first IP packet, and obtain an identifier corresponding to the address of the CN Adding the identifier to the first IP packet, and sending the first IP packet carrying the identifier to the HA, where the source address of the first IP packet is the MN The CoA, the destination address is the address of the HA, HAAo, where the identifier corresponding to the address of the CN may be carried in the header of the first IP packet, as shown by the Index option in FIG. The options may include 1B's identification type (Type), 1 B's identification length (Length), and specific identification content information (Index).
[120] 进一步地, 当所述 MN为所述 CN的地址分配对应的标识吋, 所述报文发送模块 122还用于向所述 HA发送所述 CN的地址和所述 CN的地址对应的标识, 所述 CN 的地址和所述 CN的地址对应的标识可以携带于所述 MN向所述 HA发送的 BU消息 中; 当所述 HA为所述 CN的地址分配对应的标识吋, 所述报文发送模块 122还用 于向所述 HA发送所述 CN的地址, 所述 CN的地址可以携带于所述 MN向所述 HA 发送的 BU消息中。 [120] Further, when the MN allocates a corresponding identifier for the address of the CN, the packet sending module 122 is further configured to send, by the HA, the address of the CN and the address of the CN. And the identifier corresponding to the address of the CN and the address of the CN may be carried in a BU message sent by the MN to the HA; when the HA is assigned an identifier corresponding to the address of the CN, The message sending module 122 is further configured to send the address of the CN to the HA, where the address of the CN may be carried by the MN to the HA The BU message sent.
[121] 所述 MN还可以包括: [121] The MN may further include:
[122] 报文接收模块 123, 用于接收所述 HA转发的携带了所述 CN的地址对应的标识 的第二 IP报文, 根据所述第二 IP报文中携带的所述标识査询所述关联关系存储模 块 121中存储的所述关联关系, 并从中获取所述标识对应的 CN的地址, 将所述第 二 IP报文的源地址替换为所述 CN的地址, 将所述第二 IP报文的目的地址替换为 所述 MN的家乡地址 HoA。 其中, 所述标识可以携带于所述第二 IP报文的报文头 中, 如图 8中 Index选项所示。  [122] The message receiving module 123 is configured to receive a second IP packet that is forwarded by the HA and that carries an identifier corresponding to the address of the CN, and is configured according to the identifier that is carried in the second IP packet. The association relationship is stored in the association relationship, and the source address of the CN corresponding to the identifier is obtained, and the source address of the second IP packet is replaced with the address of the CN. The destination address of the second IP packet is replaced with the home address HoA of the MN. The identifier may be carried in the header of the second IP packet, as shown by the Index option in FIG.
[123] 进一步地, 当所述 MN为所述 CN的地址分配对应的标识, 并向所述 HA发送携 带了所述 CN的地址和所述 CN的地址对应的标识的 BU消息吋, 所述报文接收模 块 123还用于接收所述 HA回复的 BA消息; 当所述 HA为所述 CN的地址分配对应 的标识吋, 所述报文接收模块 123还用于接收所述 HA发送的所述 CN的地址和所 述 CN的地址对应的标识, 所述 CN的地址和所述 CN的地址对应的标识可以携带 于所述 HA回复的 B A消息中。  [123] Further, when the MN allocates a corresponding identifier to the address of the CN, and sends a BU message carrying the identifier of the CN and the identifier corresponding to the address of the CN to the HA, The message receiving module 123 is further configured to receive the BA message that is replied by the HA. The message receiving module 123 is further configured to receive the HA sent by the HA. An identifier corresponding to the address of the CN and the address of the CN, and the identifier corresponding to the address of the CN and the address of the CN may be carried in the BA message replied by the HA.
[124] 所述 MN还可以包括:  [124] The MN may further include:
[125] 标识分配模块 124, 用于给所述 CN的地址分配对应的标识, 该标识用于唯一地 识别出所述 CN的地址。  [125] The identifier allocation module 124 is configured to allocate a corresponding identifier to the address of the CN, where the identifier is used to uniquely identify the address of the CN.
[126] 本发明实施例还提供一种用于传输移动 IP报文的系统, 包括至少一家乡代理 H A, 所述家乡代理 HA用于接收对应的移动节点 MN发送给通信对端 CN的第一 IP 报文和所述 CN发送给所述 MN的第二 IP报文; 根据所述第一 IP报文中携带的与所 述 CN的地址对应的标识査询本地存储的所述 CN的地址和所述 CN的地址对应的 标识之间的关联关系, 并从所述关联关系中获取所述 CN的地址, 将所述第一 IP 报文的源地址由所述 MN的转交地址 CoA替换为所述 MN的家乡地址 ΗοΑ, 并将 所述第一 IP报文的目的地址由所述 HA的地址 HAA替换为所述 CN的地址; 以及, 根据所述第二 IP报文中携带的所述 CN的地址査询所述关联关系并从中获取所述 C N的地址对应的标识, 将所述第二 IP报文的源地址由所述 CN的地址替换为所述 H A的地址 HAA, 将所述第二 IP报文的目的地址由所述 MN的家乡地址 HoA替换为 所述 MN的转交地址 CoA, 并将所述标识携带在所述第二 IP报文中; 将进行地址 转换后的所述 IP报文发送给作为所述 IP报文的接收端的 CN或 MN。 [126] The embodiment of the present invention further provides a system for transmitting a mobile IP packet, including at least one home agent HA, where the home agent HA is configured to receive a first mobile node MN to send to the communication peer CN. The IP packet and the second IP packet sent by the CN to the MN; querying the locally stored address of the CN according to the identifier corresponding to the address of the CN carried in the first IP packet The association between the identifiers corresponding to the addresses of the CN, and the address of the CN is obtained from the association relationship, and the source address of the first IP packet is replaced by the care-of address CoA of the MN. The home address of the MN is ΗοΑ, and the destination address of the first IP packet is replaced by the address HAA of the HA to the address of the CN; and, according to the CN carried in the second IP packet Querying the association relationship and obtaining an identifier corresponding to the address of the CN, and replacing the source address of the second IP packet with the address of the CN by the address HAA of the HA, The destination address of the second IP packet is replaced by the home address HoA of the MN as the handover destination of the MN. Address CoA, and carrying the identifier in the second IP packet; The converted IP packet is sent to the CN or MN that is the receiving end of the IP packet.
[127] 综上所述, 利用本发明实施例所述方法、 系统和装置, 当 MN与多个 CN进行通 信吋, MN不必支持多 CoA功能, 不必为与之通信的每个 CN配置一个 CoA。 [127] In summary, with the method, system and device according to the embodiment of the present invention, when the MN communicates with multiple CNs, the MN does not have to support multiple CoA functions, and it is not necessary to configure one CoA for each CN that communicates with it. .
[128] 对 HA和 MN而言, 由于应用了本发明实施例后的报文中携带了 CN的地址对应 的 ID, HA和 MN容易区分出接收到的报文是否是应用了本发明实施例后的报文[128] For the HA and the MN, since the packet to which the embodiment of the present invention is applied carries the ID corresponding to the address of the CN, the HA and the MN can easily distinguish whether the received packet is applied to the embodiment of the present invention. Post message
, 进而对报文进行相应的处理。 Then, the message is processed accordingly.
[129] 由于 CN的地址对应的 ID是一个比较短的数值, 因此, 本发明实施例对 HA和 M[129] Since the ID corresponding to the address of the CN is a relatively short value, the embodiment of the present invention is for HA and M.
N的存储资源的占用相对较少。 N's storage resources are relatively small.
[130] 通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发明可以 通过硬件实现, 也可以可借助软件加必要的通用硬件平台的方式来实现基于这 样的理解, 本发明的技术方案可以以软件产品的形式体现出来, 该软件产品可 以存储在一个计算机可读存储介质 (可以是 CD-ROM, U盘, 移动硬盘等) 中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网 络设备等) 执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or can be realized by means of software plus necessary general hardware platform, the present invention. The technical solution can be embodied in the form of a software product, which can be stored in a computer readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a plurality of instructions for making a computer device (may be a personal computer, server, or network device, etc.) Perform the methods described in various embodiments of the present invention.
[131] 以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围 应该以权利要求的保护范围为准。 The above description is only a preferred 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 within the technical scope disclosed by the present invention. Changes or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
[1] 一种移动 IP报文的传输方法, 其特征在于, 包括:  [1] A method for transmitting a mobile IP packet, comprising:
移动节点 MN的家乡代理 HA接收所述 MN发送给通信对端 CN的第一 IP报文 所述 HA根据所述第一 IP报文中携带的与所述 CN的地址对应的标识査询本 地存储的所述 CN的地址和所述对应的标识之间的关联关系, 并从所述关联 关系中获取所述 CN的地址; 所述 HA将所述第一 IP报文的源地址由所述 MN 的转交地址 CoA替换为所述 MN的家乡地址 ΗοΑ, 并将所述第一 IP报文的目 的地址由所述 HA的地址 HAA替换为所述 CN的地址;  The home agent HA of the mobile node MN receives the first IP packet sent by the MN to the communication peer CN, and the HA queries the local storage according to the identifier corresponding to the address of the CN carried in the first IP packet. The association between the address of the CN and the corresponding identifier, and the address of the CN is obtained from the association relationship; the HA uses the source address of the first IP packet by the MN The care-of address CoA is replaced with the home address ΗοΑ of the MN, and the destination address of the first IP packet is replaced by the address HAA of the HA to the address of the CN;
所述 HA将进行地址转换后的所述第一 IP报文发送给作为所述第一 IP报文的 接收端的 CN。  The HA sends the first IP packet after the address translation to the CN that is the receiving end of the first IP packet.
[2] 根据权利要求 1所述的移动 IP报文的传输方法, 其特征在于, 所述的移动节 点 MN的家乡代理 HA接收所述 MN发送给通信对端 CN的第一 IP报文之前, 还包括:  [2] The method for transmitting a mobile IP packet according to claim 1, wherein the home agent HA of the mobile node MN receives the first IP packet sent by the MN to the communication peer CN, Also includes:
HA接收 MN发送的 CN的地址, 所述 HA给所述 CN的地址分配标识, 所述标 识用于唯一地识别出所述 CN的地址, 所述 HA保存所述 CN的地址和对应的 标识之间的关联关系, 并将所述关联关系发送给所述 MN, 所述 MN将所述 关联关系进行保存;  The HA receives the address of the CN sent by the MN, and the HA allocates an identifier to the address of the CN, where the identifier is used to uniquely identify the address of the CN, and the HA saves the address of the CN and the corresponding identifier. And the association relationship is sent to the MN, and the MN saves the association relationship;
或者,  Or,
HA接收 MN发送的 CN的地址和对应的标识, 所述标识为所述 MN给所述 CN 的地址分配的, 用于唯一地识别出所述 CN的地址, 所述 HA保存所述 CN的 地址和对应的标识之间的关联关系, 并且, 所述 MN也将所述关联关系进 行保存。  The HA receives the address of the CN and the corresponding identifier sent by the MN, where the identifier is allocated by the MN to the address of the CN, and is used to uniquely identify the address of the CN, and the HA saves the address of the CN And an association relationship between the corresponding identifier, and the MN also saves the association relationship.
[3] 根据权利要求 2所述的移动 IP报文的传输方法, 其特征在于, 所述的 CN的 地址对应的标识包括: 保存所述 CN的地址的绑定缓存条目的标识。  [3] The method for transmitting a mobile IP packet according to claim 2, wherein the identifier corresponding to the address of the CN comprises: an identifier of a binding cache entry that stores an address of the CN.
[4] 根据权利要求 1或 2或 3所述的移动 IP报文的传输方法, 其特征在于, 所述的 方法还包括:  [4] The method for transmitting a mobile IP packet according to claim 1 or 2 or 3, wherein the method further comprises:
所述 HA接收所述 CN发送给所述 MN的第二 IP报文; 所述 HA根据所述第二 IP报文中携带的所述 CN的地址査询所述关联关系, 并从所述关联关系中获取所述对应的标识, 将所述第二 IP报文的源地址由 所述 CN的地址替换为所述 HA的地址 HAA, 将所述第二 IP报文的目的地址 由所述 MN的家乡地址 HoA替换为所述 MN的转交地址 CoA, 并将所述标识 携带在所述第二 IP报文中; Receiving, by the HA, a second IP packet sent by the CN to the MN; The HA queries the association relationship according to the address of the CN carried in the second IP packet, and obtains the corresponding identifier from the association relationship, and the source of the second IP packet is obtained. The address is replaced by the address of the CN with the address HAA of the HA, and the destination address of the second IP packet is replaced by the home address HoA of the MN with the care-of address CoA of the MN, and the identifier is Carrying in the second IP packet;
所述 HA将进行地址转换后的所述第二 IP报文发送给作为所述第二 IP报文的 接收端的 MN。  The HA sends the second IP packet that is subjected to the address translation to the MN that is the receiving end of the second IP packet.
[5] 根据权利要求 4所述的移动 IP报文的传输方法, 其特征在于, 所述的方法还 包括:  [5] The method for transmitting a mobile IP packet according to claim 4, wherein the method further comprises:
所述 MN接收所述 HA发送的进行地址转换后的所述第二 IP报文, 提取出该 第二 IP报文中的所述标识, 所述 MN根据所述标识査询所述关联关系并从中 获取所述标识对应的 CN的地址, 将所述 IP报文的源地址替换为 CN的地址 , 目的地址替换为所述 MN的家乡地址 HoA。  Receiving, by the MN, the second IP packet that is sent by the HA to perform address translation, extracting the identifier in the second IP packet, and the MN queries the association relationship according to the identifier. The address of the CN corresponding to the identifier is obtained, and the source address of the IP packet is replaced with the address of the CN, and the destination address is replaced by the home address HoA of the MN.
[6] 一种家乡代理 HA, 用作移动节点 MN的家乡代理, 当所述 MN漫游到外地 网络吋, 所述 HA用于转发 MN发送给 CN的第一 IP报文, 其特征在于, 所述 HA包括: [6] A home agent HA, which is used as a home agent of the mobile node MN. When the MN roams to the foreign network, the HA is used to forward the first IP packet sent by the MN to the CN, which is characterized by The HA includes:
关联关系存储模块, 用于存储所述 CN的地址和所述 CN的地址对应的标识 之间的关联关系;  An association relationship storage module, configured to store an association relationship between an address of the CN and an identifier corresponding to the address of the CN;
报文接收模块, 用于接收所述第一 IP报文;  a packet receiving module, configured to receive the first IP packet;
地址转换模块, 用于根据所述第一 IP报文中携带的所述 CN的地址对应的标 识査询所述关联关系存储模块所存储的关联关系, 并从所述关联关系中获 取所述 CN的地址, 将所述第一 IP报文的源地址由所述 MN的转交地址 CoA 替换为所述 MN的家乡地址 HoA, 并将所述第一 IP报文的目的地址由所述 H A的地址 HAA替换为所述 CN的地址;  An address conversion module, configured to query an association relationship stored by the association relationship storage module according to an identifier corresponding to the address of the CN carried in the first IP packet, and obtain the CN from the association relationship The address of the first IP packet is replaced by the MN's care-of address CoA with the MN's home address HoA, and the destination address of the first IP packet is from the HA address. The HAA is replaced with the address of the CN;
报文发送模块, 用于将经所述地址转换模块进行地址转换后的所述第一 IP 报文发送给作为所述第一 IP报文的接收端的 CN。  The message sending module is configured to send the first IP packet that is address-converted by the address translation module to the CN that is the receiving end of the first IP packet.
[7] 根据权利要求 6所述的 HA, 其特征在于, 所述报文接收模块还用于接收所 述 MN发送的所述 CN的地址, 所述 HA还包括: 标识分配模块, 用于给所述 CN的地址分配对应的标识, 该标识用于唯一地 识别出所述 CN的地址; [7] The HA according to claim 6, wherein the message receiving module is further configured to receive an address of the CN sent by the MN, where the HA further includes: An identifier allocation module, configured to allocate, to the address of the CN, a corresponding identifier, where the identifier is used to uniquely identify an address of the CN;
所述报文发送模块, 还用于将所述 CN的地址和所述 CN的地址对应的标识 发送给所述 MN。  The message sending module is further configured to send an identifier corresponding to the address of the CN and the address of the CN to the MN.
[8] 根据权利要求 6所述的 HA, 其特征在于, 所述报文接收模块还用于接收所 述 MN发送过来的所述 CN的地址和所述 CN的地址对应的标识。  [8] The HA according to claim 6, wherein the message receiving module is further configured to receive an identifier corresponding to an address of the CN sent by the MN and an address of the CN.
[9] 根据权利要求 6或 7或 8所述的 HA, 其特征在于, 所述 HA还用于转发 CN发 送给 MN的第二 IP报文,  [9] The HA according to claim 6 or 7 or 8, wherein the HA is further used to forward a second IP packet sent by the CN to the MN,
所述的报文接收模块, 还用于接收所述第二 IP报文;  The packet receiving module is further configured to receive the second IP packet;
所述的地址转换模块, 还用于根据所述第二 IP报文中携带的所述 CN的地址 査询所述关联关系存储模块所存储的关联关系, 并从所述关联关系中获取 所述 CN的地址对应的标识, 将所述第二 IP报文的源地址由所述 CN的地址 替换为所述 HA的地址 HAA, 将所述第二 IP报文的目的地址由所述 MN的家 乡地址 HoA替换为所述 MN的转交地址 CoA, 并将所述 CN的地址对应的标 识携带在所述第二 IP报文中;  The address conversion module is further configured to query an association relationship stored by the association relationship storage module according to the address of the CN carried in the second IP packet, and obtain the foregoing relationship from the association relationship. The identifier corresponding to the address of the CN, the source address of the second IP packet is replaced by the address of the CN by the address HAA of the HA, and the destination address of the second IP packet is used by the home of the MN. The address HoA is replaced with the care-of address CoA of the MN, and the identifier corresponding to the address of the CN is carried in the second IP packet;
所述的报文发送模块, 还用于将经所述地址转换模块进行地址转换后的所 述第二 IP报文发送给作为所述第二 IP报文的接收端的 MN。  The packet sending module is further configured to send the second IP packet that is address-converted by the address translation module to the MN that is the receiving end of the second IP packet.
[10] 一种移动节点 MN, 用于通过家乡代理 HA与通信对端 CN进行通信, 所述 H [10] A mobile node MN, configured to communicate with a communication peer CN through a home agent HA, the H
A用于转发所述 MN和所述 CN之间通信的 IP报文, 所述 IP报文包括所述 MN 发送给所述 CN的第一 IP报文, 其特征在于, 所述 MN包括: 关联关系存储模块, 用于存储所述 CN的地址和所述 CN的地址对应的标识 之间的关联关系;  The A is configured to forward the IP packet of the communication between the MN and the CN, where the IP packet includes the first IP packet sent by the MN to the CN, where the MN includes: a relationship storage module, configured to store an association relationship between an address of the CN and an identifier corresponding to an address of the CN;
报文发送模块, 用于根据所述第一 IP报文的接收端 CN的地址査询所述关联 关系存储模块中存储的关联关系, 并从所述关联关系中获取所述 CN的地址 对应的标识, 将所述 CN的地址对应的标识添加于所述第一 IP报文中, 并向 所述 HA发送携带了所述 CN的地址对应的标识的所述第一 IP报文。  a message sending module, configured to query, according to an address of the receiving end CN of the first IP packet, an association relationship stored in the association relationship storage module, and obtain an address corresponding to the CN address from the association relationship The identifier is used to add the identifier corresponding to the address of the CN to the first IP packet, and send the first IP packet that carries the identifier corresponding to the address of the CN to the HA.
[11] 根据权利要求 10所述的 MN, 其特征在于, 所述 MN还包括: [11] The MN according to claim 10, wherein the MN further comprises:
标识分配模块, 用于给所述 CN的地址分配对应的标识, 该 CN的地址对应 的标识用于唯一地识别出所述 CN的地址; An identifier allocation module, configured to allocate a corresponding identifier to the address of the CN, where the address of the CN corresponds The identifier is used to uniquely identify the address of the CN;
所述报文发送模块, 还用于向所述 HA发送所述 CN的地址和所述 CN的地址 对应的标识。  The message sending module is further configured to send, to the HA, an address corresponding to the address of the CN and an address of the CN.
[12] 根据权利要求 10所述的 MN, 其特征在于, 所述 IP报文还包括所述 CN发送 给所述 MN的第二 IP报文, 所述 MN还包括:  [12] The MN according to claim 10, wherein the IP packet further includes a second IP packet that is sent by the CN to the MN, and the MN further includes:
报文接收模块, 用于接收所述 HA转发的携带了所述 CN的地址对应的标识 的第二 IP报文, 根据所述第二 IP报文中携带的所述 CN的地址对应的标识査 询所述关联关系存储模块中存储的所述关联关系, 并从所述关联关系中获 取所述标识对应的 CN的地址, 将所述第二 IP报文的源地址替换为所述 CN 的地址, 将所述第二 IP报文的目的地址替换为所述 MN的家乡地址 HoA。  a packet receiving module, configured to receive a second IP packet that is forwarded by the HA and that carries an identifier corresponding to the address of the CN, and check the identifier corresponding to the address of the CN carried in the second IP packet Querying the association relationship stored in the association relationship storage module, and obtaining an address of the CN corresponding to the identifier from the association relationship, and replacing the source address of the second IP packet with the address of the CN And replacing the destination address of the second IP packet with the home address HoA of the MN.
[13] 根据权利要求 12所述的 MN, 其特征在于, 所述报文接收模块还用于接收 所述 HA发送的所述 CN的地址和所述 CN的地址对应的标识。  [13] The MN according to claim 12, wherein the message receiving module is further configured to receive an identifier corresponding to an address of the CN sent by the HA and an address of the CN.
[14] 根据权利要求 10所述的 MN, 其特征在于, 所述报文发送模块还用于向所 述 HA发送所述 CN的地址。  [14] The MN according to claim 10, wherein the message sending module is further configured to send the address of the CN to the HA.
[15] —种用于传输移动 IP报文的系统, 其特征在于, 所述系统包括家乡代理 HA [15] A system for transmitting mobile IP messages, characterized in that the system comprises a home agent HA
, 所述家乡代理 HA用于接收移动节点 MN发送给通信对端 CN的第一 IP报文 ; 根据所述第一 IP报文中携带的与所述 CN的地址对应的标识査询本地存储 的所述 CN的地址和所述 CN的地址对应的标识之间的关联关系, 并从所述 关联关系中获取所述 CN的地址, 将所述第一 IP报文的源地址由所述 MN的 转交地址 CoA替换为所述 MN的家乡地址 ΗοΑ, 并将所述第一 IP报文的目的 地址由所述 HA的地址 HAA替换为所述 CN的地址, 将进行地址转换后的所 述第一 IP报文发送给作为所述第一 IP报文的接收端的 CN。 The home agent HA is configured to receive the first IP packet sent by the mobile node MN to the CN of the communication peer; and query the local storage according to the identifier corresponding to the address of the CN carried in the first IP packet The association between the address of the CN and the identifier corresponding to the address of the CN, and the address of the CN is obtained from the association relationship, and the source address of the first IP packet is used by the MN The care-of address CoA is replaced with the home address ΗοΑ of the MN, and the destination address of the first IP packet is replaced by the address HAA of the HA to the address of the CN, and the first address after the address conversion is performed. The IP packet is sent to the CN that is the receiving end of the first IP packet.
[16] 根据权利要求 15所述的用于传输移动 IP报文的系统, 其特征在于, 所述 HA 还用于接收所述 CN发送给所述 MN的第二 IP报文; 根据所述第二 IP报文中 携带的所述 CN的地址査询所述关联关系, 并从所述关联关系中获取所述对 应的标识, 将所述第二 IP报文的源地址由所述 CN的地址替换为所述 HA的 地址 HAA, 将所述第二 IP报文的目的地址由所述 MN的家乡地址 HoA替换 为所述 MN的转交地址 CoA, 并将所述 CN的地址对应的标识携带在所述第 二 IP报文中, 将进行地址转换后的所述第二 IP报文发送给作为所述第二 IP 报文的接收端的 MN。 [16] The system for transmitting a mobile IP packet according to claim 15, wherein the HA is further configured to receive a second IP packet sent by the CN to the MN; The address of the CN carried in the second IP packet is used to query the association relationship, and the corresponding identifier is obtained from the association relationship, and the source address of the second IP packet is from the address of the CN. The address of the second IP packet is replaced by the home address HoA of the MN to the care-of address CoA of the MN, and the identifier corresponding to the address of the CN is carried in the address HAA of the HA. The first In the second IP packet, the second IP packet that is subjected to the address translation is sent to the MN that is the receiving end of the second IP packet.
PCT/CN2009/072889 2008-08-07 2009-07-23 Mobile ip packet transmission method and device WO2010015173A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200810118223 CN101645874B (en) 2008-08-07 2008-08-07 Method and device for transmitting mobile IP message
CN200810118223.2 2008-08-07

Publications (1)

Publication Number Publication Date
WO2010015173A1 true WO2010015173A1 (en) 2010-02-11

Family

ID=41657594

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072889 WO2010015173A1 (en) 2008-08-07 2009-07-23 Mobile ip packet transmission method and device

Country Status (2)

Country Link
CN (1) CN101645874B (en)
WO (1) WO2010015173A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070091862A1 (en) * 2004-01-31 2007-04-26 Efstathios Ioannidis Wireless mobility gateway
WO2008152535A1 (en) * 2007-06-15 2008-12-18 Telefonaktiebolaget Lm Ericsson (Publ) Tunnel overhead reduction

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075962B (en) * 2007-06-26 2010-09-08 中兴通讯股份有限公司 Method and apparatus for realizing DHCP repeater in two-layer network exchanger

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070091862A1 (en) * 2004-01-31 2007-04-26 Efstathios Ioannidis Wireless mobility gateway
WO2008152535A1 (en) * 2007-06-15 2008-12-18 Telefonaktiebolaget Lm Ericsson (Publ) Tunnel overhead reduction

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
W. HADDAD ET AL., IP TUNNELING OPTIMIZATION IN A MOBILE ENVIRONMENT; DRAFT-HADDAD-MIPSHOP-TUNNELING- OPTIMIZATION-00, 25 February 2007 (2007-02-25), pages 5 - 9 *

Also Published As

Publication number Publication date
CN101645874A (en) 2010-02-10
CN101645874B (en) 2013-10-02

Similar Documents

Publication Publication Date Title
CN110417840B (en) Information processing method and device
US8134969B2 (en) IP layer-handoff using mobility domains and IP caching
EP2477428B1 (en) Method for anonymous communication, method for registration, method and system for transmitting and receiving information
JP3633430B2 (en) COMMUNICATION METHOD, COMMUNICATION SYSTEM, COMMUNICATION DEVICE, AND RECORDING MEDIUM
JP5479599B2 (en) COMMUNICATION METHOD, DATA MESSAGE TRANSFER METHOD IN COMMUNICATION PROCESS, AND COMMUNICATION NODE
TWI500305B (en) Enabling ipv6 mobility with nat64
US20050232146A1 (en) System and method for recovering a damaged routing path in a mobile network
US8218498B2 (en) Method and system for lossless transmission of mobile IP packets in handover of a mobile terminal
KR100739803B1 (en) Apparatus and method of handover for mobile node
US20140006586A1 (en) Method for supporting the mobility of a device in a 6lowpan-based wireless sensor network
US20060128385A1 (en) Method and system for MIPv4-based fast handoff between heterogeneous networks
KR101375540B1 (en) Method and Apparatus for performing neighbor discovery in a heterogeneous network
JP5427952B2 (en) Method and system for realizing roaming between networks
WO2008098439A1 (en) Method and system for switching route
JP2008510440A (en) Method for performing communication between a mobile IPv6 node and an IPv4 communication partner
KR20120126095A (en) Method, system, mapping forward server and access router for mobile communication controlling
KR100547153B1 (en) Apparatus and method for fast connecting to link layer and network layer
JP5370353B2 (en) COMMUNICATION SYSTEM, TRANSFER NODE, MOBILE NODE, SERVER DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
US20090147759A1 (en) Method and apparatus for supporting mobility of node using layer 2/layer 3 addresses
WO2010051697A1 (en) REGISTRATION METHOD, SYSTEM AND LOCAL MOBILE ANCHOR FOR INTERFACE PREFIX IN PMIPv6
JP2003018185A (en) Mobile ip communication system, mobile ip communication method, network repeater system and terminal for mobile object
WO2010015173A1 (en) Mobile ip packet transmission method and device
WO2009082935A1 (en) Method, system and device for obtaining the address of mobile access gateway
KR101184122B1 (en) Method for providing mobility of device moving to mobile network in wireless sensor network based on 6LoWPAN
KR101064651B1 (en) Method and System for optimization of communication path between mobile terminals in the proxy mobile IPv6 network

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

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

Country of ref document: EP

Kind code of ref document: A1