WO2013007129A1 - Packet forwarding processing method, network element and system - Google Patents

Packet forwarding processing method, network element and system Download PDF

Info

Publication number
WO2013007129A1
WO2013007129A1 PCT/CN2012/075422 CN2012075422W WO2013007129A1 WO 2013007129 A1 WO2013007129 A1 WO 2013007129A1 CN 2012075422 W CN2012075422 W CN 2012075422W WO 2013007129 A1 WO2013007129 A1 WO 2013007129A1
Authority
WO
WIPO (PCT)
Prior art keywords
smag
tmag
message
mag
address
Prior art date
Application number
PCT/CN2012/075422
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 WO2013007129A1 publication Critical patent/WO2013007129A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a text forwarding processing method, a network element (including a Mobile Access Gateway (MAG), and a Local Mobile Anchor (LMA)) and a system.
  • a network element including a Mobile Access Gateway (MAG), and a Local Mobile Anchor (LMA)
  • MAG Mobile Access Gateway
  • LMA Local Mobile Anchor
  • IP Transmission Control Protocol/Internet Protocol
  • IP provides routing for the Internet. It assigns logical addresses, ie IP addresses, to all nodes (including hosts and routers), and each port of each host is assigned.
  • An IP address includes the network prefix and the host part.
  • the IP addresses of all hosts on the same link usually have the same network prefix and different host parts. This allows IP to be routed based on the network prefix portion of the destination node's IP address, allowing the router to maintain a simple network prefix route without having to maintain a separate route for each host. In this case, since the network prefix route is used, when the node switches from one link to another without changing its IP address, the node cannot receive the data packet on the new link. Therefore, it is impossible to communicate with other nodes.
  • IP Mobile IP, MIP
  • Proxy MIP Proxy MIP
  • MIP Mobile IP
  • PMIP Proxy MIP
  • LMA Local Mobility Anchor
  • Figure 1 shows the logical architecture of the PMIP protocol, including the Mobile Node (MN), the Correspondence Node (CN), the Mobile Access Gateway (MAG), and the LMA.
  • MN Mobile Node
  • CN Correspondence Node
  • MAG Mobile Access Gateway
  • LMA Local Mobility Anchor
  • the MAG is the first hop router of the MN, and its main functions include assigning a Care of Address (CoA) to the MN when it is accessed, and performing PMIP Binding (MMIP Binding) with the MN's anchor LMA instead of the MN. .
  • the LMA acts as the anchor of the MN. Its main functions include assigning the Home of Address (HoA) to the MN and processing the above PMIP binding.
  • HoA Home of Address
  • the main purpose of the PMIP binding performed between the MAG and the LMA is to let both parties know the address of the other party, the above CoA and HoA, and save it locally.
  • a bidirectional tunnel is established between the MAG and the LMA for the MN.
  • the IP address finally obtained by the MN is the HoA assigned by the LMA.
  • the MAG is generally located at a lower topology, such as at the edge of a metropolitan area network; and the LMA is generally located at a higher topology, such as the core of the provincial backbone.
  • the MAG and the LMA are often connected by a multi-hop router.
  • the mobility management of the PMIP protocol is reflected in the fact that the current connection to the MN can be changed.
  • changing the currently connected MAG means changing/switching the connection to the target MAG (tMAG, target MAG) from the previously connected source MAG (sMAG, source MAG).
  • tMAG assigns a new CoA to the MN, and performs PMIP binding with the MN's anchor LMA for the MN, updating the information saved by the two parties mentioned above, and the t-MAG and LMA.
  • a new two-way tunnel is established for the MN.
  • FIG. 2 shows the process of sending and receiving IP 4 messages between MN and CN.
  • the IP data packet between the MN and the CN must pass through the tunnel between the sMAG and the LMA before the switchover. After the switchover, the tunnel must pass through the tunnel between the tMAG and the LMA.
  • the path between the MN and the CN can be expressed as MN ⁇ ->MAG ⁇ ->LMA ⁇ ->CN, that is, all IP data messages between the MN and the CN must be detoured to the MN's anchor LMA.
  • the MAG has a routing function, and there is an IP network connection between the MAG and the CN (as shown in Figure 1), IP packets cannot be directly sent and received through the MAG, and there is a waste of the packet transmission path.
  • the solid line in FIG. 3 indicates that there is a wasteful route of the transmission path, and the dotted line indicates a route that is not wasted by the transmission path.
  • the waste of the transmission path causes the carrier to waste the transmission of the bearer resources, which leads to an increase in the operating cost.
  • the delay of sending and receiving IP packets between the ⁇ and the CN is increased, which is not conducive to improving the user experience.
  • the above CN may also be located in the PMIP domain, and the above PMIP mobility management mechanism is applied (for example, CN is another mobile node, that is, CN shown in FIG. 1). At this time, CN is also connected to a MAG, and there is also an anchor LMA.
  • the IP packet transmission path between the MN and the CN is: MN ⁇ -> MAG of the MN ⁇ -> LMA of the MN ⁇ -> MAG ⁇ ->CN of the LMA ⁇ ->CN of the CN.
  • the technical problem to be solved by the present invention is to provide a packet forwarding processing method, a network element, and a system to solve the problem that packets cannot be successfully forwarded during the MAG handover process.
  • the present invention provides a packet forwarding processing method, and the method includes:
  • the target MAG (tMAG-MN) of the MN and the source MAG (sMAG-MN) of the MN acquire address information pointing to the other party, and establish forwarding.
  • the tMAG-MN or the sMAG-MN forwards the packet between the MN and the correspondent node (CN) through the forwarding tunnel.
  • the step of acquiring the address information of the tMAG-MN and the sMAG-MN to the other party includes:
  • the local mobility anchor (LMA-MN) of the MN sends a first message to the tMAG-MN, where the address information that points to the sMAG-MN is carried;
  • the tMAG-MN receives the first message, and sends a second message to the sMAG-MN according to the address information that is directed to the sMAG-MN, where the node information that points to the MN and the information that points to the tMAG-MN are carried. Address information;
  • the sMAG-MN receives the second message.
  • the step of acquiring the address information of the other party by the tMAG-MN and the sMAG-MN includes:
  • the local mobility anchor (LMA-MN) of the MN sends a first message to the sMAG-MN, where the node information that points to the MN and the address information that points to the tMAG-MN are carried; the sMAG-MN Receiving, by the first message, a second message sent to the tMAG-MN according to the address information of the tMAG-MN, where the node information that points to the MN and the address information that points to the sMAG-MN are carried;
  • the tMAG-MN receives the second message.
  • the method further includes: sending, by the tMAG-MN, a Proxy Binding Update (PBU) message to the LMA-MN, where the message carries a node that points to the MN Information and address information of the tMAG-MN, the LMA-MN transmitting the first message according to the PUB message and the saved binding relationship between the MN and the sMAG-MN.
  • PBU Proxy Binding Update
  • the binding relationship between the MN and the sMAG-MN is retained until the first message is sent.
  • the first message is deleted.
  • the step of acquiring the address information of the other party by the tMAG-MN and the sMAG-MN includes:
  • the sMAG-MN determines that the MN is away, sends a first message to the LMA-MN for querying address information that points to the tMAG-MN, where the first message carries node information that points to the MN. ;
  • the sMAG-MN sends a third message to the tMAG-MN, where the node information that points to the MN and the address information that points to the sMAG-MN are carried;
  • the tMAG-MN receives the third message.
  • the sMAG-MN determines that the MN is away from the uplink or downlink data of the MN, or detects that the MN switches or moves away within a preset timer time.
  • the step of forwarding, by the tMAG-MN, the packet between the MN and the correspondent node (CN) by using the forwarding tunnel includes:
  • the tMAG-MN encapsulates the first packet to generate a second packet, where the source address of the first packet points to the MN, and the destination address points to the CN; the outer source address of the second "3 ⁇ 4" text is Addressing the address information of the tMAG-MN, the outer destination address is the address information of the sMAG-MN; the tMAG-MN sends the second packet to the sMAG-MN through the forwarding tunnel.
  • the step of forwarding, by the sMAG-MN, the packet between the MN and the correspondent node (CN) by using the forwarding tunnel includes:
  • the second packet is encapsulated or directly encapsulated, and the source address of the first packet is directed to the MAG (MAG-CN) of the CN, and the destination address is directed to the sMAG- MN;
  • the outer source address of the second packet is the address information of the sMAG-MN, and the outer destination address is the address information of the tMAG-MN;
  • the sMAG-MN sends the second packet to the tMAG-MN through the forwarding tunnel.
  • the method further includes: the tMAG-MN releasing the forwarding tunnel, and the triggering condition for releasing the forwarding tunnel is a tunnel establishment between the tMAG-MN and the MAG-CN.
  • the node information that points to the MN includes an identifier (ID) of the MN, a home address or a home network prefix, and the address information that points to the sMAG-MN or the tMAG-MN includes the sMAG-MN or tMAG-MN
  • ID identifier
  • tMAG-MN proxy care-of address
  • the present invention also provides a mobile access gateway (MAG),
  • the MAG includes:
  • a forwarding tunnel establishing unit configured to: obtain, when the mobile node (MN) is in a mobile access gateway (MAG) handover scenario, as the target MAG (tMAG-MN) of the MN, obtain an address that points to the sMAG-MN Information, establishing a forwarding tunnel; as the source MAG (sMAG-MN) of the MN, acquiring address information directed to the tMAG-MN, and establishing a forwarding tunnel;
  • MAG mobile access gateway
  • a message forwarding unit is configured to: forward, by the forwarding tunnel, a message between the MN and a correspondent node (CN).
  • the forwarding tunnel establishing unit includes:
  • a message receiving module configured to: receive, as the tMAG-MN, a first message sent by a local mobility anchor (LMA-MN) of the MN, carrying address information directed to the sMAG-MN; and, as Receiving, by the sMAG-MN, the second message sent by the tMAG-MN; the message sending module is configured to: when the tMAG-MN is used, according to the address information of the first message that points to the sMAG-MN Sending a second message to the sMAG-MN, carrying node information directed to the MN and address information directed to the tMAG-MN.
  • LMA-MN local mobility anchor
  • the forwarding tunnel establishing unit includes:
  • a message receiving module configured to: when the sMAG-MN is used, receive a first message sent by the local mobility anchor (LMA-MN) of the MN, carry node information directed to the MN, and point to the tMAG- The address information of the MN; and, when the tMAG-MN is used, receiving the second message sent by the sMAG-MN;
  • LMA-MN local mobility anchor
  • a message sending module configured to: when the sMAG-MN is used, send a second message to the tMAG-MN according to the address information of the first message in the tMAG-MN, and carry the node information that is directed to the MN And address information pointing to the sMAG-MN.
  • the forwarding tunnel establishing unit includes:
  • a query module configured to: send the first message to the LMA-MN as the sMAG-MN and determine that the MN is away; query the address information that points to the tMAG-MN, where the first message carries the Node information of the MN;
  • the message receiving module is configured to: when the sMAG-MN is used, receive the second message sent by the LMA-MN, and carry the node information that points to the MN and the address that points to the tMAG-MN Receiving, as tMAG-MN, receiving a third message sent by the sMAG-MN;
  • the message sending module is configured to: when the sMAG-MN is used, send a third message to the tMAG-MN, carrying node information that points to the MN and address information that points to the sMAG-MN.
  • the determining that the MN is away includes not receiving uplink and downlink data of the MN within a preset timer time, or detecting that the MN switches or moves away.
  • the text forwarding unit includes:
  • the encapsulating module is configured to: encapsulate the first packet to generate a second packet, where the source address of the text is directed to the MN, and the destination address is directed to the CN;
  • the outer source address is the address information of the tMAG-MN, and the outer destination address is the address information of the sMAG-MN; when the sMAG-MN is used, the source address of the first packet points to the CN MAG (MAG-CN), the destination address is directed to the sMAG-MN;
  • the outer source address of the second text is address information pointing to the sMAG-MN, and the outer destination address is an address pointing to the tMAG-MN Information
  • the sending module is configured to: when the second message is sent by using the forwarding tunnel, the second message is sent to the sMAG-MN as the tMAG-MN; and when the sMAG-MN is used, The tMAG-MN sends the second packet.
  • the MAG further includes a forwarding tunnel release unit, configured to: when the tMAG-MN is used, after the tunnel between the tMAG-MN and the MAG-CN is established, releasing the tMAG-MN and the sMAG- Forwarding tunnel between MNs.
  • a forwarding tunnel release unit configured to: when the tMAG-MN is used, after the tunnel between the tMAG-MN and the MAG-CN is established, releasing the tMAG-MN and the sMAG- Forwarding tunnel between MNs.
  • the address information directed to the sMAG-MN or the tMAG-MN includes an address of the sMAG-MN or tMAG-MN, or a proxy care-of address (CoA) assigned by the sMAG-MN or tMAG-MN to the MN.
  • CoA proxy care-of address
  • the present invention also provides a local mobility anchor (LMA), where the LMA includes:
  • PBU Proxy Binding Update
  • MN A Proxy Binding Update (PBU) message sent by the target MAG (tMAG-MN) of the MN in the scenario of a mobile access gateway (MAG) handover, where the node information and the pointing location pointing to the MN are carried Address information of the tMAG-MN;
  • a binding relationship maintenance module configured to: save a binding relationship according to the received PBU message, including a binding relationship between the MN and the sMAG-MN;
  • An address information management module configured to: after receiving the PBU message sent by the tMAG-MN, send a first message to the sMAG-MN or the tMAG-MN, where the first message sent to the sMAG-MN Carrying information about the node that points to the MN and address information that is directed to the tMAG-MN; the first message sent to the tMAG-MN carries node information that points to the MN and address information that points to the sMAG-MN .
  • the registration module is further configured to: receive a DeRegister message, including a DeRegister message sent by the sMAG-MN; the binding relationship maintenance module is further configured to: delete the corresponding binding according to the received DeRegister message And determining a binding relationship between the MN and the sMAG-MN after the first message is sent, if the DeRegister message sent by the sMAG-MN is received before the first message is sent.
  • the present invention also provides a message forwarding processing system, the system comprising a mobile access gateway (MAG) and a local mobility anchor as described above.
  • MAG mobile access gateway
  • the method, the network element, and the system provided by the embodiment of the present invention establish a forwarding tunnel between the tMAG-MN and the sMAG-MN in a scenario where the mobile node (MN) has a mobile access gateway (MAG) handover, thereby making the MAG During the handover, packets between the MN and the CN can be forwarded smoothly through the forwarding tunnel.
  • MN mobile node
  • MAG mobile access gateway
  • Figure 1 is a logical architecture diagram of an existing PMIP protocol
  • FIG. 2 is a schematic diagram of a process of transmitting and receiving IP packets between a MN and a CN according to the existing PMIP protocol
  • FIG. 3 is a schematic diagram of a transmission path waste problem existing according to the existing PMIP protocol
  • FIG. 4 is a logical architecture of the modified PMIP protocol.
  • FIG. 5 is a process diagram of transmitting and receiving IP packets between a MN and a CN according to the modified PMIP protocol. Intention
  • Embodiment 1 of a packet forwarding processing method according to the present invention
  • Embodiment 7 is a schematic diagram of Embodiment 2 of a packet forwarding processing method according to the present invention.
  • Embodiment 8 is a schematic diagram of Embodiment 3 of a packet forwarding processing method according to the present invention.
  • Embodiment 4 of a packet forwarding processing method according to the present invention.
  • FIG. 10 is a schematic diagram of a method for processing forwarding according to an embodiment of the present invention.
  • 11 to 14 are schematic structural diagrams of modules of a MAG according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a module of a LAM according to an embodiment of the present invention.
  • the present invention is directed to a method for packet forwarding processing based on the modified PMIP protocol.
  • the method is to enable the MN to change the MAG after the terminal moves, and the IP data packet between the MN and the CN can pass the sMAG-
  • the forwarding tunnel between the MN and the tMAG-MN avoids packet loss and meets the mobility requirements of the MN.
  • the node information pointed to the MN or CN in the present invention is information for indicating which mobile node or the opposite node is, and may be an identifier (ID) of the mobile node or the opposite node.
  • the home address may also be a home network prefix, or a combination of two pieces of information or three pieces of information; the address information of the MAG referred to in the present invention is used to indicate which MAG is a mobile node or a peer node.
  • the information of the attached or previously attached MAG may be the address of the MAG, or may be the proxy care-of address (CoA) assigned by the MAG to the mobile node (MN) and the correspondent node (CN), or may be the address of the MAG and the CoA. combination.
  • the information of the node information directed to the MN or the CN is specifically represented by what information, and the information indicating the address information of the MAG is specifically determined by the specific application scenario or information that may be obtained by the corresponding network element, which is not the focus of the present invention.
  • the invention is not limited by the description, and the detailed description is not intended to limit the invention.
  • the LMA allocates a home network prefix (HNP) for the MN or the CN.
  • HNP home network prefix
  • the MN or the CN After receiving the router advertisement message (the message carries the HNP), the MN or the CN performs address configuration to obtain the home address HoA derived from the HNP.
  • HNP and HoA are - corresponding, In other words, ⁇ can represent HoA.
  • the LMA/MAG may not know the HoA configured by the MN or the CN. In a specific network application, it is also possible for the LMA/MAG to obtain the HoA configured by the MN or CN.
  • the mapping relationship between the LMA and the MAG is the mapping between the HNP and the CoA or the MAG address.
  • the mapping between the LMA and the MAG can be the HoA and CoA or MAG address.
  • the mapping relationship can also be a mapping relationship between HNP and CoA or MAG addresses.
  • the sMAG-MN/MAG-MN refers to the MAG that the current MN accesses, and the proxy care-of address assigned by the MAG to the MN is CoAl.
  • the tMAG-MN refers to the MAG changed after the MN moves, that is, the MAG accessed by the MN after the handover, and the proxy care-of address assigned by the MAG to the MN is CoA2.
  • MAG-CN refers to the MAG currently accessed by the CN, and the proxy delivery address assigned by the MAG to the CN is CoA3.
  • the LMA-MN refers to the LMA that the MN accesses.
  • the home network prefix assigned by the LMA to the MN is HNP1
  • the home address obtained by the MN according to the HNP1 configuration is HoAl.
  • LMA-CN refers to the LMA that the CN accesses.
  • the home network prefix assigned by the LMA to the CN is HNP3, and the home address obtained by CN according to HNP3 is HoA3.
  • the address of the MAG may be an interface address, or any other address that can represent the MAG.
  • Figure 4 shows the modified PMIP protocol architecture.
  • the modified PMIP protocol architecture also includes the mobile node MN, the communication peer CN, the mobile access gateway MAG, and the LMA.
  • the CN can be a fixed node or a mobile node, that is, it has a corresponding MAG and LMA.
  • the MAG is the first hop router of the MN, and its main function is to allocate the care-of address CoA for the MN in the existing PMIP architecture, and perform PMIP between the MN and the anchor LMA of the MN instead of the MN.
  • a bidirectional tunnel is established between the MAG (MAG-MN) of the MN and the MAG of the CN, and the IP data between the MN and the CN is forwarded.
  • MAG-MN MAG-MN
  • the LMA is no longer used as the anchor of the MN.
  • the IP data packet between the MN and the CN is no longer required to pass through the LMA.
  • the LMA needs to save the address of the current MAG-MN and/or the CoA of the MN for the communication peer of the MN. To query.
  • Figure 5 shows the process of sending and receiving IP packets between the MN and the CN when the modified PMIP architecture is applied. As shown in Figure 5, the IP data packet between the MN and the CN needs to pass through the tunnel between the MAG-MN and the MAG-CN.
  • the MN When the MN sends an uplink IP packet to the CN, the MN needs to send the IP packet to the MAG-MN in accordance with the existing PMIP mechanism. Subsequent to the existing PMIP mechanism, in the present invention, the MAG-MN needs to query the address of the MAG-CN. After querying the address of the MAG-CN (such as the IP address of the MAG-CN), the MAG-MN uses the address of the MAG-CN as the destination to establish a tunnel from the MAG-MN to the MAG-CN (for example, an IP in IP tunnel). At the same time, the above IP packet is placed in the tunnel and sent directly to the MAG-CN. After receiving the IP packet from the tunnel, the MAG-CN sends the IP packet to the CN.
  • the MAG-CN After querying the address of the MAG-CN, the MAG-MN uses the address of the MAG-CN as the destination to establish a tunnel from the MAG-MN to the MAG-CN (for
  • the MAG-MN can also query the CoA of the CN, and replace the address of the MAG-CN with the CoA address of the CN, and can achieve the same purpose. At this time, the MAG-MN uses the CoA as the end point and establishes the tunnel of the MAG-MN to the MAG-CN with the same effect. It is also worth noting that when the MAG-MN queries the address of the MAG-CN of the CN (or the CoA of the CN), it first queries the local cache, and if it does not query, it can query other network elements. For example, the CN LMA (LMA-CN) can be queried according to the HoA of CN. After querying the desired result, MAG-MN caches the query results locally. The advantage of caching the query results locally is that it can avoid frequent logins to other network elements.
  • the CN when the CN sends a downlink IP packet to the MN, the similar method is also used. The principle is the same and will not be described again.
  • the way to send and receive IP messages between the MN and the CN The MAG ⁇ ->CN of the MAG ⁇ ->CN of the MN ⁇ ->MN does not need to pass through the anchor LMA network element of the MN (or MN and CN), thereby avoiding a series of problems such as waste of the transmission path.
  • the sMAG-MN is not in the sMAG-MN, so the data packet is lost.
  • the present invention provides a packet forwarding processing method, so that the MN changes the MAG and the IP data between the MN and the CN.
  • the packet can pass the forwarding tunnel between the sMAG-MN and the tMAG-MN, thus avoiding packet loss.
  • the method for processing the forwarding of the present invention includes:
  • Step 101 In a scenario where a mobile node (MN) has a mobile access gateway (MAG) handover, the target MAG (tMAG-MN) of the MN and the source MAG (sMAG-MN) of the MN acquire address information of the opposite party. And establishing a forwarding tunnel.
  • Step 102 Before the handover is completed, the tMAG-MN or the sMAG-MN forwards the packet between the MN and the opposite node (CN) through the forwarding tunnel.
  • MAG mobile access gateway
  • FIG. 6 is a first embodiment of a packet forwarding processing method according to the present invention. As shown in Figure 6, the following steps are specifically included:
  • Step 601 After the MN accesses the PMIPv6 domain through the attach procedure, the MN sends a route request (RS, Router Solicitation) message to the sMAG-MN.
  • RS Router Solicitation
  • Step 602 The sMAG-MN sends a Proxy Binding Update (PBU) message to the LMN-MN, instead of registering with the LMN, the message carries the MN identity (MN ID) and the proxy broadcast address allocated by the sMAG-MN for the MN. CoAl. The address of the sMAG-MN is also sent to the LMA-MN in this message.
  • PBU Proxy Binding Update
  • Step 603 The LMA-MN accepts the PBU message, and allocates a home network prefix (HNP1) to the MN. Create/update a Binding Cache Entry (BCE) and return a Proxy Binding Ack (PBA) message to the sMAG-MN.
  • HNP1 home network prefix
  • BCE Binding Cache Entry
  • PBA Proxy Binding Ack
  • Step 604 The LMA-MN caches the binding relationship between the MN and the sMAG-MN, and may be represented by a mapping relationship between the HNP1 and the CoAl, or a mapping relationship between the HNP1 and the sMAG-MN address.
  • Step 605 After receiving the PBA message, the sMAG-MN establishes a mapping relationship between the HNP-CoA of the MN, that is, a mapping relationship of the HNP1-CoAl.
  • Step 606 The sMAG-MN returns a RA (Router Advertisement) message to the MN. After receiving the router advertisement message, the MN performs address configuration to obtain the home address HoAl originating from the home network prefix HNP1.
  • RA Raster Advertisement
  • Step 607 when the sMAG-MN receives the uplink IP data packet sent by the MN to the CN, it checks locally whether the mapping relationship between the CN and the MAG-CN is cached, that is, the node information pointing to the CN and the MAG-CN
  • the mapping relationship between the address information which may be specifically represented by the mapping relationship between HNP3 (CN's home network prefix)/HoA3 and the address of the MAG-CN, or the mapping relationship between the HNP3/HoA3 and the CN's CoA3. If not, query the LMA-MN/LMA-CN to obtain the above mapping relationship, and then sMAG-MN caches the query result locally; if so, directly uses the local cache mapping relationship.
  • the sMAG-MN uses the address of the MAG-CN or the CoA3 of the CN as the destination, establishes a tunnel from the sMAG-MN to the MAG-CN (for example, an IP in IP tunnel), and puts the above IP data packet in the tunnel and directly sends it to the tunnel.
  • MAG-CN On the other hand, when the CN sends an IP data packet to the MN, the MAG-CN also needs to perform the above operation to directly send the IP data packet to the sMAG-MN through the tunnel from the sMAG-MN to the MAG-CN.
  • Step 608 After receiving the IP data packet between the first MN and the CN, the sMAG-MN needs to locally establish a mapping relationship between the HoA3/HNP3 of the CN and the CoA3 or the HoA3/HNP3 of the CN and the address of the MAG-CN.
  • Step 609 The MN moves and replaces the sMAG-MN. After the MN accesses the PMIPv6 domain through the attach procedure, it sends an RS message to the associated tMAG-MN.
  • the sMAG-MNLMA-MN initiates a DeRegister procedure.
  • the sMAG-MN initiates a DeRegister process to the LMA-MN. If the LMA-MN receives the sMAG-MN before returning the PBA message The DeRegister message, the LMA still needs to maintain the mapping relationship between HoAl/HNP1 and CoAl, or the mapping relationship between HoAl/HNP1 and sMAG-MN addresses.
  • Step 610 The tMAG-MN sends a PBU message to the LMN-MN, instead of the MN registering with the LMN, the message carries the MN identity (MN ID), the tMAG-MN is the newly assigned proxy broadcast address CoA2 of the MN, and the home network prefix HNP1 of the MN. The address of the tMAG-MN is also sent to the LMA-MN in this message.
  • MN ID MN identity
  • HNP1 home network prefix
  • Step 611 The LMA-MN accepts the PBU message, updates the binding cache list BCE of the MN, and returns a PBA message to the tMAG-MN.
  • the message carries the address of the CoAl assigned by the sMAG-MN to the MN, and/or the sMAG-MN.
  • Step 612 the tMAG-MN returns an RA message to the MN.
  • Step 613 After receiving the PBA message, the tMAG-MN establishes a mapping relationship between the HNP-CoA of the MN, that is, the mapping relationship of the HNP1-CoA2.
  • Step 614 The tMAG-MN sends a handover indication message to the sMAG-MN, where the message carries the address of the CoA2, and/or tMAG-CN allocated by the MN to the MN.
  • the MN identity or HNP1 is also required to identify/distinguish the user.
  • the source address and the destination address of the handover indication message may be CoA2 of the MN and CoAl of the MN, respectively, or may be an address of the tMAG-MN and an address of the sMAG-MN, that is, address information and a pointer to the tMAG-MN, respectively. Address information of sMAG-MN.
  • the purpose of the handover indication message is to send the address of the tMAG-MN or CoA2 to the sMAG-MN to establish a forwarding tunnel between the sMAG-MN and the tMAG-MN.
  • the name of the message can be other names as long as the message carries the address of the tMAG-MN or CoA2.
  • Step 615 this step is optional.
  • the sMAG-MN sends a handover confirmation message to the tMAG-MN.
  • the forwarding tunnel between the sMAG-MN and the tMAG-MN is established, and the IP data packets between the MN and the CN need to be sent through the forwarding tunnel.
  • Step 616 When the sMAG-MN receives the downlink IP data sent by the CN to the MN, the source address of the downlink IP data source points to the MAG-CN, the destination address points to the sMAG-MN, and the sMAG-MN needs to firstly MAG -CN is added to the encapsulation of the data packet header, and then a layer of encapsulation is added to the header of the data packet, and the address of the sMAG-MN or the CoAl of the MN is used as the source address.
  • the IP data file is directly sent to the tMAG-MN by using the address of the tMAG-MN or the CoA2 of the MN as the destination address, and then the packet is deleted/detached by the tMAG-CN, and the IP data packet is directly sent to the MN.
  • the sMAG-CN directly encapsulates the MAG-CN, adds a layer of encapsulation, uses the address of the sMAG-MN or the CoAl of the MN as the source address, and uses the address of the tMAG-MN or the MN.
  • CoA2 sends the IP data packet directly to the tMAG-MN.
  • the data packet received by the tMAG-MN has two layers of encapsulation.
  • the IP address is the same.
  • the data message is sent directly to the MN.
  • Step 617a When the tMAG-MN receives the uplink IP data packet sent by the MN to the CN, the source address of the uplink IP data packet points to the MN, the destination address points to the CN, and the tMAG-MN is in the data packet. Add a layer of encapsulation, use the address of the tMAG-MN or the CoA2 of the MN as the source address, and use the address of the sMAG-MN or the CoAl of the MN as the destination address to send the IP data packet directly to the sMAG-MN, and then by the sMAG. - CN deletes/peeles the encapsulation, and then sends the IP data packet directly to the MAG-CN as described in step 607. Or,
  • Step 617b When receiving the uplink IP data packet sent by the MN to the CN, the tMAG-MN adds a layer encapsulation to the data packet header, and uses the address of the tMAG-MN or the CoA2 of the MN as the source address, and uses the MAG-CN.
  • the IP address of the IP address of the CN or the CoAs of the CN is directly sent to the MAG-CN, and then the MAG-CN deletes/discards the encapsulation and sends the IP data packet directly to the CN.
  • the MAG-CN can learn the address of the tMAG-MN and/or the CoA2 that the tMAG-MN allocates for the MN through the data packet, and the IP data of the subsequent CN to the MN can be directly sent as described in step 607.
  • the tMAG-MN After the tunnel between the tMAG-MN and the MAG-CN is established, the tMAG-MN releases the forwarding tunnel between the tMAG-MN and the sMAG-MN.
  • FIG. 7 is a second embodiment of a packet forwarding processing method according to the present invention. As shown in FIG. 7, the following steps are included: Steps 701-710, and steps 601-610.
  • Step 711 The LMA-MN accepts the PBU message, updates the binding cache list BCE of the MN, and returns a PBA message to the tMAG-MN.
  • Steps 712, 713 are the same as steps 612 and 613.
  • Step 714 The LMA-MN sends a handover indication message to the sMAG-MN, where the message carries the address of the CoA2, and/or the tMAG-CN allocated by the tMAG-MN for the MN.
  • the MN identity or HNP1 needs to be carried in the message to identify/distinguish the user.
  • the purpose of the handover indication message is to send the address of the tMAG-MN or CoA2 to the sMAG-MN.
  • the name of the message may be other names as long as the message carries the address of the tMAG-MN or CoA2.
  • This step can be performed in parallel with step 711 or at any time thereafter.
  • Step 715 After receiving the handover indication message, the sMAG-MN establishes a request message to the tMAG-MN tunnel, where the message carries the address of the CoAl, and/or sMAG-CN allocated by the sMAG-MN for the MN. In this message, it is also necessary to carry the MN identity or HNP1 to identify/distinguish the user.
  • the source address and the destination address of the tunnel establishment request message may be CoAl of the MN and CoA2 of the MN, or may be an address of the sMAG-MN and an address of the tMAG-MN.
  • the purpose of the tunnel establishment request message is to send the address of the sMAG-MN or CoAl to the tMAG-MN to establish a forwarding tunnel between the sMAG-MN and the tMAG-MN.
  • the name of the message can be other names as long as the message carries the address of sMAG-MN or CoAl.
  • step 716 this step is optional.
  • the tMAG-MN sends a tunnel setup response message to the sMAG-MN.
  • Step 717 this step is optional.
  • the sMAG-MN sends a handover confirmation message to the LMA-MN. Steps 718, 717a, 719b, the same steps 616, 617a, 617b.
  • FIG. 8 is a third embodiment of a packet forwarding processing method according to the present invention. As shown in FIG. 8, the following steps are included: Steps 801-806, the same steps as 701-706.
  • Step 807 the sMAG-MN sets a timer 1 after receiving the PBA message, and the purpose of the timer is to determine when the MN leaves the sMAG-MN.
  • the sMAG-MN When the timer exceeds 1, and there is no uplink and downlink data of the MN, the sMAG-MN considers that the MN has left the sMAG-MN.
  • the sMAG-MN sets the timer 2, and monitors whether the MN has uplink and downlink data in the time range of the timer 2, if not, It is considered that the MN has left the sMAG-MN, and if so, the MN is still attached to the sMAG-MN, and the timer 1 is reset.
  • the MN still attaches to the sMAG-MN and resets the timer 1.
  • the timer 1 When the sMAG-MN detects the MN handover/movement, the timer 1 has not expired, and it is considered that the MN has left the sMAG-MN. At this time, according to the timer 1 timeout processing, the step 816 is started.
  • Step 808 - Step 813 the same steps as 707-712.
  • step 814 the timer 1 set in step 807 times out.
  • the sMAG-MN determines whether the MN has left the sMAG-MN, and if not, performs the subsequent steps. If not, the method is reset according to step 807. Timer 1.
  • Step 815 The sMAG-MN sends a handover query request to the LMA-MN, where the message carries the MN identifier or HoAl.
  • Step 816 The LMA-MN returns a handover inquiry response message to the sMAG-MN, where the message carries the address of the CoA2, and/or tMAG-CN allocated by the tMAG-MN to the MN. In this message, it is also necessary to carry the MN identity or HoAl to identify/distinguish the user.
  • the purpose of switching the query request message and the switch query response message is to query the address of the tMAG-MN or CoA2 from the LMA-MN.
  • the name of the message may be other names as long as the message completes the above query function.
  • the above embodiments of the present invention describe the establishment of a forwarding tunnel between the tMAG-MN and the sMAG-MN by taking the PMIP process as an example. This embodiment is also applicable to Fast Handovers for Proxy Mobile (FPMIP).
  • FPMIP Proxy Mobile
  • FIG. 9 is a fourth embodiment of a message forwarding processing method according to the present invention.
  • the embodiment is applicable to FPMIP. As shown in Figure 9, the following steps are specifically included:
  • Steps 901-908 the same steps 601-608.
  • Step 909 when the MN is ready to switch, the sMAG-MN receives an indication of the lower layer link, The MN is about to switch.
  • the implementation of the indication may have different implementations in different application scenarios, and is not specifically described herein.
  • Step 910 The sMAG-MN sends a handover indication (Handover Indication) to the tMAG-MN.
  • the message carries the MN identity.
  • Step 911 the tMAG-MN sends a PBU message to the LMN-MN, instead of the MN registering with the LMN, the message carries the MN identity (MN ID), the tMAG-MN is the newly assigned proxy broadcast address CoA2 of the MN, and the home network prefix HNP1 of the MN. The address of the tMAG-MN is also sent to the LMA-MN in this message.
  • MN ID MN identity
  • HNP1 home network prefix
  • Step 912 The LMA-MN accepts the PBU message, updates the binding cache list BCE of the MN, and returns a PBA message to the tMAG-MN.
  • the message carries the address of the CoAl assigned by the sMAG-MN to the MN, and/or the sMAG-MN.
  • Step 913 After receiving the PBA message, the tMAG-MN establishes a mapping relationship between the HNP-CoA of the MN, that is, the mapping relationship of the HNP1-CoA2.
  • Step 914 the tMAG-MN returns a Handover Acknowledge (hack) message to the sMAG-MN.
  • the message carries the address of CoA2, and / or tMAG-CN assigned by the tMAG-MN to the MN.
  • the MN identity or HNP1 needs to be carried in it to identify another user.
  • the source address and the destination address of the handover confirmation message may be CoA2 of the MN and CoAl of the MN, respectively, or may be an address of the tMAG-MN and an address of the sMAG-MN, that is, address information and a pointer to the tMAG-MN, respectively. Address information of sMAG-MN.
  • Step 915 The sMAG-MN sends a handover command message to the lower layer link, and the message is forwarded to the ⁇ .
  • Step 916 this step is optional.
  • the sMAG-MN After the sMAG-MN receives the Hack message, it sends a handover confirmation message to tMAG-MN.
  • step 917 the MN switches to tMAG-MN.
  • the MN accesses the PMIPv6 domain through the attach procedure, it sends an RS message to the associated tMAG-MN.
  • Step 918 the tMAG-CN returns an RA message to the MN.
  • Steps 919, 920a, 920b are the same as steps 616, 617a, 617b.
  • the present invention further provides a mobile access gateway (MAG), as shown in FIGS. 11 to 14, the MAG includes:
  • a forwarding tunnel establishing unit configured to acquire address information directed to the sMAG-MN when the mobile node (MN) is in a mobile access gateway (MAG) handover scenario, as the target MAG (tMAG-MN) of the MN, Establishing a forwarding tunnel; when the source MAG (sMAG-MN) of the MN is used, acquiring address information that points to the tMAG-MN, and establishing a forwarding tunnel;
  • a packet forwarding unit configured to forward, by using the forwarding tunnel, a packet between the MN and the correspondent node (CN).
  • the forwarding tunnel establishing unit includes:
  • a message receiving module configured, as the tMAG-MN, to receive a first message sent by the local mobility anchor (LMA-MN) of the MN, where the address information that is directed to the sMAG-MN is carried; Receiving, by the sMAG-MN, the second message sent by the tMAG-MN; and the message sending module, when the tMAG-MN is used, according to the address information of the first message that points to the sMAG-MN The sMAG-MN sends a second message, where the node information that points to the MN and the address information that points to the tMAG-MN are carried.
  • LMA-MN local mobility anchor
  • the forwarding tunnel establishing unit includes:
  • a message receiving module when the sMAG-MN is used, to receive a first message sent by the local mobility anchor (LMA-MN) of the MN, where the node information that points to the MN is carried and the tMAG- The address information of the MN; and, when the tMAG-MN is used, receiving the second message sent by the sMAG-MN;
  • LMA-MN local mobility anchor
  • a message sending module configured to send, by the sMAG-MN, a second message to the tMAG-MN according to the address information that is directed to the tMAG-MN in the first message, where the node information that points to the MN is carried And address information pointing to the sMAG-MN.
  • the forwarding tunnel establishing unit includes:
  • the querying module as the sMAG-MN, and determining that the MN is leaving, is configured to send a first message to the LMA-MN, where the information about the address of the tMAG-MN is queried, where the first message carries a pointing address Describe the node information of the MN;
  • a message receiving module when used as an sMAG-MN, for receiving the first transmission by the LMA-MN And a second message, where the information about the node that is directed to the MN and the address information that is directed to the tMAG-MN is carried; and when the tMAG-MN is used, the third message that is sent by the sMAG-MN is received;
  • the message sending module when the sMAG-MN is used, is configured to send a third message to the tMAG-MN, where the node information that points to the MN and the address information that points to the sMAG-MN are carried.
  • determining that the MN is away includes not receiving the preset timer time
  • the uplink and downlink data of the MN or detecting that the MN switches or moves away.
  • the text forwarding unit includes:
  • An encapsulating module configured to encapsulate a first packet to generate a second packet, where the source address of the text is directed to the MN, and the destination address is directed to the CN; the second " ⁇ "
  • the outer source address is the address information of the tMAG-MN, and the outer destination address is the address information of the sMAG-MN; when the sMAG-MN is used, the source address of the first packet points to the CN MAG (MAG-CN), the destination address is directed to the sMAG-MN; the outer source address of the second packet is address information directed to the sMAG-MN, and the outer destination address is directed to the tMAG-MN Address information;
  • a sending module configured to send the second packet to the tMAG-MN, when the second packet is sent to the sMAG-MN as the sMAG-MN, to the tMAG - The MN sends the second message.
  • the MAG further includes a forwarding tunnel release unit, where the tMAG-MN is used to release the tMAG after the tunnel between the tMAG-MN and the MAG-CN is established. - Forwarding tunnel between MN and sMAG-MN.
  • the node information that points to the MN includes an identifier (ID) of the MN, a home address, or a home network prefix, and the address information that points to the sMAG-MN or the tMAG-MN includes the sMAG-MN or tMAG.
  • ID identifier
  • tMAG-MN tMAG-MN
  • - The address of the MN, or the proxy care-of address (CoA) assigned by the sMAG-MN or tMAG-MN to the MN.
  • the present invention also provides a Local Mobility Anchor (LMA).
  • LMA Local Mobility Anchor
  • the LMA includes:
  • a registration module configured to receive a proxy binding update (PBU) message, including a target MAG (tMAG-MN) of the MN in a scenario where a mobile node (MN) has a mobile access gateway (MAG) handover a sent proxy binding update (PBU) message, which carries node information directed to the MN and address information directed to the tMAG-MN;
  • PBU proxy binding update
  • a binding relationship maintenance module configured to save a binding relationship according to the received PBU message, including a binding relationship between the MN and the sMAG-MN;
  • An address information management module configured to send a first message to the sMAG-MN or the tMAG-MN after receiving the PBU message sent by the tMAG-MN, where the first message sent to the sMAG-MN is carried in the first message Node information directed to the MN and address information directed to the tMAG-MN; the first message sent to the tMAG-MN carries node information directed to the MN and address information directed to the sMAG-MN.
  • the registration module is further configured to receive a DeRegister message, including a DeRegister message sent by the sMAG-MN, and the binding relationship maintenance module is further configured to delete the corresponding binding according to the received DeRegister message. And determining a binding relationship between the MN and the sMAG-MN after the first message is sent, if the DeRegister message sent by the sMAG-MN is received before the first message is sent.
  • the present invention also provides a message forwarding processing system, the system comprising a Mobile Access Gateway (MAG) as described above and a local mobility anchor as described above.
  • MAG Mobile Access Gateway
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any particular combination of hardware and software.
  • the method, the network element, and the system provided by the embodiment of the present invention establish a forwarding tunnel between the tMAG-MN and the sMAG-MN in a scenario where the mobile node (MN) has a mobile access gateway (MAG) handover, thereby making the MAG During the handover, packets between the MN and the CN can be forwarded smoothly through the forwarding tunnel.
  • MN mobile node
  • MAG mobile access gateway

Abstract

A packet forwarding processing method comprises: in a scenario where mobile access gateway (MAG) switching occurs to a mobile node (MN), a target MAG of the MN (tMAG-MN) and a source MAG of the MN (sMAG-MN) obtaining address information pointing to each other, and establishing a forwarding tunnel; before the switching is finished, the tMAG-MN or the sMAG-MN forwarding a packet between the MN and a correspondent node (CN) through the forwarding tunnel. The MAG comprises a forwarding tunnel establishment unit and a packet forwarding unit.

Description

报文转发处理方法、 网元及系统  Message forwarding processing method, network element and system
技术领域 Technical field
本发明涉及移动通信领域, 具体涉及一种 文转发处理方法、 网元(包 括移动接入网关( Mobile Access Gateway, MAG )及本地移动性锚点(Local Mobile Anchor, LMA ) )及系统。  The present invention relates to the field of mobile communications, and in particular, to a text forwarding processing method, a network element (including a Mobile Access Gateway (MAG), and a Local Mobile Anchor (LMA)) and a system.
背景技术 Background technique
传输控制协议 /因特网互联协议 ( Transmission Control Protocol/Internet Protocol, TCP/IP ) , 在初始设计时未考虑终端会发生拓朴位置改变的情况, 即 TCP/IP协议本身不支持移动性。 在传统的 TCP/IP网络环境中, IP为因特 网 (Internet)提供了路由功能, 它给所有节点 (包括主机和路由器)都分配了 逻辑地址, 即 IP地址, 且每台主机的各个端口都分配一个 IP地址。 IP地址 包括网络前缀和主机部分, 同一条链路上的所有主机的 IP地址通常有相同的 网络前缀和不同的主机部分。 这使得 IP可以依据目的节点的 IP地址的网络 前缀部分来进行路由选择,从而使路由器秩序保存一条简单的网络前缀路由, 而不必为每台主机保存一条单独的路由。 在这种情况下, 由于釆用了网络前 缀路由, 因此当节点从一条链路切换到另一条链路而没有改变其 IP地址时, 该节点则不可能在新链路上接收到数据报文, 从而也就无法与其他节点进行 通信。  The Transmission Control Protocol/Internet Protocol (TCP/IP) does not consider the topology change of the terminal in the initial design. That is, the TCP/IP protocol itself does not support mobility. In the traditional TCP/IP network environment, IP provides routing for the Internet. It assigns logical addresses, ie IP addresses, to all nodes (including hosts and routers), and each port of each host is assigned. An IP address. The IP address includes the network prefix and the host part. The IP addresses of all hosts on the same link usually have the same network prefix and different host parts. This allows IP to be routed based on the network prefix portion of the destination node's IP address, allowing the router to maintain a simple network prefix route without having to maintain a separate route for each host. In this case, since the network prefix route is used, when the node switches from one link to another without changing its IP address, the node cannot receive the data packet on the new link. Therefore, it is impossible to communicate with other nodes.
随着用户对移动性和信息的需求急剧上升,越来越多的人希望在移动的 过程中高速地接入互联网, 获取急需的信息, 完成想做的事情。 因此, 移动 互联网成为未来互联网的发展方向,但是传统 TCP/IP协议不支持移动性的缺 陷, 使得对移动节点的移动性管理成为移动互联网面对的一大难题。  As users' demand for mobility and information rises sharply, more and more people want to access the Internet at high speed during the mobile process, get much-needed information, and do what they want. Therefore, the mobile Internet has become the development direction of the future Internet, but the traditional TCP/IP protocol does not support the defect of mobility, making the mobility management of mobile nodes a major problem facing the mobile Internet.
为了解决移动性管理问题, 业界比较流行的移动性管理技术, 如, 移动 In order to solve the mobility management problem, the industry's more popular mobility management technologies, such as mobile
IP ( Mobile IP, MIP ) 、 代理移动 IP ( Proxy MIP , PMIP )等, 均通过引入 固定锚点 (Anchor ) 的方式来支持终端的移动性。 例如, MIP协议使用家乡 代理(Home agent, HA )作为锚点、 PMIP协议使用本地移动性锚点 (Local Mobility Anchor, LMA )作为错点。 图 1所示的是 PMIP协议的逻辑架构, 包括移动节点 (Mobile Node, MN )、通信对端( Correspondent Node, CN )、移动接入网关( Mobile Access Gateway, MAG )以及 LMA。 其中 CN可以是固定节点, 也可以是移动节点, 即具有相应的 MAG和 LMA。 MAG是 MN的第一跳路由器, 其主要作用包 括在 MN接入时为其分配转交地址( Care of Address, CoA )以及代替 MN执 行与 MN的锚点 LMA之间的 PMIP绑定( PMIP Binding ) 。 LMA作为 MN 的锚点, 其主要作用包括为 MN分配家乡地址(Home of Address, HoA ) 以 及处理上述 PMIP绑定。 MAG与 LMA之间执行的 PMIP绑定的主要目的是 让双方均获知对方的地址、 上述 CoA和 HoA, 并将保存在本地。 此外, 在执 行 PMIP的绑定过程中,还为 MN在 MAG和 LMA之间建立了一条双向隧道。 值得说明的是, MN最后获取到的 IP地址是 LMA为其分配的 HoA。 在通常 的网络部署中, MAG—般位于拓朴较低的位置, 比如位于城域网的边缘; 而 LMA则一般位于拓朴较高的位置, 比如省干网的核心部分。 MAG与 LMA 之间实际上往往通过多跳路由器相连。 IP (Mobile IP, MIP), Proxy MIP (PMIP), etc., all support the mobility of the terminal by introducing a fixed anchor (Anchor). For example, the MIP protocol uses a Home Agent (HA) as an anchor point, and the PMIP protocol uses a Local Mobility Anchor (LMA) as a point of error. Figure 1 shows the logical architecture of the PMIP protocol, including the Mobile Node (MN), the Correspondence Node (CN), the Mobile Access Gateway (MAG), and the LMA. The CN can be a fixed node or a mobile node, that is, it has a corresponding MAG and LMA. The MAG is the first hop router of the MN, and its main functions include assigning a Care of Address (CoA) to the MN when it is accessed, and performing PMIP Binding (MMIP Binding) with the MN's anchor LMA instead of the MN. . The LMA acts as the anchor of the MN. Its main functions include assigning the Home of Address (HoA) to the MN and processing the above PMIP binding. The main purpose of the PMIP binding performed between the MAG and the LMA is to let both parties know the address of the other party, the above CoA and HoA, and save it locally. In addition, during the PMIP binding process, a bidirectional tunnel is established between the MAG and the LMA for the MN. It is worth noting that the IP address finally obtained by the MN is the HoA assigned by the LMA. In a typical network deployment, the MAG is generally located at a lower topology, such as at the edge of a metropolitan area network; and the LMA is generally located at a higher topology, such as the core of the provincial backbone. The MAG and the LMA are often connected by a multi-hop router.
PMIP协议的移动性管理体现在随着 MN 的移动能改变当前连接到的 The mobility management of the PMIP protocol is reflected in the fact that the current connection to the MN can be changed.
MAG, 同时保持 MN的 IP地址(即 HoA ) 不变。 如图 2所示, 改变当前连 接的 MAG是指从先前连接的源 MAG ( sMAG, source MAG )改变 /切换连接 到目标 MAG ( tMAG, target MAG ) 。 在改变到 tMAG以后, tMAG为 MN 分配一个新的 CoA, 并为 MN执行与 MN的锚点 LMA之间的 PMIP绑定, 更新上文提及双方保存的信息, 以及在 t-MAG与 LMA之间为 MN建立新的 双向隧道。 MAG, while keeping the MN's IP address (ie HoA) unchanged. As shown in Figure 2, changing the currently connected MAG means changing/switching the connection to the target MAG (tMAG, target MAG) from the previously connected source MAG (sMAG, source MAG). After changing to tMAG, tMAG assigns a new CoA to the MN, and performs PMIP binding with the MN's anchor LMA for the MN, updating the information saved by the two parties mentioned above, and the t-MAG and LMA. A new two-way tunnel is established for the MN.
图 2所示为 MN与 CN之间收发 IP 4艮文的过程示意图。 如图 2所示, MN与 CN之间的 IP数据报文在切换前必须经过 sMAG与 LMA之间的隧道, 在切换后必须经过 tMAG与 LMA之间的隧道。  Figure 2 shows the process of sending and receiving IP 4 messages between MN and CN. As shown in Figure 2, the IP data packet between the MN and the CN must pass through the tunnel between the sMAG and the LMA before the switchover. After the switchover, the tunnel must pass through the tunnel between the tMAG and the LMA.
如图 2和图 3所示,在 MN移动,并改变连接的 MAG (以下称之为切换) 前 后 , MN 与 CN 间 收发 IP 4艮文 的 路径 都 可 表 达 为 MN<->MAG<->LMA<->CN , 即 , 所有 MN与 CN之间的 IP数据报文都必须 绕路到 MN的锚点 LMA。 即使 MAG有路由功能, 且 MAG与 CN之间有 IP 网相连接(如图 1所示) , IP报文也不能直接通过 MAG收发, 存在报文传 递路径的浪费。特别是当 MN目前位置远离其锚点 LMA,且 MN目前位置距 离 CN较近时, 上述传输路径浪费问题将会更加明显。 图 3中的实线所表示 的为存在传输路径浪费的路由, 虚线所表示的则为无传输路径浪费的路由。 传输路径的浪费一方面会导致运营商传输承载资源的浪费, 导致了运营成本 增加; 另一方面增加了 ΜΝ与 CN间收发 IP报文的时延, 不利于改善用户的 业务体验; 再一方面是使大量的 IP报文汇聚到 MN的锚点 LMA (通常一个 LMA能服务很多个 MN ) , 使 LMA容易成为性能瓶颈, 增大了报文在该节 点拥塞的可能性, 导致整体网络质量下降, 造成 MN业务受阻甚至无法实现 (如, 语音视频等实时业务) 。 As shown in Figure 2 and Figure 3, before and after the MN moves and changes the connected MAG (hereinafter referred to as handover), the path between the MN and the CN can be expressed as MN<->MAG<->LMA<->CN, that is, all IP data messages between the MN and the CN must be detoured to the MN's anchor LMA. Even if the MAG has a routing function, and there is an IP network connection between the MAG and the CN (as shown in Figure 1), IP packets cannot be directly sent and received through the MAG, and there is a waste of the packet transmission path. Especially when the MN is currently located away from its anchor point LMA, and the current position of the MN is When the CN is closer to the CN, the above-mentioned transmission path waste problem will be more obvious. The solid line in FIG. 3 indicates that there is a wasteful route of the transmission path, and the dotted line indicates a route that is not wasted by the transmission path. On the one hand, the waste of the transmission path causes the carrier to waste the transmission of the bearer resources, which leads to an increase in the operating cost. On the other hand, the delay of sending and receiving IP packets between the ΜΝ and the CN is increased, which is not conducive to improving the user experience. It is to make a large number of IP packets converge to the MN's anchor LMA (usually an LMA can serve many MNs), making LMA easy to become a performance bottleneck, increasing the possibility of packet congestion at the node, resulting in a decline in overall network quality. , causing the MN business to be blocked or even impossible to achieve (for example, real-time services such as voice and video).
还值得说明的是, 上述 CN也可以位于 PMIP域, 应用上述的 PMIP移 动性管理机制 (例如, CN是另一个移动节点, 也即图 1中所示的 CN, ) 。 此时 CN也连接到一个 MAG, 也有一个锚点 LMA。 在这种情况下, MN与 CN之间的 IP报文的收发路径为: MN<->MN的 MAG<->MN的 LMA<->CN 的 LMA<->CN的 MAG<->CN。 由此可见在这种场景下, MN与 CN间的报 文收发必须绕路经过两者的锚点 LMA, 报文传递路径的浪费更加明显, 以后 造成的上述不良后果更加严重。 为了解决以上问题, 可使得报文在两个 MAG 之间转发, 但会带来 MAG切换过程中, 报文无法顺利转发的问题。 发明内容  It is also worth noting that the above CN may also be located in the PMIP domain, and the above PMIP mobility management mechanism is applied (for example, CN is another mobile node, that is, CN shown in FIG. 1). At this time, CN is also connected to a MAG, and there is also an anchor LMA. In this case, the IP packet transmission path between the MN and the CN is: MN<-> MAG of the MN <-> LMA of the MN <-> MAG<->CN of the LMA<->CN of the CN. It can be seen that in this scenario, the message transmission and reception between the MN and the CN must bypass the anchor point LMA of both, and the waste of the message transmission path is more obvious, and the above-mentioned adverse consequences are more serious. To solve the above problem, the packets can be forwarded between the two MAGs. However, the packets cannot be forwarded smoothly during the MAG handover. Summary of the invention
本发明要解决的技术问题是提供一种报文转发处理方法、 网元及系统, 以解决 MAG切换过程中, 报文无法顺利转发的问题。  The technical problem to be solved by the present invention is to provide a packet forwarding processing method, a network element, and a system to solve the problem that packets cannot be successfully forwarded during the MAG handover process.
为了解决以上技术问题, 本发明提供了一种报文转发处理方法, 该方法 包括:  In order to solve the above technical problem, the present invention provides a packet forwarding processing method, and the method includes:
移动节点 (MN)发生移动接入网关 (MAG )切换的场景下, 所述 MN 的 目标 MAG ( tMAG-MN )和所述 MN的源 MAG ( sMAG-MN )获取指向对方 的地址信息, 建立转发隧道;  In the scenario where the mobile node (MN) has a mobile access gateway (MAG) handover, the target MAG (tMAG-MN) of the MN and the source MAG (sMAG-MN) of the MN acquire address information pointing to the other party, and establish forwarding. Tunnel
切换完成前, 所述 tMAG-MN或 sMAG-MN通过所述转发隧道转发所述 MN和对端节点 (CN )之间的报文。  Before the handover is completed, the tMAG-MN or the sMAG-MN forwards the packet between the MN and the correspondent node (CN) through the forwarding tunnel.
优选地, 所述 tMAG-MN和 sMAG-MN的获取指向对方的地址信息的步 骤包括: 所述 MN的本地移动性锚点 ( LMA-MN )向所述 tMAG-MN发送第一消 息, 其中携带指向所述 sMAG-MN的地址信息; Preferably, the step of acquiring the address information of the tMAG-MN and the sMAG-MN to the other party includes: The local mobility anchor (LMA-MN) of the MN sends a first message to the tMAG-MN, where the address information that points to the sMAG-MN is carried;
所述 tMAG-MN接收所述第一消息, 根据指向所述 sMAG-MN的地址信 息向所述 sMAG-MN发送第二消息, 其中携带指向所述 MN的节点信息以及 指向所述 tMAG-MN的地址信息;  The tMAG-MN receives the first message, and sends a second message to the sMAG-MN according to the address information that is directed to the sMAG-MN, where the node information that points to the MN and the information that points to the tMAG-MN are carried. Address information;
所述 sMAG-MN接收所述第二消息。  The sMAG-MN receives the second message.
优选地, 所述 tMAG-MN和 sMAG-MN的获取对方的地址信息的步骤包 括:  Preferably, the step of acquiring the address information of the other party by the tMAG-MN and the sMAG-MN includes:
所述 MN的本地移动性锚点 ( LMA-MN )向所述 sMAG-MN发送第一消 息,其中携带指向所述 MN的节点信息以及指向所述 tMAG-MN的地址信息; 所述 sMAG-MN接收所述第一消息, 根据所述 tMAG-MN的地址信息向 所述 tMAG-MN发送第二消息, 其中携带指向所述 MN的节点信息以及指向 所述 sMAG-MN的地址信息;  The local mobility anchor (LMA-MN) of the MN sends a first message to the sMAG-MN, where the node information that points to the MN and the address information that points to the tMAG-MN are carried; the sMAG-MN Receiving, by the first message, a second message sent to the tMAG-MN according to the address information of the tMAG-MN, where the node information that points to the MN and the address information that points to the sMAG-MN are carried;
所述 tMAG-MN接收所述第二消息。  The tMAG-MN receives the second message.
优选地,所述 LMA-MN发送第一消息前,该方法还包括:所述 tMAG-MN 向所述 LMA-MN发送代理绑定更新 (PBU ) 消息, 该消息中携带指向所述 MN的节点信息和指向所述 tMAG-MN的地址信息,所述 LMA-MN根据所述 PUB消息以及保存的所述 MN与 sMAG-MN的绑定关系发送所述第一消息。  Preferably, before the sending, by the LMA-MN, the method, the method further includes: sending, by the tMAG-MN, a Proxy Binding Update (PBU) message to the LMA-MN, where the message carries a node that points to the MN Information and address information of the tMAG-MN, the LMA-MN transmitting the first message according to the PUB message and the saved binding relationship between the MN and the sMAG-MN.
优选地, 所述 LMA-MN发送所述第一消息前, 若接收到所述 sMAG-MN 发送的去注册(DeRegister ) 消息, 仍保留所述 MN与 sMAG-MN之间的绑 定关系直到发送所述第一消息后删除。  Preferably, before the first message is sent by the LMA-MN, if the DeRegister message sent by the sMAG-MN is received, the binding relationship between the MN and the sMAG-MN is retained until the first message is sent. The first message is deleted.
优选地, 所述 tMAG-MN和 sMAG-MN的获取对方的地址信息的步骤包 括:  Preferably, the step of acquiring the address information of the other party by the tMAG-MN and the sMAG-MN includes:
所述 sMAG-MN判断所述 MN离开时, 向所述 LMA-MN发送第一消息 , 用于查询指向所述 tMAG-MN的地址信息,所述第一消息中携带指向所述 MN 的节点信息;  When the sMAG-MN determines that the MN is away, sends a first message to the LMA-MN for querying address information that points to the tMAG-MN, where the first message carries node information that points to the MN. ;
所述 LMA-MN向所述 sMAG-MN发送第二消息,其中携带指向所述 MN 的节点信息以及指向所述 tMAG-MN的地址信息; 所述 sMAG-MN向所述 tMAG-MN发送第三消息, 其中携带指向所述 MN的节点信息以及指向所述 sMAG-MN的地址信息; Sending, by the LMA-MN, a second message to the sMAG-MN, where the node information that points to the MN and the address information that points to the tMAG-MN are carried; The sMAG-MN sends a third message to the tMAG-MN, where the node information that points to the MN and the address information that points to the sMAG-MN are carried;
所述 tMAG-MN接收所述第三消息。  The tMAG-MN receives the third message.
优选地, 所述 sMAG-MN判断所述 MN离开的情形包括预设定时器时间 内未收到所述 MN的上下行数据, 或检测到所述 MN切换或移动走。  Preferably, the sMAG-MN determines that the MN is away from the uplink or downlink data of the MN, or detects that the MN switches or moves away within a preset timer time.
优选地, 所述 tMAG-MN通过所述转发隧道转发所述 MN和对端节点 ( CN )之间的报文的步骤包括:  Preferably, the step of forwarding, by the tMAG-MN, the packet between the MN and the correspondent node (CN) by using the forwarding tunnel includes:
所述 tMAG-MN封装第一报文生成第二报文, 所述第一报文的源地址指 向所述 MN, 目的地址指向所述 CN; 所述第二"¾文的外层源地址为指向所述 tMAG-MN的地址信息, 外层目的地址为指向所述 sMAG-MN的地址信息; 所述 tMAG-MN通过所述转发隧道向所述 sMAG-MN发送所述第二报 文。  The tMAG-MN encapsulates the first packet to generate a second packet, where the source address of the first packet points to the MN, and the destination address points to the CN; the outer source address of the second "3⁄4" text is Addressing the address information of the tMAG-MN, the outer destination address is the address information of the sMAG-MN; the tMAG-MN sends the second packet to the sMAG-MN through the forwarding tunnel.
优选地, 所述 sMAG-MN通过所述转发隧道转发所述 MN和对端节点 ( CN )之间的报文的步骤包括:  Preferably, the step of forwarding, by the sMAG-MN, the packet between the MN and the correspondent node (CN) by using the forwarding tunnel includes:
所述 sMAG-MN解封装第一报文后封装或直接封装生成第二报文, 所述 第一报文的源地址指向所述 CN的 MAG ( MAG-CN ) , 目的地址指向所述 sMAG-MN; 所述第二报文的外层源地址为指向所述 sMAG-MN的地址信息, 外层目的地址为指向所述 tMAG-MN的地址信息;  After the sMAG-MN decapsulates the first packet, the second packet is encapsulated or directly encapsulated, and the source address of the first packet is directed to the MAG (MAG-CN) of the CN, and the destination address is directed to the sMAG- MN; the outer source address of the second packet is the address information of the sMAG-MN, and the outer destination address is the address information of the tMAG-MN;
所述 sMAG-MN通过所述转发隧道向所述 tMAG-MN发送所述第二报 文。  The sMAG-MN sends the second packet to the tMAG-MN through the forwarding tunnel.
优选地, 所述转发隧道建立后, 该方法还包括: 所述 tMAG-MN释放所 述转发隧道,释放所述转发隧道的触发条件是所述 tMAG-MN与 MAG-CN之 间的隧道建立。  Preferably, after the forwarding tunnel is established, the method further includes: the tMAG-MN releasing the forwarding tunnel, and the triggering condition for releasing the forwarding tunnel is a tunnel establishment between the tMAG-MN and the MAG-CN.
优选地, 指向所述 MN的节点信息包括所述 MN的标识( ID ) 、 家乡地 址或家乡网络前缀, 所述指向 sMAG-MN或 tMAG-MN的地址信息包括所述 sMAG-MN或 tMAG-MN的地址、 或 sMAG-MN或 tMAG-MN为所述 MN分 配的代理转交地址(CoA ) 。  Preferably, the node information that points to the MN includes an identifier (ID) of the MN, a home address or a home network prefix, and the address information that points to the sMAG-MN or the tMAG-MN includes the sMAG-MN or tMAG-MN The address, or sMAG-MN or tMAG-MN, is the proxy care-of address (CoA) assigned to the MN.
为解决以上技术问题, 本发明还提供了一种移动接入网关(MAG ) , 所 述 MAG包括: In order to solve the above technical problem, the present invention also provides a mobile access gateway (MAG), The MAG includes:
转发隧道建立单元,其设置为:移动节点 (MN)发生移动接入网关(MAG ) 切换的场景下, 作为所述 MN的目标 MAG ( tMAG-MN ) 时, 获取指向所述 sMAG-MN的地址信息 ,建立转发隧道;作为所述 MN的源 MAG( sMAG-MN ) 时, 获取指向所述 tMAG-MN的地址信息, 建立转发隧道;  a forwarding tunnel establishing unit, configured to: obtain, when the mobile node (MN) is in a mobile access gateway (MAG) handover scenario, as the target MAG (tMAG-MN) of the MN, obtain an address that points to the sMAG-MN Information, establishing a forwarding tunnel; as the source MAG (sMAG-MN) of the MN, acquiring address information directed to the tMAG-MN, and establishing a forwarding tunnel;
报文转发单元, 其设置为: 通过所述转发隧道转发所述 MN和对端节点 ( CN )之间的报文。  A message forwarding unit is configured to: forward, by the forwarding tunnel, a message between the MN and a correspondent node (CN).
优选地, 所述转发隧道建立单元包括:  Preferably, the forwarding tunnel establishing unit includes:
消息接收模块, 设置为: 作为所述 tMAG-MN时, 接收所述 MN的本地 移动性锚点(LMA-MN )发送的第一消息, 携带指向所述 sMAG-MN的地址 信息; 以及,作为所述 sMAG-MN时,接收所述 tMAG-MN发送的第二消息; 消息发送模块, 设置为: 作为所述 tMAG-MN时, 根据所述第一消息中 指向所述 sMAG-MN的地址信息向所述 sMAG-MN发送第二消息, 携带指向 所述 MN的节点信息以及指向所述 tMAG-MN的地址信息。  a message receiving module, configured to: receive, as the tMAG-MN, a first message sent by a local mobility anchor (LMA-MN) of the MN, carrying address information directed to the sMAG-MN; and, as Receiving, by the sMAG-MN, the second message sent by the tMAG-MN; the message sending module is configured to: when the tMAG-MN is used, according to the address information of the first message that points to the sMAG-MN Sending a second message to the sMAG-MN, carrying node information directed to the MN and address information directed to the tMAG-MN.
优选地, 所述转发隧道建立单元包括:  Preferably, the forwarding tunnel establishing unit includes:
消息接收模块, 设置为: 作为所述 sMAG-MN时, 接收所述 MN的本地 移动性锚点 (LMA-MN )发送的第一消息, 携带指向所述 MN的节点信息以 及指向所述 tMAG-MN的地址信息; 以及, 作为所述 tMAG-MN时, 接收所 述 sMAG-MN发送的第二消息;  a message receiving module, configured to: when the sMAG-MN is used, receive a first message sent by the local mobility anchor (LMA-MN) of the MN, carry node information directed to the MN, and point to the tMAG- The address information of the MN; and, when the tMAG-MN is used, receiving the second message sent by the sMAG-MN;
消息发送模块, 设置为: 作为所述 sMAG-MN时, 根据所述第一消息中 指向所述 tMAG-MN的地址信息向所述 tMAG-MN发送第二消息, 携带指向 所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  a message sending module, configured to: when the sMAG-MN is used, send a second message to the tMAG-MN according to the address information of the first message in the tMAG-MN, and carry the node information that is directed to the MN And address information pointing to the sMAG-MN.
优选地, 所述转发隧道建立单元包括:  Preferably, the forwarding tunnel establishing unit includes:
查询模块, 设置为: 作为 sMAG-MN且判断所述 MN 离开时, 向所述 LMA-MN发送第一消息; 查询指向所述 tMAG-MN的地址信息, 所述第一消 息中携带指向所述 MN的节点信息;  a query module, configured to: send the first message to the LMA-MN as the sMAG-MN and determine that the MN is away; query the address information that points to the tMAG-MN, where the first message carries the Node information of the MN;
消息接收模块, 设置为: 作为 sMAG-MN时, 接收所述 LMA-MN发送 的第二消息, 携带指向所述 MN的节点信息以及指向所述 tMAG-MN的地址 信息; 作为 tMAG-MN时, 接收所述 sMAG-MN发送的第三消息; The message receiving module is configured to: when the sMAG-MN is used, receive the second message sent by the LMA-MN, and carry the node information that points to the MN and the address that points to the tMAG-MN Receiving, as tMAG-MN, receiving a third message sent by the sMAG-MN;
消息发送模块, 设置为: 作为 sMAG-MN时, 向所述 tMAG-MN发送第 三消息,携带指向所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  The message sending module is configured to: when the sMAG-MN is used, send a third message to the tMAG-MN, carrying node information that points to the MN and address information that points to the sMAG-MN.
优选地, 所述判断所述 MN离开的情形包括预设定时器时间内未收到所 述 MN的上下行数据, 或检测到所述 MN切换或移动走。  Preferably, the determining that the MN is away includes not receiving uplink and downlink data of the MN within a preset timer time, or detecting that the MN switches or moves away.
优选地, 所述 文转发单元包括:  Preferably, the text forwarding unit includes:
封装模块, 设置为: 封装第一报文生成第二报文, 作为所述 tMAG-MN 时, 所述第 文的源地址指向所述 MN, 目的地址指向所述 CN; 所述第二 文的外层源地址为指向所述 tMAG-MN的地址信息, 外层目的地址为指向 所述 sMAG-MN的地址信息; 作为 sMAG-MN时, 所述第一报文的源地址指 向所述 CN的 MAG ( MAG-CN ) , 目的地址指向所述 sMAG-MN; 所述第二 文的外层源地址为指向所述 sMAG-MN的地址信息, 外层目的地址为指向 所述 tMAG-MN的地址信息;  The encapsulating module is configured to: encapsulate the first packet to generate a second packet, where the source address of the text is directed to the MN, and the destination address is directed to the CN; The outer source address is the address information of the tMAG-MN, and the outer destination address is the address information of the sMAG-MN; when the sMAG-MN is used, the source address of the first packet points to the CN MAG (MAG-CN), the destination address is directed to the sMAG-MN; the outer source address of the second text is address information pointing to the sMAG-MN, and the outer destination address is an address pointing to the tMAG-MN Information
发送模块, 设置为: 通过所述转发隧道发送所述第二报文, 作为所述 tMAG-MN时, 向所述 sMAG-MN发送所述第二报文; 作为 sMAG-MN时 , 向所述 tMAG-MN发送所述第二报文。  The sending module is configured to: when the second message is sent by using the forwarding tunnel, the second message is sent to the sMAG-MN as the tMAG-MN; and when the sMAG-MN is used, The tMAG-MN sends the second packet.
优选地, 所述 MAG还包括转发隧道释放单元, 设置为: 作为所述 tMAG-MN时 , 在所述 tMAG-MN与 MAG-CN之间的隧道建立后 , 释放所述 tMAG-MN与 sMAG-MN之间的转发隧道。  Preferably, the MAG further includes a forwarding tunnel release unit, configured to: when the tMAG-MN is used, after the tunnel between the tMAG-MN and the MAG-CN is established, releasing the tMAG-MN and the sMAG- Forwarding tunnel between MNs.
优选地, 所述指向 sMAG-MN 或 tMAG-MN 的地址信息包括所述 sMAG-MN或 tMAG-MN的地址、 或 sMAG-MN或 tMAG-MN为所述 MN分 配的代理转交地址(CoA ) 。  Preferably, the address information directed to the sMAG-MN or the tMAG-MN includes an address of the sMAG-MN or tMAG-MN, or a proxy care-of address (CoA) assigned by the sMAG-MN or tMAG-MN to the MN.
为解决以上技术问题, 本发明还提供了一种本地移动性锚点 (LMA ) , 所述 LMA包括:  To solve the above technical problem, the present invention also provides a local mobility anchor (LMA), where the LMA includes:
注册模块, 其设置为: 接收代理绑定更新 (PBU ) 消息, 包括移动节点 Registration module, which is set to: Receive Proxy Binding Update (PBU) messages, including mobile nodes
(MN)发生移动接入网关 ( MAG ) 切换的场景下, 所述 MN 的目标 MAG(tMAG-MN)发送的代理绑定更新(PBU )消息, 其中携带指向所述 MN 的节点信息和指向所述 tMAG-MN的地址信息; 绑定关系维护模块, 其设置为: 根据接收的 PBU消息保存绑定关系, 包 括所述 MN和 sMAG-MN的绑定关系; (MN) A Proxy Binding Update (PBU) message sent by the target MAG (tMAG-MN) of the MN in the scenario of a mobile access gateway (MAG) handover, where the node information and the pointing location pointing to the MN are carried Address information of the tMAG-MN; a binding relationship maintenance module, configured to: save a binding relationship according to the received PBU message, including a binding relationship between the MN and the sMAG-MN;
地址信息管理模块, 其设置为: 在接收到所述 tMAG-MN发送的 PBU消 息后, 向所述 sMAG-MN 或 tMAG-MN发送第一消息, 其中发送给所述 sMAG-MN 的第一消息中携带指向所述 MN 的节点信息以及指向所述 tMAG-MN的地址信息; 发送给所述 tMAG-MN的第一消息中携带指向所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  An address information management module, configured to: after receiving the PBU message sent by the tMAG-MN, send a first message to the sMAG-MN or the tMAG-MN, where the first message sent to the sMAG-MN Carrying information about the node that points to the MN and address information that is directed to the tMAG-MN; the first message sent to the tMAG-MN carries node information that points to the MN and address information that points to the sMAG-MN .
优选地, 所述注册模块还设置为: 接收去注册(DeRegister )消息, 包括 所述 sMAG-MN发送的 DeRegister消息; 所述绑定关系维护模块还设置为: 根据接收的 DeRegister消息删除对应的绑定关系, 若发送所述第一消息前, 接收到所述 sMAG-MN发送的 DeRegister消息, 则发送所述第一消息后删除 所述 MN与 sMAG-MN之间的绑定关系。  Preferably, the registration module is further configured to: receive a DeRegister message, including a DeRegister message sent by the sMAG-MN; the binding relationship maintenance module is further configured to: delete the corresponding binding according to the received DeRegister message And determining a binding relationship between the MN and the sMAG-MN after the first message is sent, if the DeRegister message sent by the sMAG-MN is received before the first message is sent.
为解决以上技术问题, 本发明还提供了一种报文转发处理系统, 所述系 统包括如上所述的移动接入网关 ( MAG )和本地移动性锚点。  To solve the above technical problem, the present invention also provides a message forwarding processing system, the system comprising a mobile access gateway (MAG) and a local mobility anchor as described above.
本发明实施例提供的方法、 网元和系统, 在移动节点 (MN)发生移动接入 网关( MAG )切换的场景下, 在 tMAG-MN )和 sMAG-MN之间建立转发隧 道,从而使得 MAG切换期间, MN和 CN之间的报文可以通过该转发隧道顺 利转发。 附图概述  The method, the network element, and the system provided by the embodiment of the present invention establish a forwarding tunnel between the tMAG-MN and the sMAG-MN in a scenario where the mobile node (MN) has a mobile access gateway (MAG) handover, thereby making the MAG During the handover, packets between the MN and the CN can be forwarded smoothly through the forwarding tunnel. BRIEF abstract
附图说明用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与本发明的实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图 中:  The accompanying drawings are intended to provide a In the drawing:
图 1是现有 PMIP协议的逻辑架构图;  Figure 1 is a logical architecture diagram of an existing PMIP protocol;
图 2是根据现有 PMIP协议的 MN与 CN之间收发 IP报文的过程示意图; 图 3是根据现有 PMIP协议存在的传输路径浪费问题的示意图; 图 4是改造后的 PMIP协议的逻辑架构图;  2 is a schematic diagram of a process of transmitting and receiving IP packets between a MN and a CN according to the existing PMIP protocol; FIG. 3 is a schematic diagram of a transmission path waste problem existing according to the existing PMIP protocol; FIG. 4 is a logical architecture of the modified PMIP protocol. Figure
图 5是根据改造后的 PMIP协议的 MN与 CN之间收发 IP报文的过程示 意图; FIG. 5 is a process diagram of transmitting and receiving IP packets between a MN and a CN according to the modified PMIP protocol. Intention
图 6是本发明报文转发处理方法实施例一的示意图;  6 is a schematic diagram of Embodiment 1 of a packet forwarding processing method according to the present invention;
图 7是本发明报文转发处理方法实施例二的示意图;  7 is a schematic diagram of Embodiment 2 of a packet forwarding processing method according to the present invention;
图 8是本发明报文转发处理方法实施例三的示意图;  8 is a schematic diagram of Embodiment 3 of a packet forwarding processing method according to the present invention;
图 9是本发明报文转发处理方法实施例四的示意图;  9 is a schematic diagram of Embodiment 4 of a packet forwarding processing method according to the present invention;
图 10为本发明实施例>¾文转发处理方法的示意图;  FIG. 10 is a schematic diagram of a method for processing forwarding according to an embodiment of the present invention; FIG.
图 11至 14为本发明实施例 MAG的模块结构示意图;  11 to 14 are schematic structural diagrams of modules of a MAG according to an embodiment of the present invention;
图 15为本发明实施例 LAM的模块结构示意图。  FIG. 15 is a schematic structural diagram of a module of a LAM according to an embodiment of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
本发明旨在基于改造后的 PMIP协议, 提供一种报文转发处理的方法, 旨在实现当终端移动后, 使得 MN在改变 MAG后, MN与 CN之间的 IP数 据报文可以通过 sMAG-MN与 tMAG-MN之间的转发隧道, 从而避免了报文 的丟失, 满足 MN的移动性需求。  The present invention is directed to a method for packet forwarding processing based on the modified PMIP protocol. The method is to enable the MN to change the MAG after the terminal moves, and the IP data packet between the MN and the CN can pass the sMAG- The forwarding tunnel between the MN and the tMAG-MN avoids packet loss and meets the mobility requirements of the MN.
需要说明的是, 本发明中所说的指向所述 MN或 CN的节点信息, 是用 于表明是哪一个移动节点或对端节点的信息, 可以是移动节点或对端节点的 标识 ( ID ) 、 家乡地址也可以是或家乡网络前缀, 还可以是其中的两个信息 的组合或三个信息; 本发明所说的指向 MAG的地址信息是用于表明哪一个 MAG是移动节点或对端节点附着或曾附着的 MAG的信息, 可以是 MAG的 地址, 也可以是 MAG为移动节点 (MN )和对端节点 (CN )分配的代理转 交地址( CoA ) , 还可以是 MAG的地址和 CoA的组合。 指向所述 MN或 CN 的节点信息具体釆用什么信息表示, 指向 MAG的地址信息具体釆用什么信 息表示, 均由具体应用场景或相应网元可能得到的信息决定, 此非本发明重 点, 本发明对此不做限定, 实施例中的具体描述仅为示意, 不应作为对本发 明的限制。  It should be noted that the node information pointed to the MN or CN in the present invention is information for indicating which mobile node or the opposite node is, and may be an identifier (ID) of the mobile node or the opposite node. The home address may also be a home network prefix, or a combination of two pieces of information or three pieces of information; the address information of the MAG referred to in the present invention is used to indicate which MAG is a mobile node or a peer node. The information of the attached or previously attached MAG may be the address of the MAG, or may be the proxy care-of address (CoA) assigned by the MAG to the mobile node (MN) and the correspondent node (CN), or may be the address of the MAG and the CoA. combination. The information of the node information directed to the MN or the CN is specifically represented by what information, and the information indicating the address information of the MAG is specifically determined by the specific application scenario or information that may be obtained by the corresponding network element, which is not the focus of the present invention. The invention is not limited by the description, and the detailed description is not intended to limit the invention.
需要说明的是, LMA为 MN或 CN分配的是家乡网络前缀(HNP ) , MN或 CN收到路由器通告消息 (消息中携带 HNP )后, 进行地址配置, 获 得源自 HNP的家乡地址 HoA。 在 PMIPv6中, HNP和 HoA是——对应的, 也就是说, ΗΝΡ可以代表 HoA。 LMA/MAG有可能不知道 MN或 CN配置的 HoA,在具体的网络应用中, LMA/MAG也有可能获得 MN或 CN配置的 HoA。 当 LMA/MAG不知道 HoA时, LMA/MAG中的映射关系为 HNP与 CoA或 MAG地址的映射关系, 当 LMA/MAG知道 HoA时 , LMA/MAG中的映射关 系可以为 HoA与 CoA或 MAG地址的映射关系, 也可以为 HNP与 CoA或 MAG地址的映射关系。 It should be noted that the LMA allocates a home network prefix (HNP) for the MN or the CN. After receiving the router advertisement message (the message carries the HNP), the MN or the CN performs address configuration to obtain the home address HoA derived from the HNP. In PMIPv6, HNP and HoA are - corresponding, In other words, ΗΝΡ can represent HoA. The LMA/MAG may not know the HoA configured by the MN or the CN. In a specific network application, it is also possible for the LMA/MAG to obtain the HoA configured by the MN or CN. When the LMA/MAG does not know the HoA, the mapping relationship between the LMA and the MAG is the mapping between the HNP and the CoA or the MAG address. When the LMA/MAG knows the HoA, the mapping between the LMA and the MAG can be the HoA and CoA or MAG address. The mapping relationship can also be a mapping relationship between HNP and CoA or MAG addresses.
为了更清楚的描述本发明的内容, 在本发明中做如下规定:  In order to more clearly describe the contents of the present invention, the following provisions are made in the present invention:
sMAG-MN/MAG-MN是指当前 MN接入的 MAG, 该 MAG为 MN分配 的代理转交地址为 CoAl。  The sMAG-MN/MAG-MN refers to the MAG that the current MN accesses, and the proxy care-of address assigned by the MAG to the MN is CoAl.
tMAG-MN是指 MN移动后改变的 MAG,即切换后的 MN接入的 MAG, 该 MAG为 MN分配的代理转交地址为 CoA2。  The tMAG-MN refers to the MAG changed after the MN moves, that is, the MAG accessed by the MN after the handover, and the proxy care-of address assigned by the MAG to the MN is CoA2.
MAG-CN是指当前 CN接入的 MAG,该 MAG为 CN分配的代理转交地 址为 CoA3。  MAG-CN refers to the MAG currently accessed by the CN, and the proxy delivery address assigned by the MAG to the CN is CoA3.
LMA-MN是指 MN接入的 LMA, 该 LMA为 MN分配的家乡网络前缀 为 HNP1 , MN根据 HNP1配置得到的家乡地址为 HoAl。  The LMA-MN refers to the LMA that the MN accesses. The home network prefix assigned by the LMA to the MN is HNP1, and the home address obtained by the MN according to the HNP1 configuration is HoAl.
LMA-CN是指 CN接入的 LMA, 该 LMA为 CN分配的家乡网络前缀为 HNP3 , CN根据 HNP3配置得到的家乡地址为 HoA3。  LMA-CN refers to the LMA that the CN accesses. The home network prefix assigned by the LMA to the CN is HNP3, and the home address obtained by CN according to HNP3 is HoA3.
在本发明中, MAG的地址(包括 MN的 MAG还 CN的 MAG)可以接口地 址, 也可以是其它任何可以代表 MAG的地址。  In the present invention, the address of the MAG (including the MAG of the MN and the MAG of the CN) may be an interface address, or any other address that can represent the MAG.
为了解决现有 PMIP机制存在的传输路径浪费问题, 进而导致的一系列 不良后果, 需要对现有的 PMIP机制进行改造, 图 4为改造后的 PMIP协议架 构。  In order to solve the problem of waste of transmission path existing in the existing PMIP mechanism, a series of adverse consequences are required, and the existing PMIP mechanism needs to be modified. Figure 4 shows the modified PMIP protocol architecture.
与现有 PMIP协议的逻辑架构(如图 1所示)相比, 改造后的 PMIP协议 架构所包含的网元仍然为移动节点 MN、 通信对端 CN、 移动接入网关 MAG 以及 LMA。 其中 CN 可以是固定节点, 也可以是移动节点, 即具有相应的 MAG和 LMA。  Compared with the logical architecture of the existing PMIP protocol (as shown in Figure 1), the modified PMIP protocol architecture also includes the mobile node MN, the communication peer CN, the mobile access gateway MAG, and the LMA. The CN can be a fixed node or a mobile node, that is, it has a corresponding MAG and LMA.
MAG是 MN的第一跳路由器,其主要作用除了现有的 PMIP架构中的为 MN分配转交地址 CoA, 以及代替 MN执行与 MN的锚点 LMA之间的 PMIP 绑定外, 还需要具备如下功能: The MAG is the first hop router of the MN, and its main function is to allocate the care-of address CoA for the MN in the existing PMIP architecture, and perform PMIP between the MN and the anchor LMA of the MN instead of the MN. In addition to binding, you also need to have the following features:
向 LMA查询, 获得通信对端 CN当前连接的 MAG ( MAG-CN ) 的地址 或 CN的转交地址 CoA。  Query the LMA to obtain the address of the MAG (MAG-CN) to which the communication peer CN is currently connected or the care-of address CoA of the CN.
在 MN的 MAG ( MAG-MN )和 CN的 MAG之间建立双向隧道, 转发 MN与 CN之间的 IP数据 4艮文。  A bidirectional tunnel is established between the MAG (MAG-MN) of the MN and the MAG of the CN, and the IP data between the MN and the CN is forwarded.
LMA不再作为 MN的锚点, MN与 CN之间的 IP数据报文,也不再需要 经过 LMA, LMA需要保存当前 MAG-MN的地址和 /或 MN的 CoA, 以供 MN的通信对端来查询。  The LMA is no longer used as the anchor of the MN. The IP data packet between the MN and the CN is no longer required to pass through the LMA. The LMA needs to save the address of the current MAG-MN and/or the CoA of the MN for the communication peer of the MN. To query.
图 5所示为应用改造后的 PMIP架构时, MN与 CN之间收发 IP报文的 过程示意图。如图 5所示, MN与 CN之间的 IP数据报文需要经过 MAG-MN 与 MAG-CN之间的隧道。  Figure 5 shows the process of sending and receiving IP packets between the MN and the CN when the modified PMIP architecture is applied. As shown in Figure 5, the IP data packet between the MN and the CN needs to pass through the tunnel between the MAG-MN and the MAG-CN.
当 MN向 CN发送上行 IP报文时, 与现有的 PMIP机制一致, MN需要 将 IP报文发送到 MAG-MN。后续与现有 PMIP机制所不同的是,在本发明中 MAG-MN需要查询 MAG-CN的地址。在查询到 MAG-CN的地址(如 MAG-CN 的 IP地址后) , MAG-MN用 MAG-CN的地址作为终点, 建立 MAG-MN到 MAG-CN的隧道(如, IP in IP隧道 ) , 同时将上述 IP报文放在隧道中, 直 接发送给 MAG-CN。 当 MAG-CN收到隧道中传递来的 IP报文以后, 将 IP报 文发送给 CN。  When the MN sends an uplink IP packet to the CN, the MN needs to send the IP packet to the MAG-MN in accordance with the existing PMIP mechanism. Subsequent to the existing PMIP mechanism, in the present invention, the MAG-MN needs to query the address of the MAG-CN. After querying the address of the MAG-CN (such as the IP address of the MAG-CN), the MAG-MN uses the address of the MAG-CN as the destination to establish a tunnel from the MAG-MN to the MAG-CN (for example, an IP in IP tunnel). At the same time, the above IP packet is placed in the tunnel and sent directly to the MAG-CN. After receiving the IP packet from the tunnel, the MAG-CN sends the IP packet to the CN.
需要说明的是, MAG-MN也可以查询 CN的 CoA, 用 CN的 CoA地址 代替上述的 MAG-CN的地址, 也能达到相同的目的。 此时, MAG-MN使用 CoA作为终点, 建立 MAG-MN到 MAG-CN的隧道, 效果等同。 还值得说明 的是, MAG-MN在查询 CN的 MAG-CN的地址(或 CN的 CoA ) 时, 首先 在本地緩存中查询, 若查询不到再到其他网元上查询。 例如, 可以到 CN的 锚点 LMA ( LMA-CN )根据 CN的 HoA来查询。 查询到所需的结果以后, MAG-MN再将查询结果緩存在本地。将查询结果緩存在本地的好处是能避免 频繁的到其他网元去执行查询操作。  It should be noted that the MAG-MN can also query the CoA of the CN, and replace the address of the MAG-CN with the CoA address of the CN, and can achieve the same purpose. At this time, the MAG-MN uses the CoA as the end point and establishes the tunnel of the MAG-MN to the MAG-CN with the same effect. It is also worth noting that when the MAG-MN queries the address of the MAG-CN of the CN (or the CoA of the CN), it first queries the local cache, and if it does not query, it can query other network elements. For example, the CN LMA (LMA-CN) can be queried according to the HoA of CN. After querying the desired result, MAG-MN caches the query results locally. The advantage of caching the query results locally is that it can avoid frequent logins to other network elements.
同样道理, CN向 MN发送下行 IP报文时, 也使用上述类似的方法, 原 理相同, 不再赘述。 使用本发明的这种方法, MN与 CN间收发 IP报文的路 径变为为 MN<->MN的 MAG<->CN的 MAG<->CN, 无需经过 MN (或者 MN以及 CN ) 的锚点 LMA网元, 避免了传输路径的浪费等一系列问题。 By the same token, when the CN sends a downlink IP packet to the MN, the similar method is also used. The principle is the same and will not be described again. Using the method of the present invention, the way to send and receive IP messages between the MN and the CN The MAG<->CN of the MAG<->CN of the MN<->MN does not need to pass through the anchor LMA network element of the MN (or MN and CN), thereby avoiding a series of problems such as waste of the transmission path.
应用上述改造后的 PMIP机制, 当终端移动并改变连接的 MAG后,现有  Applying the modified PMIP mechanism, after the terminal moves and changes the connected MAG, the existing
给 sMAG-MN, 此时终端已经不在 sMAG-MN下, 因此会造成数据报文丟失, 本发明提供了一种报文转发处理方法, 使得 MN在改变 MAG后, MN与 CN 之间的 IP数据报文可以通过 sMAG-MN与 tMAG-MN之间的转发隧道,从而 避免了报文的丟失。 The sMAG-MN is not in the sMAG-MN, so the data packet is lost. The present invention provides a packet forwarding processing method, so that the MN changes the MAG and the IP data between the MN and the CN. The packet can pass the forwarding tunnel between the sMAG-MN and the tMAG-MN, thus avoiding packet loss.
如图 10所示, 本发明 "^文转发处理方法包括:  As shown in FIG. 10, the method for processing the forwarding of the present invention includes:
步骤 101 : 移动节点 (MN)发生移动接入网关(MAG )切换的场景下, 所 述 MN的目标 MAG ( tMAG-MN )和所述 MN的源 MAG ( sMAG-MN )获取 指向对方的地址信息, 建立转发隧道; 步骤 102: 切换完成前, 所述 tMAG-MN或 sMAG-MN通过所述转发隧 道转发所述 MN和对端节点 ( CN )之间的报文。  Step 101: In a scenario where a mobile node (MN) has a mobile access gateway (MAG) handover, the target MAG (tMAG-MN) of the MN and the source MAG (sMAG-MN) of the MN acquire address information of the opposite party. And establishing a forwarding tunnel. Step 102: Before the handover is completed, the tMAG-MN or the sMAG-MN forwards the packet between the MN and the opposite node (CN) through the forwarding tunnel.
为使本发明的目的、 技术方案和优点更加清楚, 下面结合附图和具体实 施例对本发明所述技术方案作进一步的详细描述, 以使本领域的技术人员可 以更好的理解本发明并能予以实施, 但所举实施例不作为对本发明的限定。  The technical solutions of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can It is to be understood that the examples are not intended to limit the invention.
实施例一  Embodiment 1
图 6是本发明报文转发处理方法实施例一。 如图 6所示, 具体包括以下 步骤:  FIG. 6 is a first embodiment of a packet forwarding processing method according to the present invention. As shown in Figure 6, the following steps are specifically included:
步骤 601 , MN通过附着过程接入到 PMIPv6域内后,向所属的 sMAG-MN 发送路由请求(RS, Router Solicitation ) 消息。  Step 601: After the MN accesses the PMIPv6 domain through the attach procedure, the MN sends a route request (RS, Router Solicitation) message to the sMAG-MN.
步骤 602 , sMAG-MN向 LMN-MN发送代理绑定更新( PBU, Proxy Binding Update ) 消息 , 代替 MN向 LMN注册, 消息中携带 MN标识( MN ID )和 sMAG-MN为 MN分配的代理广播地址 CoAl。 sMAG-MN的地址也在该消息 中发送给 LMA-MN。  Step 602: The sMAG-MN sends a Proxy Binding Update (PBU) message to the LMN-MN, instead of registering with the LMN, the message carries the MN identity (MN ID) and the proxy broadcast address allocated by the sMAG-MN for the MN. CoAl. The address of the sMAG-MN is also sent to the LMA-MN in this message.
步骤 603 , LMA-MN接受 PBU消息, 为 MN分配家乡网络前缀 (HNP1) , 建立 /更新绑定緩存列表(BCE, Binding Cache Entry ) , 并向 sMAG-MN返回 代理绑定确认 ( PBA, Proxy Binding Ack ) 消息。 Step 603: The LMA-MN accepts the PBU message, and allocates a home network prefix (HNP1) to the MN. Create/update a Binding Cache Entry (BCE) and return a Proxy Binding Ack (PBA) message to the sMAG-MN.
步骤 604, LMA-MN緩存 MN与 sMAG-MN的绑定关系, 具体可表现为 HNP1与 CoAl的映射关系, 或者 HNP1与 sMAG-MN地址的映射关系。  Step 604: The LMA-MN caches the binding relationship between the MN and the sMAG-MN, and may be represented by a mapping relationship between the HNP1 and the CoAl, or a mapping relationship between the HNP1 and the sMAG-MN address.
步骤 605 , sMAG-MN收到 PBA消息后 , 建立 MN的 HNP-CoA的映射 关系, 即 HNPl-CoAl的映射关系。  Step 605: After receiving the PBA message, the sMAG-MN establishes a mapping relationship between the HNP-CoA of the MN, that is, a mapping relationship of the HNP1-CoAl.
步骤 606, sMAG-MN向 MN返回路由通告( RA, Router Advertisement ) 消息, MN收到路由器通告消息后, 进行地址配置, 获得源自家乡网络前缀 HNP1的家乡地址 HoAl。  Step 606: The sMAG-MN returns a RA (Router Advertisement) message to the MN. After receiving the router advertisement message, the MN performs address configuration to obtain the home address HoAl originating from the home network prefix HNP1.
步骤 607, sMAG-MN收到 MN的发送给 CN的上行 IP数据报文时, 在 本地检查是否緩存有 CN与 MAG-CN的映射关系即指向所述 CN的节点信息 与指向所述 MAG-CN的地址信息之间的映射关系,该映射关系可具体表现为 HNP3 ( CN的家乡网络前缀) /HoA3与 MAG-CN的地址的映射关系, 或者 HNP3/HoA3与 CN的 CoA3之间的映射关系 ,若没有 ,则向 LMA-MN/LMA-CN 查询, 获得上述映射关系后, sMAG-MN将查询结果緩存在本地; 若有则直 接使用本地緩存的映射关系。 sMAG-MN使用 MAG-CN的地址或 CN的 CoA3 作为终点 , 建立 sMAG-MN到 MAG-CN的隧道(如, IP in IP隧道) , 同时 将上述 IP数据报文放在隧道中, 直接发送给 MAG-CN。反之, 当 CN发送 IP 数据报文给 MN 时, MAG-CN也需要做上述操作, 将 IP数据报文通过 sMAG-MN到 MAG-CN的隧道直接发送给 sMAG-MN。  Step 607, when the sMAG-MN receives the uplink IP data packet sent by the MN to the CN, it checks locally whether the mapping relationship between the CN and the MAG-CN is cached, that is, the node information pointing to the CN and the MAG-CN The mapping relationship between the address information, which may be specifically represented by the mapping relationship between HNP3 (CN's home network prefix)/HoA3 and the address of the MAG-CN, or the mapping relationship between the HNP3/HoA3 and the CN's CoA3. If not, query the LMA-MN/LMA-CN to obtain the above mapping relationship, and then sMAG-MN caches the query result locally; if so, directly uses the local cache mapping relationship. The sMAG-MN uses the address of the MAG-CN or the CoA3 of the CN as the destination, establishes a tunnel from the sMAG-MN to the MAG-CN (for example, an IP in IP tunnel), and puts the above IP data packet in the tunnel and directly sends it to the tunnel. MAG-CN. On the other hand, when the CN sends an IP data packet to the MN, the MAG-CN also needs to perform the above operation to directly send the IP data packet to the sMAG-MN through the tunnel from the sMAG-MN to the MAG-CN.
步骤 608 , sMAG-MN收到第一个 MN与 CN之间的 IP数据报文后, 需 要在本地建立 CN的 HoA3/HNP3与 CN的 CoA3或者 HoA3/HNP3与 MAG-CN 的地址的映射关系。  Step 608: After receiving the IP data packet between the first MN and the CN, the sMAG-MN needs to locally establish a mapping relationship between the HoA3/HNP3 of the CN and the CoA3 or the HoA3/HNP3 of the CN and the address of the MAG-CN.
步骤 609 , MN移动 ,并更换 sMAG-MN„ MN通过附着过程接入到 PMIPv6 域内后, 向所属的 tMAG-MN发送 RS消息。  Step 609: The MN moves and replaces the sMAG-MN. After the MN accesses the PMIPv6 domain through the attach procedure, it sends an RS message to the associated tMAG-MN.
当 sMAG-MN检测到 MN切换 /移动走后, 可选地, sMAG-MNLMA-MN 发起去注册 (DeRegister ) 流程。 sMAG-MN 向 LMA-MN 发起去注册 ( DeRegister ) 流程。 若 LMA-MN返回 PBA消息前收到了 sMAG-MN 的 DeRegister消息, 则 LMA仍需要保留 HoAl/HNPl与 CoAl的映射关系, 或 者 HoAl/HNPl与 sMAG-MN地址的映射关系。 After the sMAG-MN detects the MN handover/movement, optionally, the sMAG-MNLMA-MN initiates a DeRegister procedure. The sMAG-MN initiates a DeRegister process to the LMA-MN. If the LMA-MN receives the sMAG-MN before returning the PBA message The DeRegister message, the LMA still needs to maintain the mapping relationship between HoAl/HNP1 and CoAl, or the mapping relationship between HoAl/HNP1 and sMAG-MN addresses.
步骤 610, tMAG-MN向 LMN-MN发送 PBU消息, 代替 MN向 LMN注 册, 消息中携带 MN标识(MN ID ) 、 tMAG-MN为 MN新分配的代理广播 地址 CoA2和 MN的家乡网络前缀 HNP1。 tMAG-MN的地址也在该消息中发 送给 LMA-MN。  Step 610: The tMAG-MN sends a PBU message to the LMN-MN, instead of the MN registering with the LMN, the message carries the MN identity (MN ID), the tMAG-MN is the newly assigned proxy broadcast address CoA2 of the MN, and the home network prefix HNP1 of the MN. The address of the tMAG-MN is also sent to the LMA-MN in this message.
步骤 611 , LMA-MN接受 PBU消息, 更新 MN的绑定緩存列表 BCE, 并向 tMAG-MN返回 PBA消息。 在该消息中携带 sMAG-MN为 MN分配的 CoAl , 和 /或 sMAG-MN的地址。  Step 611: The LMA-MN accepts the PBU message, updates the binding cache list BCE of the MN, and returns a PBA message to the tMAG-MN. The message carries the address of the CoAl assigned by the sMAG-MN to the MN, and/or the sMAG-MN.
步骤 612, tMAG-MN向 MN返回 RA消息。  Step 612, the tMAG-MN returns an RA message to the MN.
步骤 613 , tMAG-MN收到 PBA消息后, 建立 MN的 HNP-CoA的映射 关系, 即 HNPl-CoA2的映射关系。  Step 613: After receiving the PBA message, the tMAG-MN establishes a mapping relationship between the HNP-CoA of the MN, that is, the mapping relationship of the HNP1-CoA2.
步骤 614 , tMAG-MN向 sMAG-MN发送切换指示消息, 在该消息中携 带 tMAG-MN为 MN分配的 CoA2, 和 /或 tMAG-CN的地址。 在该消息中还 需要携带 MN标识或者 HNP1 , 用来识别 /区分用户。  Step 614: The tMAG-MN sends a handover indication message to the sMAG-MN, where the message carries the address of the CoA2, and/or tMAG-CN allocated by the MN to the MN. In this message, the MN identity or HNP1 is also required to identify/distinguish the user.
其中,切换指示消息的源地址和目的地址可以分别是 MN的 CoA2和 MN 的 CoAl , 也可以分别是 tMAG-MN的地址和 sMAG-MN的地址, 即分别是 指向 tMAG-MN的地址信息和指向 sMAG-MN的地址信息。  The source address and the destination address of the handover indication message may be CoA2 of the MN and CoAl of the MN, respectively, or may be an address of the tMAG-MN and an address of the sMAG-MN, that is, address information and a pointer to the tMAG-MN, respectively. Address information of sMAG-MN.
切换指示消息的目的就是将 tMAG-MN 的地址或者 CoA2 发送给 sMAG-MN, 以便建立 sMAG-MN与 tMAG-MN之间的转发隧道。 消息的名 称可以是其它名称, 只要该消息携带了 tMAG-MN的地址或 CoA2即可。  The purpose of the handover indication message is to send the address of the tMAG-MN or CoA2 to the sMAG-MN to establish a forwarding tunnel between the sMAG-MN and the tMAG-MN. The name of the message can be other names as long as the message carries the address of the tMAG-MN or CoA2.
步骤 615, 本步骤可选。 sMAG-MN发送切换确认消息给 tMAG-MN。 执行完步骤 614、 615后, sMAG-MN与 tMAG-MN之间的转发隧道建立 完成, 后续 MN与 CN之间的 IP数据报文均需要通过该转发隧道发送。  Step 615, this step is optional. The sMAG-MN sends a handover confirmation message to the tMAG-MN. After the steps 614 and 615 are performed, the forwarding tunnel between the sMAG-MN and the tMAG-MN is established, and the IP data packets between the MN and the CN need to be sent through the forwarding tunnel.
步骤 616, 当 sMAG-MN收到 CN发送给 MN的下行 IP数据才艮文时, 该 下行 IP 数据 艮文的源地址指向 MAG-CN, 目的地址指向 sMAG-MN, sMAG-MN需要先将 MAG-CN加在数据报文头的封装解开,然后在该数据报 文头增加一层封装, 使用 sMAG-MN的地址或 MN的 CoAl作为源地址, 使 用 tMAG-MN的地址或 MN的 CoA2作为目的地址, 将上述 IP数据 文直接 发送给 tMAG-MN, 然后由 tMAG-CN删除 /剥离该封装, 将上述 IP数据报文 直接发送给 MN。 或者, sMAG-CN收到数据报文后, 直接在 MAG-CN的封 装外, 再加一层封装, 使用 sMAG-MN的地址或 MN的 CoAl作为源地址, 使用 tMAG-MN的地址或 MN的 CoA2作为目的地址, 将上述 IP数据报文直 接发送给 tMAG-MN , 此时 tMAG-MN 收到的数据报文具有两层封装, tMAG-MN需要删除 /剥离这两层封装后,将上述 IP数据报文直接发送给 MN。 Step 616: When the sMAG-MN receives the downlink IP data sent by the CN to the MN, the source address of the downlink IP data source points to the MAG-CN, the destination address points to the sMAG-MN, and the sMAG-MN needs to firstly MAG -CN is added to the encapsulation of the data packet header, and then a layer of encapsulation is added to the header of the data packet, and the address of the sMAG-MN or the CoAl of the MN is used as the source address. The IP data file is directly sent to the tMAG-MN by using the address of the tMAG-MN or the CoA2 of the MN as the destination address, and then the packet is deleted/detached by the tMAG-CN, and the IP data packet is directly sent to the MN. Alternatively, after receiving the data packet, the sMAG-CN directly encapsulates the MAG-CN, adds a layer of encapsulation, uses the address of the sMAG-MN or the CoAl of the MN as the source address, and uses the address of the tMAG-MN or the MN. As the destination address, CoA2 sends the IP data packet directly to the tMAG-MN. At this time, the data packet received by the tMAG-MN has two layers of encapsulation. After the tMAG-MN needs to delete/peel the two layers of encapsulation, the IP address is the same. The data message is sent directly to the MN.
步骤 617a, tMAG-MN收到 MN的发送给 CN的上行 IP数据报文时, 该 上行 IP数据艮文的源地址指向所述 MN , 目的地址指向所述 CN , tMAG-MN 在该数据报文头增加一层封装, 使用 tMAG-MN的地址或 MN的 CoA2作为 源地址, 使用 sMAG-MN的地址或 MN的 CoAl作为目的地址, 将上述 IP数 据报文直接发送给 sMAG-MN, 然后由 sMAG-CN删除 /剥离该封装, 再如步 骤 607所述将上述 IP数据报文直接发送给 MAG-CN。 或者,  Step 617a: When the tMAG-MN receives the uplink IP data packet sent by the MN to the CN, the source address of the uplink IP data packet points to the MN, the destination address points to the CN, and the tMAG-MN is in the data packet. Add a layer of encapsulation, use the address of the tMAG-MN or the CoA2 of the MN as the source address, and use the address of the sMAG-MN or the CoAl of the MN as the destination address to send the IP data packet directly to the sMAG-MN, and then by the sMAG. - CN deletes/peeles the encapsulation, and then sends the IP data packet directly to the MAG-CN as described in step 607. Or,
步骤 617b, tMAG-MN收到 MN的发送给 CN的上行 IP数据报文时, 在 该数据报文头增加一层封装, 使用 tMAG-MN的地址或 MN的 CoA2作为源 地址,使用 MAG-CN的地址或 CN的 CoAs作为目的地址, 将上述 IP数据报 文直接发送给 MAG-CN, 然后由 MAG-CN删除 /剥离该封装, 将上述 IP数据 报文直接发送给 CN。  Step 617b: When receiving the uplink IP data packet sent by the MN to the CN, the tMAG-MN adds a layer encapsulation to the data packet header, and uses the address of the tMAG-MN or the CoA2 of the MN as the source address, and uses the MAG-CN. The IP address of the IP address of the CN or the CoAs of the CN is directly sent to the MAG-CN, and then the MAG-CN deletes/discards the encapsulation and sends the IP data packet directly to the CN.
在此步骤中, MAG-CN通过数据报文可以学习到 tMAG-MN的地址和 / 或 tMAG-MN为 MN分配的 CoA2 , 后续 CN给 MN的 IP数据 文就可以如 步骤 607所描述的直接发给 tMAG-MN。 当 tMAG-MN与 MAG-CN之间的隧 道建立后 , tMAG-MN释放所述 tMAG-MN与 sMAG-MN之间的转发隧道。  In this step, the MAG-CN can learn the address of the tMAG-MN and/or the CoA2 that the tMAG-MN allocates for the MN through the data packet, and the IP data of the subsequent CN to the MN can be directly sent as described in step 607. Give tMAG-MN. After the tunnel between the tMAG-MN and the MAG-CN is established, the tMAG-MN releases the forwarding tunnel between the tMAG-MN and the sMAG-MN.
实施例二  Embodiment 2
图 7是本发明报文转发处理方法实施例二。 如图 7所示, 包括以下步骤: 步骤 701-710, 同步骤 601-610。  FIG. 7 is a second embodiment of a packet forwarding processing method according to the present invention. As shown in FIG. 7, the following steps are included: Steps 701-710, and steps 601-610.
步骤 711 , LMA-MN接受 PBU消息, 更新 MN的绑定緩存列表 BCE, 并向 tMAG-MN返回 PBA消息。  Step 711: The LMA-MN accepts the PBU message, updates the binding cache list BCE of the MN, and returns a PBA message to the tMAG-MN.
步骤 712, 713 , 同步骤 612、 613。 步骤 714, LMA-MN向 sMAG-MN发送切换指示消息, 在该消息中携带 tMAG-MN为 MN分配的 CoA2,和 /或 tMAG-CN的地址。在该消息中还需要 携带 MN标识或者 HNP1 , 用来识别 /区分用户。 Steps 712, 713 are the same as steps 612 and 613. Step 714: The LMA-MN sends a handover indication message to the sMAG-MN, where the message carries the address of the CoA2, and/or the tMAG-CN allocated by the tMAG-MN for the MN. The MN identity or HNP1 needs to be carried in the message to identify/distinguish the user.
切换指示消息的目的就是将 tMAG-MN 的地址或者 CoA2 发送给 sMAG-MN, 消息的名称可以是其它名称, 只要该消息携带了 tMAG-MN 的 地址或 CoA2即可。  The purpose of the handover indication message is to send the address of the tMAG-MN or CoA2 to the sMAG-MN. The name of the message may be other names as long as the message carries the address of the tMAG-MN or CoA2.
该步骤可以与步骤 711并行进行, 也可以在其后的任意时刻发起。  This step can be performed in parallel with step 711 or at any time thereafter.
步骤 715, 收到切换指示消息后, sMAG-MN向 tMAG-MN隧道建立请 求消息, 在该消息中携带 sMAG-MN为 MN分配的 CoAl , 和 /或 sMAG-CN 的地址。 在该消息中还需要携带 MN标识或者 HNP1 , 用来识别 /区分用户。  Step 715: After receiving the handover indication message, the sMAG-MN establishes a request message to the tMAG-MN tunnel, where the message carries the address of the CoAl, and/or sMAG-CN allocated by the sMAG-MN for the MN. In this message, it is also necessary to carry the MN identity or HNP1 to identify/distinguish the user.
其中,隧道建立请求消息的源地址和目的地址可以是 MN的 CoAl和 MN 的 CoA2 , 也可以是 sMAG-MN的地址和 tMAG-MN的地址。  The source address and the destination address of the tunnel establishment request message may be CoAl of the MN and CoA2 of the MN, or may be an address of the sMAG-MN and an address of the tMAG-MN.
隧道建立请求消息的目的就是将 sMAG-MN 的地址或者 CoAl 发送给 tMAG-MN, 以便建立 sMAG-MN与 tMAG-MN之间的转发隧道。 消息的名 称可以是其它名称, 只要该消息携带了 sMAG-MN的地址或 CoAl即可。  The purpose of the tunnel establishment request message is to send the address of the sMAG-MN or CoAl to the tMAG-MN to establish a forwarding tunnel between the sMAG-MN and the tMAG-MN. The name of the message can be other names as long as the message carries the address of sMAG-MN or CoAl.
步骤 716,本步骤可选。 tMAG-MN发送隧道建立响应消息给 sMAG-MN。 步骤 717, 本步骤可选。 sMAG-MN发送切换确认消息给 LMA-MN。 步骤 718, 717a, 719b, 同步骤 616, 617a, 617b。  In step 716, this step is optional. The tMAG-MN sends a tunnel setup response message to the sMAG-MN. Step 717, this step is optional. The sMAG-MN sends a handover confirmation message to the LMA-MN. Steps 718, 717a, 719b, the same steps 616, 617a, 617b.
实施例三  Embodiment 3
图 8是本发明报文转发处理方法实施例三。 如图 8所示, 包括以下步骤: 步骤 801-806, 同步骤 701-706。  FIG. 8 is a third embodiment of a packet forwarding processing method according to the present invention. As shown in FIG. 8, the following steps are included: Steps 801-806, the same steps as 701-706.
步骤 807, sMAG-MN在收到 PBA消息后设置定时器 1 , 该定时器的目 的是为了确定 MN何时离开 sMAG-MN。  Step 807, the sMAG-MN sets a timer 1 after receiving the PBA message, and the purpose of the timer is to determine when the MN leaves the sMAG-MN.
当定时器超 1时, 且没有 MN的上下行数据时, sMAG-MN认为 MN已 经离开了 sMAG-MN。  When the timer exceeds 1, and there is no uplink and downlink data of the MN, the sMAG-MN considers that the MN has left the sMAG-MN.
或者, 当定时器 1超时, 且没有 MN的上下行数据时, sMAG-MN设置 定时器 2, 监控在定时器 2的时间范围内 MN是否有上下行数据, 若没有, 则认为 MN已经离开了 sMAG-MN, 若有则, MN仍附着在 sMAG-MN上, 重设定时器 1。 Or, when the timer 1 expires and there is no uplink and downlink data of the MN, the sMAG-MN sets the timer 2, and monitors whether the MN has uplink and downlink data in the time range of the timer 2, if not, It is considered that the MN has left the sMAG-MN, and if so, the MN is still attached to the sMAG-MN, and the timer 1 is reset.
当定时器超时,还有 MN的上下行数据时, MN仍附着在 sMAG-MN上, 重设定时器 1。  When the timer expires and there is MN uplink and downlink data, the MN still attaches to the sMAG-MN and resets the timer 1.
当 sMAG-MN检测到 MN切换 /移动走时, 定时器 1还未超时, 认为 MN 已经离开了 sMAG-MN, 此时按照定时器 1超时处理, 即开始执行步骤 816。  When the sMAG-MN detects the MN handover/movement, the timer 1 has not expired, and it is considered that the MN has left the sMAG-MN. At this time, according to the timer 1 timeout processing, the step 816 is started.
步骤 808-步骤 813 , 同步骤 707-712。  Step 808 - Step 813, the same steps as 707-712.
步骤 814,在步骤 807设置的定时器 1超时,如步骤 807所述, sMAG-MN 判断 MN是否离开了 sMAG-MN, 若离开则执行后续步骤, 若没有, 则按照 步骤 807所述重设定时器 1。  In step 814, the timer 1 set in step 807 times out. As described in step 807, the sMAG-MN determines whether the MN has left the sMAG-MN, and if not, performs the subsequent steps. If not, the method is reset according to step 807. Timer 1.
步骤 815, sMAG-MN向 LMA-MN发送切换查询请求 , 消息中携带 MN 标识或者 HoAl。  Step 815: The sMAG-MN sends a handover query request to the LMA-MN, where the message carries the MN identifier or HoAl.
步骤 816, LMA-MN向 sMAG-MN返回切换查询响应消息, 在该消息中 携带 tMAG-MN为 MN分配的 CoA2, 和 /或 tMAG-CN的地址。 在该消息中 还需要携带 MN标识或者还 HoAl , 用来识别 /区分用户。  Step 816: The LMA-MN returns a handover inquiry response message to the sMAG-MN, where the message carries the address of the CoA2, and/or tMAG-CN allocated by the tMAG-MN to the MN. In this message, it is also necessary to carry the MN identity or HoAl to identify/distinguish the user.
切换查询请求消息和切换查询响应消息的目的就是从 LMA-MN 查询 tMAG-MN的地址或者 CoA2, 消息的名称可以是其它名称, 只要该消息完成 了上述查询功能即可。  The purpose of switching the query request message and the switch query response message is to query the address of the tMAG-MN or CoA2 from the LMA-MN. The name of the message may be other names as long as the message completes the above query function.
步骤 817-819, 820a, 820b, 同步骤 716-718, 719a, 719b。  Steps 817-819, 820a, 820b, and steps 716-718, 719a, 719b.
本发明的上述实施例均以 PMIP流程为例描述了 tMAG-MN与 sMAG-MN 之间转发隧道的建立, 该实施例同样适用与 PMIP的快速切换( FPMIP, Fast Handovers for Proxy Mobile IPv6 ) 。  The above embodiments of the present invention describe the establishment of a forwarding tunnel between the tMAG-MN and the sMAG-MN by taking the PMIP process as an example. This embodiment is also applicable to Fast Handovers for Proxy Mobile (FPMIP).
实施例四  Embodiment 4
图 9是本发明报文转发处理方法实施例四, 该实施例适用于 FPMIP。 如 图 9所示, 具体包括以下步骤:  FIG. 9 is a fourth embodiment of a message forwarding processing method according to the present invention. The embodiment is applicable to FPMIP. As shown in Figure 9, the following steps are specifically included:
步骤 901-908, 同步骤 601-608。  Steps 901-908, the same steps 601-608.
步骤 909, 当 MN准备切换时, sMAG-MN会收到下层链路的指示, 指 示 MN即将切换。 该指示的实现在不同的应用场景中可能会有不同的实现, 这里不做具体描述。 Step 909, when the MN is ready to switch, the sMAG-MN receives an indication of the lower layer link, The MN is about to switch. The implementation of the indication may have different implementations in different application scenarios, and is not specifically described herein.
步骤 910, sMAG-MN向 tMAG-MN发送切换指示( Handover Indication, Step 910: The sMAG-MN sends a handover indication (Handover Indication) to the tMAG-MN.
HI ) 消息, 消息中携带 MN标识。 HI) message, the message carries the MN identity.
步骤 911 , tMAG-MN向 LMN-MN发送 PBU消息, 代替 MN向 LMN注 册, 消息中携带 MN标识(MN ID ) 、 tMAG-MN为 MN新分配的代理广播 地址 CoA2和 MN的家乡网络前缀 HNP1。 tMAG-MN的地址也在该消息中发 送给 LMA-MN。  Step 911, the tMAG-MN sends a PBU message to the LMN-MN, instead of the MN registering with the LMN, the message carries the MN identity (MN ID), the tMAG-MN is the newly assigned proxy broadcast address CoA2 of the MN, and the home network prefix HNP1 of the MN. The address of the tMAG-MN is also sent to the LMA-MN in this message.
步骤 912, LMA-MN接受 PBU消息, 更新 MN的绑定緩存列表 BCE, 并向 tMAG-MN返回 PBA消息。 在该消息中携带 sMAG-MN为 MN分配的 CoAl , 和 /或 sMAG-MN的地址。  Step 912: The LMA-MN accepts the PBU message, updates the binding cache list BCE of the MN, and returns a PBA message to the tMAG-MN. The message carries the address of the CoAl assigned by the sMAG-MN to the MN, and/or the sMAG-MN.
步骤 913 , tMAG-MN收到 PBA消息后, 建立 MN的 HNP-CoA的映射 关系, 即 HNPl-CoA2的映射关系。  Step 913: After receiving the PBA message, the tMAG-MN establishes a mapping relationship between the HNP-CoA of the MN, that is, the mapping relationship of the HNP1-CoA2.
步骤 914 , tMAG-MN 向 sMAG-MN 返回切换证实(Handover Acknowledge, Hack)消息。 在该消息中携带 tMAG-MN为 MN分配的 CoA2, 和 /或 tMAG-CN的地址。 在该消息中还需要携带 MN标识或者 HNP1 , 用来 识另 区分用户。  Step 914, the tMAG-MN returns a Handover Acknowledge ( Hack) message to the sMAG-MN. The message carries the address of CoA2, and / or tMAG-CN assigned by the tMAG-MN to the MN. In this message, the MN identity or HNP1 needs to be carried in it to identify another user.
其中,切换证实消息的源地址和目的地址可以分别是 MN的 CoA2和 MN 的 CoAl , 也可以分别是 tMAG-MN的地址和 sMAG-MN的地址, 即分别是 指向 tMAG-MN的地址信息和指向 sMAG-MN的地址信息。  The source address and the destination address of the handover confirmation message may be CoA2 of the MN and CoAl of the MN, respectively, or may be an address of the tMAG-MN and an address of the sMAG-MN, that is, address information and a pointer to the tMAG-MN, respectively. Address information of sMAG-MN.
步骤 915, sMAG-MN向下层链路发送切换命令消息, 该消息被转发给 匪。  Step 915: The sMAG-MN sends a handover command message to the lower layer link, and the message is forwarded to the 匪.
步骤 916, 本步骤可选。 sMAG-MN收到 Hack消息后发送切换确认消息 给 tMAG-MN„  Step 916, this step is optional. After the sMAG-MN receives the Hack message, it sends a handover confirmation message to tMAG-MN.
步骤 917, MN切换到 tMAG-MN。 MN通过附着过程接入到 PMIPv6域 内后, 向所属的 tMAG-MN发送 RS消息。  In step 917, the MN switches to tMAG-MN. After the MN accesses the PMIPv6 domain through the attach procedure, it sends an RS message to the associated tMAG-MN.
步骤 918, tMAG-CN向 MN返回 RA消息。  Step 918, the tMAG-CN returns an RA message to the MN.
步骤 919, 920a, 920b同步骤 616, 617a, 617b。 对应于以上方法, 本发明还提供了一种移动接入网关 (MAG ) , 如 11 至 14所示, 所述 MAG包括: Steps 919, 920a, 920b are the same as steps 616, 617a, 617b. Corresponding to the above method, the present invention further provides a mobile access gateway (MAG), as shown in FIGS. 11 to 14, the MAG includes:
转发隧道建立单元, 移动节点 (MN)发生移动接入网关(MAG )切换的场 景下, 作为所述 MN 的目标 MAG ( tMAG-MN ) 时, 用于获取指向所述 sMAG-MN的地址信息 ,建立转发隧道;作为所述 MN的源 MAG( sMAG-MN ) 时, 用于获取指向所述 tMAG-MN的地址信息, 建立转发隧道;  a forwarding tunnel establishing unit, configured to acquire address information directed to the sMAG-MN when the mobile node (MN) is in a mobile access gateway (MAG) handover scenario, as the target MAG (tMAG-MN) of the MN, Establishing a forwarding tunnel; when the source MAG (sMAG-MN) of the MN is used, acquiring address information that points to the tMAG-MN, and establishing a forwarding tunnel;
报文转发单元, 用于通过所述转发隧道转发所述 MN和对端节点 (CN ) 之间的报文。  And a packet forwarding unit, configured to forward, by using the forwarding tunnel, a packet between the MN and the correspondent node (CN).
进一步地, 如图 11所示, 所述转发隧道建立单元包括:  Further, as shown in FIG. 11, the forwarding tunnel establishing unit includes:
消息接收模块, 作为所述 tMAG-MN时, 用于接收所述 MN的本地移动 性锚点( LMA-MN )发送的第一消息, 其中携带指向所述 sMAG-MN的地址 信息; 以及,作为所述 sMAG-MN时,接收所述 tMAG-MN发送的第二消息; 消息发送模块, 作为所述 tMAG-MN时, 用于根据所述第一消息中指向 所述 sMAG-MN的地址信息向所述 sMAG-MN发送第二消息, 其中携带指向 所述 MN的节点信息以及指向所述 tMAG-MN的地址信息。  a message receiving module, configured, as the tMAG-MN, to receive a first message sent by the local mobility anchor (LMA-MN) of the MN, where the address information that is directed to the sMAG-MN is carried; Receiving, by the sMAG-MN, the second message sent by the tMAG-MN; and the message sending module, when the tMAG-MN is used, according to the address information of the first message that points to the sMAG-MN The sMAG-MN sends a second message, where the node information that points to the MN and the address information that points to the tMAG-MN are carried.
进一步地, 如图 11所示, 所述转发隧道建立单元包括:  Further, as shown in FIG. 11, the forwarding tunnel establishing unit includes:
消息接收模块, 作为所述 sMAG-MN时, 用于接收所述 MN的本地移动 性锚点 (LMA-MN )发送的第一消息, 其中携带指向所述 MN的节点信息以 及指向所述 tMAG-MN的地址信息; 以及, 作为所述 tMAG-MN时, 接收所 述 sMAG-MN发送的第二消息;  a message receiving module, when the sMAG-MN is used, to receive a first message sent by the local mobility anchor (LMA-MN) of the MN, where the node information that points to the MN is carried and the tMAG- The address information of the MN; and, when the tMAG-MN is used, receiving the second message sent by the sMAG-MN;
消息发送模块, 作为所述 sMAG-MN时, 用于根据所述第一消息中指向 所述 tMAG-MN的地址信息向所述 tMAG-MN发送第二消息, 其中携带指向 所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  a message sending module, configured to send, by the sMAG-MN, a second message to the tMAG-MN according to the address information that is directed to the tMAG-MN in the first message, where the node information that points to the MN is carried And address information pointing to the sMAG-MN.
进一步地, 如图 12所示, 所述转发隧道建立单元包括:  Further, as shown in FIG. 12, the forwarding tunnel establishing unit includes:
查询模块 ,作为 sMAG-MN且判断所述 MN离开时,用于向所述 LMA-MN 发送第一消息, 用于查询指向所述 tMAG-MN的地址信息, 所述第一消息中 携带指向所述 MN的节点信息;  The querying module, as the sMAG-MN, and determining that the MN is leaving, is configured to send a first message to the LMA-MN, where the information about the address of the tMAG-MN is queried, where the first message carries a pointing address Describe the node information of the MN;
消息接收模块, 作为 sMAG-MN时, 用于接收所述 LMA-MN发送的第 二消息, 其中携带指向所述 MN的节点信息以及指向所述 tMAG-MN的地址 信息; 作为 tMAG-MN时, 用于接收所述 sMAG-MN发送的第三消息; a message receiving module, when used as an sMAG-MN, for receiving the first transmission by the LMA-MN And a second message, where the information about the node that is directed to the MN and the address information that is directed to the tMAG-MN is carried; and when the tMAG-MN is used, the third message that is sent by the sMAG-MN is received;
消息发送模块, 作为 sMAG-MN时, 用于向所述 tMAG-MN发送第三消 息,其中携带指向所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  The message sending module, when the sMAG-MN is used, is configured to send a third message to the tMAG-MN, where the node information that points to the MN and the address information that points to the sMAG-MN are carried.
进一步地, 判断所述 MN离开的情形包括预设定时器时间内未收到所述 Further, determining that the MN is away includes not receiving the preset timer time
MN的上下行数据, 或检测到所述 MN切换或移动走。 The uplink and downlink data of the MN, or detecting that the MN switches or moves away.
进一步地, 如图 13所示, 所述 文转发单元包括:  Further, as shown in FIG. 13, the text forwarding unit includes:
封装模块, 用于封装第一报文生成第二报文, 作为所述 tMAG-MN时, 所述第 文的源地址指向所述 MN, 目的地址指向所述 CN; 所述第二 "^文 的外层源地址为指向所述 tMAG-MN的地址信息, 外层目的地址为指向所述 sMAG-MN的地址信息; 作为 sMAG-MN时, 所述第一报文的源地址指向所 述 CN的 MAG ( MAG-CN ) , 目的地址指向所述 sMAG-MN; 所述第二报文 的外层源地址为指向所述 sMAG-MN的地址信息, 外层目的地址为指向所述 tMAG-MN的地址信息;  An encapsulating module, configured to encapsulate a first packet to generate a second packet, where the source address of the text is directed to the MN, and the destination address is directed to the CN; the second "^" The outer source address is the address information of the tMAG-MN, and the outer destination address is the address information of the sMAG-MN; when the sMAG-MN is used, the source address of the first packet points to the CN MAG (MAG-CN), the destination address is directed to the sMAG-MN; the outer source address of the second packet is address information directed to the sMAG-MN, and the outer destination address is directed to the tMAG-MN Address information;
发送模块, 用于通过所述转发隧道发送所述第二报文, 作为所述 tMAG-MN时 , 向所述 sMAG-MN发送所述第二报文 , 作为 sMAG-MN时 , 向所述 tMAG-MN发送所述第二报文。  a sending module, configured to send the second packet to the tMAG-MN, when the second packet is sent to the sMAG-MN as the sMAG-MN, to the tMAG - The MN sends the second message.
进一步地, 如图 14所示, 所述 MAG还包括转发隧道释放单元, 作为所 述 tMAG-MN时,用于在所述 tMAG-MN与 MAG-CN之间的隧道建立后,释 放所述 tMAG-MN与 sMAG-MN之间的转发隧道。  Further, as shown in FIG. 14, the MAG further includes a forwarding tunnel release unit, where the tMAG-MN is used to release the tMAG after the tunnel between the tMAG-MN and the MAG-CN is established. - Forwarding tunnel between MN and sMAG-MN.
如前所述, 指向所述 MN的节点信息包括所述 MN的标识(ID ) 、 家乡 地址或家乡网络前缀, 所述指向 sMAG-MN或 tMAG-MN的地址信息包括所 述 sMAG-MN或 tMAG-MN的地址、 或 sMAG-MN或 tMAG-MN为所述 MN 分配的代理转交地址(CoA ) 。  As described above, the node information that points to the MN includes an identifier (ID) of the MN, a home address, or a home network prefix, and the address information that points to the sMAG-MN or the tMAG-MN includes the sMAG-MN or tMAG. - The address of the MN, or the proxy care-of address (CoA) assigned by the sMAG-MN or tMAG-MN to the MN.
另外, 本发明还提供了一种本地移动性锚点(LMA ) , 如图 15所示, 所 述 LMA包括:  In addition, the present invention also provides a Local Mobility Anchor (LMA). As shown in FIG. 15, the LMA includes:
注册模块, 用于接收代理绑定更新(PBU ) 消息, 包括移动节点 (MN)发 生移动接入网关( MAG )切换的场景下, 所述 MN的目标 MAG(tMAG-MN) 发送的代理绑定更新 (PBU ) 消息, 其中携带指向所述 MN的节点信息和指 向所述 tMAG-MN的地址信息; a registration module, configured to receive a proxy binding update (PBU) message, including a target MAG (tMAG-MN) of the MN in a scenario where a mobile node (MN) has a mobile access gateway (MAG) handover a sent proxy binding update (PBU) message, which carries node information directed to the MN and address information directed to the tMAG-MN;
绑定关系维护模块, 用于根据接收的 PBU消息保存绑定关系, 包括所述 MN和 sMAG-MN的绑定关系;  a binding relationship maintenance module, configured to save a binding relationship according to the received PBU message, including a binding relationship between the MN and the sMAG-MN;
地址信息管理模块, 用于在接收到所述 tMAG-MN发送的 PBU消息后, 向所述 sMAG-MN或 tMAG-MN发送第一消息, 其中发送给所述 sMAG-MN 的第一消息中携带指向所述 MN的节点信息以及指向所述 tMAG-MN的地址 信息; 发送给所述 tMAG-MN的第一消息中携带指向所述 MN的节点信息以 及指向所述 sMAG-MN的地址信息。  An address information management module, configured to send a first message to the sMAG-MN or the tMAG-MN after receiving the PBU message sent by the tMAG-MN, where the first message sent to the sMAG-MN is carried in the first message Node information directed to the MN and address information directed to the tMAG-MN; the first message sent to the tMAG-MN carries node information directed to the MN and address information directed to the sMAG-MN.
进一步地, 所述注册模块, 还用于接收去注册(DeRegister )消息, 包括 所述 sMAG-MN发送的 DeRegister消息; 所述绑定关系维护模块, 还用于根 据接收的 DeRegister消息删除对应的绑定关系, 若发送所述第一消息前, 接 收到所述 sMAG-MN发送的 DeRegister消息, 则发送所述第一消息后删除所 述 MN与 sMAG-MN之间的绑定关系。  Further, the registration module is further configured to receive a DeRegister message, including a DeRegister message sent by the sMAG-MN, and the binding relationship maintenance module is further configured to delete the corresponding binding according to the received DeRegister message. And determining a binding relationship between the MN and the sMAG-MN after the first message is sent, if the DeRegister message sent by the sMAG-MN is received before the first message is sent.
另外, 本发明还提供了一种报文转发处理系统, 所述系统包括如上所述 的移动接入网关 (MAG )和如上所述的本地移动性锚点。  Additionally, the present invention also provides a message forwarding processing system, the system comprising a Mobile Access Gateway (MAG) as described above and a local mobility anchor as described above.
显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而可以将它们存储在存储装置中由计算装置来执行, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device so that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 工业实用性 The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention. Industrial applicability
本发明实施例提供的方法、 网元和系统, 在移动节点 (MN)发生移动接入 网关( MAG )切换的场景下, 在 tMAG-MN )和 sMAG-MN之间建立转发隧 道,从而使得 MAG切换期间, MN和 CN之间的报文可以通过该转发隧道顺 利转发。  The method, the network element, and the system provided by the embodiment of the present invention establish a forwarding tunnel between the tMAG-MN and the sMAG-MN in a scenario where the mobile node (MN) has a mobile access gateway (MAG) handover, thereby making the MAG During the handover, packets between the MN and the CN can be forwarded smoothly through the forwarding tunnel.

