WO2009132530A1 - 报文错误检测方法、报文错误处理方法、设备及系统 - Google Patents

报文错误检测方法、报文错误处理方法、设备及系统 Download PDF

Info

Publication number
WO2009132530A1
WO2009132530A1 PCT/CN2009/070662 CN2009070662W WO2009132530A1 WO 2009132530 A1 WO2009132530 A1 WO 2009132530A1 CN 2009070662 W CN2009070662 W CN 2009070662W WO 2009132530 A1 WO2009132530 A1 WO 2009132530A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile
tunnel
packet
error
information
Prior art date
Application number
PCT/CN2009/070662
Other languages
English (en)
French (fr)
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 WO2009132530A1 publication Critical patent/WO2009132530A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Definitions

  • the present invention relates to mobile communication technologies, and in particular, to a packet error detection method, a packet error processing method, a packet error processing device, and a packet error detection processing system.
  • the next-generation mobile packet network (EPS, Evolved Packet System) can choose mobile IP as its mobility management protocol. That is to say, with the increasing demand for terminal mobility, mobile IP technology is generated on the basis of common IP technology.
  • the mobile node is anchored to the anchor point through the access gateway, and the mobile node or the access gateway registers the CoA, Care-of Address and the Home Address (HoA, Home Address) with the anchor point.
  • the mobile node can send and receive messages through the anchor, including sending packets through the uplink tunnel and receiving packets using the downlink tunnel.
  • the anchor loses the mobile IP binding registration information, and the access gateway still maintains the mobile IP binding registration information, that is, the access gateway can still move the node.
  • the sent packet is sent to the anchor point.
  • the anchor point can also forward the packet to the peer end according to the IP packet processing rule and the forwarding mechanism (that is, the packet can still be forwarded by using the uplink tunnel); however, in the downlink direction, if the anchor is used, After receiving the packet addressed to the home address of the mobile node, the point cannot forward the packet of the mobile node because the mobile IP binding registration information is not available (that is, the downlink tunnel cannot be used to forward the packet). That is to say, the two-way communication of the mobile node becomes a single pass. At present, there is no corresponding detection mechanism such as detection and error reporting for this situation. In actual operation, this kind of error condition may not be recovered within a period of time, and the user cannot successfully communicate in two directions.
  • the technical problem to be solved by the embodiments of the present invention is to provide a packet error detection method, a packet error processing method, a packet error processing device, and a packet error detection processing system, so that the mobile IP tunnel is mismatched at both ends. It can be detected and restored in time, and the corresponding error information is notified to the mobile network tunnel peer network element.
  • the present invention provides a packet error detection method, which is applicable to a mobile node using a mobile IP tunnel to send and receive a message, including:
  • the embodiment of the invention further provides a packet error processing method, including:
  • the embodiment of the invention further provides a packet error detecting device, which is suitable for the mobile node to send and receive 4 messages by using the mobile IP tunnel, including:
  • a message receiving unit configured to receive a message forwarded by using a mobile IP tunnel
  • a verification unit configured to verify a message received by the receiving unit
  • the error indication sending unit is configured to send error indication information to the peer network element of the mobile IP tunnel when receiving the result that the verification unit sends the verification failure.
  • the embodiment of the invention further provides a packet error processing device, including:
  • the error indication information receiving unit is configured to receive the packet error indication information sent by the mobile network tunnel peer network element;
  • a processing unit configured to delete or update the data connection information corresponding to the error indication information according to the error indication information.
  • the embodiment of the present invention further provides a packet error detection and processing system, including: a packet error detection device and a packet error processing device, where
  • the packet error detecting device is configured to: verify that the packet that is forwarded by the mobile IP tunnel is received, and send the error indication information to the packet error processing device when the verification fails;
  • the packet error processing device is configured to receive the packet error indication information sent by the packet error detection device, and delete or update the data connection information corresponding to the error indication information according to the error indication information.
  • the received packet is verified, and if the verification fails, the error indication information is sent to the network element corresponding to the source address of the outer IP header of the packet.
  • the error indication information is sent to the network element corresponding to the source address of the outer IP header of the packet.
  • FIG. 1 is a schematic diagram of a network architecture of an EPS according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a packet error detection method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a packet error detection method according to a first embodiment of the present invention.
  • FIG. 4 is a flowchart of a packet error detection method according to a second embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a packet error detecting apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a packet error processing device according to an embodiment of the present invention.
  • FIG. ⁇ is a schematic structural diagram of a packet error detection processing system according to an embodiment of the present invention.
  • the network of the EPS includes: a mobility management entity 12 (MME, Mobility Management Entity), which is responsible for location management, connection management, and security authentication of the user terminal 11.
  • MME mobility management entity
  • the service gateway 13 is a local access gateway of the user terminal, and the mobility management entity 12 and the service gateway 13 may also be a unified network element, that is, the access gateway 14, and the data gateway 15 is a gateway for the user terminal to access the external data network. It is also the anchor of mobile management.
  • the policy control entity 16 provides policy control decisions for the user's data connection, ie, policy decisions such as quality of service (QoS), billing, and the like.
  • QoS quality of service
  • the service gateway 13 or the access gateway 14 and the data gateway 15 use mobile IP as the mobility management protocol, and the data packets of the user terminal are forwarded to the data network through the mobile IP tunnel to implement communication with the data network.
  • FIG. 2 it is a flowchart of a packet error detection processing method according to an embodiment of the present invention, where the method includes:
  • Step 201 Receive a packet forwarded by using a mobile IP tunnel.
  • Step 202 Verify the packet.
  • Step 203 If the verification fails, sending error indication information to the peer network element of the mobile IP tunnel.
  • the network side network element receives the data packet, and first determines whether the data packet is forwarded by the mobile IP tunnel (that is, the mobile IP data packet, the same below).
  • the method for judging is: According to the encapsulation form of the agreed mobile IP tunnel, if the encapsulation form is different, the basis for judging is different; the specifics include: If the user datagram protocol (UDP, User Datagram Protocol) is used, it can be based on UDP.
  • UDP User Datagram Protocol
  • the port number is used to judge; if a Generic Routing Encapsulation (GRE) tunnel is used, it can be judged according to the generic route to the GRE key Id (Generic Routing Encapsulation Identity); if the auto-negotiation type-length is used - In the case of a TLV (Type-Length-Value) tunnel, it can be judged according to the tunnel. If only IP in IP encapsulation is used, the IP in IP is IP according to the home address and the care-of address in the IP header. The IP encapsulation is used outside the message. However, the basis for the judgment of the embodiment of the present invention is not limited to the disclosure manner, and different package forms may be adopted according to specific situations.
  • step 201 is performed to verify the mobile IP data packet and match the established mobile IP connection. If the matching fails, the sending error is indicated to the peer network element of the mobile IP tunnel, and the peer network element network element of the mobile IP tunnel includes the mobile IP registration binding network element of the mobile IP tunnel.
  • the matching method is as follows: According to the encapsulation of the mobile IP tunnel agreed upon by the registration binding, the matching item is matched by the matching mobile IP data packet, and the matching item is different according to the specific tunnel encapsulation, and specifically includes at least the following One: home address, care-of address, GRE key Id, and tunnel ID.
  • the mobile IP registration binding network element After receiving the error indication information, the mobile IP registration binding network element initiates a deregistration binding of the mobile IP; and the management network element (such as an authentication server (AAA Server) and a mobility management network element (Mobility Management Entity, referred to as a short message) After receiving the error indication information, the MME (etc.) initiates a disconnect message.
  • the registration method is not limited to the following: After the mobile IP registration binding network element receives the error indication information, it sends a corresponding registration binding, including sending a registration binding message or registering a binding revocation message, but is not limited thereto.
  • the management network element may also record operations such as error log, stop charging, and initiate data flow shutdown.
  • the management network element includes a policy decision network element, a charging network element, and an authentication server. Taking the policy decision network element as an example, the policy decision network element may initiate data flow shutdown and notification stop charging according to the received error indication information, and other management network elements that receive the error indication information perform corresponding according to their own functions. Processing.
  • the mobile IP registration binding network element or the management network element initiates operations such as deleting, updating, or re-establishing the data connection, that is, receiving the error indication.
  • the corresponding mobile IP registration binding is searched, and the data connection information corresponding to the mobile IP registration binding is deleted, or the data connection information corresponding to the mobile IP registration binding is updated.
  • the peer network element of the mobile IP tunnel deletes the connection information, the establishment of the data connection is re-initiated, or the mobile node is notified to re-initiate the establishment of the mobile node.
  • the peer network element of the mobile IP tunnel searches for the corresponding mobile IP registration binding according to the received error indication information, and notifies the management network element of the error information of the data connection.
  • the embodiment of the present invention further provides a packet error processing method, where the method includes the following steps: receiving, by the peer network element of the mobile IP tunnel, error indication information;
  • the method further includes: notifying the management network element that the data connection information corresponding to the error indication information is incorrect.
  • the notification may be performed after the error indication information is received, or after the data connection information corresponding to the error indication information is deleted or updated, which is not limited in this embodiment.
  • the method further includes: re-initiating the establishment of the data connection, or notifying the mobile node to re-initiate the establishment of the mobile node.
  • FIG. 3 it is a flowchart of a packet error detection method according to a first embodiment of the present invention.
  • a mobile node is anchored to an anchor point by using an access gateway, and a mobile node or an access gateway registers with an anchor point. Set the care-of address and home address, and establish a mobile IP tunnel between the mobile node and the access gateway to the anchor. After the mobile IP tunnel is established, the mobile node can send and receive packets through the anchor.
  • this embodiment takes an access gateway and an anchor to establish a two-way mobile IP tunnel as an example.
  • the access gateway acts as a gateway of the mobile node in the access network.
  • Figure 4 The process of packet error detection is shown in Figure 4, which includes:
  • Step 301 The access gateway receives the mobile node to send an uplink packet.
  • Step 302 After receiving the packet, the access gateway forwards the packet sent by the mobile node to the anchor point of the mobile node according to the mobile IP uplink tunnel that is established by the mobile node, where the forwarded The packet is encapsulated by the mobile IP tunnel, that is, the outer IP header of the encapsulated packet, and the destination address is filled in the anchor address.
  • Step 303 After receiving the packet forwarded by the uplink tunnel, the anchor verifies the packet according to the tunnel information (such as the home address, the care-of address, the tunnel ID, and the GRE key ID) in the packet.
  • the tunnel information such as the home address, the care-of address, the tunnel ID, and the GRE key ID
  • Related mobile IP registration binding entries including home address, care-of address, tunnel information, etc., but not limited to this). If no match is successful, the packet forwarding is considered abnormal.
  • the anchor may further check whether the content of the mobile IP registration binding entry and other connection information of the mobile node are correct, and the other connection information includes: whether the packet is sent using the correct QoS channel and/or whether Use a contracted security mechanism to send, etc.
  • the GRE tunnel is used as an example. If the packet uses the IP in IP tunnel encapsulation mode of the GRE, the anchor searches for the corresponding mobile IP registration binding entry according to the home IP address and the GRE tunnel ID. If the GRE tunnel ID is a data connection. The granularity, the anchor point can check whether the information of the data connection exists, if it does not exist, it is considered to be abnormal; if the GRE tunnel ID is the granularity of the service flow or a QoS channel, or the message includes other QoS indications, such as a flow label , Service Type (TOS, Type of Service) value, Differentiated Service Code Point (DSCP) value, etc.
  • TOS Service Type
  • DSCP Differentiated Service Code Point
  • the anchor point can also detect whether the packet uses the same QoS as the anchor point in the forwarding. If the data connection information exists but the QoS does not match, the anchor point considers the QoS control information of the data channel. Abnormal. It can be seen that the GRE tunnel is used as an example in this embodiment, and other tunnels are also applicable. The specific implementation process is similar, and is not described here.
  • the anchor further forwards the message according to the packet forwarding rule; otherwise, if there is an abnormality in the above situation. Then the anchor point thinks that an abnormality occurs, and the abnormal situation is handled as follows:
  • Step 304 The anchor sends the error indication information to the peer network element of the mobile IP tunnel.
  • the peer network element of the mobile IP tunnel uses the sender access gateway of the packet as an example, and the access gateway address can pass.
  • the source address of the outer IP header of the packet is obtained.
  • the error indication information may include: packet fragments, important message information or tunnel information (including source address, destination address, tunnel ID, GRE key ID, UDP port number, etc.), error reason information (including no relevant mobile IP entries, There is no relevant data connection information, no relevant mobile node user information, QoS errors used, etc.), but the present invention is not limited thereto and may include other corresponding information.
  • Step 305 After receiving the error indication information, the access gateway searches for the corresponding data connection according to the mobile IP entry used to send the packet according to the error indication information, and performs the data connection according to the error reason, the entry information, and the data connection information. Corresponding processing.
  • This embodiment takes three processing modes as an example, as shown in step 306, step 307, and step 308 in the figure:
  • Step 306 If the access gateway receives the error indication information, the error reason indicates that the anchor point has no relevant mobile IP entry, no relevant mobile node user information, etc., the access gateway may send a mobile IP to register the binding message, and help the anchor point. Delete the various information related to the connection, and also delete the information related to the connection, that is, clear the data connection. After the data gateway is cleared, the access gateway can re-establish the data connection establishment process to restore the communication, and can also notify the mobile node that the mobile node re-initiates the data connection establishment when needed.
  • Step 307 If the access gateway receives the error indication information, the error indication information, in addition to the situation described in step 306, may further notify the data connection of the corresponding mobile IP registration binding according to the error indication information.
  • the management network element (in this embodiment, the authentication server is taken as an example) has error information of the data connection. After receiving the error information of the data connection, the management network element may record an error message, suspend user charging, or further instruct other related network elements to connect the error information of the data connection.
  • Step 308 If the access gateway receives the error indication information, the error indication information, except for the situation described in step 306 and step 307, for example, the error reason indicates that the used QoS error, the access gateway may not delete the data connection. And just update the policy control information of the data connection, specifically:
  • the access gateway receives the error indication information, and after finding the corresponding data connection, can notify the policy decision entity. That is, the access gateway may instruct the policy decision entity to delete the policy control session of the data connection, or update the policy control information of the data connection (eg, when the QoS information of the data connection is incorrect), the policy decision entity may notify the data gateway Suspend traffic and billing, notify the application server to suspend the service of the data connection, and so on.
  • step 303 if the anchor point can find the relevant mobile IP registration binding entry, the user includes the data connection information, but the policy rule information of the data connection is incorrect (for example, the message uses the wrong QoS channel) Or sending a secure channel or the like, or the anchor information may be notified by the anchor point to the relevant management network element and the policy decision entity, the policy decision entity initiates the process of updating the policy rule, or the process of initiating the policy rule update by the anchor point , the process is similar to the above process, This is no longer a detailed description.
  • the anchor point may also receive various IP packets.
  • the verification process in this embodiment is only applicable to the verification of the mobile IP data packet. Therefore, the anchor point needs to determine which of the received data packets pass.
  • the packets forwarded by the mobile IP tunnel are judged according to the encapsulation form of the agreed mobile IP tunnel.
  • the judgment basis for the different types of encapsulation is different. Including the home address or/and the care-of address in the IP header; when using UDP encapsulation, it can also be judged according to the UDP port number; when using the GRE tunnel, it can be judged according to whether there is a GRE tunnel or GRE key Id; When the TLV is in the form of a tunnel, it is judged according to the tunnel.
  • the mobile node in this embodiment may be a network element such as a mobile user terminal or a mobile station;
  • the access gateway may specifically be a Serving GPRS Supporting Node (SGSN), a Serving Gateway, or an access system network gateway.
  • ASN-GW Acess System Network - Gateway
  • packet data service node PDSN, Packet Data Serving Node
  • the anchor point may specifically be a data gateway (PDN Gateway), a gateway GPRS support node (GGSN, Gateway GPRS Supporting) Nodes and other network elements;
  • the policy decision entity may specifically be a policy decision function network element (PDF, Policy Decision Function), a policy and charging rule function element (PCRF, Policy and Charging Rule Function).
  • PDF Policy Decision Function
  • PCRF Policy and Charging Rule Function
  • the received packet is verified, and if the verification fails, the error indication information is sent to the network element corresponding to the source address of the outer IP header of the packet.
  • the error indication information is sent to the network element corresponding to the source address of the outer IP header of the packet.
  • a mobile node is anchored to an anchor point by an access gateway, and a mobile node or an access gateway is anchored to an anchor point. Register the binding care-of address with the home address, and establish a mobile IP bidirectional tunnel to the anchor. The mobile node sends and receives packets through the anchor. The following takes the access gateway and the anchor point to establish a two-way mobile IP tunnel as an example.
  • the packet error detection and processing process includes:
  • Step 401 The anchor point serves as a gateway of the mobile node's home network, and receives the text sent to the mobile node's home address;
  • Step 402 After receiving the packet sent to the home address of the mobile node, the anchor point is based on the mobile The mobile IP downlink tunnel established by the node forwards the packet sent by the mobile node to the mobile node's care-of address.
  • the packet is encapsulated by the mobile IP tunnel, that is, the outer IP header is encapsulated, and the destination address is filled in the care-of address. That is, according to the outer IP destination address of the anchor encapsulation, the message is forwarded to the access gateway of the network where the care-of address is located.
  • Step 403 The access gateway verifies the packet according to the tunnel information (including the home address, the care-of address, the tunnel ID, the GRE key lD, and the like) in the packet, and whether there is an associated mobile IP registration binding entry, if not , then think that there is an abnormality. If yes, the access gateway can further check whether the contents of the entry and other connection information of the mobile node are correct, including whether the packet is sent using the correct QoS channel, whether the agreed security mechanism is used, or the like. If all the checks are passed, the access gateway further forwards the message according to the rules, otherwise the access gateway considers that an abnormality has occurred. For example, the packet uses the IP in IP tunnel encapsulation mode of the GRE.
  • the tunnel information including the home address, the care-of address, the tunnel ID, the GRE key lD, and the like
  • the anchor searches for the corresponding mobile IP registration binding entry according to the home IP address and the GRE tunnel ID. If the GRE tunnel ID is a data connection granularity, the anchor point can be Check whether the information of this data connection exists. If it does not exist, it is considered to be abnormal. If the GRE tunnel ID is the granularity of the service flow or a QoS channel, or other QoS information indications in the packet, such as flow label, TOS value and DSCP Value, etc., in addition to checking the data connection information, the access gateway can also detect whether the packet uses the same QoS as that maintained by the access gateway in the forwarding.
  • the access gateway If the data connection information exists but the QoS does not match, the access gateway The ingress gateway considers that the QoS control information of the data channel is abnormal.
  • the GRE tunnel is taken as an example, and other tunnels are also applicable. If all the checks are passed, the access gateway further forwards the message according to the rules. Otherwise, an abnormality is considered, and further processing is as follows.
  • the error handling procedure is as follows:
  • Step 404 The access gateway sends an error indication to the source address of the outer IP header of the packet, that is, the sender anchor of the packet.
  • the indication information may include packet fragments, important information of the packet (including source address, destination address, tunnel ID, GRE key lD, UDP port number, etc.), error reason information (no relevant mobile IP entry, no relevant data connection information, There are no relevant mobile node user information or QoS errors used, etc.).
  • Step 405 After receiving the error indication information, the anchor point searches for the corresponding data connection according to the mobile IP registration binding entry used by the error message according to the error indication information. According to the cause of the error, the letter of the item Information, data connection information processing.
  • This embodiment takes three processing modes as an example, as shown in step 406, step 407, and step 408 in the figure:
  • Step 406 If the anchor receives an error reason indicating that the access gateway does not have a related mobile IP registration binding entry or does not have related mobile node user information, the anchor point may send a mobile IP registration binding revocation message to the access gateway, and help The gateway deletes various information related to the connection, and also deletes the information related to the connection, that is, clears the data connection. The access gateway may re-initiate the data connection establishment process after the data connection is cleared, so that the communication is restored, and the mobile node may re-initiate the data connection establishment when needed. If the error reason indicates that the QoS error is used, the access gateway may also update the policy control information of the data connection without deleting the data connection, and the specific implementation process is as shown in step 408.
  • Step 407 If the anchor point receives the error indication information, the error indication information may be notified to the management network element after the data connection of the corresponding mobile IP registration binding is found according to the error indication information, except for the case described in step 406. (This embodiment takes an authentication server as an example) error information of the data connection.
  • the management network element may further indicate error information of the data connection of each related network element.
  • Step 408 If the anchor point receives the error indication information, the error indication information is compared with the case described in step 406 and step 407, and then the data connection of the corresponding mobile IP registration binding is found according to the error indication information.
  • the policy decision entity can be notified.
  • the policy decision entity may be instructed to delete the policy control session of the data connection (eg, no relevant mobile IP entry, no associated data connection information, or no relevant mobile node user information), or update policy control information for the data connection (eg, When the QoS information of the data connection is incorrect, the policy decision entity may also notify the data gateway to suspend traffic and billing, notify the application server to suspend the service of the data connection, and the like.
  • step 403 if the access gateway can find the relevant mobile IP registration binding entry, the user includes the data connection information, but the policy rule information of the data connection is incorrect (for example, the packet uses the wrong QoS)
  • the channel or the secure channel or the like may also send the error information of the data connection to the relevant management network element and the policy decision entity by the access, the policy decision entity may initiate the process of updating the policy rule, or the access gateway initiates the policy rule update. the process of.
  • the access gateway may receive various IP packets.
  • the verification process in this embodiment is only applicable to the verification of the mobile IP data packet. Therefore, the anchor point needs to determine that the received data packets are mobile IP addresses.
  • the anchor point is judged according to the encapsulation form of the agreed mobile IP tunnel. Different judgments can be made depending on the package form. Including the home address or/and the care-of address in the IP header; when using UDP encapsulation, it can also be judged according to the UDP port number; when using the GRE tunnel, it can be judged according to whether there is a GRE tunnel or GRE key Id; When the tunnel is formed, ⁇ is judged by the tunnel.
  • the embodiment of the present invention provides a processing mechanism for packet detection and error reporting of mobile IP.
  • the mobile IP tunnel is mismatched at both ends, it can be detected and restored in time, and the corresponding error can be notified to the corresponding management network element in time, thereby reducing the time for user communication interruption and avoiding being interrupted when the communication is interrupted. Billing situation.
  • the method includes the following steps: receiving a packet forwarded by the mobile IP tunnel, and verifying the packet, if the verification fails, sending an error indication message to the peer network element of the mobile IP tunnel .
  • the embodiment of the present invention further provides a packet error detecting apparatus, which is suitable for a mobile node to use a mobile IP tunnel to send and receive a message.
  • the structure of the device is shown in FIG. 5.
  • the device includes: a receiving unit 51, a verification unit 52, and an error.
  • the transmitting unit 53 is instructed.
  • the receiving unit 51 is configured to receive a packet that is forwarded by using a mobile IP tunnel, where the verification unit 52 is configured to perform verification on the packet received by the receiving unit 51, and send a verification result; the error indication sending unit 53.
  • sending error indication information to the peer network element of the mobile IP tunnel.
  • the verification unit 52 includes: a tunnel information matching unit 521, and may further include: a connection information determining unit 522 and a quality of service determining unit 523.
  • the tunnel information matching unit 521 is configured to detect whether the tunnel information in the packet matches the tunnel information corresponding to the established mobile IP connection, and if the matching fails, send a result of the matching failure to the error indication sending unit. If the matching is successful, the result of the successful matching is sent to the connection information determining unit, where the connection information determining unit 522 is configured to determine, after receiving the result that the matching is successful, the mobile IP registration binding.
  • the quality of service determining unit 523 is configured to detect whether the packet is tied in the forwarding after receiving the correct result of the connection information by the connection information determining unit 522
  • the fixed network element is sent using the same quality of service channel and/or is sent using the agreed security mechanism. If not, the quality of service control information and/or security of the data channel is determined. The entire mechanism control information is abnormal and the verification fails.
  • the device further includes: the determining unit 54 is configured to determine whether the received data packet is a packet sent by using the mobile IP tunnel, and send the determination result of the yes to the receiving unit 52.
  • the message error detecting device may be integrated in an access gateway accessed by the mobile node, or integrated in an anchor point anchored by the mobile node through the access gateway.
  • the embodiment of the present invention further provides a packet error processing device, which is shown in FIG. 6.
  • the device includes: an error indication information receiving unit 61 and a processing unit 62, and further includes an establishing unit 63 and / or notification unit 64 (in the figure, the establishment unit 63 and the notification unit 64 are simultaneously connected to the processing unit 62 as an example). among them,
  • the error indication information receiving unit 61 is configured to receive the message error indication information sent by the mobile network tunnel peer network element, and the processing unit 62 is configured to delete or update the data connection information corresponding to the error indication information.
  • the establishing unit 63 is configured to re-initiate the establishment of the data connection after the processing unit 62 deletes the data connection information corresponding to the error indication information, or notify the mobile node to re-initiate the establishment of the mobile node.
  • the notification unit 64 is configured to notify the management network element that the data connection information is incorrect after the error indication information receiving unit 61 receives the error indication.
  • the process of processing the packet by the packet error processing device is performed by taking the uplink packet as an example.
  • the error indication information receiving unit 61 receives the destination of the sent packet (for example, an anchor point is sent as an example)
  • the error indication information is sent to the processing unit 62 for processing.
  • the processing unit 62 notifies the management network element to indicate the corresponding data connection error.
  • the processing unit 62 may search for the data connection information corresponding to the corresponding mobile IP registration binding according to the error indication information, if the error reason indicates that the anchor point anchored by the access gateway does not have an associated mobile IP registration binding entry.
  • the packet error processing device When the packet error processing device processes the downlink packet, it is the reverse process of processing the uplink packet. The process is similar to the process of processing the uplink, and will not be described here.
  • the embodiment of the present invention further provides a packet error detection processing system, which is shown in FIG. 7.
  • the system includes: a packet error detecting device 71 and a packet error processing device 72, wherein the packet is
  • the error detecting device 71 is configured to: perform verification on the packet that is forwarded by the mobile IP tunnel, and send error indication information to the packet error processing device when the verification fails; the packet error processing device 72 uses And receiving the packet error indication information sent by the packet error detecting device, and deleting or updating the data connection information corresponding to the error indication information according to the error indication information.
  • the message error detecting device 71 includes: a receiving unit 711, a verifying unit 712, and an error indication transmitting unit 713; the message error processing device 72 includes: an error indication information receiving unit 721 and a processing unit 722, and may further include establishing Unit 723 and/or notification unit 724.
  • the functions and functions of the units in the packet error detecting device 71 are the same as those of the unit in FIG. 5, and details are not described herein.
  • the functions and functions of the units in the packet error processing device 72 are as described above.
  • the functions of the unit shown in FIG. 6 in the embodiment are the same, and details are not described herein again.
  • the received packet is verified, and if the verification fails, the error indication information is sent to the network element corresponding to the source address of the outer IP header of the packet.
  • the error indication information is sent to the network element corresponding to the source address of the outer IP header of the packet.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

报文错误检测方法、 报文错误处理方法、 设备及系统
本申请要求于 2008 年 4 月 30 日提交中国专利局、 申请号为 200810088706.2, 发明名称为"报文错误检测方法、 设备及系统"的中国专利申 请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通信技术,特别涉及一种报文错误检测方法、报文错误处 理方法、 报文错误处理设备及报文错误检测处理系统。
背景技术
下一代移动分组网络 ( EPS, Evolved Packet System )可以选择移动 IP作为 它的移动性管理协议。 也就是说, 随着对终端移动性的需求越来越大, 在普通 IP技术的基础上产生了移动 IP技术。
在目前的技术方案中,移动节点通过接入网关锚定到锚点,移动节点或者 接入网关向锚点注册绑定转交地址( CoA, Care-of Address )与家乡地址( HoA, Home Address ), 建立移动节点到锚点的移动 IP隧道。 之后, 移动节点可以通 过锚点收发报文, 包括利用上行隧道发送报文和利用下行隧道接收报文。
但是, 如果在某些网络节点异常的情况下, 例如, 锚点丢失了移动 IP绑 定注册信息, 而接入网关仍然维护着该移动 IP绑定注册信息, 即接入网关仍 可以把移动节点发送的报文发送给锚点, 同时锚点也可以根据 IP报文处理规 则和转发机制正常转发报文到对端(即仍然可以利用上行隧道转发报文);但, 在下行方向上,如果锚点接收到发往移动节点家乡地址的报文后, 则因为没有 移动 IP绑定注册信息, 而无法转发移动节点的报文(即不能利用下行隧道转 发报文)。 也就是说, 移动节点的双向通信变成了单通。 目前, 针对这种情况 没有相应的检测、错误报告等处理机制。 使得在实际运营中, 这种错误情况可 能在一段时间内得不到恢复, 用户无法成功的双向通信。
发明内容
本发明实施例解决的技术问题是提供一种报文错误检测方法、报文错误处 理方法、 报文错误处理设备及报文错误检测处理系统, 使得移动 IP隧道在两 端失配的情况下,可以及时被察觉并恢复,并将相应的错误信息通知到移动 IP 隧道对端网元。 为解决上述技术问题, 本发明是实施例提供一种报文错误检测方法, 适用 于移动节点利用移动 IP隧道收发^¾文, 包括:
接收通过移动 IP隧道转发的报文;
对所述报文进行验证, 若所述验证失败, 则向所述移动 IP隧道的对端网 元发送错误指示信息。
本发明实施例还提供一种报文错误处理方法, 包括:
接收移动 IP隧道的对端网元发送错误指示信息;
根据所述错误指示信息, 删除或更新错误指示信息对应的数据连接信息。 本发明实施例还提供一种报文错误检测设备,适用于移动节点利用移动 IP 隧道收发4艮文, 包括:
报文接收单元, 用于接收通过移动 IP隧道转发的报文;
验证单元, 用于对接收单元接收到的报文进行验证;
错误指示发送单元, 用于在接收到验证单元发送验证失败的结果时, 则向 所述移动 IP隧道的对端网元发送错误指示信息。
本发明实施例再提供一种报文错误处理设备, 包括:
错误指示信息接收单元, 用于接收移动 IP隧道对端网元发送的报文错误 指示信息;
处理单元,用于根据所述错误指示信息删除或更新错误指示信息对应的数 据连接信息。
本发明实施例又提供一种报文错误检测处理系统, 包括: 报文错误检测设 备和报文错误处理设备, 其中,
所述报文错误检测设备, 用于对接收到通过移动 IP隧道转发的报文进行 验证, 并在验证失败时, 向所述报文错误处理设备发送错误指示信息;
所述报文错误处理设备,用于接收报文错误检测设备发送的报文错误指示 信息, 根据所述错误指示信息删除或更新错误指示信息对应的数据连接信息。
由上述技术方案可知,本发明实施例通过对接收到的报文进行验证,如果 验证失败, 则向所述报文外层 IP头的源地址对应的网元发送错误指示信息。 以便于在使得移动 IP隧道在两端失配的情况下, 可以及时被察觉并恢复, 并 将相应的错误信息通知到对应的管理网元,从而减少用户通信中断的时间, 以 及避免在通信中断时仍被计费的情况。
附图说明
图 1为本发明实施例中 EPS的网络架构示意图;
图 2为本发明实施例中报文错误检测方法的流程图;
图 3为本发明第一实施例中报文错误检测方法的流程图;
图 4为本发明第二实施例中报文错误检测方法的流程图;
图 5为本发明实施例中报文错误检测设备的结构示意图;
图 6为本发明实施例中报文错误处理设备的结构示意图;
图 Ί为本发明实施例中报文错误检测处理系统的结构示意图。
具体实施方式
下面我们将结合附图, 对本发明的实施方案进行伴细描述。
请参阅图 1 , 为本发明实施例中 EPS的网络架构示意图, 所述 EPS的网 络包括: 移动管理实体 12 ( MME, Mobility Management Entity ), 负责用户终 端 11的位置管理、 连接管理和安全认证等, 服务网关 13 , 是用户终端的本地 接入网关,移动管理实体 12与服务网关 13也可以是合一的网元, 即接入网关 14,数据网关 15是用户终端访问外部数据网络的网关,也是移动管理的锚点。 策略控制实体 16为用户的数据连接提供策略控制决策, 即服务质量(QoS , Quality of Service )、 计费等的规则决策。
服务网关 13或者接入网关 14与数据网关 15之间采用移动 IP作为移动管 理协议, 用户终端的数据报文通过移动 IP隧道转发到数据网, 实现与数据网 的通信。
请参阅图 2, 为本发明实施例中报文错误检测处理方法的流程图, 所述方 法包括:
步骤 201 : 接收通过移动 IP隧道转发的报文;
步骤 202: 对所述报文进行验证;
步骤 203 : 若所述验证失败, 则向所述移动 IP隧道的对端网元发送错误 指示信息。
在本发明实施例中, 在步骤 201之前, 网络侧网元接收到数据报文, 先判 断所述数据报文是否通过移动 IP隧道转发的报文(即移动 IP数据报文,下同), 其判断方法为: 可以根据约定的移动 IP隧道的封装形式判断, 如果封装形式 不同, 而判断的依据也不同; 具体包括: 如果使用用户数据包协议(UDP, User Datagram Protocol )封装, 可以根据 UDP的端口号来判断; 如果使用通 用路由封装( GRE , Generic Routing Encapsulation ) 隧道 , 可以 据通用路由 去于装1¾道标识 ( GRE key Id, Generic Routing Encapsulation Identity )判断; 如 果使用自协商的类型 -长度 -域值 ( TLV, Type-Length-Value )形式隧道时, 可以根据该隧道判断; 如果只使用 IP in IP封装时, 根据 IP头中的家乡地址、 转交地址判断, 所述 IP in IP就是 IP报文外面再使用 IP封装。 但本发明实施 例判断的依据并不限于公开方式, 可以^^据具体情况采用不同的封装形式。
如果判断所述数据报文是通过移动 IP隧道转发的报文(即移动 IP数据报 文), 则执行步骤 201, 对所述移动 IP数据报文进行验证, 匹配到已建立的移 动 IP连接, 如果匹配失败, 发送错误指示给移动 IP隧道的对端网元, 所述移 动 IP隧道的对端网元网元包括移动 IP隧道的移动 IP注册绑定网元等。 其中 , 匹配方法为: 根据注册绑定时约定的移动 IP隧道的封装, 通过匹配项匹配接 收到的移动 IP数据报文, 所述匹配项根据具体的隧道封装而不同, 具体至少 可包括下述之一: 家乡地址、 转交地址、 GRE key Id和隧道 ID。
所述移动 IP注册绑定网元接收到错误指示信息后,发起移动 IP的解注册 绑定;而所述管理网元(比如认证服务器( AAA Server )、移动管理网元( Mobility Management Entity, 简称 MME )等)接收到错误指示信息后, 发起去连接消 息。 具体去注册绑定方法: 移动 IP注册绑定网元接收到错误指示信息后, 发 起相应的去注册绑定, 包括发送去注册绑定消息或者注册绑定撤销消息等,但 并不限于此。
此外, 所述管理网元收到指示信息后, 还可以记录错误日志、停止计费和 发起数据流关闭等操作。 其中, 管理网元包括策略决策网元、 计费网元和认证 服务器等。 以策略决策网元为例, 所述策略决策网元可以根据接收到的错误指 示信息,发起数据流关闭和通知停止计费等,其他接收到错误指示信息的管理 网元根据自身的功能进行相应的处理。
优选的, 所述移动 IP注册绑定网元或管理网元接收到错误指示信息后, 发起数据连接的删除、 更新或者重新建立等操作, 也就是说, 在接收到错误指 示信息后, 查找对应的移动 IP注册绑定, 并删除查找到所述移动 IP注册绑定 对应的数据连接信息, 或者更新所述移动 IP注册绑定对应的数据连接信息。 之后, 在所述移动 IP隧道的对端网元删除所述连接信息后, 重新发起数据连 接的建立 , 或者通知所述移动节点重新发起移动节点的建立。
优选的, 所述移动 IP隧道的对端网元根据接收到的错误指示信息查找到 对应的移动 IP注册绑定, 并通知管理网元所述数据连接的错误信息。
相应的,本发明实施例还提供一种报文错误处理方法,所述方法包括步骤: 接收移动 IP隧道的对端网元发送错误指示信息;
根据所述错误指示信息, 删除或更新错误指示信息对应的数据连接信息。 其中, 所述方法还包括: 通知管理网元所述错误指示信息对应的数据连接 信息错误。可以在接收到错误指示信息后,也可以在删除或更新错误指示信息 对应的数据连接信息后进行通知 , 本实施例不作限制。
其中, 在所述移动 IP隧道的对端网元删除对应的连接信息后, 所述方法 还包括: 重新发起数据连接的建立,或者通知所述移动节点重新发起移动节点 的建立。
为了便于本领域技术人员的理解,下面结合附图与实施例对本发明进行详 细的描述。
请参阅图 3 , 为本发明第一实施例中报文错误检测方法的流程, 在该实施 例中,移动节点通过接入网关锚定到锚点,移动节点或者接入网关向锚点注册 绑定转交地址与家乡地址, 建立移动节点和接入网关到锚点的移动 IP隧道。 在移动 IP隧道建立后, 移动节点可以通过锚点收发报文。 在收发报文的过程 中, 该实施例以接入网关与锚点建立双向移动 IP隧道为例, 在该实施例中, 接入网关作为移动节点在接入网的网关。报文错误检测的流程如图 4所示,具 体包括:
步骤 301、 接入网关接收移动节点发送上行报文;
步骤 302、 接入网关在接收到所述报文后, 根据为该移动节点已建立的移 动 IP上行隧道, 将该移动节点所发送的报文转发给该移动节点的锚点, 所述 转发的报文使用移动 IP隧道进行封装, 即封装报文的外层 IP头, 目的地址填 写锚点地址。 步骤 303、 锚点在接收到上行隧道转发的报文后, 对所述报文进行验证, 根据报文中的隧道信息(比如家乡地址、转交地址、隧道 ID和 GRE key ID等 ) 匹配是否有相关的移动 IP注册绑定表项 (包括家乡地址、 转交地址、 隧道信 息等, 但并不限于此), 如果没有匹配成功, 则认为报文转发出现异常。 如果 匹配成功, 锚点可以进一步检查移动 IP注册绑定表项的内容以及该移动节点 的其他连接信息是否正确, 所述其他连接信息包括: 报文是否使用了正确的 QoS通道发送和 /或是否使用了约定的安全机制发送等。
下面以 GRE隧道为例, 如果报文使用 GRE的 IP in IP隧道封装方式, 锚 点才 据家乡 IP地址和 GRE隧道 ID查找对应的移动 IP注册绑定表项, 如果 GRE隧道 ID是一个数据连接的粒度, 则锚点可以检查此数据连接的信息是否 存在, 如果不存在, 则认为出现异常; 如果 GRE隧道 ID是业务流或者一个 QoS通道的粒度, 或者报文包括其他 QoS指示, 如流标签、 服务类型 (TOS, Type of Service )值、区分服务代码点( DSCP, Differentiated Service Code Point ) 值等。那么锚点除检查数据连接信息外,还可以检测该报文在转发中是否使用 了与锚点相同的 QoS, 如果数据连接信息存在, 但 QoS不匹配, 则锚点认为 数据通道的 QoS控制信息出现异常。 由此可知, 本实施例只是以 GRE隧道为 例, 其他隧道也同样适用, 具体的实现过程类似, 在此不在赘述-。
如果上述情况都正常,则锚点根据报文转发规则进一步转发该报文;否则 , 如果上述情况有一处出现异常。 则锚点认为出现异常,对于异常情况进行如下 处理:
假设由于某种原因, 锚点维护的移动 IP注册绑定表项、 该移动节点相关 的连接信息或者 QoS控制信息出现错误, 具体的处理流程如下:
步骤 304、 锚点发送错误指示信息给移动 IP隧道的对端网元, 本实施例 中移动 IP隧道的对端网元, 以该报文的发送方接入网关为例 , 接入网关地址 可以通过该报文外层 IP头的源地址获取。错误指示信息可以包括: 报文片断、 报文重要信息或隧道信息(包括源地址、 目的地址、 隧道 ID、 GRE key ID、 UDP端口号等)、 错误原因信息(包括没有相关移动 IP表项、 没有相关数据 连接信息、 没有相关移动节点用户信息、 使用的 QoS错误等), 但本发明并不 限于此, 可以是包括其它相应的信息。 步骤 305、 接入网关接收到错误指示信息后, 根据所述错误指示信息对应 到发送该报文使用的移动 IP表项, 查找对应的数据连接, 根据错误原因、 表 项信息、数据连接信息进行相应的处理。 本实施例以三种处理方式为例, 具体 如图中步骤 306、 步骤 307和步骤 308所示:
步骤 306、 如果接入网关收到错误指示信息, 该错误原因指示锚点没有相 关移动 IP表项、 没有相关移动节点用户信息等, 接入网关可以发送移动 IP去 注册绑定消息, 帮助锚点删除该连接相关的各种信息, 同时也删除自己的该连 接相关的信息, 即清除该数据连接。接入网关可以在清除数据连接后, 重新发 起数据连接建立过程, 使得通信恢复, 也可以通知移动节点, 由移动节点在需 要时重新发起数据连接建立。
步骤 307、 如果接入网关接收到错误指示信息, 该错误指示信息除了步骤 306所述情况外, 则4 据所述错误指示信息查找到对应的移动 IP注册绑定的 数据连接后, 还可以通知管理网元(本实施例以认证服务器为例 )该数据连接 的错误信息。管理网元在接收到该数据连接的错误信息后,可以记录错误曰志、 暂停用户计费或者进一步指示其他相关网元该数据连接的错误信息。
步骤 308、 如果接入网关接收到错误指示信息, 所述错误指示信息除了步 骤 306和步骤 307所述的情况外 , 比如错误原因指示使用的 QoS错误, 那么 接入网关也可以不删除数据连接, 而仅仅更新数据连接的策略控制信息,具体 为:
接入网关接收到错误指示信息, 查找到对应的数据连接后,可以通知策略 决策实体。也就是说,接入网关可以指示策略决策实体删除该数据连接的策略 控制会话, 或者更新该数据连接的策略控制信息 (例如, 当数据连接的 QoS 信息错误时), 策略决策实体可以通知数据网关暂停流量以及计费、 通知应用 服务器暂停该数据连接的业务等。
其中 , 在步骤 303中 , 如果锚点可以查找到相关的移动 IP注册绑定表项、 用户包括数据连接信息, 但是数据连接的策略规则信息不正确时(例如, 报文 使用了错误的 QoS通道或者安全通道等发送), 也可以由锚点通知该数据连接 的错误信息给相关的管理网元与策略决策实体,策略决策实体发起策略规则更 新的过程, 或者由锚点发起策略规则更新的过程, 该过程与上述过程类似, 在 此不再详细的描述。
在步骤 303中, 锚点也可能接收到各种 IP报文, 本实施例中的验证过程 只适用于移动 IP数据报文的验证, 所以锚点需要判断接收到的数据报文中哪 些是通过移动 IP隧道转发的报文,锚点根据约定的移动 IP隧道的封装形式来 判断, 由于封装形式不同, 可使用的判断依据也不同。 包括根据 IP头中的家 乡地址或 /和转交地址判断; 使用 UDP封装时, 还可以根据 UDP的端口号判 断; 使用 GRE隧道时, 可以根据是否有 GRE隧道或者 GRE key Id判断; 使 用自协商的 TLV形式隧道时, 据该隧道判断等。
本实施例中的移动节点可以是移动用户终端、移动台等网元;接入网关具 体可以是服务 GPRS支持节点( SGSN, Serving GPRS Supporting Node )、服务 网关( Serving Gateway )、接入系统网络网关( ASN-GW, Acess System Network - Gateway )、 分组数据服务节点 ( PDSN, Packet Data Serving Node )等网元; 锚点具体可以是数据网关 (PDN Gateway )、 网关 GPRS支持节点 ( GGSN, Gateway GPRS Supporting Node )等网元; 策略决策实体具体可以是策略决策 功能网元( PDF , Policy Decision Function )、策略与计费规则功能网元( PCRF , Policy and Charging Rule Function )等。
本发明实施例通过对接收到的报文进行验证,如果验证失败, 则向所述报 文外层 IP头的源地址对应的网元发送错误指示信息。 以便于在使得移动 IP隧 道在两端失配的情况下,可以及时被察觉并恢复, 并将相应的错误信息通知到 对应的管理网元,从而减少用户通信中断的时间 , 以及避免在通信中断时仍被 计费的情况。
请参阅图 4, 为本发明第二实施例中报文错文检测处理方法的流程, 在本 实施例中,移动节点通过接入网关锚定到锚点,移动节点或者接入网关向锚点 注册绑定转交地址与家乡地址, 建立到锚点的移动 IP双向隧道。 移动节点通 过锚点收发报文。 下面以接入网关与锚点建立双向移动 IP隧道为例, 报文错 误检测及处理流程包括:
步骤 401、 锚点作为移动节点的家乡网络的网关, 接收发往移动节点家乡 地址的 文;
步骤 402、 锚点在接收到发往移动节点家乡地址的报文后, 根据为该移动 节点已建立的移动 IP下行隧道, 转发该移动节点所发送的报文到移动节点的 转交地址, 报文使用移动 IP隧道封装, 即封装外层 IP头, 目的地址填写转交 地址。 也就是说, 根据锚点封装的外层 IP 目的地址, 报文被转发到转交地址 所在网络的接入网关。
步骤 403、 接入网关对报文进行验证, 根据报文中的隧道信息(包括家乡 地址、 转交地址、 隧道 ID、 GRE key lD等) 匹配是否有相关的移动 IP注册绑 定表项, 如果没有, 则认为出现异常。 如果有, 接入网关可以进一步检查表项 内容以及该移动节点的其他连接信息是否正确, 包括,报文是否使用了正确的 QoS通道发送、是否使用了约定的安全机制发送等。 如果一切检查通过, 则接 入网关根据规则进一步转发报文, 否则接入网关认为出现异常。 例如, 报文使 用 GRE的 IP in IP隧道封装方式, 锚点根据家乡 IP地址和 GRE隧道 ID查找 对应的移动 IP注册绑定表项, 如果 GRE隧道 ID是一个数据连接的粒度, 则 锚点可以检查此数据连接的信息是否存在, 如果不存在, 则认为出现异常; 如 果 GRE隧道 ID是业务流或者一个 QoS通道的粒度, 或者报文中有其他 QoS 信息指示, 如流标签、 TOS值和 DSCP值等, 那么接入网关除检查数据连接 信息外, 还可以检测该报文在转发中是否使用了与接入网关所维护的相同的 QoS, 如果数据连接信息存在, 但 QoS 不匹配, 则接入网关认为数据通道的 QoS控制信息出现异常。 此处以 GRE隧道为例, 其他隧道也同样适用。 如果 一切检查通过, 则接入网关根据规则进一步转发报文, 否则认为出现异常, 进 一步处理如下。
假设由于某种原因, 接入网关维护的移动 IP表项或者该移动节点相关的 连接信息出现错误, 错误处理流程如下:
步骤 404、 接入网关发送错误指示给报文外层 IP头的源地址, 即报文的 发送方锚点。 指示信息可以包含报文片断、报文重要信息(包括源地址、 目的 地址、 隧道 ID、 GRE key lD, UDP端口号等)、 错误原因信息(没有相关移动 IP表项、没有相关数据连接信息、没有相关移动节点用户信息或者使用的 QoS 错误等)等。
步骤 405、 锚点接收到错误指示信息后, 根据错误指信息对应到发送报文 使用的移动 IP注册绑定表项, 查找对应的数据连接。 根据错误原因、 表项信 息、数据连接信息处理。本实施例以三种处理方式为例,具体如图中步骤 406、 步骤 407和步骤 408所示:
步骤 406、 如果锚点收到错误原因指示接入网关没有相关移动 IP注册绑 定表项或者没有相关移动节点用户信息等, 锚点可以向接入网关发送移动 IP 注册绑定撤销消息, 帮助接入网关删除该连接相关的各种信息, 同时也删除自 己的该连接相关的信息,即清除该数据连接。接入网关可以在清除数据连接后 , 重新发起数据连接建立过程,使得通信恢复,也可以由移动节点在需要时重新 发起数据连接建立。 如果收到错误原因指示使用的 QoS错误, 那么接入网关 也可以不删除数据接, 而仅仅更新数据连接的策略控制信息,其具体的实现过 程如步骤 408所示。
步骤 407、 如果锚点接收到错误指示信息, 该错误指示信息除步骤 406所 述的情况外, 则根据错误指示信息查找到对应的移动 IP注册绑定的数据连接 后, 还可以通知管理网元(本实施例以认证服务器为例 )该数据连接的错误信 息。 所述管理网元可以进一步指示各个相关网元该数据连接的错误信息。
步骤 408、 如果锚点接收到错误指示信息, 该错误指示信息除步骤 406、 步骤 407所述的情况外, 则^^据错误指示信息查找到对应的移动 IP注册绑定 的数据连接后,还可以通知策略决策实体。可以指示策略决策实体删除该数据 连接的策略控制会话(例如, 没有相关移动 IP表项、 没有相关数据连接信息、 或者没有相关移动节点用户信息时),或者更新该数据连接的策略控制信息(例 如, 当数据连接的 QoS信息错误时), 策略决策实体还可以通知数据网关暂停 流量以及计费、 通知应用服务器暂停该数据连接的业务等。
其中, 在步骤 403中, 如果接入网关可以查找到相关的移动 IP注册绑定 表项、用户包括数据连接信息,但是数据连接的策略规则信息不正确时(例如, 报文使用了错误的 QoS通道或者安全通道等发送), 也可以由接入通知该数据 连接的错误信息给相关的管理网元与策略决策实体,策略决策实体可以发起策 略规则更新的过程 , 或者接入网关发起策略规则更新的过程。
在步骤 403中, 接入网关可能接收到各种 IP报文, 本实施例的验证过程 只适用于移动 IP数据报文的验证, 所以锚点需要判断接收到的数据报文中那 些是移动 IP隧道转发的报文。 锚点根据约定的移动 IP隧道的封装形式判断, 封装形式不同可使用的判断依据不同。 包括根据 IP头中的家乡地址或者 /和转 交地址判断; 使用 UDP封装时, 还可以根据 UDP端口号判断; 使用 GRE隧 道时, 可以根据是否有 GRE隧道或者 GRE key Id判断; 使用自协商的 TLV 形式隧道时, ^居该隧道判断等。
由此可见, 本发明实施例提供一种移动 IP的报文检测、 错误报告的处理 机制。 使得移动 IP隧道在两端失配的情况下, 可以及时被察觉并恢复, 相应 的错误可以被及时通知到相应的管理网元,从而减少用户通信中断的时间, 以 及避免在通信中断时仍被计费的情况。
本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可 以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取 存储介质中 (如: ROM/RAM、 磁碟、 光盘等)。 该程序在执行时, 包括如下 步骤: 接收通过移动 IP隧道转发的报文; 对所述报文进行验证, 若所述验证 失败, 则向所述移动 IP隧道的对端网元发送错误指示信息。
另外, 本发明实施例还提供一种报文错误检测设备,适用于移动节点利用 移动 IP隧道收发报文, 其结构示意图详见图 5, 所述设备包括: 接收单元 51、 验证单元 52和错误指示发送单元 53。其中所述接收单元 51 , 用于接收通过移动 IP隧道转发的报文; 所述验证单元 52, 用于对接收单元 51接收到的报文进行验 证, 并发送验证结果; 所述错误指示发送单元 53 , 用于在接收到验证单元 52 发送验证失败的结果时, 则向所述移动 IP隧道的对端网元发送错误指示信息。
所述验证单元 52包括: 隧道信息匹配单元 521, 还可以包括: 连接信息 确定单元 522和服务质量判断单元 523。 其中所述隧道信息匹配单元 521, 用 于检测所述报文中的隧道信息是否与已建立的移动 IP连接对应的隧道信息相 匹配,如果匹配失败,向错误指示发送单元发送匹配失败的结果;若匹配成功, 则将匹配成功的结果发送给连接信息确定单元, 所述连接信息确定单元 522, 用于在接收到隧道信息匹配单元 521发送匹配成功的结果后,判断所述移动 IP 注册绑定表项的内容是否正确, 并发送判断的结果; 服务质量判断单元 523 , 用于在接收到连接信息确定单元 522发送连接信息正确的结果后,用于检测所 述报文在转发中是否与绑定网元使用相同的服务质量通道发送和 /或是否使用 了约定的安全机制发送, 若否, 则确定数据通道的服务质量控制信息和 /或安 全机制控制信息出现异常, 验证失败。
所述设备还包括: 判断单元 54, 用于判断接收到的数据报文是否为通过 移动 IP隧道发送的报文, 并将是的判断结果发送给接收单元 52。
所述报文错误检测设备可以集成在所述移动节点接入的接入网关,或集成 在移动节点通过接入网关锚定的锚点。
所述设备中各个单元功能和作用的实现过程与上述方法中对应步骤的实 现过程类似, 在此不再赘述。
另夕卜,本发明实施例还提供一种报文错误处理设备, 其结构示意图详见图 6, 所述设备包括: 错误指示信息接收单元 61和处理单元 62, 进一步还可以 包括建立单元 63和 /或通知单元 64(图中以建立单元 63和通知单元 64同时与 处理单元 62相连为例)。 其中,
所述错误指示信息接收单元 61, 用于接收移动 IP隧道对端网元发送的报 文错误指示信息; 所述处理单元 62, 用于删除或更新错误指示信息对应的数 据连接信息。 所述建立单元 63 , 用于在处理单元 62删除错误指示信息对应的 数据连接信息后, 重新发起数据连接的建立,或者通知所述移动节点重新发起 移动节点的建立。 所述通知单元 64, 用于在所述错误指示信息接收单元 61接 收到错误指示后, 通知管理网元对应的数据连接信息错误。
在本实施例中 , 报文错误处理设备处理报文的过程以处理上行报文为例 , 当错误指示信息接收单元 61在接收到所述发送报文目的端 (以如锚点为例) 发送的错误指示信息后, 将所述错误指示信息发送给处理单元 62进行处理, 所述处理单元 62在所述错误指示信息接收单元接收到错误指示后, 通知管理 网元错误指示对应的数据连接错误, 比如处理单元 62可以根据所述错误指示 信息查找对应的移动 IP注册绑定对应的数据连接信息, 若错误原因指示所述 接入网关锚定的锚点没有相关的移动 IP注册绑定表项, 没有所述移动节点的 用户信息, 则向所述该移动节点锚定的锚点发起移动 IP去注册绑定; 或者在 查找到对应的数据连接后, 则通知管理网元所述数据连接的错误指示信息, 并 指示所述管理网元(比如认证服务器、 策略控制实体等)记录错误日志或暂停 用户计费; 或者通知所述管理网元删除或者更新所述数据连接的信息;
报文错误处理设备在处理下行报文时是处理上行报文的反过程,具体处理 过程与处理上行过程类似, 在此不再赘述。
此外,本发明实施例还提供一种报文错误检测处理系统, 其结构示意图详 见图 7, 所述系统包括: 报文错误检测设备 71和报文错误处理设备 72, 其中, 所述报文错误检测设备 71 , 用于对接收到通过移动 IP隧道转发的报文进行验 证, 并在验证失败时, 向所述报文错误处理设备发送错误指示信息; 所述报文 错误处理设备 72, 用于接收报文错误检测设备发送的报文错误指示信息, 根 据所述错误指示信息删除或更新错误指示信息对应的数据连接信息。
所述报文错误检测设备 71 包括; 接收单元 711、 验证单元 712和错误指 示发送单元 713; 所述报文错误处理设备 72包括:错误指示信息接收单元 721 和处理单元 722, 进一步还可以包括建立单元 723和 /或通知单元 724。
其中所述报文错误检测设备 71中各个单元的功能和作用与图 5中所述单 元的功能相同, 在此不再赘述; 所述报文错误处理设备 72中各个单元的功能 和作用与上述实施例中图 6所述单元的功能相同, 在此不再赘述。
本发明实施例通过对接收到的报文进行验证,如果验证失败, 则向所述报 文外层 IP头的源地址对应的网元发送错误指示信息。 以便于在使得移动 IP隧 道在两端失配的情况下,可以及时被察觉并恢复, 并将相应的错误信息通知到 对应的管理网元,从而减少用户通信中断的时间 , 以及避免在通信中断时仍被 计费的情况。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通 技术人员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些改进和润饰也应视为本发明的保护范围。

Claims

权 利 要 求
1、 一种报文错误检测方法, 其特征在于, 包括:
接收通过移动 IP隧道转发的报文;
对所述报文进行验证, 若所述验证失败, 则向所述移动 IP隧道的对端网 元发送错误指示信息。
2、 根据权利要求 1所述报文错误检测方法, 其特征在于, 所述对报文进 行验证的步骤, 包括:
判断所述报文是否匹配到已建立的移动 IP连接, 如果匹配失败, 则验证 失败, 执行向所述移动 IP隧道的对端网元发送错误指示信息的步骤。
3、 根据权利要求 2所述报文错误检测方法, 其特征在于, 所述匹配的过 程包括: 将所述报文中携带的隧道信息与已建立的移动 IP连接时注册的隧道 信息相匹配。
4、 根据权利要求 3所述报文错误检测方法, 其特征在于, 所述移动 IP隧 道的对端网元包括: 移动 IP隧道的移动 IP注册绑定网元。
5、 根据权利要求 4所述报文错误检测方法, 其特征在于, 所述隧道信息 至少包括下述之一: 移动节点的家乡地址、 转交地址、 隧道标识和通用路由封 装隧道标识。
6、 根据权利要求 2所述报文错误检测方法, 其特征在于, 所述对报文进 行验证的步骤, 还包括:
如果匹配成功, 判断移动 IP注册绑定表项的内容以及该移动节点的其他 连接信息是否正确, 若不正确, 执行向所述移动 IP隧道的对端网元发送错误 指示信息的步骤。
7、 根据权利要求 6所述报文错误检测方法, 其特征在于, 所述判断移动 节点的其他连接信息是否正确, 具体包括:
所述报文是否使用正确的服务质量通道发送, 或 /和, 所述报文是否使用 约定的安全机制发送。
8、 根据权利要求 1至 7任一项所述报文错误检测方法, 其特征在于, 所 述方法还包括:
判断接收到的所述报文是否为移动 IP数据报文, 若是, 则执行对所述报 文进行验证的步骤。
9、 根据权利要求 8所述报文错误检测方法, 其特征在于, 所述判断所述 报文是否为移动 IP数据报文的方式为: 根据移动 IP隧道的封装形式, 具体至 少包括下述之一:
如果使用用户数据包协议封装, 则根据用户数据包协议的端口号判断; 如果使用通用路由隧道封装, 则根据通用路由封装隧道标识判断; 如果使用自协商的类型 -长度 -值形式隧道封装, 则根据该隧道判断; 如果只使用 IP in IP封装, 则根据 IP头中的家乡地址和转交地址判断。
10、 一种报文错误处理方法, 其特征在于, 包括:
接收移动 IP隧道的对端网元发送错误指示信息;
根据所述错误指示信息, 删除或更新错误指示信息对应的数据连接信息。
11、根据权利要求 10所述报文验证方法, 其特征在于, 所述方法还包括: 通知管理网元所述错误指示信息对应的数据连接错误。
12、根据权利要求 10或 11所述报文错误处理方法, 其特征在于, 在所述 移动 IP隧道的对端网元删除所述连接信息后, 所述方法还包括:
重新发起数据连接的建立 ,或者通知所述移动节点重新发起移动节点的建 立。
13、 一种报文错误检测设备, 其特征在于, 包括:
报文接收单元, 用于接收通过移动 IP隧道转发的报文;
验证单元, 用于对接收单元接收到的报文进行验证;
错误指示发送单元, 用于在接收到验证单元发送验证失败的结果时, 则向 所述移动 IP隧道的对端网元发送错误指示信息。
14、 根据权利要求 13所述的报文错误检测设备, 其特征在于, 所述验证 单元包括:
隧道信息匹配单元,用于检测所述报文中的隧道信息是否与已建立的移动
IP连接对应的隧道信息相匹配, 并发送匹配的结果;
所述错误指示发送单元,具体用于在接收到隧道信息匹配单元发送匹配失 败的结果时, 则向所述移动 IP隧道的对端网元发送错误指示信息。
15、 根据权利要求 14所述的报文错误检测设备, 其特征在于, 所述验证单元还包括: 连接信息确定单元和服务质量判断单元, 其中, 所述连接信息确定单元,用于在接收到隧道信息匹配单元发送匹配成功的 结果后, 判断所述移动 IP注册绑定表项的内容, 并发送判断的结果;
所述服务质量判断单元,用于在接收到连接信息确定单元发送连接信息正 通道发送和 /或是否使用了约定的安全机制发送, 若否, 则确定数据通道的服 务质量控制信息和 /或安全机制控制信息出现异常, 验证失败。
16、根据权利要求 11至 15任一项所述的报文错误检测设备,其特征在于, 所述设备还包括:
判断单元, 用于判断接收到的数据报文是否为通过移动 IP隧道发送的报 文, 并将是的判断结果发送给接收单元。
17、根据权利要求 11至 15任一项所述的报文错误检测设备,其特征在于, 所述报文错误检测设备集成在所述移动节点接入的接入网关,或集成在移动节 点通过接入网关锚定的锚点。
18、 一种报文错误处理设备, 其特征在于, 包括:
错误指示信息接收单元, 用于接收报文错误指示信息;
处理单元,用于根据所述错误指示信息删除或更新错误指示信息对应的数 据连接信息。
19、 根据权利要求 18所述的报文错误处理设备, 其特征在于, 所述设备 还包括:
建立单元, 用于在处理单元删除错误指示信息对应的数据连接信息后, 重 新发起数据连接的建立 , 或者通知所述移动节点重新发起移动节点的建立。
20、根据权利要求 18或 19所述的报文错误处理设备, 其特征在于, 所述 设备还包括:
通知单元, 用于在所述错误指示信息接收单元接收到错误指示后, 通知管 理网元错误指示对应的数据连接错误。
21、 一种报文错误检测处理系统, 其特征在于, 包括: 报文错误检测设备 和报文错误处理设备, 其中,
所述报文错误检测设备, 用于对接收到通过移动 IP隧道转发的报文进行 验证, 并在验证失败时, 向所述报文错误处理设备发送错误指示信息; 所述报文错误处理设备,用于接收报文错误检测设备发送的报文错误指示 信息, 根据所述错误指示信息删除或更新错误指示信息对应的数据连接信息。
22、 根据权利要求 21所述报文错误检测处理系统, 其特征在于, 所述报文错误检测设备包括:
报文接收单元, 用于接收通过移动 IP隧道转发的报文;
验证单元, 用于对接收单元接收到的报文进行验证;
错误指示发送单元, 用于在接收到验证单元发送验证失败的结果时, 则向 所述移动 IP隧道的对端网元发送错误指示信息;
所述报文错误处理设备包括:
错误指示信息接收单元, 用于接收移动 IP隧道对端网元发送的报文错误 指示信息;
处理单元,用于根据所述错误指示信息删除或更新错误指示信息对应的数 据连接信息。
PCT/CN2009/070662 2008-04-30 2009-03-06 报文错误检测方法、报文错误处理方法、设备及系统 WO2009132530A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2008100887062A CN101572584B (zh) 2008-04-30 2008-04-30 报文错误检测方法、设备及系统
CN200810088706.2 2008-04-30

Publications (1)

Publication Number Publication Date
WO2009132530A1 true WO2009132530A1 (zh) 2009-11-05

Family

ID=41231828

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/070662 WO2009132530A1 (zh) 2008-04-30 2009-03-06 报文错误检测方法、报文错误处理方法、设备及系统

Country Status (2)

Country Link
CN (1) CN101572584B (zh)
WO (1) WO2009132530A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101085A1 (zh) * 2015-12-17 2017-06-22 华为技术有限公司 确定通用路由封装gre隧道标识的方法、设备和系统
CN113839859A (zh) * 2020-06-23 2021-12-24 华为技术有限公司 一种报文通告的方法以及相关装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098778B (zh) * 2009-12-09 2013-09-11 电信科学技术研究院 基站能力确定方法、系统和设备
CN102104915B (zh) * 2009-12-22 2016-01-27 中国移动通信集团公司 一种基于PMIP的QoS控制方法和系统
CN103024678B (zh) * 2012-12-17 2015-05-06 海能达通信股份有限公司 Dmr基站中传输中速媒体业务数据的方法、装置及系统
CN106953777A (zh) * 2016-01-06 2017-07-14 中兴通讯股份有限公司 一种实现报文检错的方法及装置
CN106953773A (zh) * 2016-01-06 2017-07-14 中兴通讯股份有限公司 一种实现报文检错的方法及装置
CN108668337B (zh) * 2017-03-31 2020-07-28 华为技术有限公司 关联消息处理装置及方法
CN109995557B (zh) * 2017-12-29 2022-05-13 中国移动通信集团陕西有限公司 一种通信方法及装置
CN114826987A (zh) * 2022-04-01 2022-07-29 阿里云计算有限公司 网关转发异常检测方法、设备、介质及产品

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625155A (zh) * 2003-12-02 2005-06-08 三星电子株式会社 互联网协议分组错误处理设备及其方法和计算机可读介质
CN101047560A (zh) * 2006-06-06 2007-10-03 华为技术有限公司 一种多主机架构下的移动ip管理系统及方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863101A (zh) * 2005-10-18 2006-11-15 华为技术有限公司 一种通用路由封装隧道的检测方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625155A (zh) * 2003-12-02 2005-06-08 三星电子株式会社 互联网协议分组错误处理设备及其方法和计算机可读介质
CN101047560A (zh) * 2006-06-06 2007-10-03 华为技术有限公司 一种多主机架构下的移动ip管理系统及方法

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101085A1 (zh) * 2015-12-17 2017-06-22 华为技术有限公司 确定通用路由封装gre隧道标识的方法、设备和系统
US10873478B2 (en) 2015-12-17 2020-12-22 Huawei Technologies Co., Ltd. Method, device, and system for determining generic routing encapsulation GRE tunnel identifier
US11817970B2 (en) 2015-12-17 2023-11-14 Huawei Technologies Co., Ltd. Method, device, and system for determining generic routing encapsulation GRE tunnel identifier
CN113839859A (zh) * 2020-06-23 2021-12-24 华为技术有限公司 一种报文通告的方法以及相关装置
CN113839859B (zh) * 2020-06-23 2023-05-23 华为技术有限公司 一种报文通告的方法以及相关装置

Also Published As

Publication number Publication date
CN101572584B (zh) 2012-01-04
CN101572584A (zh) 2009-11-04

Similar Documents

Publication Publication Date Title
WO2009132530A1 (zh) 报文错误检测方法、报文错误处理方法、设备及系统
ES2964564T3 (es) Métodos, aparatos y sistema para desactivación de sesiones de PDU
US20230027227A1 (en) Monitoring and reporting quality of service occurrences in a wireless network
EP2384571B1 (en) Trustworthiness decision making for access authentication
JP6065189B2 (ja) トンネル管理システム及びトンネル管理方法
US20110099604A1 (en) Access control method and system for packet data network, pcrf entity
KR101870548B1 (ko) Epc로의 신뢰성 wlan 액세스를 위한 과부하 제어
US8112084B2 (en) Method, system and apparatus for performing mobile internet protocol deregistering
JP2013509760A (ja) Ueを3gppアクセス・ネットワークに接続するための接続手続の拡張
KR20070034542A (ko) 이동 단말 관리 장치 및 이동 단말 및 통신 시스템
RU2640573C1 (ru) Способ устранения отказа, сеть пакетной передачи данных, узел управления мобильностью и сетевая система
JPWO2010004714A1 (ja) ハンドオーバ処理方法、その方法で用いられる移動端末及び通信管理装置
JP6383659B2 (ja) PMIPv6MAGの復旧
WO2010026740A1 (ja) ハンドオーバ処理方法、その方法によって用いられる移動端末、接続管理装置及び基地局
US20090300726A1 (en) Ethernet service capability negotiation and authorization method and system
US9960950B2 (en) Apparatus, method, system and computer program product for server failure handling
US20080318568A1 (en) Method and apparatus for determining home agent attached by mobile node
EP2837162B1 (en) Apparatus, method, system and computer program product for server failure handling
WO2013037271A1 (zh) 一种多接入方法及系统
WO2011160524A1 (zh) 一种热线挂起的方法和系统

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

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

Country of ref document: EP

Kind code of ref document: A1