WO2012075778A1 - Method and system for managing data messages during handover of mobile nodes - Google Patents

Method and system for managing data messages during handover of mobile nodes Download PDF

Info

Publication number
WO2012075778A1
WO2012075778A1 PCT/CN2011/074350 CN2011074350W WO2012075778A1 WO 2012075778 A1 WO2012075778 A1 WO 2012075778A1 CN 2011074350 W CN2011074350 W CN 2011074350W WO 2012075778 A1 WO2012075778 A1 WO 2012075778A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile node
gateway device
access gateway
peer
value
Prior art date
Application number
PCT/CN2011/074350
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 WO2012075778A1 publication Critical patent/WO2012075778A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for managing data packets when a mobile node switches.
  • IP addresses in the Transmission Control Protocol/Internet Protocol which is widely used in the Internet, have dual functions, and serve as a communication layer host network interface of the network layer in the network topology.
  • the location identifier which is also the identity of the transport layer host network interface.
  • TCP/IP did not consider host mobility at the beginning of the design. However, as host mobility becomes more prevalent, the semantic overload defects of such IP addresses are becoming increasingly apparent.
  • IP address of the host changes, not only the route changes, but also the identity of the host of the communication terminal changes. This will cause the load on the router to become heavier, and the change of the host identity will also cause the application and connection to be interrupted.
  • the purpose of identification and location separation is to solve the problem of semantic overload and severe routing load of IP addresses, and to separate the dual functions of IP addresses, thereby realizing dynamic redistribution and mitigation of mobility, multiple townships, and IP addresses. Support for issues such as routing load and mutual visits between different network areas in the next generation Internet.
  • the network router based implementation method is one of the solutions for identity identification and location separation.
  • the basic idea of this scheme is: The network is divided into an access layer and a core layer.
  • the mobile node in the network has two types of identification: an Access Identifier (AID) and a Routing-Location Identifier (Routing-Location Identifier). Referred to as RID).
  • Each user terminal in the network is configured with a unique AID, and the AID remains unchanged during the mobile process; in the data forwarding process, the AID can only be used at the access layer, and the RID can only be used at the core layer;
  • the topology of the identity and location separation framework is shown in Figure 1.
  • the network is divided into an access network and a backbone network.
  • the method mainly includes: a radio access network (Radio Access Network, RAN for short), access Gateway Gateway (AGR), General Switch Router (GSR), Identifier Mapping Server (IDMS), and authentication center. The following are introduced separately:
  • AGR which is responsible for providing access services for various mobile nodes, and assigning RIDs to the accessed user terminals.
  • the AGR queries the AID-RID mapping table in the local cache (CACHE) according to the destination address in the data packet (ie, the AID of the communication peer): If the corresponding AID-RID is found. Mapping the entry, the RID of the communication peer that is found is encapsulated in the packet header and sent to the backbone network for forwarding processing; if the corresponding AID-RID mapping entry is not found, the data packet is forwarded to the backbone network, and The IDMS initiates the process of querying (communicating the peer) AID-RID mapping information, and saves the IDMS return corresponding AID-RID mapping locally, so as to prepare for subsequent forwarding.
  • CACHE the destination address in the data packet
  • the IDMS initiates the process of querying (communicating the peer) AID-RID mapping information, and saves the IDMS return corresponding AID-RID mapping locally, so as to prepare for subsequent forwarding.
  • the AGR may choose not to forward the data packet to the backbone network, but initiate the process of querying the AID-RID mapping information (communicating the peer end) to the IDMS, and wait for the IDMS. After the corresponding AID-RID mapping is returned, the RID of the communication peer that is found is encapsulated in the packet header and sent to the backbone network for forwarding processing.
  • the AGR decapsulates the data packet, and strips the newly added RID packet header in the data packet to the terminal.
  • the main function of the GSR is to select and forward data packets based on the routing location identifier RID in the data packet.
  • IDMS is mainly responsible for maintaining the mapping relationship between user identity and location identifier in the network, and providing query services to access gateway routers and other mapping servers.
  • the authentication center is responsible for recording information such as the user terminal category and the user terminal service level, and performs legality authentication and authorization on the user terminal when the user terminal accesses.
  • the certificate authority supports two-way authentication between the network and the user terminal.
  • the radio access network is responsible for providing and maintaining a Layer 2 link between the user terminal and the access gateway router AGR; and is responsible for radio resource management in the cellular mobile network application scenario.
  • the network can be divided into an access network and a backbone network.
  • the access network is located at the edge of the backbone network and is responsible for access of all terminals.
  • the backbone network is responsible for accessing the router of the user terminal through different access networks.
  • the application layer between the communication hosts uses the AID to identify the peer.
  • the communication between the user terminals only needs to use the AID of the peer.
  • the access gateway router is located at the demarcation point between the backbone network and the access network, and serves as an interface between the access network and the backbone network, and is responsible for providing access services for the user terminals, maintaining user terminal connections, and forwarding user terminal data. All communication of the user terminal is forwarded and managed by the access gateway router of the access network.
  • the process of forwarding the data packet between the user terminal and the communication peer is as follows: When the user terminal sends the data packet, the corresponding access gateway router sends a request for querying the routing mode of the user terminal to the mapping server.
  • the mapping server stores the routing manners of all user terminals in the network, and the mapping server selects the corresponding routing mode and returns the information to the access gateway router AGR.
  • the AGR forwards the data packet sent by the MN according to the routing manner of the mobile node (Mobile Node, MN for short) returned from the mapping server. If the user terminal and the communication peer belong to the same access gateway router service range, the AGR forwards the data packet directly to the communication peer. If the user terminal and its corresponding communication peer belong to different AGRs, the AGR forwards the data packet to the backbone network. When forwarding a data packet belonging to a different AGR, the AGR also carries the RID information in the forwarded data packet (the RID corresponds to the AID); correspondingly, when the user terminal receives the data packet, the access gateway router performs the opposite. The operation, that is, stripping the RID information and forwarding the data message to the user terminal.
  • the AGR also stores the routing mode of the user terminal from the mapping server in its own cache.
  • the AGR queries the routing mode of the MN from its own cache. The data packet is forwarded according to the routing mode.
  • the related interface of the network architecture based on the network identity identification and location separation framework is shown in FIG.
  • S1/D1 is an interface between the user terminal and the access gateway router AGR, and S1 is used for signaling of user access management, and D1 is Data forwarding interface; S2 is used for switching management signaling when switching between AGRs, D2 is used for data forwarding between AGRs; D3 is a data forwarding interface between AGR and GSR, and S4/S5/S6 is used for querying and maintaining AIDs.
  • S4m is the data forwarding interface between the AGR and the IDMS.
  • the relay IDMS (Broke IDMS) forwards the signaling between the visted IDMS and the Home IDMS.
  • the method for implementing mobile node handover management under the above network architecture is described in detail below.
  • the communication peer Correspondent Node, CN for short
  • the mobile node Mobile Node, ⁇ for short
  • the AGR of the CN can query the mapping server IDMS to query the mapping relationship between the AID and the RID of the MN according to the AID carried in the ⁇ message, thereby obtaining the routing location identifier RID of the MN;
  • the AGR maintains the AID and RID mapping table of the MN locally, as shown in Table 1 below: Table 1 Communication peer identity location location mapping table of the mobile node
  • the radio access network detects the mobility of the MN (ie, the location of the MN changes from one AGR coverage to another AGR coverage)
  • the handover procedure is initiated and the handover procedure is triggered.
  • the gateway AGR and the ingress gateway AGR establish a forwarding relationship.
  • the gateway AGR forwards the received data packet addressed to the MN (user terminal) to the hand-in gateway.
  • AGR is forwarded to the MN by the hand-in gateway AGR.
  • the new mapping relationship of the MN is notified by the handover gateway AGR to the access gateway router where all the CNs of the MN are located.
  • all the access gateway routers where the CN is located can send subsequent packets directly to the MN's hand-cut gateway AGR, thereby avoiding route bypass.
  • the gateway AGR can notify the CN of the new MN mapping relationship according to the saved information.
  • the access gateway router where it is located Therefore, in use, the access gateway router of the mobile node is first required to save the information of the communication peers of all locally accessed MNs, and secondly all the access gateway routers where the MN is located can be individually or with the help of the mapping server.
  • the AGR where the MN is located must save the information of the access gateway router where the communication peer is located.
  • Table 2 and Table 3 show that the access gateway router where the MN is located is protected if the mapping server cannot provide assistance.
  • the communication peer information also needs to set a timer to decide that if the mobile node does not communicate with the communication peer for a long time, the information of the communication peer should be deleted to save the AGR where the mobile node is located. Memory space.
  • the above solutions also have the following problems:
  • the AGR that the CN is located processes the first packet sent to the MN, it queries the mapping server for the mapping between the AID and the RID of the MN, and caches the entry of the mapping relationship locally, as in the format of Table 1 above. The processing of subsequent messages can be found directly in the local cache. However, the local cache cannot cache the mapping relationship of the MN for a long time. If the aging is deleted, the MN after the handover, that is, the gateway AGR, does not send a message to update the mapping relationship to the AGR where the CN is located.
  • the mapping relationship between the MN and the MN is required to be periodically requested to be updated by the mapping server.
  • the time interval for requesting the update from the mapping server is too large, the communication terminal still exists. The problem, if the interval for requesting updates is too small, the performance requirements of AGR are very high, so that the load of AGR will be heavy.
  • the technical problem to be solved by the present invention is to provide a mobile node into the deficiencies of the prior art.
  • the load of the access gateway device can be effectively alleviated, and the method and system for managing the data packet loss of the message are reduced as much as possible.
  • the present invention uses the following technical solutions: A method for managing data packets when a mobile node switches, the method is applied to an identity and location separation network, and the method includes: when a mobile node performs handover And the first access gateway device where the mobile node communication peer is located sends the received data packet addressed to the mobile node to the mobile according to the mapping entry corresponding to the mobile node stored in the mapping table.
  • the second access gateway device forwards the data packet and the peer entry corresponding to the communication peer end stored in the peer information table to the third access a gateway device, the third access gateway device forwarding the data packet to the mobile node; and after the mobile node handover is completed, the first access gateway device is configured according to the third access gateway Sending, by the device, a mapping entry corresponding to the mobile node, sending the received data packet sent to the mobile node to the third access gateway device, and then The third access gateway device forwards the data packet to the mobile node, where the aging period of the mapping entry stored in the mapping table is T1, and the peer entry stored in the peer information table The aging period is T2 and T2 > T1.
  • a first timer is set in the first access gateway device, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; in the second access gateway device A second timer is set, and the second timer periodically updates the peer entry in the peer information table every aging period ⁇ 2.
  • the mapping entry stored in the mapping table is a routing mapping relationship corresponding to the mobile node.
  • the method further includes: presetting a data packet to identify whether the mobile node has a data packet in the aging period T1.
  • the first access gateway device determines whether the mobile node has a data packet passing during the aging period T1, and if so, the mobile node identifier bit The value is set to 1, if not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the value of the mobile node identifier bit is 1, The value of the mobile node identifier bit is set to 0, and if the value of the mobile node identifier bit is 0, the deletion is performed. A mapping entry corresponding to the mobile node.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer end; the method further includes: presetting a flag for identifying whether the communication peer end is in the aging period T2
  • the identifier of the data packet is initialized and the value of the identifier bit is initialized;
  • the second access gateway device determines whether the data packet is passed by the communication peer in the aging period T2, and if yes, the The value of the communication peer identifier bit is set to 1, if not, the value of the communication peer identifier bit is set to 0; when the second timer traverses the peer information table, if the communication pair If the value of the terminal identifier is 1, the value of the communication peer identifier bit is set to 0; if the value of the identifier of the communication peer is 0, the peer entry corresponding to the communication peer is deleted.
  • the method further includes: storing the value information of the T1 in a data message sent by the communication peer to the mobile node; when the mobile node communication peer communicates with the mobile node, The second access gateway device extracts the value information of T1 in the data packet sent by the first access gateway device, and sets the value of the aging period T2 accordingly.
  • the value information of the T1 is saved in an option field or a reuse service type TOS field in an IP header of the data message.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer end; the method further includes: presetting a flag for identifying whether the communication peer end has an aging period T2 And determining, by the identifier bit of the data packet, a value of the identifier bit; and determining, by the second access gateway device, a basic polling time T, if the second access gateway device determines the polling time T If the communication peer has data " ⁇ ", the value of the identifier of the communication peer is set to an initial value, and if no data packet is passed, the value of the identifier of the communication peer is decremented by one.
  • the step of initializing the value of the identifier includes :
  • the value of the aging period T2 is set according to the value information of the aging period T1, and the value of the aging period T2 of the second timer is used as the value of the flag bit of the communication peer.
  • the T2 is 2 ⁇ 1.
  • a system for managing data packets during handover of a mobile node comprising: a mobile node, a mobile node communication peer, and a first access gateway where the mobile node communication peer is located a device, a second access gateway device where the mobile node is located, and a third access gateway device;
  • the first access gateway device is configured to: when the mobile node performs handover, the first access gateway device is configured according to a mapping entry corresponding to the mobile node stored in the self mapping table, sending the received data packet addressed to the mobile node to the second access gateway device; and when the mobile node is switched Sending, by the first access gateway device, the received data packet sent to the mobile node to the third according to the mapping entry corresponding to the mobile node sent by the third access gateway device Access gateway device;
  • the second access gateway device is configured to: when the mobile node performs handover, the data packet sent by the first access gateway device and the communication pair stored in a peer information table thereof The peer entry corresponding to the terminal is forwarded to the third access gateway device; the third access gateway device is configured to: when the mobile node performs handover,
  • the aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is ⁇ 2, and ⁇ 2> ⁇ 1.
  • a first timer is set in the first access gateway device, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; in the second access gateway device A second timer is set, and the second timer periodically updates the peer entry in the peer information table every aging period ⁇ 2.
  • the mapping entry stored in the mapping table is a route mapping relationship corresponding to the mobile node;
  • the first access gateway device is further configured to: preset a flag for identifying whether the mobile node passes the data packet in the aging period T1 and initialize the value of the identifier bit; determining the aging period T1 Whether the mobile node has a data packet to pass, if any, the value of the mobile node identifier bit is set to 1, if not, the value of the mobile node identifier bit is set to 0; When a timer traverses the mapping table, if the value of the mobile node identifier bit is 1, the value of the mobile node identifier bit is set to 0, and if the value of the mobile node identifier bit is 0, the deletion is performed.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer; the second access gateway device is further configured to: preset one for identifying the communication peer Whether there is an identifier of the data packet passing through the aging period T2 and initializing the value of the identifier bit; determining whether the communication peer has a data packet in the aging period T2, and if so, the communication pair
  • the value of the end identifier bit is set to 1, if not, the value of the communication peer end identification bit is set to 0; when the second timer traverses the peer information table, if the communication peer end identifier If the value of the bit is 1, the value of the communication peer identifier bit is set to 0; if the value of the flag bit of the communication peer is 0, the peer entry corresponding to the communication peer is deleted.
  • the first access gateway device is further configured to: save the value information of the T1 in a data packet sent by the communication peer end to the mobile node;
  • the setting is: when the mobile node communication peer communicates with the mobile node, extracts the value information of the T1 in the data packet sent by the first access gateway device, and sets the value of the aging period T2 accordingly.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer; the second access gateway device is further configured to: preset one for identifying the communication peer Whether there is an identifier bit for the data packet passing through the aging period T2 and initializing the value of the identifier bit; and presetting a basic polling time T, if it is determined that the data packet is passed by the communication peer end during the polling time T , the value of the identification bit of the communication peer is set to an initial value, and if no data packet is passed, The value of the identifier of the communication peer is decremented by 1. When the value of the identifier of the communication peer is reduced to 0, the peer entry corresponding to the communication peer is deleted, where T2>T.
  • An access gateway device where the access gateway device is applied to an identity and location separation network, and the access gateway device is configured to: when the access gateway device is an access gateway accessed by a mobile node communication peer end The device, when the mobile node performs handover, the access gateway device accessed by the mobile node communication peer end receives the received destination according to the mapping entry corresponding to the mobile node stored in the self mapping table.
  • the data message of the mobile node is sent to the access gateway device accessed by the mobile node before the handover; and after the handover of the mobile node is completed, the access gateway device accessed by the mobile node communication peer is a mapping entry corresponding to the mobile node sent by the access gateway device accessed by the mobile node after the handover of the mobile node, and sending the received data packet addressed to the mobile node to the mobile node after the handover Accessing the gateway device; when the access gateway device is an access gateway device accessed before the mobile node switches, when the mobile node performs handover, the mobile device
  • the data packet sent by the access gateway device accessed by the peer end of the point communication and the peer end entry corresponding to the communication peer end stored in the peer information table are forwarded to the mobile node for switching.
  • a gateway device when the access gateway device is an access gateway device accessed by the mobile node after handover, when the mobile node performs handover, the access gateway accessed before the mobile node switches And forwarding, by the mobile node, the data packet sent by the access gateway device that is accessed by the mobile node communication peer to the mobile node
  • T1 the aging period of the mapping entry stored in the mapping table
  • the aging period of the peer entry stored in the peer information table is ⁇ 2, and ⁇ 2> ⁇ 1.
  • a first timer is set in the access gateway device that is accessed by the mobile node communication peer end, and the first timer periodically updates the mapping entry in the mapping table every aging period T1;
  • a second timer is set in the access gateway device that is accessed before the mobile node is switched, and the second timer periodically updates the peer entry in the peer information table every aging period ⁇ 2.
  • the mapping entry stored in the mapping table is the mobile node pair.
  • the access routing device is configured to: when the access gateway device is an access gateway device that is accessed by the mobile node communication peer, the access gateway device is further configured to: preset one for identifying that the mobile node is aging Whether there is an identifier bit passing through the data packet and initializing the value of the identifier bit in the period T1; determining whether the mobile node has a data packet passing in the aging period T1, and if so, the mobile node identifier bit The value is set to 1, if not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the value of the mobile node identifier bit is 1, The value of the mobile node identifier bit is set to 0.
  • the mapping entry corresponding to the mobile node is deleted.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer; and the access gateway device is the access accessed before the mobile node switches.
  • the gateway device is further configured to: preset a flag for identifying whether the communication peer has a data packet passing through the aging period T2 and initialize the value of the identifier bit; Whether the data communication message is passed by the communication peer end in the period T2, if yes, the value of the communication peer end identification bit is set to 1, if not, the value of the communication peer end identification bit is set to 0 And when the second timer traverses the peer information table, if the value of the communication peer identifier bit is 1, the value of the communication peer identifier bit is set to 0; If the value of the identifier of the terminal is 0, the peer entry corresponding to the communication peer is deleted.
  • the access gateway device when the access gateway device is an access gateway device that is accessed by the mobile node communication peer, the access gateway device is further configured to: save the value information of the T1 in the The communication gateway sends the data packet to the mobile node; when the access gateway device is the access gateway device that is accessed before the mobile node switches, the access gateway device is further configured to: When the mobile node communication peer communicates with the mobile node, extracts the value information of T1 in the data packet sent by the access gateway device accessed by the mobile node communication peer end, and sets the aging period T2 accordingly. The value.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer end;
  • the access gateway device is further configured to: preset a flag for identifying whether the communication peer end is in the aging period T2 Having a flag for passing the data packet and initializing the value of the flag bit; and presetting a basic polling time T, if it is determined that the data packet is passed by the communication peer within the polling time T, the The value of the identifier bit of the communication peer is set to an initial value. If no data packet is passed, the value of the identifier bit of the communication peer is decremented by 1.
  • the access gateway device when the access gateway device is an access gateway device that is accessed before the mobile node switches, the access gateway device is configured to initialize the value of the identifier bit as follows: The value of the aging period ⁇ 2 is set according to the value information of the aging period T1, and the value of the aging period ⁇ 2 of the second timer is used as the value of the flag bit of the communication peer. In the above access gateway device, the ⁇ 2 2 ⁇ 1.
  • the present invention sets the second access gateway device (cut-out gateway device) where the mobile node is located to be able to connect the communication peer when the mobile node performs mobility switching.
  • the data packet sent by the first access gateway device to the mobile node is forwarded to the third access gateway device (cut-in gateway device), and the mobile node corresponding to the mobile node stored in the gateway peer information table can also be cut out. All peer entries corresponding to the CN peer are forwarded to the hand-in gateway.
  • the first access gateway device where the communication peer is located can directly forward the data packet sent by the communication peer to the mobile node to the hand-cut gateway according to the mapping entry of the gateway sent by the gateway device. device.
  • the data packets of the mobile node and the communication peer are basically not interrupted. This is mainly because ⁇ 2> ⁇ 1, so that the ⁇ corresponding to the mapping table stored in the access gateway router where the CN is located before the peer entry corresponding to the CN stored in the peer information table of the access gateway device where the ⁇ is located is aged The mapping entries are hardly aged, thus ensuring normal communication between the UI and the CN during the mobility handover and after the handover is completed.
  • the access gateway device does not need to periodically map to the mapping server.
  • the update mapping table mapping entry and the request to update the peer information entry of the peer information table are sent, thereby effectively reducing the load on the access gateway device.
  • FIG. 1 is a schematic diagram of a network topology of a prior art network-based identity and location separation architecture
  • FIG. 2 is a schematic diagram of a related interface of a network architecture of a network-based identity identification and a location separation framework according to the prior art
  • FIG. 3 is a schematic diagram of a processing flow of a data packet in a case where a mobile node is dynamically set with a timer duration in the present invention.
  • a mobile node MN may appear when it moves from a range covered by one access gateway device (for example, access gateway router AGR) to another access gateway device (such as AGR). Communication interruption and loss of data packets.
  • access gateway device for example, access gateway router AGR
  • AGR access gateway router
  • the present invention proposes that when the mobile node performs handover in the identification network, the mobile can be effectively guaranteed.
  • the main idea of the present invention is: when the mobile node MN performs handover, the first access gateway device (for example, the access gateway router AGR1) where the mobile node communicates with the opposite CN is mapped according to the MN stored in its own mapping table.
  • the data packet sent to the MN is sent to the second access gateway device where the mobile node MN is located (for example, the access gateway router AGR2, also called the gateway AGR), and the data packet is forwarded by the AGR2.
  • the access gateway router AGR2 also called the gateway AGR
  • the gateway router AGR3, also referred to as the gateway gateway AGR is forwarded to the MN by the AGR3.
  • the AGR2 is also stored in the communication peer CN corresponding to the peer information table.
  • the peer mapping entry is forwarded to AGR3.
  • the AGR1 can directly send the received data packet addressed to the MN to the AGR3 according to the mapping entry corresponding to the MN sent by the AGR3, and then forward the data packet to the MN by the AGR3.
  • the aging period of the mapping entry stored in the mapping table of the AGR1 is T1
  • the aging period of the peer entry stored in the peer information table of the AGR2 is T2, and T2>T1. That is to say, AGR1 periodically updates the information of the stored mapping entries in the mapping table every time T1
  • AGR2 periodically updates the information of the stored peer entries in the peer information table every time ⁇ 2.
  • the periodic update time ⁇ 2 of the peer entry of the peer information table in AGR2 needs to be greater than T1.
  • the CN initiates a service flow
  • the mapping entry corresponding to the data packet exchange between the UI and the CN changes, the mapping entry after the handover is referred to as a new mapping entry corresponding to the UI.
  • the hacked gateway AGR3 can notify the CN of the corresponding new mapping entry, thereby ensuring that the AGR3 and the AGR1 where the CN is located can communicate normally, thereby reducing the loss of data packets as much as possible.
  • the access gateway device may select an access gateway router, but is not limited to an access gateway router, for example, a switch having a routing function may be selected. In the following embodiments, the access gateway device is described by taking an access gateway router as an example.
  • the value of the aging period ⁇ 2 is set to be less than or equal to the value of the aging period T1
  • the information of the corresponding mapping entry in the mapping table of the AGR1 is not yet available.
  • the information of the peer entry corresponding to the CN in the peer information table of AGR2 may have been deleted due to aging, so that the communication between ⁇ and CN is interrupted after the completion of the ⁇ .
  • the AGR timer is configured during network deployment by the NMS. In the configuration, ⁇ 2 is greater than T1.
  • the aging periods T1 and T2 are controlled by setting a timer.
  • a first timer D1 is set in AGR1, D1 is used to time the aging period T1, and AGR1 periodically updates the mapping entries in the mapping table every aging period T1; in AGR2, set one
  • the second timers D2 and D2 are used to time the aging period T2, and the AGR2 periodically updates the peer entry in the peer information table every aging period T2.
  • the peer entry in the table is updated at a predetermined time timing. Furthermore, the accuracy and timeliness of updating the mapping entries and the peer entries are guaranteed.
  • the mapping entry stored in the mapping table of the AGR1 is specifically a routing mapping relationship corresponding to the MN, where the routing mapping relationship is specifically a mapping relationship between a user identity (AID) and a routing location identifier (RID), that is, an AID. -RID mapping relationship, as shown in Table 1.
  • the route mapping relationship of multiple mobile nodes is cached in the mapping table. That is to say, a plurality of mapping entries corresponding to the MN are cached in the mapping table. If a timer is set for each mapping entry, the system requires a large number of timers, which makes the system expensive.
  • a uniform timer (the first timer D1 in the above) is set for all mapping entries in the mapping table, and an identifier bit is set for each MN, and the identifier is used to identify Whether the MN passes data packets in an aging period T1.
  • the value of the identifier of the MN is initialized at the same time.
  • the initialization mode is as follows: The initial value of the identifier bits of all MNs is set to 1, that is, all mobile nodes have data packets passing by default in an aging period T1. During the aging period T1, the AGR1 task forwards the data packet and sets the identifier value of the MN's identification bit with the data packet to 1.
  • the value of its flag is set to zero.
  • the first timer D1 traverses the mapping table once every aging time T1.
  • the value of the identifier of the mobile node is 1, the value of the identifier bit is set to 0, if the mobile node If the value of the flag bit is 0, the corresponding mapping entry of the mobile node is deleted in the mapping table.
  • AGR1 only needs to set a common timer for all mobile nodes, and can also implement mapping entries corresponding to the stored MNs in the mapping table without sending a query request to the mapping server. Timing update processing.
  • the peer entry stored in the peer information table is specifically corresponding to the MN.
  • Corresponding information corresponding to the CN of the communication peer; specifically, the peer entry stored in the peer information table is the CN corresponding to the MN and the information of the AGR to which the CN belongs.
  • a plurality of peer entries corresponding to CNs are also stored in the peer information table. Then, accordingly, there are many CNs. If a timer is set for each CN, the system requires a large number of timers, which also increases the overhead of the system.
  • a timer (the second timer D2 in the above) is also uniformly set for all the CNs stored in the peer information table. And setting an identifier bit for each CN, the identifier bit is used to identify whether the CN has data in an aging period T2. The value of the identifier bit is initialized at the same time.
  • the initialization method is as follows: Set the value of the flag corresponding to all CNs in the peer information table to 1.
  • AGR2 determines whether the CN has a data packet in the aging period T2, that is, whether the CN has a data packet processing in the period T2; if yes, the value of the flag corresponding to the CN is set to 1, if not, The value of the flag corresponding to the CN is set to 0; the second timer D2 traverses the mapping table once every time T2, and when D2 traverses the mapping table, if the value of the flag of the CN is 1, the value of the flag is If it is set to 0, if the value of the CN flag is 0, the information of the peer entry corresponding to the CN is deleted in the peer information table. With this scheme, AGR2 only needs to set a common timer for all communication peers.
  • the mapping entry of the MN stored in the mapping table is updated by the AGR1 timing T1 and the peer entry of the CN stored in the peer information table is updated periodically by the AGR2, and the scheme of setting T2>T1 is set.
  • the data packets sent by AGR1 can be sent to AGR3 through AGR2 and forwarded to AGR3 through AGR3.
  • the AGF3 gateway can be switched.
  • the new route mapping mode is sent to the AGR1 where the CN is located in time to ensure that the AGR1 can exchange the normal data packets between the new ones.
  • Embodiment 1 In the following, a specific embodiment is used to compare ⁇ 1> ⁇ 2, and how to ensure normal communication between ⁇ and CN in the case of ⁇ 2> ⁇ 1 is described in detail.
  • the period T1 of H without D1 is 10, and the value of period T2 of D2 is 8.
  • the CN initiates a certain service flow at time 1.
  • the mapping entry corresponding to the MN in the mapping table of the AGR1 and the peer entry corresponding to the CN in the peer information table are created at time 1, and the mapping table of the AGR1 is in the MN.
  • the value of the flag bit and the value of the flag bit of the CN in the peer information table are set to 1 at time 1.
  • D1 traverses the mapping table at time 10, and since the value of the MN's flag bit is 1, the value of its flag bit is set to zero.
  • D2 traverses the peer information table at time 8 when the value of the flag of the CN is 1, and the value of its flag is set to zero. Assume that there is a data message interaction between the CN and the MN at time 18. For D2, in the period from time 8 to time 16, since the CN has no data packet processing, at time 16, the information of the peer entry corresponding to the CN in the peer information table will be deleted.
  • the gateway AGR3 cannot be obtained.
  • the AGR1 where the CN is located does not receive the request for updating the route mapping relationship sent by the AGR3, and the AGR1 does not update the new route mapping relationship corresponding to the MN of the service flow initiated by the MN stored in the mapping table.
  • AGR1 sends according to the route mapping relationship of the MN stored in the current mapping table.
  • the AGR1 data packet is sent to the AGR2, and the MN has already switched to the AGR3.
  • the AGR2 and the AGR3 have no communication tunnel at this time. Therefore, the AGR2 can only discard the data packet. Because the MN always has data packets in the AGR1, the mapping entries corresponding to the MN in the mapping table of the AGR1 cache will not be aged, so the data packets sent by the CN to the MN will continue to be lost. Assume that the value of T2 is 10 and the value of T1 is 8.
  • CN initiates a certain service flow at time 1.
  • the mapping entry corresponding to the MN in the mapping table and the peer entry corresponding to the CN in the peer information table. Created at time 1.
  • the identification value of the identification bit of the MN in the mapping table of AGR1 and the identification value of the identification bit of the CN in the peer information table are all set to 1 at time 1.
  • D1 traverses the mapping table at time 8 . Since the value of the MN's flag bit is 1, the value of its flag bit is set to zero.
  • D2 traverses the peer information table at time 10, and at this time, since the value of the flag of the CN is 1, the value of its flag is set to zero.
  • the AGR3 When there is a data packet exchange between the MN and the CN, the AGR3 sends an update request for the route mapping relationship to the AGR1, and notifies the AGR1 of the new route mapping relationship corresponding to the MN, so that the data packet is not lost.
  • the MN can also update the processing of the peer entry information of the CN in the peer information table of the AGR3 in the AGR2 to AGR3 handover process. Delete it when you are done.
  • T2 is greater than T1
  • the aging period of AGR at both ends may not be synchronized, and there are still some problems.
  • the value of the period T1 of D1 is 8, and the value of the period T2 of D2 is 10.
  • the data packet of a certain service flow is exchanged between CN and MN at time 10, if the period of D1 is 9/17/25. . . . , and the period of D2 is 1/11/21. If no message passes AGR1 and AGR2 from time 10 to time 21, the peer entry corresponding to CN in the peer information table of AGR2 will Because the aging is deleted, the mapping entry of the MN in the AGR1 mapping table has not been aged. Therefore, if the MN switches between the times 22-26, the AGR1 will still send a data message to the AGR2, and the CN will also appear.
  • the seamless handover between the CN and the MN is ensured, and the value of the aging period T2 of the second timer is set to T1. Twice or more than twice.
  • T2 2T1 the peer entry corresponding to the CN in the peer information table must be aged after the mapping entry corresponding to the corresponding mapping table, so that normal communication between the CN and the UI can be guaranteed.
  • the value of ⁇ 1 can also be appropriately relaxed to reduce the load on the device.
  • the value of the aging period ⁇ 2 can be dynamically set according to the value of the aging period T1 of D1, as long as ⁇ 2 > T1 is guaranteed.
  • the value of the period ⁇ 2 of the D2 is dynamically set in the following manner, and the value information of the period T1 is saved in the data packet sent by the communication peer CN to the mobile node. Therefore, when the MN communicates with the CN, the AGR2 where the MN is located extracts the value information of the T1 in the data packet sent by the CN, and the value of the aging period T2 of the D2 can be set accordingly.
  • the value of T2 is set to be twice or more than T1.
  • a part of the field is selected from the IP header of the packet to carry the value information of the first timer T1.
  • the value information of T1 is stored in an option field sent to the IP header of the MN message or a reuse service type TOS field. If you use the option field in the IP header to carry the value information of T1, the specific format of the option field can be as shown in Table 4 below: Table 4 IP option field carrying T1 value information Option type Option length timer value Example 2:
  • the CN initiates a service flow to the MN;
  • the CN sends the message to the AGR1.
  • the AGR1 queries the mapping server for the mapping entry of the corresponding AID-RID in the mapping table, and caches the mapping entry locally after the query.
  • the outer layer encapsulation of the data packet according to the route mapping relationship, and the option of the timer in the IP header of the packet is set according to the duration of the first timer T1 configured locally by AGR1 during encapsulation.
  • the value of T1 is selected according to the actual requirement; 304, AGR1 sends the data packet to AGR2;
  • AGR2 forwards the data packet to the MN. It can be seen from the above process that the value of the aging period T1 of the D1 of the AGR can be used. Local configuration. Therefore, AGR2 receives different values of the aging period T1 of D1 sent by multiple AGRs. In this case, the second timer D2 can also use the method of setting the value of the identifier bit to achieve A method of setting different timers for different peer entries in the peer mapping table. In an embodiment, a basic polling time T is also preset for the AGR2. If the AGR2 determines that the CN has a data message in the polling time T, the value of the CN flag is set to an initial value.
  • the value of the flag bit of the CN is decremented by 1.
  • the peer entry corresponding to the communication peer is deleted.
  • the method for initializing the value of the identifier bit may be: setting the value of the aging period T2 according to the value of the aging period T1, and setting the value of the aging period T2 of the second timer as the value of the identifier of the communication peer. .
  • Embodiment 3 It is assumed that the D ⁇ aging period ⁇ ⁇ from AGR1 received by AGR2 is 5, and the received D1 "aging period T1" from AGR1 "is 8, then the basic timer of AGR2 The polling time T can be set to 1, where the selection of T needs to satisfy T2>T.
  • the aging period of the timer of the corresponding peer entry in the peer information table corresponding to AGR1' is 10, and the corresponding AGR1'
  • the initial value of the value of the communication peer identifier bit is also set to 10;
  • the timer aging period of the corresponding peer entry in the peer information table corresponding to AGR1" is 16, and the value of the identifier bit of the communication peer corresponding to the AGR1" It is also set to 16.
  • every time AGR2 polls if there is no data packet passing by the communication peer, the value of the identification bit of the communication peer is decremented by one, and if there is a message, the value is reset to the initial value. It is possible to achieve different effects of different communication peer aging times.
  • the present invention also provides a management system for identifying data packets when a mobile node switches in a network, including a mobile node, a mobile node communication peer, a first access gateway device where the mobile node communication peer is located, and a mobile node where the mobile node is located.
  • the mobile node performs handover, the first access gateway device according to the mapping entry corresponding to the mobile node stored in the self mapping table, Receiving, the data packet sent to the mobile node is sent to the second access gateway device, and the second access gateway device sends the data packet And the peer entry corresponding to the communication peer end stored in the peer information table is forwarded to the third access gateway device, where the third access gateway device forwards the data packet to the Mobile node
  • the first access gateway device sends the received data to the mobile node according to the mapping entry corresponding to the mobile node sent by the third access gateway device. Sending the packet to the third access gateway device, and then forwarding, by the third access gateway device, the data packet to the mobile node; wherein, an aging period of the mapping entry stored in the mapping table For T1, the aging period of the peer entry stored in the peer information table is T2, and T2>T1. among them,
  • the first access gateway device is configured to: when the mobile node performs handover, the first access gateway device receives the received message according to a mapping entry corresponding to the mobile node stored in the self mapping table. Sending, to the second access gateway device, the data packet sent to the mobile node; and, after the handover of the mobile node is complete, the first access gateway device sends the data according to the third access gateway device.
  • the mapping entry corresponding to the mobile node sends the received data packet addressed to the mobile node to the third access gateway device;
  • the second access gateway device is configured to: when the mobile node Forwarding, by the first access gateway device, the data packet sent by the first access gateway device and the peer entry corresponding to the communication peer end stored in the peer information table to the third access gateway device
  • the third access gateway device is configured to: when the mobile node performs handover, the first
  • the aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is ⁇ 2, and ⁇ 2> ⁇ 1.
  • the first timer is set in the first access gateway device, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; and the second access gateway device is configured to be configured.
  • the second timer updates the peer entry in the peer information table periodically every aging period ⁇ 2.
  • the mapping entry stored in the mapping table is a route mapping relationship corresponding to the mobile node; the first access gateway device is further configured to: preset a flag for identifying whether the mobile node is in the aging period T1 Having the identifier of the data packet and initializing the value of the identifier bit; determining whether the mobile node has a data packet passing in the aging period T1, and if so, setting the value of the mobile node identifier bit to 1 If not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the value of the mobile node identifier bit is 1, the mobile node is The value of the identifier bit is set to 0. If the value of the mobile node identifier bit is 0, the mapping entry corresponding to the mobile node is deleted.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer end;
  • the second access gateway device is further configured to: preset a flag for identifying whether the communication peer passes the data packet in the aging period T2 and initialize the value of the identifier bit; Whether the data communication message is passed by the communication peer end in T2, if yes, the value of the communication peer end identification bit is set to 1, if not, the value of the communication peer end identification bit is set to 0; And when the second timer traverses the peer information table, if the value of the communication peer identifier bit is 1, the value of the communication peer identifier bit is set to 0; If the value of the flag bit is 0, the peer entry corresponding to the communication peer is deleted.
  • the first access gateway device is further configured to: save the value information of the T1 in a data packet sent by the communication peer end to the mobile node; the second access gateway device is further configured to And: when the mobile node communication peer communicates with the mobile node, extracts the value information of T1 in the data packet sent by the first access gateway device, and sets the value of the aging period T2 accordingly.
  • the peer entry stored in the peer information table is the related information corresponding to the communication peer; the second access gateway device is further configured to: preset one to identify the communication peer in the aging period Whether there is a flag for passing the data packet in T2 and initializing the value of the identifier bit; and presetting a basic polling time T, if it is determined that the communication peer has a data packet in the polling time T If yes, the value of the identifier of the communication peer is set to an initial value. If no data packet is passed, the value of the identifier of the communication peer is decremented by one, and the value of the identifier of the communication peer is decreased. When it is 0, the peer entry corresponding to the communication peer is deleted, where T2>T.
  • the embodiment also discloses an access gateway device, where the access gateway device is applied to an identity and location separation network, and the access gateway device is configured to: when the access gateway device is a mobile node communication peer Accessing the access gateway device, when the mobile node performs handover, the access gateway device accessed by the mobile node communication peer end according to the mapping entry corresponding to the mobile node stored in the self mapping table, Receiving, the data packet sent to the mobile node is sent to the access gateway device accessed by the mobile node before the handover; and when the mobile node is switched, the mobile node is connected to the communication peer The access gateway device sends the received data packet addressed to the mobile node to the mobile node according to the mapping entry corresponding to the mobile node sent by the access gateway device accessed by the mobile node after the handover.
  • An access gateway device that is accessed after the handover; when the access gateway device is an access gateway device accessed before the mobile node switches, when the mobile node is The data packet sent by the access gateway device accessed by the mobile node communication peer end and the peer entry corresponding to the communication peer end stored in the peer information table are forwarded to the mobile terminal.
  • the access gateway device accessed after the node is switched;
  • the access gateway device is an access gateway device that is accessed after the mobile node is switched
  • the mobile gateway node transmits the access gateway device that is accessed before the handover. Transmitting, to the mobile node, the data packet, and transmitting, by the mobile node, the data packet sent by the access gateway device accessed by the mobile node to the mobile node;
  • the aging period of the mapping entry stored in the mapping table is T1
  • the aging period of the peer entry stored in the peer information table is ⁇ 2, and ⁇ 2> ⁇ 1.
  • the first timer is set in the access gateway device that is connected to the mobile node communication peer end, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; Setting a second timer in the access gateway device that is connected before the handover, the second timing The peer entry in the peer information table is updated periodically every aging period T2.
  • the mapping entry stored in the mapping table is a routing mapping relationship corresponding to the mobile node; when the access gateway device is an access gateway device accessed by a mobile node communication peer, the access gateway device The method is further configured to: determine a flag for identifying whether the mobile node passes the data packet in the aging period T1 and initialize the value of the identifier bit; and determine whether the mobile node has data in the aging period T1.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer end;
  • the access gateway device is further configured to: preset a flag for identifying whether the communication peer end is in the aging period T2 Having the identifier of the data packet and initializing the value of the identifier bit; determining whether the data packet is passed by the communication peer in the aging period T2, and if yes, setting the value of the communication peer identifier bit If not, the value of the communication peer identifier bit is set to 0; when the second timer traverses the peer information table, if the value of the communication peer identifier bit is 1, Then, the value of the communication peer identifier bit is set to 0; if the value of the identifier bit of the communication peer is 0, the peer entry corresponding to the communication peer is deleted.
  • the access gateway device is an access gateway device that is accessed by the mobile node communication peer end, and the access gateway device is further configured to: save the value information of the T1 in the communication peer end In the data packet of the mobile node; when the access gateway device is an access gateway device that is accessed before the mobile node switches, the access gateway device is further configured to: when the mobile node communicates When the peer communicates with the mobile node, extracting T1 in the data packet sent by the access gateway device accessed by the mobile node communication peer end The value information is set, and the value of the aging period T2 is set accordingly.
  • the peer entry stored in the peer information table is related information corresponding to the communication peer end; when the access gateway device is an access gateway device accessed before the mobile node switches, the connection
  • the gateway device is further configured to: preset a flag for identifying whether the communication peer passes the data packet in the aging period T2 and initialize the value of the identifier bit; and preset a basic polling time T If it is determined that the data packet is passed by the communication peer in the polling time T, the value of the identifier of the communication peer is set to an initial value, and if no data packet is passed, the communication peer is The value of the identifier bit is decremented by 1.
  • the access gateway device is configured to initialize the value of the identifier bit as follows: when the access gateway device is an access gateway device that is accessed before the mobile node switches: according to the aging period
  • the value information of T1 is set to the value of the aging period ⁇ 2, and the value of the aging period ⁇ 2 of the second timer is used as the value of the flag bit of the communication peer. Wherein, the ⁇ 2 2 ⁇ 1.
  • the aging period of the timer in the access gateway device of the mobile node, the gateway device, and the access gateway device where the CN is located is reasonably set, so that the mobile node can effectively mitigate the context switching.
  • the load on the access gateway device does not cause the interruption of communication between the CN and the UI, thus ensuring that the data packets are not lost when the mobile node switches.
  • the present invention ensures normal communication between the MN and the CN during the MN mobility switching process and after the handover is completed. At the same time, through the setting of T2>T1, the access gateway device does not need to periodically send the update mapping table mapping entry to the mapping server and update the request of the peer information entry, thereby effectively reducing the load on the access gateway device. .