Claims

权 利 要 求 书 Claim
1、 一种 文转发处理方法, 该方法包括: 1. A text forwarding processing method, the method comprising:
移动节点 (MN)发生移动接入网关 (MAG )切换的场景下, 所述 MN 的 目标 MAG ( tMAG-MN )和所述 MN的源 MAG ( sMAG-MN )获取指向对方 的地址信息, 建立转发隧道;  In the scenario where the mobile node (MN) has a mobile access gateway (MAG) handover, the target MAG (tMAG-MN) of the MN and the source MAG (sMAG-MN) of the MN acquire address information pointing to the other party, and establish forwarding. Tunnel
切换完成前, 所述 tMAG-MN或 sMAG-MN通过所述转发隧道转发所述 MN和对端节点 (CN )之间的报文。  Before the handover is completed, the tMAG-MN or the sMAG-MN forwards the packet between the MN and the correspondent node (CN) through the forwarding tunnel.
2、 如权利要求 1所述的方法, 其中, 所述 tMAG-MN和 sMAG-MN的 获取指向对方的地址信息的步骤包括: 2. The method according to claim 1, wherein the step of acquiring the address information of the tMAG-MN and the sMAG-MN to the other party comprises:
所述 MN的本地移动性锚点( LMA-MN )向所述 tMAG-MN发送第一消 息, 携带指向所述 sMAG-MN的地址信息;  The local mobility anchor (LMA-MN) of the MN sends a first message to the tMAG-MN, carrying address information directed to the sMAG-MN;
所述 tMAG-MN接收所述第一消息, 根据指向所述 sMAG-MN的地址信 息向所述 sMAG-MN发送第二消息, 携带指向所述 MN的节点信息以及指向 所述 tMAG-MN的地址信息;  Receiving, by the tMAG-MN, the first message, sending a second message to the sMAG-MN according to address information that is directed to the sMAG-MN, carrying node information that points to the MN, and an address that points to the tMAG-MN Information
所述 sMAG-MN接收所述第二消息。  The sMAG-MN receives the second message.
3、 如权利要求 1所述的方法, 其中, 所述 tMAG-MN和 sMAG-MN的 获取对方的地址信息的步骤包括: 所述 MN的本地移动性锚点 ( LMA-MN )向所述 sMAG-MN发送第一消 息, 携带指向所述 MN的节点信息以及指向所述 tMAG-MN的地址信息; 所述 sMAG-MN接收所述第一消息, 根据所述 tMAG-MN的地址信息向 所述 tMAG-MN发送第二消息, 携带指向所述 MN的节点信息以及指向所述 sMAG-MN的地址信息; 3. The method according to claim 1, wherein the step of acquiring the address information of the other party of the tMAG-MN and the sMAG-MN comprises: the local mobility anchor (LMA-MN) of the MN to the sMAG - the MN sends a first message carrying node information directed to the MN and address information directed to the tMAG-MN; the sMAG-MN receiving the first message, according to the address information of the tMAG-MN The tMAG-MN sends a second message, carrying node information directed to the MN and address information directed to the sMAG-MN;
所述 tMAG-MN接收所述第二消息。  The tMAG-MN receives the second message.
4、 如权利要求 2或 3所述的方法, 其中, 所述 LMA-MN发送第一消息 消息, 携带指向所述 MN的节点信息和指向所述 tMAG-MN的地址信息, 所 述 LMA-MN才艮据所述 PUB消息以及保存的所述 MN与 sMAG-MN的绑定关 系发送所述第一消息。 The method according to claim 2 or 3, wherein the LMA-MN sends a first message, carrying node information directed to the MN and address information pointing to the tMAG-MN, The LMA-MN sends the first message according to the PUB message and the saved binding relationship between the MN and the sMAG-MN.
5、 如权利要求 2或 3所述的方法, 其中, 所述 LMA-MN发送所述第一 消息前, 若接收到所述 sMAG-MN发送的去注册(DeRegister )消息, 仍保留 所述 MN与 sMAG-MN之间的绑定关系直到发送所述第一消息后删除。 The method according to claim 2 or 3, wherein, before the first message is sent by the LMA-MN, if the DeRegister message sent by the sMAG-MN is received, the MN is still retained. The binding relationship with the sMAG-MN is deleted after the first message is sent.
6、 如权利要求 1所述的方法, 其中, 所述 tMAG-MN和 sMAG-MN的 获取对方的地址信息的步骤包括: 所述 sMAG-MN判断所述 MN离开时, 向所述 LMA-MN发送第一消息 , 用于查询指向所述 tMAG-MN的地址信息,所述第一消息中携带指向所述 MN 的节点信息; The method of claim 1, wherein the step of acquiring the address information of the other party by the tMAG-MN and the sMAG-MN comprises: when the sMAG-MN determines that the MN is away, to the LMA-MN Sending a first message, configured to query address information that is directed to the tMAG-MN, where the first message carries node information that points to the MN;
所述 LMA-MN向所述 sMAG-MN发送第二消息, 携带指向所述 MN的 节点信息以及指向所述 tMAG-MN的地址信息;  The LMA-MN sends a second message to the sMAG-MN, carrying node information directed to the MN and address information directed to the tMAG-MN;
所述 sMAG-MN向所述 tMAG-MN发送第三消息, 携带指向所述 MN的 节点信息以及指向所述 sMAG-MN的地址信息;  The sMAG-MN sends a third message to the tMAG-MN, carrying node information directed to the MN and address information directed to the sMAG-MN;
所述 tMAG-MN接收所述第三消息。  The tMAG-MN receives the third message.
7、 如权利要求 6所述的方法, 其中, 所述 sMAG-MN判断所述 MN离 开的情形包括预设定时器时间内未收到所述 MN的上下行数据, 或检测到所 述 MN切换或移动走。 The method of claim 6, wherein the sMAG-MN determines that the MN is away from the uplink or downlink data of the MN, or detects the MN handover. Or move away.
8、 如权利要求 1所述的方法,其中,所述 tMAG-MN通过所述转发隧道 转发所述 MN和对端节点 ( CN )之间的报文的步骤包括: The method of claim 1, wherein the step of the tMAG-MN forwarding the message between the MN and the correspondent node (CN) through the forwarding tunnel comprises:
所述 tMAG-MN封装第一报文生成第二报文, 所述第一报文的源地址指 向所述 MN, 目的地址指向所述 CN; 所述第二"¾文的外层源地址为指向所述 tMAG-MN的地址信息, 外层目的地址为指向所述 sMAG-MN的地址信息; 所述 tMAG-MN通过所述转发隧道向所述 sMAG-MN发送所述第二报 文。  The tMAG-MN encapsulates the first packet to generate a second packet, where the source address of the first packet points to the MN, and the destination address points to the CN; the outer source address of the second "3⁄4" text is Addressing the address information of the tMAG-MN, the outer destination address is the address information of the sMAG-MN; the tMAG-MN sends the second packet to the sMAG-MN through the forwarding tunnel.
9、 如权利要求 1所述的方法, 其中, 所述 sMAG-MN通过所述转发隧 道转发所述 MN和对端节点 (CN )之间的报文的步骤包括: 9. The method of claim 1, wherein the sMAG-MN passes the forwarding tunnel The step of forwarding the message between the MN and the correspondent node (CN) includes:
所述 sMAG-MN解封装第一报文后封装或直接封装生成第二报文, 所述 第一报文的源地址指向所述 CN的 MAG ( MAG-CN ) , 目的地址指向所述 sMAG-MN; 所述第二报文的外层源地址为指向所述 sMAG-MN的地址信息, 外层目的地址为指向所述 tMAG-MN的地址信息;  After the sMAG-MN decapsulates the first packet, the second packet is encapsulated or directly encapsulated, and the source address of the first packet is directed to the MAG (MAG-CN) of the CN, and the destination address is directed to the sMAG- MN; the outer source address of the second packet is the address information of the sMAG-MN, and the outer destination address is the address information of the tMAG-MN;
所述 sMAG-MN通过所述转发隧道向所述 tMAG-MN发送所述第二报 文。  The sMAG-MN sends the second packet to the tMAG-MN through the forwarding tunnel.
10、 如权利要求 1所述的方法, 其中, 所述转发隧道建立后, 该方法还 包括: 所述 tMAG-MN释放所述转发隧道, 释放所述转发隧道的触发条件是 所述 tMAG-MN与 MAG-CN之间的隧道建立。 The method of claim 1, wherein, after the forwarding tunnel is established, the method further includes: the tMAG-MN releasing the forwarding tunnel, and the triggering condition for releasing the forwarding tunnel is the tMAG-MN Tunnel establishment with MAG-CN.
11、 如权利要求 2或 3所述的方法, 其中, 所述指向所述 MN的节点信 息包括所述 MN的标识( ID )、家乡地址或家乡网络前缀,所述指向 sMAG-MN 或 tMAG-MN 的地址信息包括所述 sMAG-MN或 tMAG-MN 的地址、 或 The method according to claim 2 or 3, wherein the node information directed to the MN includes an identifier (ID) of the MN, a home address or a home network prefix, and the pointing to the sMAG-MN or tMAG- The address information of the MN includes the address of the sMAG-MN or tMAG-MN, or
12、 一种移动接入网关 (MAG ) , 所述 MAG包括: 12. A mobile access gateway (MAG), the MAG comprising:
转发隧道建立单元,其设置为:移动节点 (MN)发生移动接入网关(MAG ) 切换的场景下, 作为所述 MN的目标 MAG ( tMAG-MN ) 时, 获取指向所述 sMAG-MN的地址信息 ,建立转发隧道;作为所述 MN的源 MAG( sMAG-MN ) 时, 获取指向所述 tMAG-MN的地址信息, 建立转发隧道;  a forwarding tunnel establishing unit, configured to: obtain, when the mobile node (MN) is in a mobile access gateway (MAG) handover scenario, as the target MAG (tMAG-MN) of the MN, obtain an address that points to the sMAG-MN Information, establishing a forwarding tunnel; as the source MAG (sMAG-MN) of the MN, acquiring address information directed to the tMAG-MN, and establishing a forwarding tunnel;
报文转发单元, 其设置为: 通过所述转发隧道转发所述 MN和对端节点 a message forwarding unit, configured to: forward the MN and the peer node by using the forwarding tunnel
( CN )之间的报文。 Message between (CN).
13、 如权利要求 12所述的 MAG, 其中, 所述转发隧道建立单元包括: 消息接收模块, 设置为: 作为所述 tMAG-MN时, 接收所述 MN的本地 移动性锚点(LMA-MN )发送的第一消息, 携带指向所述 sMAG-MN的地址 信息; 以及,作为所述 sMAG-MN时,接收所述 tMAG-MN发送的第二消息; 消息发送模块, 设置为: 作为所述 tMAG-MN时, 根据所述第一消息中 指向所述 sMAG-MN的地址信息向所述 sMAG-MN发送第二消息, 携带指向 所述 MN的节点信息以及指向所述 tMAG-MN的地址信息。 The MAG of claim 12, wherein the forwarding tunnel establishing unit comprises: a message receiving module, configured to: receive, as the tMAG-MN, a local mobility anchor (LMA-MN) of the MN a first message sent, carrying address information directed to the sMAG-MN; and, when the sMAG-MN is received, receiving a second message sent by the tMAG-MN; a message sending module, configured to: The tMAG-MN sends a second message to the sMAG-MN according to the address information in the first message that is directed to the sMAG-MN, Node information of the MN and address information pointing to the tMAG-MN.
14、 如权利要求 12所述的 MAG, 其中, 所述转发隧道建立单元包括: 消息接收模块, 设置为: 作为所述 sMAG-MN时, 接收所述 MN的本地 移动性锚点 (LMA-MN )发送的第一消息, 携带指向所述 MN的节点信息以 及指向所述 tMAG-MN的地址信息; 以及, 作为所述 tMAG-MN时, 接收所 述 sMAG-MN发送的第二消息; The MAG of claim 12, wherein the forwarding tunnel establishing unit comprises: a message receiving module, configured to: receive, as the sMAG-MN, a local mobility anchor (LMA-MN) of the MN a first message sent, carrying node information directed to the MN and address information directed to the tMAG-MN; and, when the tMAG-MN is received, receiving a second message sent by the sMAG-MN;
消息发送模块, 设置为: 作为所述 sMAG-MN时, 根据所述第一消息中 指向所述 tMAG-MN的地址信息向所述 tMAG-MN发送第二消息, 携带指向 所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  a message sending module, configured to: when the sMAG-MN is used, send a second message to the tMAG-MN according to the address information of the first message in the tMAG-MN, and carry the node information that is directed to the MN And address information pointing to the sMAG-MN.
15、 如权利要求 12所述的 MAG, 其中, 所述转发隧道建立单元包括: 查询模块, 设置为: 作为 sMAG-MN且判断所述 MN 离开时, 向所述 LMA-MN发送第一消息; 查询指向所述 tMAG-MN的地址信息, 所述第一消 息中携带指向所述 MN的节点信息; The MAG of claim 12, wherein the forwarding tunnel establishing unit comprises: a querying module, configured to: when the sMAG-MN is determined and the MN leaves, send a first message to the LMA-MN; Querying address information of the tMAG-MN, where the first message carries node information that points to the MN;
消息接收模块, 设置为: 作为 sMAG-MN时, 接收所述 LMA-MN发送 的第二消息, 携带指向所述 MN的节点信息以及指向所述 tMAG-MN的地址 信息; 作为 tMAG-MN时 , 接收所述 sMAG-MN发送的第三消息;  a message receiving module, configured to: when the sMAG-MN is used, receive a second message sent by the LMA-MN, and carry node information that points to the MN and address information that points to the tMAG-MN; Receiving a third message sent by the sMAG-MN;
消息发送模块, 设置为: 作为 sMAG-MN时, 向所述 tMAG-MN发送第 三消息,携带指向所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  The message sending module is configured to: when the sMAG-MN is used, send a third message to the tMAG-MN, carrying node information that points to the MN and address information that points to the sMAG-MN.
16、 如权利要求 15所述的 MAG, 其中, 所述判断所述 MN离开的情形 包括预设定时器时间内未收到所述 MN的上下行数据, 或检测到所述 MN切 换或移动走。 The MAG according to claim 15, wherein the determining that the MN is away includes not receiving uplink and downlink data of the MN within a preset timer time, or detecting that the MN switches or moves away. .
17、 如权利要求 12所述的 MAG, 其中, 所述报文转发单元包括: 封装模块, 设置为: 封装第一报文生成第二报文, 作为所述 tMAG-MN 时, 所述第 文的源地址指向所述 MN, 目的地址指向所述 CN; 所述第二 文的外层源地址为指向所述 tMAG-MN的地址信息, 外层目的地址为指向 所述 sMAG-MN的地址信息; 作为 sMAG-MN时, 所述第一报文的源地址指 向所述 CN的 MAG ( MAG-CN ) , 目的地址指向所述 sMAG-MN; 所述第二 文的外层源地址为指向所述 sMAG-MN的地址信息, 外层目的地址为指向 所述 tMAG-MN的地址信息; The MAG of claim 12, wherein the packet forwarding unit comprises: an encapsulating module, configured to: encapsulate the first packet to generate a second packet, and when the tMAG-MN is used, the text The source address is directed to the MN, and the destination address is directed to the CN; the outer source address of the second text is address information directed to the tMAG-MN, and the outer destination address is address information directed to the sMAG-MN As the sMAG-MN, the source address of the first packet points to the MAG (MAG-CN) of the CN, and the destination address points to the sMAG-MN; The outer source address of the text is the address information of the sMAG-MN, and the outer destination address is the address information of the tMAG-MN;
发送模块, 设置为: 通过所述转发隧道发送所述第二报文, 作为所述 tMAG-MN时, 向所述 sMAG-MN发送所述第二报文; 作为 sMAG-MN时 , 向所述 tMAG-MN发送所述第二报文。  The sending module is configured to: when the second message is sent by using the forwarding tunnel, the second message is sent to the sMAG-MN as the tMAG-MN; and when the sMAG-MN is used, The tMAG-MN sends the second packet.
18、 如权利要求 12所述的 MAG, 其中, 所述 MAG还包括转发隧道释 放单元, 设置为: 作为所述 tMAG-MN时, 在所述 tMAG-MN与 MAG-CN之 间的隧道建立后, 释放所述 tMAG-MN与 sMAG-MN之间的转发隧道。 The MAG of claim 12, wherein the MAG further includes a forwarding tunnel release unit, configured to: when the tMAG-MN is used, after the tunnel between the tMAG-MN and the MAG-CN is established And releasing a forwarding tunnel between the tMAG-MN and the sMAG-MN.
19、 如权利要求 12 所述的 MAG , 其中, 所述指向 sMAG-MN 或 tMAG-MN 的地址信息包括所述 sMAG-MN 或 tMAG-MN 的地址、 或 The MAG according to claim 12, wherein the address information directed to the sMAG-MN or the tMAG-MN includes an address of the sMAG-MN or tMAG-MN, or
20、 一种本地移动性锚点 (LMA ) , 所述 LMA包括: 20. A Local Mobility Anchor (LMA), the LMA comprising:
注册模块, 其设置为: 接收代理绑定更新 (PBU ) 消息, 包括移动节点 (MN)发生移动接入网关 ( MAG ) 切换的场景下, 所述 MN 的目标 MAG(tMAG-MN)发送的代理绑定更新(PBU )消息, 携带指向所述 MN的节 点信息和指向所述 tMAG-MN的地址信息;  a registration module, configured to: receive a proxy binding update (PBU) message, including a proxy sent by the target MAG (tMAG-MN) of the MN in a scenario where a mobile node (MN) has a mobile access gateway (MAG) handover a Binding Update (PBU) message carrying node information directed to the MN and address information directed to the tMAG-MN;
绑定关系维护模块, 其设置为: 根据接收的 PBU消息保存绑定关系, 包 括所述 MN和 sMAG-MN的绑定关系;  a binding relationship maintenance module, configured to: save a binding relationship according to the received PBU message, and include a binding relationship between the MN and the sMAG-MN;
地址信息管理模块, 其设置为: 在接收到所述 tMAG-MN发送的 PBU消 息后, 向所述 sMAG-MN 或 tMAG-MN发送第一消息, 所述发送给所述 sMAG-MN 的第一消息中携带指向所述 MN 的节点信息以及指向所述 tMAG-MN的地址信息; 所述发送给所述 tMAG-MN的第一消息中携带指向 所述 MN的节点信息以及指向所述 sMAG-MN的地址信息。  An address information management module, configured to: after receiving the PBU message sent by the tMAG-MN, send a first message to the sMAG-MN or the tMAG-MN, where the first message is sent to the sMAG-MN The message carries the node information of the MN and the address information of the tMAG-MN; the first message sent to the tMAG-MN carries the node information directed to the MN and points to the sMAG-MN Address information.
21、 如权利要求 20所述的 LMA, 其中, 21. The LMA of claim 20, wherein
所述注册模块还设置为: 接收去注册 (DeRegister ) 消息, 包括所述 sMAG-MN发送的 DeRegister消息; 所述绑定关系维护模块还设置为: 根据 接收的 DeRegister消息删除对应的绑定关系, 若发送所述第一消息前, 接收 到所述 sMAG-MN发送的 DeRegister消息, 则发送所述第一消息后删除所述 MN与 sMAG-MN之间的绑定关系。 The registration module is further configured to: receive a DeRegister message, including a DeRegister message sent by the sMAG-MN; the binding relationship maintenance module is further configured to: delete a corresponding binding relationship according to the received DeRegister message, Receiving before sending the first message After the first message is sent to the DeRegister message sent by the sMAG-MN, the binding relationship between the MN and the sMAG-MN is deleted.
22、 一种报文转发处理系统, 所述系统包括如权利要求 12至 19中任一 项所述的移动接入网关( MAG )和权利要求 20或 21所述的本地移动性锚点。 A message forwarding processing system, the system comprising the mobile access gateway (MAG) according to any one of claims 12 to 19 and the local mobility anchor according to claim 20 or 21.
PCT/CN2012/075422 2011-07-14 2012-05-14 Packet forwarding processing method, network element and system WO2013007129A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011101968482A CN102882788A (en) 2011-07-14 2011-07-14 Message forwarding processing method, net element and system
CN201110196848.2 2011-07-14

Publications (1)

Publication Number Publication Date
WO2013007129A1 true WO2013007129A1 (en) 2013-01-17

Family

ID=47483938

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075422 WO2013007129A1 (en) 2011-07-14 2012-05-14 Packet forwarding processing method, network element and system

Country Status (2)

Country Link
CN (1) CN102882788A (en)
WO (1) WO2013007129A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501491B (en) * 2013-09-23 2016-08-17 中山大学 A kind of proxy mobile IPv 6 keeps the successional method of local routing
CN104469866A (en) * 2014-12-01 2015-03-25 中国科学院计算机网络信息中心 PMIPv6 switching method based on busy forward chain
CN112040441A (en) * 2020-08-04 2020-12-04 深圳成谷智能科技有限公司 Method and device for realizing communication between vehicle-mounted unit and network facility

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175316A (en) * 2006-10-30 2008-05-07 华为技术有限公司 Method for cross-local mobile administrative domain switch-over and its communication system
CN101222752A (en) * 2007-01-12 2008-07-16 华为技术有限公司 Group node switching method, communication system based on group node, group node controller
CN101448252A (en) * 2008-06-20 2009-06-03 中兴通讯股份有限公司 Network switching implementation method, system thereof and mobile nodes

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3790248B2 (en) * 2001-10-02 2006-06-28 株式会社エヌ・ティ・ティ・ドコモ Mobility control system, mobile node used in this system, mobility control method, mobility control program, and mobility control node
KR100513737B1 (en) * 2003-04-29 2005-09-09 삼성전자주식회사 Method for managing mobility profile of mobile nodes under Localized mobility management based on IPv6
US8155078B2 (en) * 2006-10-20 2012-04-10 Qualcomm Incorporated Systems and methods for using internet mobility protocols with non internet mobility protocols

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175316A (en) * 2006-10-30 2008-05-07 华为技术有限公司 Method for cross-local mobile administrative domain switch-over and its communication system
CN101222752A (en) * 2007-01-12 2008-07-16 华为技术有限公司 Group node switching method, communication system based on group node, group node controller
CN101448252A (en) * 2008-06-20 2009-06-03 中兴通讯股份有限公司 Network switching implementation method, system thereof and mobile nodes