Landscapes

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

Abstract

The present invention discloses a method for managing data messages during handover of mobile nodes, which is used in a network where the identity is separated from the location. Said method includes the following steps: when a mobile node performs the handover, a first access gateway equipment where a correspondent node (CN) of the mobile node (MN) is located transmits, according to a corresponding mapping entry of said MN stored in a mapping table of the first access gateway equipment, a received data message which is transmitted to said MN to a second access gateway equipment where said MN is located; said second access gateway equipment forwards said data message and the corresponding correspondent entry of said CN stored in a correspondent information table of the second access gateway equipment to a third access gateway equipment, wherein, the aging period of the mapping entries stored in said mapping table is T1, the aging period of the correspondent entries stored in said correspondent information table is T2, and T2>T1. The present invention ensures the normal communication between the MN and the CN during the mobility handover process of the MN and after the handover is finished.

Description

一种移动节点切换时数据报文的管理方法及系统  Method and system for managing data message when mobile node switches
技术领域 本发明涉及通信技术领域, 具体而言, 尤其涉及一种移动节点切换时数 据报文的管理方法及系统。 The present invention relates to the field of communications technologies, and in particular, to a method and system for managing data packets when a mobile node switches.
背景技术 现有因特网广泛使用的传输控制协议 /互联网络协议 ( Transmission Control Protocol/Internet Protocol, 简称 TCP/IP )中 IP地址具有双重功能, 既 作为网络层的通信终端主机网络接口在网络拓朴中的位置标识, 又作为传输 层主机网络接口的身份标识。 TCP/IP在设计之初并未考虑主机移动的情况。 但是, 当主机移动越来越普遍时, 这种 IP地址的语义过载缺陷日益明显。 当 主机的 IP地址发生变化时, 不仅路由发生变化,通信终端主机的身份标识也 发生变化, 这样将会导致路由器的负载越来越重, 而且主机标识的变化还将 导致应用和连接的中断。 身份标识和位置分离问题提出的目的是为了解决 IP地址的语义过载和 路由负载严重等问题, 将 IP地址的双重功能进行分离, 从而实现对移动性、 多家乡性、 IP地址动态重分配、 减轻路由负载及下一代互联网中不同网络区 域之间的互访等问题的支持。 现有技术中, 基于网络路由器的实现方法是有关身份标识和位置分离的 解决方案之一。 这种方案的基本思想是: 将网络划分为接入层和核心层, 网 络中的移动节点有两种标识类型:用户身份标识( Access Identifier,简称 AID ) 和路由位置标识(Routing-Location Identifier, 简称 RID ) 。 网络中的每个用 户终端配置唯一的 AID, 并且该 AID在移动过程中始终保持不变; 在数据转 发过程中, AID只能在接入层使用, RID只能在核心层使用; 上述基于网络 的身份标识和位置分离框架的拓朴示意图如图 1所示, 相应地, 也就把网络 划分成了接入网和骨干网。 如图 1所示, 在该基于网络的身份标识和位置分 离框架中, 主要包括: 无线接入网 (Radio Access Network, 简称 RAN)、 接入 网关路由器(Access Gateway Router, 简称 AGR )、广义网关路由器( General Switch Router, 简称 GSR ) 、 映射服务器( Identifier Mapping Server, 简称 IDMS ) 、 以及认证中心等。 下面分别给予介绍: BACKGROUND OF THE INVENTION IP addresses in the Transmission Control Protocol/Internet Protocol (TCP/IP), which is widely used in the Internet, have dual functions, and serve as a communication layer host network interface of the network layer in the network topology. The location identifier, which is also the identity of the transport layer host network interface. TCP/IP did not consider host mobility at the beginning of the design. However, as host mobility becomes more prevalent, the semantic overload defects of such IP addresses are becoming increasingly apparent. When the IP address of the host changes, not only the route changes, but also the identity of the host of the communication terminal changes. This will cause the load on the router to become heavier, and the change of the host identity will also cause the application and connection to be interrupted. The purpose of identification and location separation is to solve the problem of semantic overload and severe routing load of IP addresses, and to separate the dual functions of IP addresses, thereby realizing dynamic redistribution and mitigation of mobility, multiple townships, and IP addresses. Support for issues such as routing load and mutual visits between different network areas in the next generation Internet. In the prior art, the network router based implementation method is one of the solutions for identity identification and location separation. The basic idea of this scheme is: The network is divided into an access layer and a core layer. The mobile node in the network has two types of identification: an Access Identifier (AID) and a Routing-Location Identifier (Routing-Location Identifier). Referred to as RID). Each user terminal in the network is configured with a unique AID, and the AID remains unchanged during the mobile process; in the data forwarding process, the AID can only be used at the access layer, and the RID can only be used at the core layer; The topology of the identity and location separation framework is shown in Figure 1. Correspondingly, the network is divided into an access network and a backbone network. As shown in FIG. 1 , in the network-based identity and location separation framework, the method mainly includes: a radio access network (Radio Access Network, RAN for short), access Gateway Gateway (AGR), General Switch Router (GSR), Identifier Mapping Server (IDMS), and authentication center. The following are introduced separately:
AGR, 负责为各种移动节点提供接入服务,为接入的用户终端分配 RID, AGR, which is responsible for providing access services for various mobile nodes, and assigning RIDs to the accessed user terminals.
AGR在收到用户终端发来的数据报文时,根据数据报文中目的地址(即 通信对端的 AID ) 查询本地緩存(CACHE ) 中的 AID-RID映射表: 如果查 到对应的 AID-RID映射条目, 则将查到的通信对端的 RID封装在报文头部 发送到骨干网进行转发处理; 如果没有查到对应的 AID-RID映射条目, 则将 数据报文转发到骨干网, 并向 IDMS发起查询 (通信对端的 ) AID-RID映射 信息的流程, 并将 IDMS返回对应的 AID-RID映射保存在本地, 以备后续才艮 文转发时查询。 或者, AGR在没有查到对应的 AID-RID映射条目时, 也可 以选择不将数据报文转发到骨干网, 而是向 IDMS发起查询 (通信对端的 ) AID-RID映射信息的流程,待 IDMS返回对应的 AID-RID映射后,将查到的 通信对端的 RID封装在报文头部发送到骨干网进行转发处理。 When receiving the data packet sent by the user terminal, the AGR queries the AID-RID mapping table in the local cache (CACHE) according to the destination address in the data packet (ie, the AID of the communication peer): If the corresponding AID-RID is found. Mapping the entry, the RID of the communication peer that is found is encapsulated in the packet header and sent to the backbone network for forwarding processing; if the corresponding AID-RID mapping entry is not found, the data packet is forwarded to the backbone network, and The IDMS initiates the process of querying (communicating the peer) AID-RID mapping information, and saves the IDMS return corresponding AID-RID mapping locally, so as to prepare for subsequent forwarding. Alternatively, when the AGR does not find the corresponding AID-RID mapping entry, the AGR may choose not to forward the data packet to the backbone network, but initiate the process of querying the AID-RID mapping information (communicating the peer end) to the IDMS, and wait for the IDMS. After the corresponding AID-RID mapping is returned, the RID of the communication peer that is found is encapsulated in the packet header and sent to the backbone network for forwarding processing.
AGR在收到发往用户终端的数据报文时, 对数据报文进行解封装处理, 剥去数据报文中新增的包含 RID的报文头, 发往终端。 When receiving the data packet sent to the user terminal, the AGR decapsulates the data packet, and strips the newly added RID packet header in the data packet to the terminal.
GSR的主要功能是根据数据报文中的路由位置标识 RID进行选路和转 发数据报文。 IDMS 主要负责维护网络中用户身份标识和位置标识的映射关系, 并向 接入网关路由器和其它映射服务器提供查询服务。 认证中心, 负责记录用户终端类别、 以及用户终端服务等级等信息, 在 用户终端接入时对用户终端进行合法性认证和授权。 认证中心支持网络与用 户终端间的双向鉴权。 无线接入网, 负责提供并维护用户终端到接入网关路由器 AGR之间的 二层链路; 在蜂窝移动网应用场景中负责无线资源管理。 由上所述, 在图 1所示的框架下, 网络可划分为接入网和骨干网。 接入 网位于骨干网的边缘, 负责所有终端的接入, 在接入网的 RAN部分, 所有 的用户终端都使用 AID进行寻址。骨干网则负责通过不同接入网接入用户终 端的路由器。 接入网与骨干网在拓朴关系上没有重叠。 通信主机之间应用层 使用 AID标识对端, 用户终端间的通信只需使用对端的 AID进行。 接入网关路由器位于骨干网和接入网的分界点, 作为接入网与骨干网的 接口, 负责为用户终端提供接入服务、 且维护用户终端连接、 转发用户终端 数据等。 用户终端的所有通信都通过所在接入网络的接入网关路由器进行转 发和管理。 用户终端与通信对端之间数据报文的转发过程如下: 用户终端在 发出数据报文时, 对应的接入网关路由器向映射服务器发送查询该用户终端 路由方式的请求。 其中, 映射服务器中存储了网络中所有用户终端的路由方 式, 映射服务器选择相应的路由方式并返回给接入网关路由器 AGR。 AGR 根据从映射服务器处返回的该移动节点(Mobile Node, 简称 MN )的路由方 式, 将 MN发来的数据报文进行转发。 若用户终端与通信对端属于同一接入 网关路由器服务范围, 则 AGR将数据报文直接转发给通信对端。 若用户终 端与其所对应的通信对端属于不同的 AGR, 那么 AGR则将数据报文转发到 骨干网。 AGR在转发属于不同 AGR的数据报文时, 还在转发的数据报文中 携带 RID信息 (该 RID与 AID相对应) ; 对应的, 用户终端在接收数据报 文时, 接入网关路由器进行相反的操作, 即剥离 RID信息并将数据报文转发 给用户终端。 当然 AGR还将从映射服务器处获得该用户终端的路由方式存储在自身 緩存中, 当该用户终端(移动节点)有后续报文发送时, AGR则从自身緩存 中查询到该 MN的路由方式, 并根据该路由方式进行数据报文的转发。 上述基于网络的身份标识和位置分离框架的网络架构的相关接口如图 2 所示, S1/D1是用户终端与接入网关路由器 AGR的接口, S1用于用户接入 管理的信令, D1是数据转发接口; S2用于 AGR间切换时切换管理信令, D2用于 AGR间切换时数据转发; D3是与 AGR与 GSR间的数据转发接口, S4/S5/S6是用于查询和维护 AID-RID映射关系的信令接口, D4m是 AGR与 IDMS间的数据转发接口。 其中, 在拜访地 IDMS ( visted IDMS ) 与归属地 IDMS ( Home IDMS )无直联关系时, 中继 IDMS ( Broke IDMS )转发 visted IDMS与 Home IDMS间的信令。 下面详细描述在上述网络架构下实现移动节点切换管理的方法, 移动节 点的通信对端 ( Correspondent Node , 简称 CN )与移动节点 ( Mobile Node , 简称 ΜΝ )建立通信, 相互间收发数据报文, 在与 ΜΝ建立通信关系的过程 中, CN所在的 AGR可以根据 ΜΝ的消息中携带的 AID ,向映射服务器 IDMS 查询 MN的 AID和 RID的映射关系, 从而得到 MN的路由位置标识 RID; 同时 CN所在的 AGR在本地维护 MN的 AID和 RID映射关系表, 具体如下 表 1所示: 表 1 移动节点的通信对端身份位置标识映射表 The main function of the GSR is to select and forward data packets based on the routing location identifier RID in the data packet. IDMS is mainly responsible for maintaining the mapping relationship between user identity and location identifier in the network, and providing query services to access gateway routers and other mapping servers. The authentication center is responsible for recording information such as the user terminal category and the user terminal service level, and performs legality authentication and authorization on the user terminal when the user terminal accesses. The certificate authority supports two-way authentication between the network and the user terminal. The radio access network is responsible for providing and maintaining a Layer 2 link between the user terminal and the access gateway router AGR; and is responsible for radio resource management in the cellular mobile network application scenario. From the above, under the framework shown in Figure 1, the network can be divided into an access network and a backbone network. The access network is located at the edge of the backbone network and is responsible for access of all terminals. In the RAN part of the access network, all The user terminals are all addressed using the AID. The backbone network is responsible for accessing the router of the user terminal through different access networks. There is no overlap between the access network and the backbone network in the topology relationship. The application layer between the communication hosts uses the AID to identify the peer. The communication between the user terminals only needs to use the AID of the peer. The access gateway router is located at the demarcation point between the backbone network and the access network, and serves as an interface between the access network and the backbone network, and is responsible for providing access services for the user terminals, maintaining user terminal connections, and forwarding user terminal data. All communication of the user terminal is forwarded and managed by the access gateway router of the access network. The process of forwarding the data packet between the user terminal and the communication peer is as follows: When the user terminal sends the data packet, the corresponding access gateway router sends a request for querying the routing mode of the user terminal to the mapping server. The mapping server stores the routing manners of all user terminals in the network, and the mapping server selects the corresponding routing mode and returns the information to the access gateway router AGR. The AGR forwards the data packet sent by the MN according to the routing manner of the mobile node (Mobile Node, MN for short) returned from the mapping server. If the user terminal and the communication peer belong to the same access gateway router service range, the AGR forwards the data packet directly to the communication peer. If the user terminal and its corresponding communication peer belong to different AGRs, the AGR forwards the data packet to the backbone network. When forwarding a data packet belonging to a different AGR, the AGR also carries the RID information in the forwarded data packet (the RID corresponds to the AID); correspondingly, when the user terminal receives the data packet, the access gateway router performs the opposite. The operation, that is, stripping the RID information and forwarding the data message to the user terminal. Of course, the AGR also stores the routing mode of the user terminal from the mapping server in its own cache. When the user terminal (mobile node) has subsequent packets, the AGR queries the routing mode of the MN from its own cache. The data packet is forwarded according to the routing mode. The related interface of the network architecture based on the network identity identification and location separation framework is shown in FIG. 2, S1/D1 is an interface between the user terminal and the access gateway router AGR, and S1 is used for signaling of user access management, and D1 is Data forwarding interface; S2 is used for switching management signaling when switching between AGRs, D2 is used for data forwarding between AGRs; D3 is a data forwarding interface between AGR and GSR, and S4/S5/S6 is used for querying and maintaining AIDs. - The signaling interface of the RID mapping relationship, D4m is the data forwarding interface between the AGR and the IDMS. Wherein, when the visited IDMS (visted IDMS) has no direct connection relationship with the home IDMS (Home IDMS), the relay IDMS (Broke IDMS) forwards the signaling between the visted IDMS and the Home IDMS. The method for implementing mobile node handover management under the above network architecture is described in detail below. The communication peer (Correspondent Node, CN for short) and the mobile node (Mobile Node, ΜΝ for short) establish communication, and send and receive data packets between each other. In the process of establishing a communication relationship with the ΜΝ, the AGR of the CN can query the mapping server IDMS to query the mapping relationship between the AID and the RID of the MN according to the AID carried in the ΜΝ message, thereby obtaining the routing location identifier RID of the MN; The AGR maintains the AID and RID mapping table of the MN locally, as shown in Table 1 below: Table 1 Communication peer identity location location mapping table of the mobile node
Figure imgf000006_0001
Figure imgf000006_0001
当无线接入网检测到 MN的移动性(即 MN的位置发生了变化, 从一个 AGR覆盖范围移动到了另一个 AGR的覆盖范围) 时, 则发起切换流程, 并 触发切换流程。 在切换过程中, 切出网关 AGR与切入网关 AGR建立转发关 系, 在切换过程中或切换完成后, 切出网关 AGR将收到的发往 MN (用户终 端;)的数据报文转发给切入网关 AGR, 由切入网关 AGR转发给 MN; 为了避免切换后的路由迂回问题, 在切换完成后, 由切入网关 AGR将 MN的新的映射关系通知该 MN的所有 CN所在的接入网关路由器。 这样, 所有的 CN所在的接入网关路由器就可以将后续的报文直接发送给 MN的切 入网关 AGR, 从而避免了路由迂回。 为了避免路由迂回的问题, 因此就需要 在接入网关路由器处保存每个本地接入的 MN对应的所有 CN的信息, 切入 网关 AGR根据保存的信息, 才能将 MN新的标识映射关系通知给 CN所在 的接入网关路由器。 因此, 在使用中, 则首先要求移动节点的接入网关路由 器能够保存所有本地接入的 MN的通信对端的信息,其次要求 MN所在的所 有接入网关路由器在单独或者在映射服务器的帮助下能通知通信对端接入的 接入网关路由器。 如果映射服务器不能提供转发通知的帮助, 那么 MN所在 的 AGR就必须保存通信对端所在的接入网关路由器的信息。 表 2和表 3表 示的是在映射服务器不能提供帮助的情况下, MN所在的接入网关路由器保 存的本地接入映射表和通信对端映射表的一种组织形式。 表 2 接入网关路由器的本地接入用户终端标识映射表When the radio access network detects the mobility of the MN (ie, the location of the MN changes from one AGR coverage to another AGR coverage), the handover procedure is initiated and the handover procedure is triggered. During the handover process, the gateway AGR and the ingress gateway AGR establish a forwarding relationship. During the handover process or after the handover is completed, the gateway AGR forwards the received data packet addressed to the MN (user terminal) to the hand-in gateway. AGR is forwarded to the MN by the hand-in gateway AGR. In order to avoid the problem of route bypass after the handover, after the handover is completed, the new mapping relationship of the MN is notified by the handover gateway AGR to the access gateway router where all the CNs of the MN are located. In this way, all the access gateway routers where the CN is located can send subsequent packets directly to the MN's hand-cut gateway AGR, thereby avoiding route bypass. In order to avoid the problem of route bypass, it is necessary to save the information of all the CNs corresponding to each locally accessed MN at the access gateway router, and the gateway AGR can notify the CN of the new MN mapping relationship according to the saved information. The access gateway router where it is located. Therefore, in use, the access gateway router of the mobile node is first required to save the information of the communication peers of all locally accessed MNs, and secondly all the access gateway routers where the MN is located can be individually or with the help of the mapping server. The access gateway router that informs the communication peer to access. If the mapping server cannot provide the help of forwarding notification, the AGR where the MN is located must save the information of the access gateway router where the communication peer is located. Table 2 and Table 3 show that the access gateway router where the MN is located is protected if the mapping server cannot provide assistance. An organization form of the stored local access mapping table and the communication peer mapping table. Table 2 Local access user terminal identifier mapping table of the access gateway router
Figure imgf000007_0001
Figure imgf000007_0001
接入网关路由器的通信对端映射标识映射表
Figure imgf000007_0002
Communication peer mapping mapping table of access gateway router
Figure imgf000007_0002
在表 2和表 3中, 通信对端的信息还需要设置定时器, 来决定如果移动 节点很长时间没有和这个通信对端通信了就应该删除这个通信对端的信息, 以节省移动节点所在的 AGR的内存空间。 然而, 以上解决方案还存在以下问题:  In Table 2 and Table 3, the communication peer information also needs to set a timer to decide that if the mobile node does not communicate with the communication peer for a long time, the information of the communication peer should be deleted to save the AGR where the mobile node is located. Memory space. However, the above solutions also have the following problems:
CN所在的 AGR在处理第一个发给 MN的报文时,会向映射服务器查询 MN的 AID和 RID映射关系, 并在本地緩存存储该映射关系的表项, 如前面 表 1的格式,这样后续报文的处理直接在本地緩存就能查到映射关系。但是, 本地緩存也不能长时间地緩存 MN 的映射关系, 如果长时间緩存, 那么当 老化删除, 那么切换后的 MN, 即切入网关 AGR则不会向 CN所在的 AGR 发送更新映射关系的消息。 这时, 当 MN切换完成后, MN的切出 AGR和 切入 AGR之间已经没有了数据报文转交隧道, 而 CN所在的 AGR由于没有 收到映射关系更新消息, 还会继续向 MN的切出 AGR发送报文, 造成报文 丟失, 通讯中断。 因此, CN所在的 AGR本地緩存的关于 MN的映射关系表项需要定时向 映射服务器请求进行映射关系更新处理, 但是如果定时向映射服务器请求更 新的时间间隔过大, 依然还是会存在上述通讯终端的问题, 如果请求更新的 时间间隔太小, 则对 AGR的性能要求很高, 使得 AGR的负荷会很重。 When the AGR that the CN is located processes the first packet sent to the MN, it queries the mapping server for the mapping between the AID and the RID of the MN, and caches the entry of the mapping relationship locally, as in the format of Table 1 above. The processing of subsequent messages can be found directly in the local cache. However, the local cache cannot cache the mapping relationship of the MN for a long time. If the aging is deleted, the MN after the handover, that is, the gateway AGR, does not send a message to update the mapping relationship to the AGR where the CN is located. At this time, after the MN handover is completed, there is no data packet handover tunnel between the MN's cut-out AGR and the cut-in AGR, and the AGR of the CN does not receive the mapping relationship update message, and continues to cut out to the MN. The AGR sends a packet, causing the packet to be lost and the communication to be interrupted. Therefore, the mapping relationship between the MN and the MN is required to be periodically requested to be updated by the mapping server. However, if the time interval for requesting the update from the mapping server is too large, the communication terminal still exists. The problem, if the interval for requesting updates is too small, the performance requirements of AGR are very high, so that the load of AGR will be heavy.
发明内容 本发明要解决的技术问题是针对现有技术的不足, 提供一种移动节点进 行移动性切换时能够有效地减轻接入网关设备的负荷, 并尽可能地减少报文 丟失的数据报文的管理方法和系统。 为解决上述技术问题, 本发明釆用了以下技术方案: 一种移动节点切换时数据报文的管理方法, 所述方法应用于身份与位置 分离网络, 所述方法包括: 当移动节点进行切换时, 移动节点通信对端所在的第一接入网关设备根 据存储在自身映射表中的所述移动节点对应的映射条目, 将接收到的发往所 述移动节点的数据报文发给所述移动节点所在的第二接入网关设备; 所述第 二接入网关设备将所述数据报文以及存储在自身对端信息表中的所述通信对 端对应的对端条目转发给第三接入网关设备, 所述第三接入网关设备将所述 数据报文转发给所述移动节点; 以及 当所述移动节点切换完成后, 所述第一接入网关设备根据所述第三接入 网关设备发来的所述移动节点对应的映射条目, 将接收到的发往所述移动节 点的数据报文发给所述第三接入网关设备,再由所述第三接入网关设备将所 述数据报文转发给所述移动节点; 其中, 所述映射表中存储的映射条目的老 化周期为 T1,所述对端信息表中存储的对端条目的老化周期为 T2,且 T2> T1。 上述方法中,在所述第一接入网关设备中设置第一定时器,所述第一定时 器每隔老化周期 T1定时更新映射表中的映射条目;在所述第二接入网关设备 中设置第二定时器, 所述第二定时器每隔老化周期 Τ2定时更新对端信息表 中的对端条目。 上述方法中, 所述映射表中存储的映射条目为所述移动节点对应的路由 映射关系; 所述方法还包括: 预设一个用于标识所述移动节点在老化周期 T1 内是 否有数据报文通过的标识位并初始化所述标识位的值; 所述第一接入网关设 备判断在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所 述移动节点标识位的值设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述第一定时器遍历所述映射表时, 若所述移动节点标识位的值为 1 , 则 将所述移动节点标识位的值设为 0,若所述移动节点标识位的值为 0,则删除 所述移动节点对应的映射条目。 上述方法中, 所述对端信息表中存储的对端条目为所述通信对端对应的 相关信息; 所述方法还包括: 预设一个用于标识所述通信对端在老化周期 T2 内是 否有数据报文通过的标识位并初始化所述标识位的值; 所述第二接入网关设 备判断在老化周期 T2 内所述通信对端是否有数据报文通过, 若有, 则将所 述通信对端标识位的值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述第二定时器遍历所述对端信息表时,若所述通信对端标识位的值为 1 , 则将所述通信对端标识位的值设为 0; 若所述通信对端的标识位的值为 0,则 删除所述通信对端对应的对端条目。 所述方法还包括: 将所述 T1 的取值信息保存在所述通信对端发往所述移动节点的数据报 文中; 当所述移动节点通信对端与移动节点进行通信时, 所述第二接入网关 设备提取所述第一接入网关设备发来的数据报文中 T1 的取值信息, 并相应 地设置老化周期 T2的取值。 上述方法中, 将所述 T1的取值信息保存在所述数据报文的 IP首部中的 选项字段或者重用服务类型 TOS字段中。 上述方法中, 所述对端信息表存储的对端条目为所述通信对端对应的相 关信息; 所述方法还包括: 预设一个用于标识所述通信对端在老化周期 T2 内是 否有数据报文通过的标识位并初始化所述标识位的值; 还为所述第二接入网 关设备预设一个基础轮询时间 T,若所述第二接入网关设备判断在轮询时间 T 内所述通信对端有数据 "^文通过, 则将所述通信对端的标识位的值置为初始 值, 若没有数据报文通过, 则将所述通信对端的标识位的值减 1 , 当所述通 信对端的标识位的值减为 0时,则删除所述通信对端对应的对端条目,其中, T2>T。 上述方法中, 所述初始化所述标识位的值的步骤包括: 根据所述老化周期 Tl的取值信息, 设置所述老化周期 T2的取值, 并将 所述第二定时器的老化周期 T2的值作为所述通信对端的标志位的值。 上述方法中, 所述 T2 2Τ1。 一种移动节点切换时数据报文的管理系统, 所述系统应用于身份与位置 分离网络, 所述系统包括: 移动节点, 移动节点通信对端, 移动节点通信对 端所在的第一接入网关设备, 移动节点所在的第二接入网关设备, 以及第三 接入网关设备; 所述第一接入网关设备设置为: 当所述移动节点进行切换时, 所述第一 接入网关设备根据存储在自身映射表中的所述移动节点对应的映射条目, 将 接收到的发往所述移动节点的数据报文发给所述第二接入网关设备; 以及当 所述移动节点切换完成后, 所述第一接入网关设备根据所述第三接入网关设 备发来的所述移动节点对应的映射条目, 将接收到的发往所述移动节点的数 据报文发给所述第三接入网关设备; SUMMARY OF THE INVENTION The technical problem to be solved by the present invention is to provide a mobile node into the deficiencies of the prior art. When the mobility switch is performed, the load of the access gateway device can be effectively alleviated, and the method and system for managing the data packet loss of the message are reduced as much as possible. In order to solve the above technical problem, the present invention uses the following technical solutions: A method for managing data packets when a mobile node switches, the method is applied to an identity and location separation network, and the method includes: when a mobile node performs handover And the first access gateway device where the mobile node communication peer is located sends the received data packet addressed to the mobile node to the mobile according to the mapping entry corresponding to the mobile node stored in the mapping table. a second access gateway device where the node is located; the second access gateway device forwards the data packet and the peer entry corresponding to the communication peer end stored in the peer information table to the third access a gateway device, the third access gateway device forwarding the data packet to the mobile node; and after the mobile node handover is completed, the first access gateway device is configured according to the third access gateway Sending, by the device, a mapping entry corresponding to the mobile node, sending the received data packet sent to the mobile node to the third access gateway device, and then The third access gateway device forwards the data packet to the mobile node, where the aging period of the mapping entry stored in the mapping table is T1, and the peer entry stored in the peer information table The aging period is T2 and T2 > T1. In the above method, a first timer is set in the first access gateway device, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; in the second access gateway device A second timer is set, and the second timer periodically updates the peer entry in the peer information table every aging period Τ2. In the above method, the mapping entry stored in the mapping table is a routing mapping relationship corresponding to the mobile node. The method further includes: presetting a data packet to identify whether the mobile node has a data packet in the aging period T1. Passing the identifier bit and initializing the value of the identifier bit; the first access gateway device determines whether the mobile node has a data packet passing during the aging period T1, and if so, the mobile node identifier bit The value is set to 1, if not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the value of the mobile node identifier bit is 1, The value of the mobile node identifier bit is set to 0, and if the value of the mobile node identifier bit is 0, the deletion is performed. A mapping entry corresponding to the mobile node. In the above method, the peer entry stored in the peer information table is related information corresponding to the communication peer end; the method further includes: presetting a flag for identifying whether the communication peer end is in the aging period T2 The identifier of the data packet is initialized and the value of the identifier bit is initialized; the second access gateway device determines whether the data packet is passed by the communication peer in the aging period T2, and if yes, the The value of the communication peer identifier bit is set to 1, if not, the value of the communication peer identifier bit is set to 0; when the second timer traverses the peer information table, if the communication pair If the value of the terminal identifier is 1, the value of the communication peer identifier bit is set to 0; if the value of the identifier of the communication peer is 0, the peer entry corresponding to the communication peer is deleted. The method further includes: storing the value information of the T1 in a data message sent by the communication peer to the mobile node; when the mobile node communication peer communicates with the mobile node, The second access gateway device extracts the value information of T1 in the data packet sent by the first access gateway device, and sets the value of the aging period T2 accordingly. In the above method, the value information of the T1 is saved in an option field or a reuse service type TOS field in an IP header of the data message. In the above method, the peer entry stored in the peer information table is related information corresponding to the communication peer end; the method further includes: presetting a flag for identifying whether the communication peer end has an aging period T2 And determining, by the identifier bit of the data packet, a value of the identifier bit; and determining, by the second access gateway device, a basic polling time T, if the second access gateway device determines the polling time T If the communication peer has data "^", the value of the identifier of the communication peer is set to an initial value, and if no data packet is passed, the value of the identifier of the communication peer is decremented by one. When the value of the identifier of the communication peer is reduced to 0, the peer entry corresponding to the communication peer is deleted, where T2>T. In the above method, the step of initializing the value of the identifier includes : The value of the aging period T2 is set according to the value information of the aging period T1, and the value of the aging period T2 of the second timer is used as the value of the flag bit of the communication peer. In the above method, the T2 is 2Τ1. A system for managing data packets during handover of a mobile node, the system being applied to an identity and location separation network, the system comprising: a mobile node, a mobile node communication peer, and a first access gateway where the mobile node communication peer is located a device, a second access gateway device where the mobile node is located, and a third access gateway device; the first access gateway device is configured to: when the mobile node performs handover, the first access gateway device is configured according to a mapping entry corresponding to the mobile node stored in the self mapping table, sending the received data packet addressed to the mobile node to the second access gateway device; and when the mobile node is switched Sending, by the first access gateway device, the received data packet sent to the mobile node to the third according to the mapping entry corresponding to the mobile node sent by the third access gateway device Access gateway device;
所述第二接入网关设备设置为: 当所述移动节点进行切换时, 将所述第 一接入网关设备发送的所述数据报文以及存储在自身对端信息表中的所述通 信对端对应的对端条目转发给所述第三接入网关设备; 所述第三接入网关设备设置为: 当所述移动节点进行切换时, 将所述第  The second access gateway device is configured to: when the mobile node performs handover, the data packet sent by the first access gateway device and the communication pair stored in a peer information table thereof The peer entry corresponding to the terminal is forwarded to the third access gateway device; the third access gateway device is configured to: when the mobile node performs handover,
节点; 其中, 所述映射表中存储的映射条目的老化周期为 T1,所述对端信息表 中存储的对端条目的老化周期为 Τ2,且 Τ2> Τ1。 上述系统中,在所述第一接入网关设备中设置第一定时器,所述第一定时 器每隔老化周期 T1定时更新映射表中的映射条目;在所述第二接入网关设备 中设置第二定时器, 所述第二定时器每隔老化周期 Τ2定时更新对端信息表 中的对端条目。 上述系统中, 所述映射表中存储的映射条目为所述移动节点对应的路由 映射关系; 所述第一接入网关设备还设置为: 预设一个用于标识所述移动节点在老 化周期 T1 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断 在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所述移动 节点标识位的值设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述 第一定时器遍历所述映射表时, 若所述移动节点标识位的值为 1 , 则将所述 移动节点标识位的值设为 0,若所述移动节点标识位的值为 0,则删除所述移 动节点对应的映射条目。 上述系统中, 所述对端信息表中存储的对端条目为所述通信对端对应的 相关信息; 所述第二接入网关设备还设置为: 预设一个用于标识所述通信对端在老 化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断 在老化周期 T2 内所述通信对端是否有数据报文通过, 若有, 则将所述通信 对端标识位的值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述 第二定时器遍历所述对端信息表时, 若所述通信对端标识位的值为 1 , 则将 所述通信对端标识位的值设为 0; 若所述通信对端的标识位的值为 0,则删除 所述通信对端对应的对端条目。 上述系统中, 第一接入网关设备还设置为: 将所述 T1 的取值信息保存在所述通信对 端发往所述移动节点的数据报文中; 所述第二接入网关设备还设置为: 当所述移动节点通信对端与移动节点 进行通信时, 提取所述第一接入网关设备发来的数据报文中 T1的取值信息, 并相应地设置老化周期 T2的取值。 上述系统中, 所述对端信息表存储的对端条目为所述通信对端对应的相 关信息; 所述第二接入网关设备还设置为: 预设一个用于标识所述通信对端在老 化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 并预 设一个基础轮询时间 T, 若判断在轮询时间 T内所述通信对端有数据报文通 过, 则将所述通信对端的标识位的值置为初始值, 若没有数据报文通过, 则 将所述通信对端的标识位的值减 1 , 当所述通信对端的标识位的值减为 0时, 则删除所述通信对端对应的对端条目, 其中, T2>T。 一种接入网关设备, 所述接入网关设备应用于身份与位置分离网络, 所 述接入网关设备设置为: 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 在所 述移动节点进行切换时, 所述移动节点通信对端所接入的接入网关设备根据 存储在自身映射表中的所述移动节点对应的映射条目, 将接收到的发往所述 移动节点的数据报文发给所述移动节点切换前所接入的接入网关设备; 以及 当所述移动节点切换完成后, 所述移动节点通信对端所接入的接入网关设备 根据移动节点切换后所接入的接入网关设备发来的所述移动节点对应的映射 条目, 将接收到的发往所述移动节点的数据报文发给所述移动节点切换后所 接入的接入网关设备; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 当 所述移动节点进行切换时, 将所述移动节点通信对端所接入的接入网关设备 发送的所述数据报文以及存储在自身对端信息表中的所述通信对端对应的对 端条目转发给移动节点切换后所接入的接入网关设备; 当所述接入网关设备为所述移动节点切换后所接入的接入网关设备, 当 所述移动节点进行切换时, 将所述移动节点切换前所接入的接入网关设备发 送的所述数据报文转发给所述移动节点; 当所述移动节点切换完成后, 将所 述移动节点通信对端所接入的接入网关设备发送的所述数据报文转发给所述 移动节点; 其中, 所述映射表中存储的映射条目的老化周期为 T1 , 所述对端信息表 中存储的对端条目的老化周期为 Τ2, 且 Τ2> Τ1。 上述接入网关设备中, 在所述移动节点通信对端所接入的接入网关设备 中设置第一定时器, 所述第一定时器每隔老化周期 T1 定时更新映射表中的 映射条目;在所述移动节点切换前所接入的接入网关设备中设置第二定时器, 所述第二定时器每隔老化周期 Τ2定时更新对端信息表中的对端条目。 上述接入网关设备中, 所述映射表中存储的映射条目为所述移动节点对 应的路由映射关系; 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 所述 接入网关设备还设置为: 预设一个用于标识所述移动节点在老化周期 T1 内 是否有数据报文通过的标识位并初始化所述标识位的值;判断在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所述移动节点标识位的值 设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述第一定时器遍历 所述映射表时, 若所述移动节点标识位的值为 1 , 则将所述移动节点标识位 的值设为 0,若所述移动节点标识位的值为 0,则删除所述移动节点对应的映 射条目。 上述接入网关设备中, 所述对端信息表中存储的对端条目为所述通信对 端对应的相关信息; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为: 预设一个用于标识所述通信对端在老化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断在老化周期 T2内所述通信对端是否有数据报文通过, 若有, 则将所述通信对端标识位的 值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述第二定时器遍 历所述对端信息表时, 若所述通信对端标识位的值为 1 , 则将所述通信对端 标识位的值设为 0; 若所述通信对端的标识位的值为 0,则删除所述通信对端 对应的对端条目。 上述接入网关设备中, 当所述接入网关设备为移动节点通信对端所接入 的接入网关设备, 所述接入网关设备还设置为: 将所述 T1 的取值信息保存 在所述通信对端发往所述移动节点的数据报文中; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为:当所述移动节点通信对端与移动节点进行通信时, 提取所述移动节点通信对端所接入的接入网关设备发来的数据报文中 T1 的 取值信息, 并相应地设置老化周期 T2的取值。 上述接入网关设备中, 所述对端信息表存储的对端条目为所述通信对端 对应的相关信息; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为: 预设一个用于标识所述通信对端在老化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 并预设一个基础 轮询时间 T, 若判断在轮询时间 T内所述通信对端有数据报文通过, 则将所 述通信对端的标识位的值置为初始值, 若没有数据报文通过, 则将所述通信 对端的标识位的值减 1 , 当所述通信对端的标识位的值减为 0时, 则删除所 述通信对端对应的对端条目, 其中, T2>T。 上述接入网关设备中, 当所述接入网关设备为所述移动节点切换前所接 入的接入网关设备, 所述接入网关设备是设置为按如下方式初始化所述标识 位的值: 根据所述老化周期 T1的取值信息, 设置所述老化周期 Τ2的取值, 并将 所述第二定时器的老化周期 Τ2的值作为所述通信对端的标志位的值。 上述接入网关设备中, 所述 Τ2 2Τ1。 The aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is Τ2, and Τ2> Τ1. In the foregoing system, a first timer is set in the first access gateway device, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; in the second access gateway device A second timer is set, and the second timer periodically updates the peer entry in the peer information table every aging period Τ2. In the above system, the mapping entry stored in the mapping table is a route mapping relationship corresponding to the mobile node; The first access gateway device is further configured to: preset a flag for identifying whether the mobile node passes the data packet in the aging period T1 and initialize the value of the identifier bit; determining the aging period T1 Whether the mobile node has a data packet to pass, if any, the value of the mobile node identifier bit is set to 1, if not, the value of the mobile node identifier bit is set to 0; When a timer traverses the mapping table, if the value of the mobile node identifier bit is 1, the value of the mobile node identifier bit is set to 0, and if the value of the mobile node identifier bit is 0, the deletion is performed. A mapping entry corresponding to the mobile node. In the above system, the peer entry stored in the peer information table is related information corresponding to the communication peer; the second access gateway device is further configured to: preset one for identifying the communication peer Whether there is an identifier of the data packet passing through the aging period T2 and initializing the value of the identifier bit; determining whether the communication peer has a data packet in the aging period T2, and if so, the communication pair The value of the end identifier bit is set to 1, if not, the value of the communication peer end identification bit is set to 0; when the second timer traverses the peer information table, if the communication peer end identifier If the value of the bit is 1, the value of the communication peer identifier bit is set to 0; if the value of the flag bit of the communication peer is 0, the peer entry corresponding to the communication peer is deleted. In the foregoing system, the first access gateway device is further configured to: save the value information of the T1 in a data packet sent by the communication peer end to the mobile node; The setting is: when the mobile node communication peer communicates with the mobile node, extracts the value information of the T1 in the data packet sent by the first access gateway device, and sets the value of the aging period T2 accordingly. . In the above system, the peer entry stored in the peer information table is related information corresponding to the communication peer; the second access gateway device is further configured to: preset one for identifying the communication peer Whether there is an identifier bit for the data packet passing through the aging period T2 and initializing the value of the identifier bit; and presetting a basic polling time T, if it is determined that the data packet is passed by the communication peer end during the polling time T , the value of the identification bit of the communication peer is set to an initial value, and if no data packet is passed, The value of the identifier of the communication peer is decremented by 1. When the value of the identifier of the communication peer is reduced to 0, the peer entry corresponding to the communication peer is deleted, where T2>T. An access gateway device, where the access gateway device is applied to an identity and location separation network, and the access gateway device is configured to: when the access gateway device is an access gateway accessed by a mobile node communication peer end The device, when the mobile node performs handover, the access gateway device accessed by the mobile node communication peer end receives the received destination according to the mapping entry corresponding to the mobile node stored in the self mapping table. The data message of the mobile node is sent to the access gateway device accessed by the mobile node before the handover; and after the handover of the mobile node is completed, the access gateway device accessed by the mobile node communication peer is a mapping entry corresponding to the mobile node sent by the access gateway device accessed by the mobile node after the handover of the mobile node, and sending the received data packet addressed to the mobile node to the mobile node after the handover Accessing the gateway device; when the access gateway device is an access gateway device accessed before the mobile node switches, when the mobile node performs handover, the mobile device The data packet sent by the access gateway device accessed by the peer end of the point communication and the peer end entry corresponding to the communication peer end stored in the peer information table are forwarded to the mobile node for switching. a gateway device; when the access gateway device is an access gateway device accessed by the mobile node after handover, when the mobile node performs handover, the access gateway accessed before the mobile node switches And forwarding, by the mobile node, the data packet sent by the access gateway device that is accessed by the mobile node communication peer to the mobile node The aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is Τ2, and Τ2> Τ1. In the foregoing access gateway device, a first timer is set in the access gateway device that is accessed by the mobile node communication peer end, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; A second timer is set in the access gateway device that is accessed before the mobile node is switched, and the second timer periodically updates the peer entry in the peer information table every aging period Τ2. In the access gateway device, the mapping entry stored in the mapping table is the mobile node pair. The access routing device is configured to: when the access gateway device is an access gateway device that is accessed by the mobile node communication peer, the access gateway device is further configured to: preset one for identifying that the mobile node is aging Whether there is an identifier bit passing through the data packet and initializing the value of the identifier bit in the period T1; determining whether the mobile node has a data packet passing in the aging period T1, and if so, the mobile node identifier bit The value is set to 1, if not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the value of the mobile node identifier bit is 1, The value of the mobile node identifier bit is set to 0. If the value of the mobile node identifier bit is 0, the mapping entry corresponding to the mobile node is deleted. In the access gateway device, the peer entry stored in the peer information table is related information corresponding to the communication peer; and the access gateway device is the access accessed before the mobile node switches. The gateway device, the access gateway device is further configured to: preset a flag for identifying whether the communication peer has a data packet passing through the aging period T2 and initialize the value of the identifier bit; Whether the data communication message is passed by the communication peer end in the period T2, if yes, the value of the communication peer end identification bit is set to 1, if not, the value of the communication peer end identification bit is set to 0 And when the second timer traverses the peer information table, if the value of the communication peer identifier bit is 1, the value of the communication peer identifier bit is set to 0; If the value of the identifier of the terminal is 0, the peer entry corresponding to the communication peer is deleted. In the foregoing access gateway device, when the access gateway device is an access gateway device that is accessed by the mobile node communication peer, the access gateway device is further configured to: save the value information of the T1 in the The communication gateway sends the data packet to the mobile node; when the access gateway device is the access gateway device that is accessed before the mobile node switches, the access gateway device is further configured to: When the mobile node communication peer communicates with the mobile node, extracts the value information of T1 in the data packet sent by the access gateway device accessed by the mobile node communication peer end, and sets the aging period T2 accordingly. The value. In the foregoing access gateway device, the peer entry stored in the peer information table is related information corresponding to the communication peer end; When the access gateway device is an access gateway device that is accessed before the mobile node is switched, the access gateway device is further configured to: preset a flag for identifying whether the communication peer end is in the aging period T2 Having a flag for passing the data packet and initializing the value of the flag bit; and presetting a basic polling time T, if it is determined that the data packet is passed by the communication peer within the polling time T, the The value of the identifier bit of the communication peer is set to an initial value. If no data packet is passed, the value of the identifier bit of the communication peer is decremented by 1. When the value of the identifier of the communication peer is reduced to 0, the value is deleted. The peer entry corresponding to the communication peer, where T2>T. In the foregoing access gateway device, when the access gateway device is an access gateway device that is accessed before the mobile node switches, the access gateway device is configured to initialize the value of the identifier bit as follows: The value of the aging period Τ2 is set according to the value information of the aging period T1, and the value of the aging period Τ2 of the second timer is used as the value of the flag bit of the communication peer. In the above access gateway device, the Τ2 2Τ1.
由于釆用了以上技术方案, 本发明通过 Τ2>Τ1的设置, 使得当移动节点 在进行移动性切换时, 移动节点所在的第二接入网关设备(切出网关设备) 能够把通信对端所在的第一接入网关设备发往移动节点的数据报文转发给第 三接入网关设备(切入网关设备) , 并且, 还能把切出网关对端信息表中存 储的该移动节点 ΜΝ对应的所有通信对端 CN对应的对端条目都转发给切入 网关。 而当移动节点切换完成后, 通信对端所在的第一接入网关设备可以根 据切入网关设备发来的 ΜΝ的映射条目, 直接将通信对端发往移动节点的数 据报文直接转发给切入网关设备。 由此可见, 在移动节点的切换过程中或者 切换完成后, 移动节点与通信对端的数据报文的基本不会中断。 这主要是因 为 Τ2>Τ1 , 从而使得在 ΜΝ所在的接入网关设备的对端信息表中存储的 CN 对应的对端条目老化之前, CN所在的接入网关路由器的映射表中存储的 ΜΝ 对应的映射条目几乎不会老化, 从而保证了在 ΜΝ移动性切换过程中以及切 换完成后, ΜΝ与 CN之间的正常通信。 同时, 通过 Τ2>Τ1的设置, 使得接入网关设备不需要定时向映射服务器 发送更新映射表映射条目及更新对端信息表对端条目的请求, 从而有效地减 轻了接入网关路设备的负荷。 Because the above technical solution is adopted, the present invention sets the second access gateway device (cut-out gateway device) where the mobile node is located to be able to connect the communication peer when the mobile node performs mobility switching. The data packet sent by the first access gateway device to the mobile node is forwarded to the third access gateway device (cut-in gateway device), and the mobile node corresponding to the mobile node stored in the gateway peer information table can also be cut out. All peer entries corresponding to the CN peer are forwarded to the hand-in gateway. After the handover of the mobile node is completed, the first access gateway device where the communication peer is located can directly forward the data packet sent by the communication peer to the mobile node to the hand-cut gateway according to the mapping entry of the gateway sent by the gateway device. device. It can be seen that during the handover process of the mobile node or after the handover is completed, the data packets of the mobile node and the communication peer are basically not interrupted. This is mainly because Τ2>Τ1, so that the ΜΝ corresponding to the mapping table stored in the access gateway router where the CN is located before the peer entry corresponding to the CN stored in the peer information table of the access gateway device where the ΜΝ is located is aged The mapping entries are hardly aged, thus ensuring normal communication between the UI and the CN during the mobility handover and after the handover is completed. At the same time, through the setting of Τ2>Τ1, the access gateway device does not need to periodically map to the mapping server. The update mapping table mapping entry and the request to update the peer information entry of the peer information table are sent, thereby effectively reducing the load on the access gateway device.
附图概述 图 1为现有技术的基于网络的身份标识和位置分离架构的网络拓朴示意 图; BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a network topology of a prior art network-based identity and location separation architecture;
图 2为现有技术的基于网络的身份标识和位置分离框架的网络架构的相 关接口示意图; 图 3为本发明中移动节点切换时动态设置定时器时长情况下数据报文的 处理流程的示意图。  2 is a schematic diagram of a related interface of a network architecture of a network-based identity identification and a location separation framework according to the prior art; FIG. 3 is a schematic diagram of a processing flow of a data packet in a case where a mobile node is dynamically set with a timer duration in the present invention.
本发明的较佳实施方式 下面通过具体实施方式结合附图对本发明作进一步详细说明。 需要说明 的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任 意组合。 现有的身份与位置分离网络中, 移动节点 MN从一个接入网关设备(例 如:接入网关路由器 AGR )覆盖的范围移动到另一个接入网关设备(如 AGR ) 覆盖的范围时, 会出现通信中断以及数据报文丟失的问题。 针对目前身份与位置分离网络中移动节点移动性切换时存在的通信中 断、 转发效率不高以及系统性能要求高等技术问题, 本发明提出了一种在标 识网中移动节点进行切换时, 能够有效地保证移动节点以及移动节点通信对 端之间的正常通信, 进而尽量减少报文丟失的方案。 本发明的主要构思是: 当移动节点 MN进行切换时, 移动节点通信对端 CN所在的第一接入网关设备 (例如: 接入网关路由器 AGR1 )根据存储在自 身映射表中的 MN对应的映射条目,将接收到的发往 MN的数据报文发给移动 节点 MN 所在的第二接入网关设备(例如: 接入网关路由器 AGR2, 也称 切出网关 AGR) , 由 AGR2将数据报文转发给第三接入网关设备(例如: 接 入网关路由器 AGR3 , 也称切入网关 AGR ) , 再由 AGR3转发给 MN; 在 AGR2将数据报文转发给 AGR3的过程中, AGR2也将存储在自身对端信息 表中的该通信对端 CN对应的对端映射条目转发给 AGR3。 而当 MN切换完 成后, AGR1则可以根据 AGR3发来的该 MN对应的映射条目,直接将接收到 的发往 MN的数据报文发给 AGR3,再由 AGR3转发给 MN。 其中, AGR1的 映射表中存储的映射条目的老化周期为 T1,AGR2 的对端信息表中存储的对 端条目的老化周期为 T2,且 T2> T1。也就是说, AGR1每隔时间 T1会定时更 新映射表中的存储的映射条目的信息, AGR2每隔时间 Τ2会定时更新对端信 息表中的存储的对端条目的信息。为了让 AGR1映射条目的周期更新时间 T1 较长, 并且又能保证在 ΜΝ切换时不会出现对端信息的缺失, 因此 AGR2中 对端信息表的对端条目的周期更新时间 Τ2 需要大于 Tl。 如此则保证了在 ΜΝ的切换过程中, 当 CN发起某个业务流时, AGR1的映射表中 ΜΝ对应 的映射条目的信息还没有老化时, AGR2的对端信息表中该 ΜΝ相应的 CN 对应的对端条目的信息也同时存在。 由于 ΜΝ与 CN之间进行数据报文交互 时 ΜΝ对应的映射条目会发生变化, 在此, 将 ΜΝ切换后的映射条目称为 ΜΝ对应的新的映射条目。 当 ΜΝ切换完成后, ΜΝ的切入网关 AGR3能够 通知 CN该 ΜΝ对应的新的映射条目,从而保证了 AGR3与 CN所在的 AGR1 能够正常通信, 从而尽可能地减少数据报文的丟失。 需要说明的是, 接入网关设备可以选择接入网关路由器, 但却不限于接 入网关路由器, 如可以选择具有路由功能的交换机。 下面的实施例中, 接入 网关设备都以接入网关路由器为例进行说明。 若将老化周期 Τ2的值设置为小于或等于老化周期 T1的值, 那么在 ΜΝ 的切换过程中, 当 CN发起某个业务流时, 在 AGR1的映射表中 ΜΝ对应的 映射条目的信息还没有老化时, AGR2的对端信息表中该 CN对应的对端条 目的信息则可能已经因为老化而被删除了, 如此则使得在 ΜΝ完成后, ΜΝ 与 CN之间的通信中断。 关于第一定时器 T1和第二定时器 Τ2的取值, 可以 釆用全局静态配置, 比如, 通过网管在网络部署时对 AGR的定时器进行配 置, 配置时釆用 Τ2大 于 T1的方式。 在实际运用中,老化周期 T1与 T2是通过设置定时器的方式来进行控制 的。 比如, 在一种实施例中, 在 AGR1中设置一个第一定时器 Dl , D1用于 为老化周期 T1计时, AGR1每隔老化周期 T1定时更新映射表中的映射条目; 在 AGR2中,设置一个第二定时器 D2, D2用于为老化周期 T2计时, AGR2 每隔老化周期 T2定时更新对端信息表中的对端条目。通过 D1与 D2的设置, 照预定的时间定时更新表中的对端条目。 进而, 保证了更新映射条目以及对 端条目的准确性以及及时性。 在一种实施例中, AGR1的映射表中存储的映射条目具体为 MN对应的 路由映射关系, 该路由映射关系具体为用户身份标识(AID ) -路由位置标识 ( RID ) 的映射关系, 即 AID-RID映射关系, 如表 1所示。 从表 1可知, 映 射表中会緩存多个移动节点的路由映射关系。 也就是说, 在映射表中会緩存 很多个 MN对应的映射条目。 如果为每一个映射条目都设置一个定时器, 那 么系统则需要大量定时器, 既而使得系统的开销很大。 因此, 在实施例中, 釆用为映射表中的所有映射条目设置一个统一的定时器 (上文中的第一定时 器 D1 ) , 并为每一个 MN设置一个标识位, 该标识位用于标识该 MN在一 个老化周期 T1 内是否有数据报文通过。 同时初始化该 MN的标识位的值, 初始化方式具体为: 将所有 MN的标识位的初始值都设为 1 , 即默认在一个 老化周期 T1 内所有移动节点都有数据报文通过。 在老化周期 T1 内, AGR1 的任务进行数据报文的转发, 并将有数据报文通过的 MN的标识位的标识值 置为 1。 对于在老化周期 T1内没有数据报文经过的 MN, 则将其标识位的值 置为 0。 第一定时器 D1每隔老化时间 T1遍历映射表一次,当第一定时器在遍历 映射表时, 若移动节点的标识位的值为 1 , 则将标识位的值设为 0, 若移动节 点的标识位的值为 0, 则在映射表中删除该移动节点的对应的映射条目。 釆 用此种方案, AGR1 只需要为所有移动节点设置一个共用的定时器, 并且在 不需要向映射服务器发送查询请求的前提下, 也能实现对映射表中的存储的 MN对应的映射条目的定时更新处理。 在一种实施例中,所述对端信息表中存储的对端条目具体为 MN相应 的 通信对端 CN对应的相关信息; 具体地说, 对端信息表中存储的对端条目为 MN对应的 CN以及该 CN所属的 AGR的信息。同样地,从表 2和表 3可知, 对端信息表中也存储有很多个 CN对应的对端条目。 那么, 相应地, 也就有 很多个 CN。 如果为每一个 CN都设置一个定时器, 这样系统需要大量的定 时器, 同时也会增加系统的开销。 因此, 和映射表一样, 也为对端信息表中 存储的所有 CN统一设置一个定时器(上文中的第二定时器 D2 )。 并为每一 个 CN设置一个标识位,该标识位用于标识该 CN在一个老化周期 T2内是否 有数据 ^艮文通过。 同时初始化该标识位的值, 初始化的方法为: 将对端信息 表中所有 CN对应的标识位的值设为 1。 AGR2判断在老化周期 T2内该 CN 是否有数据报文通过,也就是判断在周期 T2内 CN是否有数据报文处理; 若 是, 则将 CN对应的标识位的值设为 1 , 若否, 则将 CN对应的标识位的值 设为 0; 第二定时器 D2每隔时间 T2将遍历映射表一次, 当 D2遍历映射表时, 如果 CN的标识位的值为 1 , 则将标识位的值置为 0, 若 CN的标识位的值为 0, 则在对端信息表中删除该 CN对应的对端条目的信息。 釆用此种方案, AGR2只需要为所有通信对端设置一个共用的定时器, 在不需要向映射服务 器发送查询请求的前提下, 也能实现对对端信息表的 CN对应的对端条目的 更新处理。 由此可见, 通过 AGR1每隔时间 T1定时更新映射表中存储的 MN的映 射条目以及 AGR2每隔时间 T2定时更新对端信息表中存储的 CN的对端条 目, 以及设置 T2>T 1的方案, 使得在 ΜΝ进行移动性切换的过程中, AGR1 发送的数据报文能够通过 AGR2发给 AGR3 , 并通过 AGR3转发给 ΜΝ, 而 在 ΜΝ进行移动性切换完成后, ΜΝ的切入网关 AGR3能够将 ΜΝ的新的路 由映射方式及时地发给 CN所在的 AGR1 , 从而保证 AGR1能够根据 ΜΝ新 之间的正常的数据报文的交换。 实施例 1 : 下面, 通过一个具体的实施例, 以 Τ1>Τ2 的情况作对比, 详细介绍在 Τ2>Τ1的情况下, ΜΝ进行切换时是如何保证 ΜΝ与 CN之间的正常通信的。 例如, H没 Dl的周期 Tl的值为 10, D2的周期 T2的值为 8。 CN在时 刻 1时发起某一业务流, 此时, AGR1的映射表中 MN对应的映射条目以及 对端信息表中 CN对应的对端条目在时刻 1被创建, 并且 AGR1的映射表中 MN的标识位的值和对端信息表中 CN的标识位的值在时刻 1时均被设为 1。 D1在时刻 10时遍历映射表, 由于 MN的标识位的值为 1 , 则将其标识位的 值置为 0。 同样地, D2在时刻 8时遍历对端信息表, 此时 CN的标识位的值 为 1,则将其标识位的值置为 0。假设在时刻 18时 CN与 MN之间才有数据报 文的交互。 对于 D2而言, 在时刻 8到时刻 16时间段内, 由于 CN没有数据 报文处理, 则在时刻 16时,将删除对端信息表中该 CN对应的对端条目的信 息。 如果 MN在时刻 17时发生了移动性切换, 那么此时, 由于 AGR2的对 端信息表中已经没有该业务流对应的 CN对应的对端条目信息, 从而切入网 关 AGR3就无法获得该业务流的 MN相应的 CN对应的对端条目的信息, 所 以 AGR3就不会向 AGR1通知 MN对应的新的路由映射关系。 此时, CN所 在的 AGR1由于没有收到 AGR3发来的更新路由映射关系的请求,那么 AGR1 则不会更新自身映射表中存储的 MN发起的该业务流的 MN对应的新的路由 映射关系。 那么对于 CN发往 MN的数据报文, AGR1则会根据当前映射表 中存储的该 MN的路由映射关系进行发送。 实际上, 此时 AGR1的数据报文 是发给了 AGR2, 而 MN由于已经切换到了 AGR3 , AGR2与 AGR3此时已 经没有了通信的隧道, 因此 AGR2只能将数据报文丟弃。 而由于 AGR1中该 MN始终有数据报文经过, 因此 AGR1緩存的映射表中该 MN对应的映射条 目则不会老化, 因此 CN发往 MN的数据报文将会持续丟失。 假设 T2的值为 10, T1的值为 8,同样地, CN在时刻 1时发起某一业务 流, 此时 , 映射表中 MN对应的映射条目以及对端信息表中 CN对应的对端 条目在时刻 1被创建。 同样地, AGR1的映射表中 MN的标识位的标识值和 对端信息表中 CN的标识位的标识值在时刻 1时均被设为 1。 D1在时刻 8时 遍历映射表, 由于 MN的标识位的值为 1 , 则将其标识位的值置为 0。 同样 地, D2在时刻 10时遍历对端信息表, 此时由于 CN的标识位的值为 1,则将 其标识位的值置为 0。假设在时刻 14时 CN与 MN之间才有数据报文的交互, 并在时刻 15时 MN进行了移动切换。 对于 D1而言, 由于在 8-16时间段内, MN有数据报文处理, 因此,在时刻 16不会删除映射表中 MN对应的映射条 目。 而对于 D2而言, 在 10-20的时间段内, CN有数据报文处理 , 因此在时 刻 20时, 对端信息表中仍存储有该 CN的对端条目。 由于在时刻 15时 MN 过程中, 也会将自身緩存中的对端信息表中该 MN相应的 CN对应的对端条 目转发给 AGR3。 因此, MN的切入网关 AGR3在时刻 15时能够获得该 CN 对应的对端条目的信息。 当 MN与 CN之间还有数据报文交互时, AGR3会 向 AGR1发送路由映射关系的更新请求,并将 MN对应的新的路由映射关系 通知 AGR1 , 从而保证数据报文不会被丟失。 为了保证无缝切换的效果, 还 可以设置, MN在 AGR2向 AGR3切换过程中, AGR2和 AGR3之间的数据 报文转交隧道需要等到 AGR3的对端信息表中的 CN的对端条目信息更新处 理完成后再删除。 在实际的应用中, 如果 T2大于 T1 , 实际上由于两端 AGR的老化周期 可能不会同步, 还是会存在一些问题。 比如: D1的周期 T1的值为 8, D2的 周期 T2的值为 10, CN与 MN之间在时刻 10有某一业务流的数据报文交互, 假如 D1的周期为 9/17/25... ... , 而 D2的周期为 1/11/21 , 那么如果从时刻 10 到时刻 21 , 都没有报文经过 AGR1和 AGR2, 则 AGR2的对端信息表中 CN 对应的对端条目会因为老化而被删除, 然而 AGR1映射表中 MN的映射条目 还未被老化, 因此, 如果在时刻 22-26之间 MN发生切换, 则 AGR1还是会 向 AGR2发送数据报文, 也会出现 CN与 MN之间通信中断的问题。 因此, 在一种实施例中, 为了完全规避 CN与 MN之间出现的通信中断 的问题, 保证 CN与 MN之间的无缝切换, 将第二定时器的老化周期 T2的 值设置为 T1 的两倍或者两倍以上。 当 T2 2T1 时, 由于对端信息表中 CN 对应的对端条目一定会比相应的映射表中 ΜΝ对应的映射条目后老化,因此, 能够保证 CN与 ΜΝ之间的正常通信。 此时, Τ 1的取值还可以适当放宽, 以 减轻设备的负荷。 需要说明的是, 在实际的 ΜΝ的移动切换过程中, 还可以根据 D1的老 化周期 T1的取值, 动态地设置老化周期 Τ2的值, 只要保证 Τ2 > T1即可。 在一种实施例中 ,具体是通过如下方式来动态地设置 D2的周期 Τ2的取值的 , 将周期 T1的取值信息保存在通信对端 CN发往移动节点 ΜΝ的数据报文中; 因此, 当 MN与 CN之间进行通信时 , MN所在的 AGR2提取 CN发来的数 据报文中 T1的取值信息, 就可以相应地设置 D2的老化周期 T2的取值。 当 然, 为了保证无缝切换, 将 T2的值设置为 T1的两倍或者两倍以上。 一般情况下, 是从报文的 IP 首部中选取一部分字段来携带第一定时器 T1 的取值信息的。 在一种实施例中, 具体是将 T1 的取值信息存储在发往 MN报文的 IP首部中的选项字段或者是重用服务类型 TOS字段。 若通过 IP 首部中的选项字段来携带 T1 的取值信息, 釆用的选项字段的具体格式可以 如下表 4所示: 表 4 携带 T1取值信息的 IP选项字段 选项类型 选项长度 定时器取值 实施例 2: BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be further described in detail by way of specific embodiments with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other. In an existing identity and location separation network, a mobile node MN may appear when it moves from a range covered by one access gateway device (for example, access gateway router AGR) to another access gateway device (such as AGR). Communication interruption and loss of data packets. Aiming at the technical problems of communication interruption, low forwarding efficiency and high system performance requirements in the current identity and location separation network, the present invention proposes that when the mobile node performs handover in the identification network, the mobile can be effectively guaranteed. The normal communication between the node and the mobile node communication peer, thereby minimizing the packet loss scheme. The main idea of the present invention is: when the mobile node MN performs handover, the first access gateway device (for example, the access gateway router AGR1) where the mobile node communicates with the opposite CN is mapped according to the MN stored in its own mapping table. The data packet sent to the MN is sent to the second access gateway device where the mobile node MN is located (for example, the access gateway router AGR2, also called the gateway AGR), and the data packet is forwarded by the AGR2. Give the third access gateway device (for example: The gateway router AGR3, also referred to as the gateway gateway AGR, is forwarded to the MN by the AGR3. In the process of forwarding the data packet to the AGR3 by the AGR2, the AGR2 is also stored in the communication peer CN corresponding to the peer information table. The peer mapping entry is forwarded to AGR3. After the MN handover is completed, the AGR1 can directly send the received data packet addressed to the MN to the AGR3 according to the mapping entry corresponding to the MN sent by the AGR3, and then forward the data packet to the MN by the AGR3. The aging period of the mapping entry stored in the mapping table of the AGR1 is T1, and the aging period of the peer entry stored in the peer information table of the AGR2 is T2, and T2>T1. That is to say, AGR1 periodically updates the information of the stored mapping entries in the mapping table every time T1, and AGR2 periodically updates the information of the stored peer entries in the peer information table every time Τ2. In order to make the period update time T1 of the AGR1 mapping entry longer, and to ensure that the lack of peer information does not occur during the handover, the periodic update time Τ2 of the peer entry of the peer information table in AGR2 needs to be greater than T1. In this way, when the CN initiates a service flow, when the information of the corresponding mapping entry in the mapping table of the AGR1 is not aged, the CN corresponding to the corresponding information in the peer information table of the AGR2 The information of the peer entry also exists. Since the mapping entry corresponding to the data packet exchange between the UI and the CN changes, the mapping entry after the handover is referred to as a new mapping entry corresponding to the UI. After the handover is completed, the hacked gateway AGR3 can notify the CN of the corresponding new mapping entry, thereby ensuring that the AGR3 and the AGR1 where the CN is located can communicate normally, thereby reducing the loss of data packets as much as possible. It should be noted that the access gateway device may select an access gateway router, but is not limited to an access gateway router, for example, a switch having a routing function may be selected. In the following embodiments, the access gateway device is described by taking an access gateway router as an example. If the value of the aging period Τ2 is set to be less than or equal to the value of the aging period T1, when the CN initiates a service flow during the handover process, the information of the corresponding mapping entry in the mapping table of the AGR1 is not yet available. When aging, the information of the peer entry corresponding to the CN in the peer information table of AGR2 may have been deleted due to aging, so that the communication between ΜΝ and CN is interrupted after the completion of the ΜΝ. For the values of the first timer T1 and the second timer Τ2, you can use the global static configuration. For example, the AGR timer is configured during network deployment by the NMS. In the configuration, Τ2 is greater than T1. In practical use, the aging periods T1 and T2 are controlled by setting a timer. For example, in an embodiment, a first timer D1 is set in AGR1, D1 is used to time the aging period T1, and AGR1 periodically updates the mapping entries in the mapping table every aging period T1; in AGR2, set one The second timers D2 and D2 are used to time the aging period T2, and the AGR2 periodically updates the peer entry in the peer information table every aging period T2. Through the setting of D1 and D2, the peer entry in the table is updated at a predetermined time timing. Furthermore, the accuracy and timeliness of updating the mapping entries and the peer entries are guaranteed. In an embodiment, the mapping entry stored in the mapping table of the AGR1 is specifically a routing mapping relationship corresponding to the MN, where the routing mapping relationship is specifically a mapping relationship between a user identity (AID) and a routing location identifier (RID), that is, an AID. -RID mapping relationship, as shown in Table 1. As can be seen from Table 1, the route mapping relationship of multiple mobile nodes is cached in the mapping table. That is to say, a plurality of mapping entries corresponding to the MN are cached in the mapping table. If a timer is set for each mapping entry, the system requires a large number of timers, which makes the system expensive. Therefore, in an embodiment, a uniform timer (the first timer D1 in the above) is set for all mapping entries in the mapping table, and an identifier bit is set for each MN, and the identifier is used to identify Whether the MN passes data packets in an aging period T1. The value of the identifier of the MN is initialized at the same time. The initialization mode is as follows: The initial value of the identifier bits of all MNs is set to 1, that is, all mobile nodes have data packets passing by default in an aging period T1. During the aging period T1, the AGR1 task forwards the data packet and sets the identifier value of the MN's identification bit with the data packet to 1. For a MN that has no data packets passing through the aging period T1, the value of its flag is set to zero. The first timer D1 traverses the mapping table once every aging time T1. When the first timer is traversing the mapping table, if the value of the identifier of the mobile node is 1, the value of the identifier bit is set to 0, if the mobile node If the value of the flag bit is 0, the corresponding mapping entry of the mobile node is deleted in the mapping table. With this scheme, AGR1 only needs to set a common timer for all mobile nodes, and can also implement mapping entries corresponding to the stored MNs in the mapping table without sending a query request to the mapping server. Timing update processing. In an embodiment, the peer entry stored in the peer information table is specifically corresponding to the MN. Corresponding information corresponding to the CN of the communication peer; specifically, the peer entry stored in the peer information table is the CN corresponding to the MN and the information of the AGR to which the CN belongs. Similarly, as can be seen from Table 2 and Table 3, a plurality of peer entries corresponding to CNs are also stored in the peer information table. Then, accordingly, there are many CNs. If a timer is set for each CN, the system requires a large number of timers, which also increases the overhead of the system. Therefore, as with the mapping table, a timer (the second timer D2 in the above) is also uniformly set for all the CNs stored in the peer information table. And setting an identifier bit for each CN, the identifier bit is used to identify whether the CN has data in an aging period T2. The value of the identifier bit is initialized at the same time. The initialization method is as follows: Set the value of the flag corresponding to all CNs in the peer information table to 1. AGR2 determines whether the CN has a data packet in the aging period T2, that is, whether the CN has a data packet processing in the period T2; if yes, the value of the flag corresponding to the CN is set to 1, if not, The value of the flag corresponding to the CN is set to 0; the second timer D2 traverses the mapping table once every time T2, and when D2 traverses the mapping table, if the value of the flag of the CN is 1, the value of the flag is If it is set to 0, if the value of the CN flag is 0, the information of the peer entry corresponding to the CN is deleted in the peer information table. With this scheme, AGR2 only needs to set a common timer for all communication peers. It can also implement the peer entry corresponding to the CN of the peer information table without sending a query request to the mapping server. Update processing. It can be seen that the mapping entry of the MN stored in the mapping table is updated by the AGR1 timing T1 and the peer entry of the CN stored in the peer information table is updated periodically by the AGR2, and the scheme of setting T2>T1 is set. In the process of mobility switching, the data packets sent by AGR1 can be sent to AGR3 through AGR2 and forwarded to AGR3 through AGR3. After the mobility switching is completed, the AGF3 gateway can be switched. The new route mapping mode is sent to the AGR1 where the CN is located in time to ensure that the AGR1 can exchange the normal data packets between the new ones. Embodiment 1 : In the following, a specific embodiment is used to compare 情况1>Τ2, and how to ensure normal communication between ΜΝ and CN in the case of Τ2>Τ1 is described in detail. For example, the period T1 of H without D1 is 10, and the value of period T2 of D2 is 8. The CN initiates a certain service flow at time 1. At this time, the mapping entry corresponding to the MN in the mapping table of the AGR1 and the peer entry corresponding to the CN in the peer information table are created at time 1, and the mapping table of the AGR1 is in the MN. The value of the flag bit and the value of the flag bit of the CN in the peer information table are set to 1 at time 1. D1 traverses the mapping table at time 10, and since the value of the MN's flag bit is 1, the value of its flag bit is set to zero. Similarly, D2 traverses the peer information table at time 8 when the value of the flag of the CN is 1, and the value of its flag is set to zero. Assume that there is a data message interaction between the CN and the MN at time 18. For D2, in the period from time 8 to time 16, since the CN has no data packet processing, at time 16, the information of the peer entry corresponding to the CN in the peer information table will be deleted. If the MN has a mobility switch at time 17, then, since the peer information table corresponding to the CN corresponding to the service flow does not exist in the peer information table of the AGR2, the gateway AGR3 cannot be obtained. The information about the peer entry corresponding to the corresponding CN of the MN, so AGR3 will not notify AGR1 of the new route mapping relationship corresponding to the MN. At this time, the AGR1 where the CN is located does not receive the request for updating the route mapping relationship sent by the AGR3, and the AGR1 does not update the new route mapping relationship corresponding to the MN of the service flow initiated by the MN stored in the mapping table. Then, for the data packet sent by the CN to the MN, AGR1 sends according to the route mapping relationship of the MN stored in the current mapping table. In fact, at this time, the AGR1 data packet is sent to the AGR2, and the MN has already switched to the AGR3. The AGR2 and the AGR3 have no communication tunnel at this time. Therefore, the AGR2 can only discard the data packet. Because the MN always has data packets in the AGR1, the mapping entries corresponding to the MN in the mapping table of the AGR1 cache will not be aged, so the data packets sent by the CN to the MN will continue to be lost. Assume that the value of T2 is 10 and the value of T1 is 8. Similarly, CN initiates a certain service flow at time 1. In this case, the mapping entry corresponding to the MN in the mapping table and the peer entry corresponding to the CN in the peer information table. Created at time 1. Similarly, the identification value of the identification bit of the MN in the mapping table of AGR1 and the identification value of the identification bit of the CN in the peer information table are all set to 1 at time 1. D1 traverses the mapping table at time 8 . Since the value of the MN's flag bit is 1, the value of its flag bit is set to zero. Similarly, D2 traverses the peer information table at time 10, and at this time, since the value of the flag of the CN is 1, the value of its flag is set to zero. It is assumed that there is a data message interaction between the CN and the MN at time 14, and the MN performs a mobile handover at time 15. For D1, since the MN has data packet processing in the 8-16 time period, the mapping bar corresponding to the MN in the mapping table is not deleted at time 16. Head. For D2, in the time period of 10-20, the CN has data packet processing, so at time 20, the peer entry of the CN is still stored in the peer information table. In the MN process at time 15, the peer entry corresponding to the CN corresponding to the MN in the peer information table in the self-cache is also forwarded to the AGR3. Therefore, the MN's hand-in gateway AGR3 can obtain the information of the peer entry corresponding to the CN at time 15. When there is a data packet exchange between the MN and the CN, the AGR3 sends an update request for the route mapping relationship to the AGR1, and notifies the AGR1 of the new route mapping relationship corresponding to the MN, so that the data packet is not lost. In order to ensure the effect of the seamless handover, the MN can also update the processing of the peer entry information of the CN in the peer information table of the AGR3 in the AGR2 to AGR3 handover process. Delete it when you are done. In actual applications, if T2 is greater than T1, in fact, the aging period of AGR at both ends may not be synchronized, and there are still some problems. For example, the value of the period T1 of D1 is 8, and the value of the period T2 of D2 is 10. The data packet of a certain service flow is exchanged between CN and MN at time 10, if the period of D1 is 9/17/25. . . . , and the period of D2 is 1/11/21. If no message passes AGR1 and AGR2 from time 10 to time 21, the peer entry corresponding to CN in the peer information table of AGR2 will Because the aging is deleted, the mapping entry of the MN in the AGR1 mapping table has not been aged. Therefore, if the MN switches between the times 22-26, the AGR1 will still send a data message to the AGR2, and the CN will also appear. The problem of communication interruption between MNs. Therefore, in an embodiment, in order to completely avoid the problem of communication interruption between the CN and the MN, the seamless handover between the CN and the MN is ensured, and the value of the aging period T2 of the second timer is set to T1. Twice or more than twice. When T2 2T1, the peer entry corresponding to the CN in the peer information table must be aged after the mapping entry corresponding to the corresponding mapping table, so that normal communication between the CN and the UI can be guaranteed. At this time, the value of Τ 1 can also be appropriately relaxed to reduce the load on the device. It should be noted that, in the actual mobile switching process, the value of the aging period Τ2 can be dynamically set according to the value of the aging period T1 of D1, as long as Τ2 > T1 is guaranteed. In an embodiment, the value of the period Τ2 of the D2 is dynamically set in the following manner, and the value information of the period T1 is saved in the data packet sent by the communication peer CN to the mobile node. Therefore, when the MN communicates with the CN, the AGR2 where the MN is located extracts the value information of the T1 in the data packet sent by the CN, and the value of the aging period T2 of the D2 can be set accordingly. Of course, in order to ensure seamless switching, the value of T2 is set to be twice or more than T1. Generally, a part of the field is selected from the IP header of the packet to carry the value information of the first timer T1. In an embodiment, specifically, the value information of T1 is stored in an option field sent to the IP header of the MN message or a reuse service type TOS field. If you use the option field in the IP header to carry the value information of T1, the specific format of the option field can be as shown in Table 4 below: Table 4 IP option field carrying T1 value information Option type Option length timer value Example 2:
下面以具体的实施例,详细说明该种在动态设置定时器的时长的情况下, 移动节点进行切换时数据报文的管理方法, 如图 3所示, 具体流程如下:  The following is a detailed description of a method for managing data packets when a mobile node performs handover in the case of dynamically setting a timer duration. As shown in FIG. 3, the specific process is as follows:
301、 CN向 MN发起一个业务流; 301. The CN initiates a service flow to the MN;
302、 CN发送 文到 AGR1; 303、 AGR1收到该业务流的数据报文后,向映射服务器查询 MN在映射 表中对应的 AID-RID的映射条目, 查询到后将该映射条目緩存在本地, 并根 据路由映射关系对数据报文进行外层封装, 在封装时根据 AGR1本地配置的 第一定时器 T1的时长设置报文 IP首部中的定时器的选项。 其中, T1的值根 据实际需求选取; 304、 AGR1将数据报文发送给 AGR2; 302. The CN sends the message to the AGR1. 303. After receiving the data packet of the service flow, the AGR1 queries the mapping server for the mapping entry of the corresponding AID-RID in the mapping table, and caches the mapping entry locally after the query. And the outer layer encapsulation of the data packet according to the route mapping relationship, and the option of the timer in the IP header of the packet is set according to the duration of the first timer T1 configured locally by AGR1 during encapsulation. The value of T1 is selected according to the actual requirement; 304, AGR1 sends the data packet to AGR2;
据 IP首部中的定时器选项中的第一定时器 T1的取值设置本地的 T2定时器 时长; Set the local T2 timer duration according to the value of the first timer T1 in the timer option in the IP header;
306、 AGR2将数据报文转发给 MN。 从上述流程可以看出, 由于 AGR的 D1的老化周期 T1的取值可以釆用 本地配置, 因此, AGR2会收到多个 AGR发来的 D1的老化周期 T1的不同 取值, 这种情况下, 第二定时器 D2还可以釆用分别设置标识位取值的方式 来达到为对端映射表中的不同对端条目设置不同定时器的方法。 在一种实施 例中, 还为 AGR2预设一个基础轮询时间 T,若 AGR2判断在轮询时间 T内 CN有数据报文通过, 则将 CN的标识位的值设为初始值, 若没有数据报文 通过, 则将 CN的标识位的值减 1 , 当 CN的标识位的值减为 0时, 则删除 所述通信对端对应的对端条目。 其标识位的值初始化的方法具体可以是: 根据老化周期 T1的取值信息, 设置老化周期 T2的取值,并将第二定时器的老化周期 T2的值作为该通信对 端的标识位的值。 实施例 3: 假设 AGR2收到的来自 AGR1 '的 D Γ老化周期 Τ Γ的取值为 5 , 收到的 来自 AGR1"的 D1"老化周期 T1"的取值为 8, 那么 AGR2的基础定时器轮 询时间 T可以设置为 1,其中 T的选择需满足 T2>T。 如此, 与 AGR1'相应的 对端信息表中对应的对端条目的定时器的老化周期是 10,该 AGR1'对应的通 信对端标识位的值的初始值也设置为 10; 与 AGR1"相应的对端信息表中对 应的对端条目的定时器老化周期是 16, 该 AGR1"对应的通信对端的标识位 的值也设置为 16。 那么当每次 AGR2轮询时, 如果通信对端没有数据报文经 过, 就将该通信对端的标识位的值减 1 , 如果有报文经过则重置为初始值, 这样就能够达成不同通信对端老化时间不同的效果。假设,在 AGR2轮询时, 与 AGR1'相应的通信对端没有 "^文经过, 就将该通信对端对应的标识位的值 减 1 , 那么 AGR2轮询后, AGR1'相应的通信对端对应的标识位的值即为 9。 当 CN的标识位的值减为 0时, 则删除所述通信对端对应的对端条目。 同时, 本发明还提供了一种标识网中移动节点切换时数据报文的管理系 统, 包括移动节点, 移动节点通信对端, 移动节点通信对端所在的第一接入 网关设备, 移动节点所在的第二接入网关设备, 以及第三接入网络路由器; 当所述移动节点进行切换时, 所述第一接入网关设备根据存储在自身映 射表中的所述移动节点对应的映射条目, 将接收到的发往所述移动节点的数 据报文发给所述第二接入网关设备, 所述第二接入网关设备再将所述数据报 文以及存储在自身对端信息表中的所述通信对端对应的对端条目转发给所述 第三接入网关设备, 所述第三接入网关设备将所述数据报文转发给所述移动 节点; 306. AGR2 forwards the data packet to the MN. It can be seen from the above process that the value of the aging period T1 of the D1 of the AGR can be used. Local configuration. Therefore, AGR2 receives different values of the aging period T1 of D1 sent by multiple AGRs. In this case, the second timer D2 can also use the method of setting the value of the identifier bit to achieve A method of setting different timers for different peer entries in the peer mapping table. In an embodiment, a basic polling time T is also preset for the AGR2. If the AGR2 determines that the CN has a data message in the polling time T, the value of the CN flag is set to an initial value. When the data packet is passed, the value of the flag bit of the CN is decremented by 1. When the value of the flag bit of the CN is reduced to 0, the peer entry corresponding to the communication peer is deleted. The method for initializing the value of the identifier bit may be: setting the value of the aging period T2 according to the value of the aging period T1, and setting the value of the aging period T2 of the second timer as the value of the identifier of the communication peer. . Embodiment 3: It is assumed that the D Γ aging period Τ 来自 from AGR1 received by AGR2 is 5, and the received D1 "aging period T1" from AGR1 "is 8, then the basic timer of AGR2 The polling time T can be set to 1, where the selection of T needs to satisfy T2>T. Thus, the aging period of the timer of the corresponding peer entry in the peer information table corresponding to AGR1' is 10, and the corresponding AGR1' The initial value of the value of the communication peer identifier bit is also set to 10; the timer aging period of the corresponding peer entry in the peer information table corresponding to AGR1" is 16, and the value of the identifier bit of the communication peer corresponding to the AGR1" It is also set to 16. Then, every time AGR2 polls, if there is no data packet passing by the communication peer, the value of the identification bit of the communication peer is decremented by one, and if there is a message, the value is reset to the initial value. It is possible to achieve different effects of different communication peer aging times. It is assumed that, in the AGR2 polling, if the communication peer corresponding to AGR1' does not have "^ text passing, the value of the corresponding flag bit of the communication peer is decremented by one. Then, after AGR2 polling, the value of the corresponding identification bit of the corresponding communication peer of AGR1' is 9. When the value of the flag of the CN is reduced to 0, the peer entry corresponding to the communication peer is deleted. In addition, the present invention also provides a management system for identifying data packets when a mobile node switches in a network, including a mobile node, a mobile node communication peer, a first access gateway device where the mobile node communication peer is located, and a mobile node where the mobile node is located. a second access gateway device, and a third access network router; when the mobile node performs handover, the first access gateway device according to the mapping entry corresponding to the mobile node stored in the self mapping table, Receiving, the data packet sent to the mobile node is sent to the second access gateway device, and the second access gateway device sends the data packet And the peer entry corresponding to the communication peer end stored in the peer information table is forwarded to the third access gateway device, where the third access gateway device forwards the data packet to the Mobile node
当所述移动节点切换完成后, 所述第一接入网关设备根据所述第三接入 网关设备发来的所述移动节点对应的映射条目, 将接收到的发往所述移动节 点的数据报文发给所述第三接入网关设备,再由所述第三接入网关设备将所 述数据报文转发给所述移动节点; 其中, 所述映射表中存储的映射条目的老 化周期为 T1,所述对端信息表中存储的对端条目的老化周期为 T2,且 T2> T1。 其中,  After the handover of the mobile node is completed, the first access gateway device sends the received data to the mobile node according to the mapping entry corresponding to the mobile node sent by the third access gateway device. Sending the packet to the third access gateway device, and then forwarding, by the third access gateway device, the data packet to the mobile node; wherein, an aging period of the mapping entry stored in the mapping table For T1, the aging period of the peer entry stored in the peer information table is T2, and T2>T1. among them,
所述第一接入网关设备设置为: 当所述移动节点进行切换时, 所述第一 接入网关设备根据存储在自身映射表中的所述移动节点对应的映射条目, 将 接收到的发往所述移动节点的数据报文发给所述第二接入网关设备; 以及当 所述移动节点切换完成后, 所述第一接入网关设备根据所述第三接入网关设 备发来的所述移动节点对应的映射条目, 将接收到的发往所述移动节点的数 据报文发给所述第三接入网关设备; 所述第二接入网关设备设置为: 当所述移动节点进行切换时, 将所述第 一接入网关设备发送的所述数据报文以及存储在自身对端信息表中的所述通 信对端对应的对端条目转发给所述第三接入网关设备; 所述第三接入网关设备设置为: 当所述移动节点进行切换时, 将所述第  The first access gateway device is configured to: when the mobile node performs handover, the first access gateway device receives the received message according to a mapping entry corresponding to the mobile node stored in the self mapping table. Sending, to the second access gateway device, the data packet sent to the mobile node; and, after the handover of the mobile node is complete, the first access gateway device sends the data according to the third access gateway device. The mapping entry corresponding to the mobile node sends the received data packet addressed to the mobile node to the third access gateway device; the second access gateway device is configured to: when the mobile node Forwarding, by the first access gateway device, the data packet sent by the first access gateway device and the peer entry corresponding to the communication peer end stored in the peer information table to the third access gateway device The third access gateway device is configured to: when the mobile node performs handover, the first
节点; Node
其中, 所述映射表中存储的映射条目的老化周期为 T1,所述对端信息表 中存储的对端条目的老化周期为 Τ2,且 Τ2> Τ1。 其中,在所述第一接入网关设备中设置第一定时器,所述第一定时器每隔 老化周期 T1定时更新映射表中的映射条目;在所述第二接入网关设备中设置 第二定时器, 所述第二定时器每隔老化周期 Τ2定时更新对端信息表中的对 端条目。 其中, 所述映射表中存储的映射条目为所述移动节点对应的路由映射关 系; 所述第一接入网关设备还设置为: 预设一个用于标识所述移动节点在老 化周期 T1 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断 在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所述移动 节点标识位的值设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述 第一定时器遍历所述映射表时, 若所述移动节点标识位的值为 1 , 则将所述 移动节点标识位的值设为 0,若所述移动节点标识位的值为 0,则删除所述移 动节点对应的映射条目。 其中, 所述对端信息表中存储的对端条目为所述通信对端对应的相关信 息; The aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is Τ2, and Τ2> Τ1. The first timer is set in the first access gateway device, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; and the second access gateway device is configured to be configured. The second timer updates the peer entry in the peer information table periodically every aging period Τ2. The mapping entry stored in the mapping table is a route mapping relationship corresponding to the mobile node; the first access gateway device is further configured to: preset a flag for identifying whether the mobile node is in the aging period T1 Having the identifier of the data packet and initializing the value of the identifier bit; determining whether the mobile node has a data packet passing in the aging period T1, and if so, setting the value of the mobile node identifier bit to 1 If not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the value of the mobile node identifier bit is 1, the mobile node is The value of the identifier bit is set to 0. If the value of the mobile node identifier bit is 0, the mapping entry corresponding to the mobile node is deleted. The peer entry stored in the peer information table is related information corresponding to the communication peer end;
所述第二接入网关设备还设置为: 预设一个用于标识所述通信对端在老 化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断 在老化周期 T2 内所述通信对端是否有数据报文通过, 若有, 则将所述通信 对端标识位的值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述 第二定时器遍历所述对端信息表时, 若所述通信对端标识位的值为 1 , 则将 所述通信对端标识位的值设为 0; 若所述通信对端的标识位的值为 0,则删除 所述通信对端对应的对端条目。 其中: 第一接入网关设备还设置为: 将所述 T1 的取值信息保存在所述通信对 端发往所述移动节点的数据报文中; 所述第二接入网关设备还设置为: 当所述移动节点通信对端与移动节点 进行通信时, 提取所述第一接入网关设备发来的数据报文中 T1的取值信息, 并相应地设置老化周期 T2的取值。 其中,所述对端信息表存储的对端条目为所述通信对端对应的相关信息; 所述第二接入网关设备还设置为: 预设一个用于标识所述通信对端在老 化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 并预 设一个基础轮询时间 T, 若判断在轮询时间 T内所述通信对端有数据报文通 过, 则将所述通信对端的标识位的值置为初始值, 若没有数据报文通过, 则 将所述通信对端的标识位的值减 1 , 当所述通信对端的标识位的值减为 0时, 则删除所述通信对端对应的对端条目, 其中, T2>T。 The second access gateway device is further configured to: preset a flag for identifying whether the communication peer passes the data packet in the aging period T2 and initialize the value of the identifier bit; Whether the data communication message is passed by the communication peer end in T2, if yes, the value of the communication peer end identification bit is set to 1, if not, the value of the communication peer end identification bit is set to 0; And when the second timer traverses the peer information table, if the value of the communication peer identifier bit is 1, the value of the communication peer identifier bit is set to 0; If the value of the flag bit is 0, the peer entry corresponding to the communication peer is deleted. The first access gateway device is further configured to: save the value information of the T1 in a data packet sent by the communication peer end to the mobile node; the second access gateway device is further configured to And: when the mobile node communication peer communicates with the mobile node, extracts the value information of T1 in the data packet sent by the first access gateway device, and sets the value of the aging period T2 accordingly. The peer entry stored in the peer information table is the related information corresponding to the communication peer; the second access gateway device is further configured to: preset one to identify the communication peer in the aging period Whether there is a flag for passing the data packet in T2 and initializing the value of the identifier bit; and presetting a basic polling time T, if it is determined that the communication peer has a data packet in the polling time T If yes, the value of the identifier of the communication peer is set to an initial value. If no data packet is passed, the value of the identifier of the communication peer is decremented by one, and the value of the identifier of the communication peer is decreased. When it is 0, the peer entry corresponding to the communication peer is deleted, where T2>T.
本实施例还公开了一种接入网关设备, 所述接入网关设备应用于身份与 位置分离网络, 所述接入网关设备设置为: 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 在所 述移动节点进行切换时, 所述移动节点通信对端所接入的接入网关设备根据 存储在自身映射表中的所述移动节点对应的映射条目, 将接收到的发往所述 移动节点的数据报文发给所述移动节点切换前所接入的接入网关设备; 以及 当所述移动节点切换完成后, 所述移动节点通信对端所接入的接入网关设备 根据移动节点切换后所接入的接入网关设备发来的所述移动节点对应的映射 条目, 将接收到的发往所述移动节点的数据报文发给所述移动节点切换后所 接入的接入网关设备; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 当 所述移动节点进行切换时, 将所述移动节点通信对端所接入的接入网关设备 发送的所述数据报文以及存储在自身对端信息表中的所述通信对端对应的对 端条目转发给移动节点切换后所接入的接入网关设备; The embodiment also discloses an access gateway device, where the access gateway device is applied to an identity and location separation network, and the access gateway device is configured to: when the access gateway device is a mobile node communication peer Accessing the access gateway device, when the mobile node performs handover, the access gateway device accessed by the mobile node communication peer end according to the mapping entry corresponding to the mobile node stored in the self mapping table, Receiving, the data packet sent to the mobile node is sent to the access gateway device accessed by the mobile node before the handover; and when the mobile node is switched, the mobile node is connected to the communication peer The access gateway device sends the received data packet addressed to the mobile node to the mobile node according to the mapping entry corresponding to the mobile node sent by the access gateway device accessed by the mobile node after the handover. An access gateway device that is accessed after the handover; when the access gateway device is an access gateway device accessed before the mobile node switches, when the mobile node is The data packet sent by the access gateway device accessed by the mobile node communication peer end and the peer entry corresponding to the communication peer end stored in the peer information table are forwarded to the mobile terminal. The access gateway device accessed after the node is switched;
当所述接入网关设备为所述移动节点切换后所接入的接入网关设备, 当 所述移动节点进行切换时, 将所述移动节点切换前所接入的接入网关设备发 送的所述数据报文转发给所述移动节点; 当所述移动节点切换完成后, 将所 述移动节点通信对端所接入的接入网关设备发送的所述数据报文转发给所述 移动节点; 其中, 所述映射表中存储的映射条目的老化周期为 T1 , 所述对端信息表 中存储的对端条目的老化周期为 Τ2, 且 Τ2> Τ1。 其中, 在所述移动节点通信对端所接入的接入网关设备中设置第一定时 器, 所述第一定时器每隔老化周期 T1 定时更新映射表中的映射条目; 在所 述移动节点切换前所接入的接入网关设备中设置第二定时器, 所述第二定时 器每隔老化周期 T2定时更新对端信息表中的对端条目。 其中, 所述映射表中存储的映射条目为所述移动节点对应的路由映射关 系; 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 所述 接入网关设备还设置为: 预设一个用于标识所述移动节点在老化周期 T1 内 是否有数据报文通过的标识位并初始化所述标识位的值;判断在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所述移动节点标识位的值 设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述第一定时器遍历 所述映射表时, 若所述移动节点标识位的值为 1 , 则将所述移动节点标识位 的值设为 0,若所述移动节点标识位的值为 0,则删除所述移动节点对应的映 射条目。 其中, 所述对端信息表中存储的对端条目为所述通信对端对应的相关信 息; When the access gateway device is an access gateway device that is accessed after the mobile node is switched, when the mobile node performs handover, the mobile gateway node transmits the access gateway device that is accessed before the handover. Transmitting, to the mobile node, the data packet, and transmitting, by the mobile node, the data packet sent by the access gateway device accessed by the mobile node to the mobile node; The aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is Τ2, and Τ2> Τ1. The first timer is set in the access gateway device that is connected to the mobile node communication peer end, and the first timer periodically updates the mapping entry in the mapping table every aging period T1; Setting a second timer in the access gateway device that is connected before the handover, the second timing The peer entry in the peer information table is updated periodically every aging period T2. The mapping entry stored in the mapping table is a routing mapping relationship corresponding to the mobile node; when the access gateway device is an access gateway device accessed by a mobile node communication peer, the access gateway device The method is further configured to: determine a flag for identifying whether the mobile node passes the data packet in the aging period T1 and initialize the value of the identifier bit; and determine whether the mobile node has data in the aging period T1. Passing, if yes, setting the value of the mobile node identifier bit to 1, if not, setting the value of the mobile node identifier bit to 0; when the first timer traverses the mapping table If the value of the mobile node identifier bit is 1, the value of the mobile node identifier bit is set to 0, and if the value of the mobile node identifier bit is 0, the mapping entry corresponding to the mobile node is deleted. . The peer entry stored in the peer information table is related information corresponding to the communication peer end;
当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为: 预设一个用于标识所述通信对端在老化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断在老化周期 T2内所述通信对端是否有数据报文通过, 若有, 则将所述通信对端标识位的 值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述第二定时器遍 历所述对端信息表时, 若所述通信对端标识位的值为 1 , 则将所述通信对端 标识位的值设为 0; 若所述通信对端的标识位的值为 0,则删除所述通信对端 对应的对端条目。 其中: 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 所述 接入网关设备还设置为: 将所述 T1 的取值信息保存在所述通信对端发往所 述移动节点的数据报文中; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为:当所述移动节点通信对端与移动节点进行通信时, 提取所述移动节点通信对端所接入的接入网关设备发来的数据报文中 T1 的 取值信息, 并相应地设置老化周期 T2的取值。 其中,所述对端信息表存储的对端条目为所述通信对端对应的相关信息; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为: 预设一个用于标识所述通信对端在老化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 并预设一个基础 轮询时间 T, 若判断在轮询时间 T内所述通信对端有数据报文通过, 则将所 述通信对端的标识位的值置为初始值, 若没有数据报文通过, 则将所述通信 对端的标识位的值减 1 , 当所述通信对端的标识位的值减为 0时, 则删除所 述通信对端对应的对端条目, 其中, T2>T。 其中, 当所述接入网关设备为所述移动节点切换前所接入的接入网关设 备, 所述接入网关设备是设置为按如下方式初始化所述标识位的值: 根据所述老化周期 T1的取值信息, 设置所述老化周期 Τ2的取值, 并将 所述第二定时器的老化周期 Τ2的值作为所述通信对端的标志位的值。 其中, 所述 Τ2 2Τ1。 When the access gateway device is an access gateway device that is accessed before the mobile node is switched, the access gateway device is further configured to: preset a flag for identifying whether the communication peer end is in the aging period T2 Having the identifier of the data packet and initializing the value of the identifier bit; determining whether the data packet is passed by the communication peer in the aging period T2, and if yes, setting the value of the communication peer identifier bit If not, the value of the communication peer identifier bit is set to 0; when the second timer traverses the peer information table, if the value of the communication peer identifier bit is 1, Then, the value of the communication peer identifier bit is set to 0; if the value of the identifier bit of the communication peer is 0, the peer entry corresponding to the communication peer is deleted. Wherein: the access gateway device is an access gateway device that is accessed by the mobile node communication peer end, and the access gateway device is further configured to: save the value information of the T1 in the communication peer end In the data packet of the mobile node; when the access gateway device is an access gateway device that is accessed before the mobile node switches, the access gateway device is further configured to: when the mobile node communicates When the peer communicates with the mobile node, extracting T1 in the data packet sent by the access gateway device accessed by the mobile node communication peer end The value information is set, and the value of the aging period T2 is set accordingly. The peer entry stored in the peer information table is related information corresponding to the communication peer end; when the access gateway device is an access gateway device accessed before the mobile node switches, the connection The gateway device is further configured to: preset a flag for identifying whether the communication peer passes the data packet in the aging period T2 and initialize the value of the identifier bit; and preset a basic polling time T If it is determined that the data packet is passed by the communication peer in the polling time T, the value of the identifier of the communication peer is set to an initial value, and if no data packet is passed, the communication peer is The value of the identifier bit is decremented by 1. When the value of the identifier bit of the communication peer is reduced to 0, the peer entry corresponding to the communication peer is deleted, where T2>T. The access gateway device is configured to initialize the value of the identifier bit as follows: when the access gateway device is an access gateway device that is accessed before the mobile node switches: according to the aging period The value information of T1 is set to the value of the aging period Τ2, and the value of the aging period Τ2 of the second timer is used as the value of the flag bit of the communication peer. Wherein, the Τ2 2Τ1.
应用本发明, 通过合理的设置移动节点的切入网关设备、 切出网关设备 以及 ΜΝ对应的 CN所在的接入网关设备中定时器的老化周期, 使得移动节 点在进行上下文切换时,能够有效的减轻接入网关设备的负荷,不会造成 CN 与 ΜΝ之间的通信的中断, 从而保证了移动节点切换时数据报文不会丟失。 By applying the present invention, the aging period of the timer in the access gateway device of the mobile node, the gateway device, and the access gateway device where the CN is located is reasonably set, so that the mobile node can effectively mitigate the context switching. The load on the access gateway device does not cause the interruption of communication between the CN and the UI, thus ensuring that the data packets are not lost when the mobile node switches.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 以上内容是结合具体的实施方式对本发明所作的进一步详细说明, 不能 认定本发明的具体实施只局限于这些说明。 对于本发明所属技术领域的普通 技术人员来说, 在不脱离本发明构思的前提下, 还可以做出多个简单推演或 替换, 都应当视为属于本发明的保护范围。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module unit in the foregoing embodiment may be implemented in the form of hardware, or may be implemented in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software. The above content is a further detailed description of the present invention in combination with specific embodiments, and cannot It is to be understood that the specific embodiments of the invention are limited only by the description. A person skilled in the art can make a plurality of simple deductions or substitutions without departing from the spirit and scope of the invention.
工业实用性 本发明保证了在 MN移动性切换过程中以及切换完成后, MN与 CN之 间的正常通信。 同时, 通过 T2>T1的设置, 使得接入网关设备不需要定时向 映射服务器发送更新映射表映射条目及更新对端信息表对端条目的请求, 从 而有效地减轻了接入网关路设备的负荷。 Industrial Applicability The present invention ensures normal communication between the MN and the CN during the MN mobility switching process and after the handover is completed. At the same time, through the setting of T2>T1, the access gateway device does not need to periodically send the update mapping table mapping entry to the mapping server and update the request of the peer information entry, thereby effectively reducing the load on the access gateway device. .

Claims

权 利 要 求 书 Claim
1、 一种移动节点切换时数据报文的管理方法, 其特征在于, 所述方法应 用于身份与位置分离网络, 所述方法包括: 当移动节点进行切换时, 移动节点通信对端所在的第一接入网关设备根 据存储在自身映射表中的所述移动节点对应的映射条目, 将接收到的发往所 述移动节点的数据报文发给所述移动节点所在的第二接入网关设备; 所述第 二接入网关设备将所述数据报文以及存储在自身对端信息表中的所述通信对 端对应的对端条目转发给第三接入网关设备, 所述第三接入网关设备将所述 数据报文转发给所述移动节点; 以及 当所述移动节点切换完成后, 所述第一接入网关设备根据所述第三接入 网关设备发来的所述移动节点对应的映射条目, 将接收到的发往所述移动节 点的数据报文发给所述第三接入网关设备,再由所述第三接入网关设备将所 述数据报文转发给所述移动节点; 其中, 所述映射表中存储的映射条目的老 化周期为 T1,所述对端信息表中存储的对端条目的老化周期为 T2,且 T2> T1。 A method for managing a data packet when a mobile node is switched, wherein the method is applied to an identity and location separation network, and the method includes: when a mobile node performs handover, where the mobile node communicates with the peer end Sending, by the access gateway device, the received data packet addressed to the mobile node to the second access gateway device where the mobile node is located, according to the mapping entry corresponding to the mobile node stored in the mapping table. Transmitting, by the second access gateway device, the data packet and the peer entry corresponding to the communication peer end stored in the peer information table to the third access gateway device, where the third access The gateway device forwards the data packet to the mobile node; and when the mobile node completes the handover, the first access gateway device corresponds to the mobile node sent by the third access gateway device a mapping entry, the received data packet sent to the mobile node is sent to the third access gateway device, and then the third access gateway device The data packet is forwarded to the mobile node; wherein, the aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is T2, and T2>T1 .
2、如权利要求 1所述的方法, 其中, 在所述第一接入网关设备中设置第 一定时器,所述第一定时器每隔老化周期 T1定时更新映射表中的映射条目;在 所述第二接入网关设备中设置第二定时器,所述第二定时器每隔老化周期 Τ2 定时更新对端信息表中的对端条目。  The method of claim 1, wherein the first timer is set in the first access gateway device, and the first timer periodically updates the mapping entries in the mapping table every aging period T1; A second timer is set in the second access gateway device, and the second timer periodically updates the peer entry in the peer information table every aging period Τ2.
3、如权利要求 2所述的方法, 其中, 所述映射表中存储的映射条目为所 述移动节点对应的路由映射关系; 所述方法还包括: 预设一个用于标识所述移动节点在老化周期 T1 内是 否有数据报文通过的标识位并初始化所述标识位的值; 所述第一接入网关设 备判断在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所 述移动节点标识位的值设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述第一定时器遍历所述映射表时, 若所述移动节点标识位的值为 1 , 则 将所述移动节点标识位的值设为 0,若所述移动节点标识位的值为 0,则删除 所述移动节点对应的映射条目。 The method of claim 2, wherein the mapping entry stored in the mapping table is a routing mapping relationship corresponding to the mobile node; the method further includes: presetting a Whether there is an identifier of the data packet passing through the aging period T1 and initializing the value of the identifier bit; the first access gateway device determines whether the mobile node passes the data packet during the aging period T1, if any, The value of the mobile node identifier bit is set to 1, if not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the mobile node If the value of the identifier bit is 1, the value of the mobile node identifier bit is set to 0, and if the value of the mobile node identifier bit is 0, the deletion is performed. A mapping entry corresponding to the mobile node.
4、如权利要求 2所述的方法, 其中, 所述对端信息表中存储的对端条目 为所述通信对端对应的相关信息; 所述方法还包括: 预设一个用于标识所述通信对端在老化周期 T2 内是 否有数据报文通过的标识位并初始化所述标识位的值; 所述第二接入网关设 备判断在老化周期 T2 内所述通信对端是否有数据报文通过, 若有, 则将所 述通信对端标识位的值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述第二定时器遍历所述对端信息表时,若所述通信对端标识位的值为 1 , 则将所述通信对端标识位的值设为 0; 若所述通信对端的标识位的值为 0,则 删除所述通信对端对应的对端条目。 The method of claim 2, wherein the peer entry stored in the peer information table is related information corresponding to the communication peer; the method further includes: presetting one for identifying the Whether the communication peer has an identifier for the data packet passing through the aging period T2 and initializes the value of the identifier bit; the second access gateway device determines whether the communication peer has a data packet in the aging period T2. Passing, if yes, setting the value of the communication peer identifier bit to 1, if not, setting the value of the communication peer identifier bit to 0; when the second timer traverses the peer In the information table, if the value of the communication peer identifier bit is 1, the value of the communication peer end identification bit is set to 0; if the value of the identification bit of the communication peer end is 0, the communication is deleted. The peer entry corresponding to the peer.
5、 如权利要求 2所述的方法, 所述方法还包括: 将所述 T1 的取值信息保存在所述通信对端发往所述移动节点的数据报 文中; 当所述移动节点通信对端与移动节点进行通信时, 所述第二接入网关 设备提取所述第一接入网关设备发来的数据报文中 T1 的取值信息, 并相应 地设置老化周期 T2的取值。 5. The method of claim 2, the method further comprising: storing the value information of the T1 in a data message sent by the communication peer to the mobile node; when the mobile node communicates When the peer end communicates with the mobile node, the second access gateway device extracts the value information of T1 in the data packet sent by the first access gateway device, and sets the value of the aging period T2 accordingly.
6、 如权利要求 5所述的方法, 其中, 将所述 T1的取值信息保存在所述 数据报文的 IP首部中的选项字段或者重用服务类型 TOS字段中。 6. The method according to claim 5, wherein the value information of the T1 is saved in an option field or a reuse service type TOS field in an IP header of the data message.
7、如权利要求 6所述的方法, 其中, 所述对端信息表存储的对端条目为 所述通信对端对应的相关信息; 所述方法还包括: 预设一个用于标识所述通信对端在老化周期 T2 内是 否有数据报文通过的标识位并初始化所述标识位的值; 还为所述第二接入网 关设备预设一个基础轮询时间 T,若所述第二接入网关设备判断在轮询时间 T 内所述通信对端有数据 "^文通过, 则将所述通信对端的标识位的值置为初始 值, 若没有数据报文通过, 则将所述通信对端的标识位的值减 1 , 当所述通 信对端的标识位的值减为 0时,则删除所述通信对端对应的对端条目,其中, T2>T。 The method of claim 6, wherein the peer entry stored in the peer information table is related information corresponding to the communication peer; the method further includes: presetting a message for identifying the communication Whether the peer end has an identifier for the data packet passing in the aging period T2 and initializes the value of the identifier bit; and further presets a basic polling time T for the second access gateway device, if the second connection The gateway device determines that the data of the communication peer end passes the data in the polling time T, and sets the value of the identifier bit of the communication peer to an initial value. If no data packet passes, the communication is performed. The value of the identifier of the peer is decremented by 1. When the value of the identifier of the peer is reduced to 0, the peer entry corresponding to the peer is deleted, where T2>T.
8、如权利要求 7所述的方法, 其中, 所述初始化所述标识位的值的步骤 包括: 根据所述老化周期 T1的取值信息, 设置所述老化周期 T2的取值, 并将 所述第二定时器的老化周期 T2的值作为所述通信对端的标志位的值。 The method of claim 7, wherein the step of initializing the value of the identifier bit comprises: setting a value of the aging period T2 according to the value information of the aging period T1, and The value of the aging period T2 of the second timer is used as the value of the flag bit of the communication peer.
9、 如权利要求 1-8中任一项所述的方法, 其中, 所述 T2 2Τ1。 The method according to any one of claims 1 to 8, wherein the T2 2Τ1.
10、 一种移动节点切换时数据报文的管理系统, 其特征在于, 所述系统 应用于身份与位置分离网络, 所述系统包括: 移动节点, 移动节点通信对端, 移动节点通信对端所在的第一接入网关设备, 移动节点所在的第二接入网关 设备, 以及第三接入网关设备; 所述第一接入网关设备设置为: 当所述移动节点进行切换时, 所述第一 接入网关设备根据存储在自身映射表中的所述移动节点对应的映射条目, 将 接收到的发往所述移动节点的数据报文发给所述第二接入网关设备; 以及当 所述移动节点切换完成后, 所述第一接入网关设备根据所述第三接入网关设 备发来的所述移动节点对应的映射条目, 将接收到的发往所述移动节点的数 据报文发给所述第三接入网关设备; 所述第二接入网关设备设置为: 当所述移动节点进行切换时, 将所述第 一接入网关设备发送的所述数据报文以及存储在自身对端信息表中的所述通 信对端对应的对端条目转发给所述第三接入网关设备; 所述第三接入网关设备设置为: 当所述移动节点进行切换时, 将所述第 A system for managing data packets during handover of a mobile node, wherein the system is applied to an identity and location separation network, the system comprising: a mobile node, a mobile node communication peer, and a mobile node communication peer a first access gateway device, a second access gateway device where the mobile node is located, and a third access gateway device; the first access gateway device is configured to: when the mobile node performs handover, the An access gateway device sends the received data packet addressed to the mobile node to the second access gateway device according to the mapping entry corresponding to the mobile node stored in the mapping table; After the mobile node handover is completed, the first access gateway device sends the received data packet to the mobile node according to the mapping entry corresponding to the mobile node sent by the third access gateway device. Sending to the third access gateway device; the second access gateway device is configured to: when the mobile node performs handover, the first connection The data packet sent by the gateway device and the peer entry corresponding to the communication peer end stored in the peer information table are forwarded to the third access gateway device; the third access gateway device is set to : when the mobile node performs handover, the first
节点; Node
其中, 所述映射表中存储的映射条目的老化周期为 T1,所述对端信息表 中存储的对端条目的老化周期为 Τ2,且 Τ2> Τ1。  The aging period of the mapping entry stored in the mapping table is T1, and the aging period of the peer entry stored in the peer information table is Τ2, and Τ2> Τ1.
11、如权利要求 10所述的系统, 其中, 在所述第一接入网关设备中设置 第一定时器,所述第一定时器每隔老化周期 T1定时更新映射表中的映射条目; 在所述第二接入网关设备中设置第二定时器, 所述第二定时器每隔老化周期The system of claim 10, wherein a first timer is set in the first access gateway device, and the first timer periodically updates a mapping entry in the mapping table every aging period T1; Setting a second timer in the second access gateway device, where the second timer is aging cycle
T2定时更新对端信息表中的对端条目。 T2 periodically updates the peer entry in the peer information table.
12、如权利要求 11所述的系统, 其中, 所述映射表中存储的映射条目为 所述移动节点对应的路由映射关系; 所述第一接入网关设备还设置为: 预设一个用于标识所述移动节点在老 化周期 T1 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断 在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所述移动 节点标识位的值设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述 第一定时器遍历所述映射表时, 若所述移动节点标识位的值为 1 , 则将所述 移动节点标识位的值设为 0,若所述移动节点标识位的值为 0,则删除所述移 动节点对应的映射条目。 The system of claim 11, wherein the mapping entry stored in the mapping table is a routing mapping relationship corresponding to the mobile node; the first access gateway device is further configured to: preset one for Determining whether the mobile node has an identifier for passing the data packet in the aging period T1 and initializing the value of the identifier bit; determining whether the mobile node has a data packet passing through the aging period T1, if any, The value of the mobile node identifier bit is set to 1, if not, the value of the mobile node identifier bit is set to 0; when the first timer traverses the mapping table, if the mobile node identifier bit If the value of the mobile node is 0, the value of the mobile node identifier is set to 0. If the value of the mobile node identifier is 0, the mapping entry corresponding to the mobile node is deleted.
13、如权利要求 11所述的系统, 其中, 所述对端信息表中存储的对端条 目为所述通信对端对应的相关信息; 所述第二接入网关设备还设置为: 预设一个用于标识所述通信对端在老 化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断 在老化周期 T2 内所述通信对端是否有数据报文通过, 若有, 则将所述通信 对端标识位的值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述 第二定时器遍历所述对端信息表时, 若所述通信对端标识位的值为 1 , 则将 所述通信对端标识位的值设为 0; 若所述通信对端的标识位的值为 0,则删除 所述通信对端对应的对端条目。 The system of claim 11, wherein the peer entry stored in the peer information table is related information corresponding to the communication peer; the second access gateway device is further configured as: An identifier for identifying whether the communication peer has a data packet passing through the aging period T2 and initializing the value of the identifier bit; determining whether the communication peer has a data packet in the aging period T2, If yes, the value of the communication peer identifier bit is set to 1, if not, the value of the communication peer identifier bit is set to 0; when the second timer traverses the peer information table If the value of the communication peer identifier bit is 1, the value of the communication peer identifier bit is set to 0; if the value of the identifier of the communication peer is 0, the communication peer is deleted. Corresponding peer entry.
14、 如权利要求 11所述的系统, 其中: 第一接入网关设备还设置为: 将所述 T1 的取值信息保存在所述通信对 端发往所述移动节点的数据报文中; 所述第二接入网关设备还设置为: 当所述移动节点通信对端与移动节点 进行通信时, 提取所述第一接入网关设备发来的数据报文中 T1的取值信息, 并相应地设置老化周期 T2的取值。 The system of claim 11, wherein: the first access gateway device is further configured to: save the value information of the T1 in a data packet sent by the communication peer end to the mobile node; The second access gateway device is further configured to: when the mobile node communication peer communicates with the mobile node, extract the value information of T1 in the data packet sent by the first access gateway device, and Set the value of the aging period T2 accordingly.
15、如权利要求 14所述的系统, 其中, 所述对端信息表存储的对端条目 为所述通信对端对应的相关信息; 所述第二接入网关设备还设置为: 预设一个用于标识所述通信对端在老 化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 并预 设一个基础轮询时间 T, 若判断在轮询时间 T内所述通信对端有数据报文通 过, 则将所述通信对端的标识位的值置为初始值, 若没有数据报文通过, 则 将所述通信对端的标识位的值减 1 , 当所述通信对端的标识位的值减为 0时, 则删除所述通信对端对应的对端条目, 其中, T2>T。 The system of claim 14, wherein the peer entry stored in the peer information table is related information corresponding to the communication peer; the second access gateway device is further configured to: preset one And determining, by the communication peer, whether an identifier of the data packet passes in the aging period T2 and initializing the value of the identifier bit; and preset a basic polling time T, if it is determined that the polling time T is If the data packet is passed by the communication peer, the value of the identifier of the communication peer is set to an initial value, and if no data packet is passed, the value of the identifier of the communication peer is decremented by 1. When the value of the identifier of the communication peer is reduced to 0, the peer entry corresponding to the communication peer is deleted, where T2>T.
16、 一种接入网关设备, 其特征在于, 所述接入网关设备应用于身份与 位置分离网络, 所述接入网关设备设置为: 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 在所 述移动节点进行切换时, 所述移动节点通信对端所接入的接入网关设备根据 存储在自身映射表中的所述移动节点对应的映射条目, 将接收到的发往所述 移动节点的数据报文发给所述移动节点切换前所接入的接入网关设备; 以及 当所述移动节点切换完成后, 所述移动节点通信对端所接入的接入网关设备 根据移动节点切换后所接入的接入网关设备发来的所述移动节点对应的映射 条目, 将接收到的发往所述移动节点的数据报文发给所述移动节点切换后所 接入的接入网关设备; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 当 所述移动节点进行切换时, 将所述移动节点通信对端所接入的接入网关设备 发送的所述数据报文以及存储在自身对端信息表中的所述通信对端对应的对 端条目转发给移动节点切换后所接入的接入网关设备; 当所述接入网关设备为所述移动节点切换后所接入的接入网关设备, 当 所述移动节点进行切换时, 将所述移动节点切换前所接入的接入网关设备发 送的所述数据报文转发给所述移动节点; 当所述移动节点切换完成后, 将所 述移动节点通信对端所接入的接入网关设备发送的所述数据报文转发给所述 移动节点; 其中, 所述映射表中存储的映射条目的老化周期为 T1 , 所述对端信息表 中存储的对端条目的老化周期为 T2, 且 Τ2> Τ1。 An access gateway device, wherein the access gateway device is applied to an identity and location separation network, and the access gateway device is configured to: when the access gateway device is a mobile node communication peer Accessing the access gateway device, when the mobile node performs handover, the access gateway device accessed by the mobile node communication peer end according to the mapping entry corresponding to the mobile node stored in the self mapping table, Receiving, the data packet sent to the mobile node is sent to the access gateway device accessed by the mobile node before the handover; and when the mobile node is switched, the mobile node is connected to the communication peer The access gateway device sends the received data packet addressed to the mobile node to the mobile node according to the mapping entry corresponding to the mobile node sent by the access gateway device accessed by the mobile node after the handover. An access gateway device that is accessed after the handover; when the access gateway device is an access gateway device that is accessed before the mobile node switches, when the mobile node performs cutting Transmitting, by the mobile node, the data packet sent by the access gateway device accessed by the mobile node communication peer end, and the peer end entry corresponding to the communication peer end stored in the peer information table to the mobile node for switching The access gateway device that is accessed later; when the access gateway device is an access gateway device that is accessed after the mobile node switches, when the mobile node performs handover, the mobile node is switched before the mobile node Transmitting, by the access gateway device, the data packet sent by the access gateway device to the mobile node; when the mobile node handover is completed, sending the mobile node to the access gateway device accessed by the access peer device The data packet is forwarded to the mobile node, where the aging period of the mapping entry stored in the mapping table is T1, and the peer information table The aging period of the peer entry stored in it is T2, and Τ2> Τ1.
17、如权利要求 16所述的接入网关设备, 其中, 在所述移动节点通信对 端所接入的接入网关设备中设置第一定时器, 所述第一定时器每隔老化周期 T1定时更新映射表中的映射条目;在所述移动节点切换前所接入的接入网关 设备中设置第二定时器, 所述第二定时器每隔老化周期 Τ2 定时更新对端信 息表中的对端条目。 The access gateway device according to claim 16, wherein a first timer is set in an access gateway device that is connected to the mobile node communication peer end, and the first timer is aging cycle T1 And periodically updating the mapping entry in the mapping table; setting a second timer in the access gateway device that is accessed before the mobile node is switched, and the second timer periodically updates the peer information table in the aging period Τ2 The opposite entry.
18、如权利要求 17所述的接入网关设备, 其中, 所述映射表中存储的映 射条目为所述移动节点对应的路由映射关系; 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 所述 接入网关设备还设置为: 预设一个用于标识所述移动节点在老化周期 T1 内 是否有数据报文通过的标识位并初始化所述标识位的值;判断在老化周期 T1 内所述移动节点是否有数据报文通过, 若有, 则将所述移动节点标识位的值 设为 1 , 若无, 则将所述移动节点标识位的值设为 0; 当所述第一定时器遍历 所述映射表时, 若所述移动节点标识位的值为 1 , 则将所述移动节点标识位 的值设为 0,若所述移动节点标识位的值为 0,则删除所述移动节点对应的映 射条目。 The access gateway device according to claim 17, wherein the mapping entry stored in the mapping table is a route mapping relationship corresponding to the mobile node; when the access gateway device is a mobile node communication peer end Accessing the access gateway device, the access gateway device is further configured to: preset a flag for identifying whether the mobile node passes the data packet in the aging period T1 and initialize the value of the identifier bit Determining whether the mobile node has a data packet passing in the aging period T1, if yes, setting the value of the mobile node identifier bit to 1, if not, setting the value of the mobile node identifier bit to 0: when the first timer traverses the mapping table, if the value of the mobile node identifier bit is 1, the value of the mobile node identifier bit is set to 0, if the mobile node identifier bit A value of 0 deletes the mapping entry corresponding to the mobile node.
19、如权利要求 17所述的接入网关设备, 其中, 所述对端信息表中存储 的对端条目为所述通信对端对应的相关信息; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为: 预设一个用于标识所述通信对端在老化周期 Τ2 内是否有数据报文通过的标识位并初始化所述标识位的值; 判断在老化周期 Τ2内所述通信对端是否有数据报文通过, 若有, 则将所述通信对端标识位的 值设为 1 , 若无, 则将所述通信对端标识位的值设为 0; 当所述第二定时器遍 历所述对端信息表时, 若所述通信对端标识位的值为 1 , 则将所述通信对端 标识位的值设为 0; 若所述通信对端的标识位的值为 0,则删除所述通信对端 对应的对端条目。 The access gateway device according to claim 17, wherein the peer entry stored in the peer information table is related information corresponding to the communication peer; when the access gateway device is the mobile The access gateway device that is connected before the node is switched, the access gateway device is further configured to: preset a flag for identifying whether the communication peer passes the data packet in the aging period Τ2 and initialize the location Determining the value of the identifier bit; determining whether the communication peer has a data message in the aging period Τ2, if yes, setting the value of the communication peer identifier bit to 1, if not, then the communication The value of the peer identifier bit is set to 0. When the second timer traverses the peer information table, if the value of the communication peer identifier bit is 1, the value of the communication peer identifier bit is set. Set to 0; if the value of the identifier of the communication peer is 0, delete the peer entry corresponding to the communication peer.
20、 如权利要求 17所述的接入网关设备, 其中: 当所述接入网关设备为移动节点通信对端所接入的接入网关设备, 所述 接入网关设备还设置为: 将所述 T1 的取值信息保存在所述通信对端发往所 述移动节点的数据报文中; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为:当所述移动节点通信对端与移动节点进行通信时, 提取所述移动节点通信对端所接入的接入网关设备发来的数据报文中 T1 的 取值信息, 并相应地设置老化周期 T2的取值。 The access gateway device according to claim 17, wherein: when the access gateway device is an access gateway device accessed by a mobile node communication peer, the access gateway device is further configured to: The value information of the T1 is stored in the data packet sent by the communication peer to the mobile node; when the access gateway device is the access gateway device accessed before the mobile node switches, The access gateway device is further configured to: when the mobile node communication peer communicates with the mobile node, extract the value of T1 in the data packet sent by the access gateway device accessed by the mobile node communication peer end Information, and set the value of the aging period T2 accordingly.
21、如权利要求 20所述的接入网关设备, 其中, 所述对端信息表存储的 对端条目为所述通信对端对应的相关信息; 当所述接入网关设备为所述移动节点切换前所接入的接入网关设备, 所 述接入网关设备还设置为: 预设一个用于标识所述通信对端在老化周期 T2 内是否有数据报文通过的标识位并初始化所述标识位的值; 并预设一个基础 轮询时间 T, 若判断在轮询时间 T内所述通信对端有数据报文通过, 则将所 述通信对端的标识位的值置为初始值, 若没有数据报文通过, 则将所述通信 对端的标识位的值减 1 , 当所述通信对端的标识位的值减为 0时, 则删除所 述通信对端对应的对端条目, 其中, T2>T。 The access gateway device according to claim 20, wherein the peer entry stored in the peer information table is related information corresponding to the communication peer; when the access gateway device is the mobile node The access gateway device that is connected before the handover, the access gateway device is further configured to: preset a flag for identifying whether the communication peer passes the data packet in the aging period T2 and initialize the The value of the flag bit is set; and a basic polling time T is preset. If it is determined that the data packet is passed by the communication peer end within the polling time T, the value of the flag bit of the communication peer is set to an initial value. If no data packet is passed, the value of the identifier of the communication peer is decremented by 1. When the value of the identifier of the communication peer is reduced to 0, the peer entry corresponding to the communication peer is deleted, where , T2>T.
22、如权利要求 21所述的接入网关设备, 其中, 当所述接入网关设备为 所述移动节点切换前所接入的接入网关设备, 所述接入网关设备是设置为按 如下方式初始化所述标识位的值: 根据所述老化周期 T1的取值信息, 设置所述老化周期 Τ2的取值, 并将 所述第二定时器的老化周期 Τ2的值作为所述通信对端的标志位的值。 The access gateway device according to claim 21, wherein, when the access gateway device is an access gateway device that is accessed before the mobile node switches, the access gateway device is set as follows The method initializes the value of the identifier bit: according to the value information of the aging period T1, setting the value of the aging period Τ2, and using the value of the aging period Τ2 of the second timer as the communication peer end The value of the flag bit.
23、 如权利要求 16-22中任一项所述的接入网关设备, 其中, 所述 Τ2The access gateway device according to any one of claims 16-22, wherein
2Τ1。 2Τ1.
PCT/CN2011/074350 2010-12-10 2011-05-19 Method and system for managing data messages during handover of mobile nodes WO2012075778A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010583191.0 2010-12-10
CN201010583191.0A CN102547845B (en) 2010-12-10 2010-12-10 A kind of management method of data message during switchover of mobile node in identification network and system

Publications (1)

Publication Number Publication Date
WO2012075778A1 true WO2012075778A1 (en) 2012-06-14

Family

ID=46206577

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074350 WO2012075778A1 (en) 2010-12-10 2011-05-19 Method and system for managing data messages during handover of mobile nodes

Country Status (2)

Country Link
CN (1) CN102547845B (en)
WO (1) WO2012075778A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111682959B (en) * 2015-11-24 2023-09-15 华为技术有限公司 Method for determining mapping server, routing node and autonomous system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060079235A1 (en) * 2004-10-12 2006-04-13 Samsung Electronics Co., Ltd. System and method for handover in a broadband wireless access communication system
CN1868232A (en) * 2003-08-14 2006-11-22 诺基亚公司 A communication system
CN101119312A (en) * 2007-09-13 2008-02-06 北京交通大学 Method for implementing integrated network mobile switch management
CN101431780A (en) * 2007-11-09 2009-05-13 华为技术有限公司 Method, equipment and system for implementing network optimization switch

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101128013A (en) * 2006-08-14 2008-02-20 华为技术有限公司 A switching method for access gateway in mobile communication system
CN101163334B (en) * 2006-10-12 2012-05-23 华为技术有限公司 Microwave access global intercommunication system and terminal switching method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1868232A (en) * 2003-08-14 2006-11-22 诺基亚公司 A communication system
US20060079235A1 (en) * 2004-10-12 2006-04-13 Samsung Electronics Co., Ltd. System and method for handover in a broadband wireless access communication system
CN101119312A (en) * 2007-09-13 2008-02-06 北京交通大学 Method for implementing integrated network mobile switch management
CN101431780A (en) * 2007-11-09 2009-05-13 华为技术有限公司 Method, equipment and system for implementing network optimization switch

Also Published As

Publication number Publication date
CN102547845A (en) 2012-07-04
CN102547845B (en) 2015-10-21

Similar Documents

Publication Publication Date Title
US11382175B2 (en) Method for providing a breakout PDU session for local IP access
US8711749B2 (en) Information obtaining and notification, data message forwarding and handover method and access node
JP3568852B2 (en) Method and apparatus for assigning a packet routing address for a wireless device accessing a wired subnet
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
JP3501993B2 (en) Wireless access method
EP2954713B1 (en) Method and apparatus for reconfiguring a virtual home gateway
WO2011044790A1 (en) Method for information notification and method and access node for forwarding data message during handover procedure
US10945180B2 (en) Mobility management method, apparatus, and system
US9967751B2 (en) Mobile network-based tenant network service implementation method, system, and network element
JPH11355281A (en) Mobile communication system, mobile terminal, packet gateway and ip packet routing method
CN113872845B (en) Method for establishing VXLAN tunnel and related equipment
WO2011032455A1 (en) Method, system and access gateway router for handoff management and user data management when handing off
WO2015085715A1 (en) Method for processing radio access, forwarding device, and network controller
EP2466815B1 (en) Method and system for initiating forwarding of communicaiton, information and data message and for routing configuration
WO2023035836A1 (en) Message processing method and related apparatus
US10798195B2 (en) Fast roaming with shared services in enterprise fabric based networks
WO2011050679A1 (en) Communication network and terminal access method implemented based on wimax network framework
WO2012088828A1 (en) Method, system and access gateway router for table maintenance
WO2012075778A1 (en) Method and system for managing data messages during handover of mobile nodes
WO2013083037A1 (en) Update packet processing method and system, mapping server and mobile node
WO2012083685A1 (en) Method and system for improving use efficiency of mapping and routing table
WO2011103707A1 (en) Worldwide interoperability for microwave access (wimax) system for implementing anchor handover and handover method thereof
TWI768534B (en) Multi-access edge computing device and network access control method

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

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

Country of ref document: EP

Kind code of ref document: A1