Also Published As

Publication number Publication date
CN102882788A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
JP4902811B1 (en) A method to allow concurrent use of foreign networks
JP3573266B2 (en) How to establish a routing path for delivering packets to a destination node
JP3501994B2 (en) How to establish a routing path that distributes packets to destination nodes
JP3573265B2 (en) Sending the packet to the wireless device
TWI437863B (en) Peer-to-peer mobility management in heterogeneous ipv4 networks
WO2010041440A1 (en) Interface switching system, mobile node, proxy node, and mobile management node
JP6179523B2 (en) COMMUNICATION SYSTEM, GATEWAY CONTROL DEVICE, ROUTE CONTROL DEVICE, COMMUNICATION METHOD, AND PROGRAM
US8873578B2 (en) Method and apparatus for use in a communications network
US8045522B2 (en) Method and system for performing handoff in wireless networks
JP2009529265A (en) Method and system for fast handover using dynamic router advertisement
WO2011085618A1 (en) Method for terminal switching and corresponding communication network
JPWO2009057296A1 (en) Mobile terminal, network node, and packet forwarding management node
JP5052675B2 (en) How to control mobile node proxy binding
WO2008000133A1 (en) A method, system and apparatus for realizing fast handover
WO2007131404A1 (en) A method and device for realizing fast handover
WO2009149631A1 (en) Method for processing state switching information, mobile access gateway and mobile terminal
WO2009006825A1 (en) Handover method, method for joining multicast group and access router in proxy mobile ip
WO2009097720A1 (en) A method and an apparatus for discovering home link in mip
WO2013004138A1 (en) Mobility realization method based on location/identifier separation protocol (lisp) and tunnel router
WO2011011940A1 (en) Method and system for establishing mobile network connection
WO2013178013A1 (en) Mobile node registration method, intercommunication method, switching method and network element
WO2011047609A1 (en) Method for realizing handoff pre-registration and system thereof
WO2011009253A1 (en) Method and system for querying a domain name in a mobile network
WO2013007131A1 (en) Mobility management method and mobile access gateway
WO2013007129A1 (en) Packet forwarding processing method, network element and system

Legal Events

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

Ref document number: 12811084

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

Country of ref document: EP

Kind code of ref document: A1