Failure handling method, packet data network, mobility management entity, and network system
10440616 ยท 2019-10-08
Assignee
Inventors
Cpc classification
H04W36/12
ELECTRICITY
H04W68/02
ELECTRICITY
International classification
H04W68/02
ELECTRICITY
Abstract
Embodiments of the present invention provide a failure handling method, a packet data network, a mobility management entity, and a network system. The failure handling method includes: receiving, by a packet data network gateway P-GW, downlink data after detecting that a failure occurs in an associated first S-GW; and sending, by the P-GW, a notification message to a mobility management entity MME by using a second S-GW, where the notification message includes an identifier of the P-GW and an identifier of a user, so that when determining that the identifier of the P-GW included in the notification message is different from a P-GW identifier corresponding to a context identifier of the user, the MME refuses to initiate a procedure for recovering from the failure in the first S-GW. The embodiments of the present invention can prevent a failure recovery procedure from being executed multiple times, and lighten signaling load.
Claims
1. A failure handling method, comprising: receiving, by a packet data network gateway (P-GW), downlink data after detecting that a failure occurs in: an associated first serving gateway (S-GW), and on a transmission path between the first S-GW and the P-GW in a packet data network (PDN) connection, wherein the detecting comprises determining that a transmission of a first message between the P-GW and the first S-GW exceeds a retransmission threshold corresponding to a time out of a time started simultaneously with the transmission of the first message; sending, by the P-GW, a notification message to a mobility management entity (MME) by using a second S-GW different from the first S-GW, wherein: the notification message comprises an identifier of the P-GW and an identifier of a user; and the MME stores: a context identifier of the user, and a P-GW identifier of a PDN connection of the user; determining, by the MME, that the identifier of the P-GW comprised in the notification message is different from: a P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user; and in response to determining that the identifier of the P-GW comprised in the notification message is different from: the P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user: refusing, by the MME, to initiate a procedure for recovering from the failure.
2. The method according to claim 1, wherein the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
3. The method according to claim 1, wherein receiving the downlink data comprises reselecting, by the P-GW, the second S-GW.
4. The method according to claim 1, wherein the identifier of the P-GW comprises at least one of the following identifiers: an Internet Protocol (IP) address, a fully qualified tunnel endpoint identifier (F-TEID), and a fully qualified domain name (FQDN) of the P-GW.
5. The method according to claim 1, wherein after the sending, by the P-GW, a notification message to an MME by using a second S-GW, the method further comprises: receiving, by the P-GW, a notification response message that is sent by the MME by using the second S-GW, wherein the notification response message comprises rejection indication information and the identifier of the user; and deleting, by the P-GW according to the rejection indication information, context information corresponding to the context identifier of the user.
6. A failure handling method, comprising: receiving, by a mobility management entity (MME), a notification message that is sent by a packet data network gateway (P-GW) by using a second serving gateway (S-GW), wherein: the notification message comprises an identifier of the P-GW and an identifier of a user; the second S-GW is an S-GW reselected by the P-GW when the P-GW receives downlink data after detecting, by the P-GW, that a failure occurs in: an associated first S-GW different from the second S-GW, and on a transmission path between the first S-GW and the P-GW in a packet data network (PDN) connection, wherein the detecting comprises determining that a transmission of a first message between the P-GW and the first S-GW exceeds a retransmission threshold corresponding to a time out of a time started simultaneously with the transmission of the first message; and the MME stores: a context identifier of the user, and a P-GW identifier of a PDN connection of the user; determining, by the MME, that the identifier of the P-GW comprised in the notification message is different from: a P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user; and in response to determining that the identifier of the P-GW comprised in the notification message is different from: the P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user: refusing, by the MME, to initiate a procedure for recovering from the failure.
7. The method according to claim 6, wherein the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
8. The method according to claim 6, wherein the notification message comprises: a downlink triggering notification message for general packet radio service (GPRS) tunnel protocol (GTP), or an update notification message of the proxy mobile IP (PMIP).
9. The method according to claim 6, wherein after the receiving, by an MME, a notification message that is sent by a P-GW by using a second S-GW, the method further comprises: sending, by the MME, a notification response message to the P-GW by using the second S-GW, wherein the notification response message comprises rejection indication information and the identifier of the user, so that the P-GW deletes, according to the rejection indication information, context information corresponding to the context identifier of the user.
10. A packet data network gateway (P-GW), comprising: a receiver, a transmitter, and a processor, wherein: the receiver is configured to receive downlink data after detecting that a failure occurs in: an associated first serving gateway (S-GW), and on a transmission path between the first S-GW and the P-GW in a packet data network (PDN), wherein the detecting comprises determining that a transmission of a first message between the P-GW and the first S-GW exceeds a retransmission threshold corresponding to a time out of a time started simultaneously with the transmission of the first message; and the transmitter is configured to send a notification message to a mobility management entity (MME) by using a second S-GW different from the first S-GW, wherein: the notification message comprises an identifier of the P-GW and an identifier of a user, the MME stores: a context identifier of the user, and a P-GW identifier of a PDN connection of the user; and wherein: the notification message is sent to the MME to facilitate: in response to the MME determining that the identifier of the P-GW comprised in the notification message is different from: a P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user, refusing, by the MME, to initiate a procedure for recovering from the failure.
11. The P-GW according to claim 10, wherein the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
12. The P-GW according to claim 10, wherein the notification message comprises: a downlink triggering notification message for general packet radio service (GPRS) tunnel protocol (GTP), or an update notification message for proxy mobile IP (PMIP).
13. The P-GW according to claim 10, wherein, for sending the notification message, the transmitter is further configured to: transmit the notification message to the second S-GW for forwarding, by the second S-GW, to the MME.
14. The P-GW according to a claim 10, wherein the receiver is further configured to: after the transmitter sends the notification message to the MME by using the second S-GW, receive a notification response message that is sent by the MME by using the second S-GW, wherein the notification response message comprises rejection indication information and the identifier of the user; and the processor is configured to delete, according to the rejection indication information, context information corresponding to the context identifier of the user.
15. A mobility management entity (MME), comprising: a receiver, a transmitter, and a processor, wherein: the receiver is configured to receive a notification message that is sent by a packet data network gateway (P-GW) by using a second serving gateway (S-GW), wherein: the notification message comprises an identifier of the P-GW and an identifier of a user; the second S-GW is an S-GW reselected by the P-GW when the P-GW receives downlink data after detecting, by the P-GW, that a failure occurs in: an associated first S-GW different from the second S-GW, and on a transmission path between the first S-GW and the P-GW in a packet data network (PDN) connection, wherein the detecting comprises determining that a transmission of a first message between the P-GW and the first S-GW exceeds a retransmission threshold corresponding to a time out of a time started simultaneously with the transmission of the first message; and the MME stores: a context identifier of the user, and a P-GW identifier of a PDN connection of the user; and the processor is configured to: store: a context identifier of the user, and a P-GW identifier of a PDN connection of the user; determine that the identifier of the P-GW comprised in the notification message is different from: a P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user; and in response to determining that the identifier of the P-GW comprised in the notification message is different from: the P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user: refuse to initiate a procedure for recovering from the failure.
16. The MME according to claim 15, wherein the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
17. The MME according to claim 15, wherein the notification message comprises: a downlink triggering notification message for general packet radio service (GPRS) tunnel protocol, or an update notification message of the proxy mobile IP (PMIP).
18. The MME according to claim 15 further comprising reserving, by the P-GW, context information corresponding to the PDN connection associated with the first S-GW.
19. The MME according to claim 15, wherein the transmitter is configured to send a notification response message to the P-GW by using the second S-GW, wherein the notification response message comprises rejection indication information and the identifier of the user, so that the P-GW deletes, according to the rejection indication information, context information corresponding to the context identifier of the user.
20. A network system, comprising at least: a packet data network gateway (P-GW), and a mobility management entity (MME) wherein: the P-GW is configured to: receive downlink data after detecting that a failure occurs in: an associated first serving gateway (S-GW), and on a transmission path between the first S-GW and the P-GW in a packet data network (PDN connection, wherein the detecting comprises determining that a transmission of a first message between the P-GW and the first S-GW exceeds a retransmission threshold corresponding to a time out of a time started simultaneously with the transmission of the first message; and send a notification message to the MME by using a second S-GW different from the first S-GW, wherein the notification message comprises an identifier of the P-GW and an identifier of a user; and the MME is configured to: receive the notification message sent by the P-GW; store: a context identifier of the user, and a P-GW identifier of a PDN connection of the user; determine that the identifier of the P-GW comprised in the notification message is different from: a P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user; and in response to determining that the identifier of the P-GW comprised in the notification message is different from: the P-GW identifier corresponding to the context identifier of the user, or the stored P-GW identifier of the PDN connection of the user: refuse to initiate a procedure for recovering from the failure.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
DESCRIPTION OF EMBODIMENTS
(14) To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
(15)
(16) Step 101: The P-GW receives downlink data after detecting that a failure occurs in an associated first S-GW.
(17) Step 102: The P-GW sends a notification message to an MME by using a second S-GW, where the notification message includes an identifier of the P-GW and an identifier of a user, so that when determining that the identifier of the P-GW included in the notification message is different from a P-GW identifier corresponding to a context identifier of the user, the MME refuses to initiate a procedure for recovering from the failure in the first S-GW.
(18)
(19) That the P-GW detects that a failure occurs in an associated first S-GW is that the P-GW detects that a path failure occurs on a connection to an associated device, that is, the first S-GW. When detecting that the path failure occurs in the first S-GW, the P-GW may perform the detection by using a message retransmission mechanism. For example, the P-GW may send a first message to the first S-GW and start a timer at the same time. If the timer times out and the P-GW has not received a response message of the first message, the P-GW starts the transmission mechanism. If transmission of the first message by the P-GW exceeds a retransmission threshold, the P-GW detects that a path failure occurs on the connection to the associated device, that is, the first S-GW. Correspondingly, the first S-GW may detect a path failure of the P-GW by using a similar method, and details are not provided again herein.
(20) The downlink data received by the P-GW after the P-GW detects that the failure occurs in the associated first S-GW may be IP service data sent by an external data network. The IP service data may be IP service data corresponding to an EPS bearer, which is created by the MME, of the UE associated with the P-GW and the first S-GW.
(21) After detecting that the failure occurs in the associated first S-GW, the P-GW first reserves context information corresponding to the PDN connection associated with the first S-GW. When receiving the downlink data sent by the external data network, the P-GW reselects an S-GW, that is, the second S-GW, and sends the notification message to the MME by using the second S-GW. That the P-GW sends the notification message to the MME by using the second S-GW refers to that the P-GW sends the notification message to the second S-GW and the second S-GW forwards the notification message to the MME.
(22) The identifier of the P-GW included in the notification message may be any identifier that can represent the P-GW. Different P-GWs have different P-GW identifiers. The identifier of the user included in the notification message may be an identifier of user equipment (UE), for example, an international mobile subscriber identification number (IMSI).
(23) In the EPS network architecture shown in
(24) After receiving the notification message sent by the P-GW, the MME discovers through comparison that the identifier of the P-GW included in the notification message is different from the P-GW identifier corresponding to the context identifier of the user, and then the MME can determine that the PDN connection corresponding to the context identifier is already updated to the P-GW reselected by the first S-GW, that is, the PDN connection already recovers from the path failure, and the failure recovery procedure does not need to be executed again. Therefore, the MME may refuse to initiate the procedure for recovering from the failure in the first S-GW, thereby preventing the failure recovery procedure from being executed multiple times, and lightening signaling load.
(25) According to the failure handling method provided in this embodiment, a notification message sent by a P-GW to an MME carries an identifier of the P-GW, so that when determining through comparison that the identifier of the P-GW is different from a P-GW identifier corresponding to a context identifier of UE, the MME may refuse to initiate a procedure for recovering from a failure in the first S-GW, thereby preventing the failure recovery procedure from being executed multiple times, and lightening signaling load.
(26) On the basis of the solution provided in the foregoing embodiment, this embodiment further provides a failure handling method.
(27) In the solution in the foregoing embodiment, the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
(28) Specifically, the identifier of the P-GW may be included by the P-GW to the notification message before being sent to the second S-GW, and is then forwarded to the MME by the second S-GW; or the notification message sent by the P-GW to the second S-GW is similar to a message in the prior art, and before the notification message is sent to the MME by using the second S-GW, the second S-GW may acquire, according to the notification message, an identifier of a transmit end of this message, that is, the identifier of the P-GW then add the identifier of the P-GW to the notification message, and send the notification message to the MME.
(29) A specific position at which the identifier of the P-GW is included to the notification message is not limited in this embodiment. The identifier of the P-GW may be included to a header of the notification message, or may be included to a predetermined flag bit of message content.
(30) The notification message in the foregoing solution includes: a downlink triggering notification message for GPRS tunnel protocol, or an update notification message for proxy mobile IP PMIP.
(31) When the notification message includes a downlink triggering notification message for GPRS tunnel protocol (GTP), the notification message includes an identifier of the MME in addition to the identifier of the P-GW and the IMSI. The identifier of the MME may identify a specific MME device associated with the context identifier.
(32) For a UE in a movement process, the notification message may include an update notification message for proxy mobile IP (PMIP).
(33) In the foregoing solution, the identifier of the P-GW includes at least one of the following identifiers:
(34) an Internet Protocol IP address, a fully qualified tunnel endpoint identifier F-TEID, and a fully qualified domain name FQDN of the P-GW.
(35) The identifier of the P-GW may be represented by the IP address of the P-GW, the fully qualified tunnel endpoint identifier (F-TEID), or the fully qualified domain name (FQDN). The F-TEID includes the IP address and a TEID of the P-GW, where the F-TEID is a TEID used for the control plane; and the FQDN includes a device name of the P-GW and all qualified domain names.
(36) On the basis of the solution in the foregoing embodiment, as for a manner for adding the identifier of the P-GW to the notification message, a type of the notification message, and a type of the identifier of the P-GW in the notification message, this embodiment provides multiple specific exemplary implementable solutions, thereby better lightening a signaling bearer of an MME.
(37) Embodiment 3 of the present invention further provides a failure handling method.
(38) Step 301: The P-GW receives a notification response message that is sent by the MME by using the second S-GW, where the notification response message includes rejection indication information and an identifier of a user.
(39) Step 302: The P-GW deletes, according to the rejection indication information, context information corresponding to a context identifier of the user.
(40) Specifically, the rejection indication information and the identifier of the user may be carried in a message header of the notification response message and/or a predetermined bit of message content. For example, the rejection indication information may be represented by setting a predetermined bit to 0. That the P-GW deletes the context information corresponding to the context identifier of the user may be that the P-GW releases bearer information corresponding to the context identifier of the user. The context information corresponding to the context identifier of the user may be an IP address that is allocated by the P-GW to a UE and corresponds to the context identifier.
(41) In the foregoing solution, the rejection indication information includes a reject cause value.
(42) For a cause for which the MME refuses to initiate a procedure for recovering from a failure in a first S-GW, different reject causes may be indicated by using different values. In this embodiment, a cause for rejection may be that identifiers are different, and may be indicated by using a predetermined cause value.
(43)
(44) Alternatively, in the solution in the foregoing embodiment, after step 102 in which the P-GW sends the notification message to the MME by using the second S-GW, the method further includes:
(45) Step 401: The P-GW receives a delete session request message that is sent by the MME by using the second S-GW, where the delete session request message includes an identifier of a user.
(46) Step 402: The P-GW deletes, according to the delete session request message, context information corresponding to a context identifier of the user.
(47) Specifically, that the P-GW deletes the context information corresponding to the context identifier of the user is that the P-GW releases a bearer corresponding to the context identifier. The deletion may be performed by deleting a session corresponding to the context identifier of the user. The identifier of the user included in the delete session request message may be an IMSI.
(48) On the basis of the foregoing solution, in the solution of this embodiment, a bearer of the P-GW is released in different manners, the P-GW does not send unnecessary signaling when receiving downlink data, and the second S-GW does not need to forward unnecessary signaling, thereby lightening a signaling bearer of an entire network system.
(49)
(50) Step 501: The MME receives a notification message that is sent by a P-GW by using a second S-GW, where the notification message includes an identifier of the P-GW and an identifier of a user, and the second S-GW is an S-GW reselected by the P-GW after the P-GW detects that a failure occurs in an associated first S-GW and when the P-GW receives downlink data.
(51) Step 502: When determining that the identifier of the P-GW included in the notification message is different from a P-GW identifier corresponding to a context identifier of the user, the MME refuses to initiate a procedure for recovering from the failure in the first S-GW.
(52) Because before the solution in this embodiment is implemented, the first S-GW has established a PDN connection to a reselected P-GW by means of the failure recovery procedure, the identifier of the P-GW stored in the MME is an identifier of the reselected P-GW. When the MME determines that the identifier of the P-GW in the notification message is different from the identifier of the P-GW corresponding to the context identifier of the user, that is, the PDN connection of the context identifier, the first S-GW has been associated with the reselected P-GW and can normally transmit uplink and downlink data of an IP service. Therefore, there is no need to establish a PDN connection between the P-GW and the second S-GW, that is, the recovery procedure does not need to be executed for the failure in the first S-GW.
(53) The solution in this embodiment is a solution that is executed by the MME and corresponds to the solution in the foregoing embodiment. A specific implementation process and a beneficial effect of the solution in this embodiment are similar to those in the foregoing embodiment, and details are not provided again herein.
(54) Further, in the solution in the foregoing embodiment, the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
(55) Further, in the solution in the foregoing embodiment, the notification message includes: a downlink triggering notification message for GPRS tunnel protocol, or an update notification message of the PMIP.
(56) In the solution in the foregoing embodiment, the identifier of the P-GW includes at least one of the following identifiers:
(57) an IP address, an F-TEID, and an FQDN of the P-GW.
(58) Further, in the solution shown in the foregoing embodiment, after step 501 in which the MME receives the notification message that is sent by the P-GW by using the second S-GW, the method further includes:
(59) Step 503: The MME sends a notification response message to the P-GW by using the second S-GW, where the notification response message includes rejection indication information and the identifier of the user, so that the P-GW deletes, according to the rejection indication information, context information corresponding to the context identifier of the user.
(60) The rejection indication information includes a reject cause value.
(61) Alternatively, step 503 in the solution in the foregoing embodiment may be:
(62) sending, by the MME, a delete session request message to the P-GW by using the second S-GW, where the delete session request message includes the identifier of the user, so that the P-GW deletes, according to the delete session request message, context information corresponding to the context identifier of the user.
(63) The solution in this embodiment is a solution that is executed by the MME and corresponds to the solution in the foregoing embodiment. A specific implementation process and a beneficial effect of the solution in this embodiment are similar to those in the foregoing embodiment, and details are not provided again herein.
Embodiment 5
(64)
(65) Step 601a: An S-GW detects that a path to a P-GW is faulty.
(66) Step 601b: The P-GW detects that a path to the S-GW is faulty.
(67) Step 601a and step 601b are performed at the same time.
(68) That the S-GW detects that a path to the P-GW is faulty means that a path failure exists in a direction from the S-GW to the P-GW. Correspondingly, that the P-GW detects that a path to the S-GW path is faulty means that a path failure exists in a direction from the P-GW to the S-GW.
(69) Step 602: The S-GW deletes information about a PDN connection to the P-GW.
(70) The S-GW deletes configuration information related to the PDN connection to the P-GW, that is, deletes the PDN connection to the P-GW.
(71) Step 603: The S-GW sends a restore notification message to an MME.
(72) The restore notification message includes an identifier of the P-GW and an identifier of the S-GW, for example, IP addresses of the P-GW and the S-GW.
(73) Step 604: The MME deletes information about PDN connections to the S-GW and the P-GW.
(74) When receiving the restore notification message, the MME can determine a faulty PDN connection path according to the identifier of the P-GW and the identifier of the S-GW, and then delete the information about the PDN connections to the S-GW and the P-GW. In this step, the MME releases a bearer by deleting the information about the PDN connections, and deletes information related to a UE at the same time.
(75) Step 605: The MME sends a restore notification acknowledgement message to the S-GW.
(76) Step 606: The MME initiates a service request procedure to a UE.
(77) In step 604, the MME deletes connection information related to the UE by deleting the PDN connections, and therefore needs to establish a connection to the UE again in this step.
(78) Step 607: The UE establishes a PDN connection to a reselected P-GW.
(79) The UE may establish, by using a GPRS reattach process, PDN connections to the S-GW and the P-GW that is reselected by the MME for the UE.
(80) In step 601a to step 607, the S-GW establishes a PDN connection to the reselected P-GW by means of a failure recovery procedure.
(81) Step 608: The P-GW sends a downlink triggering notification message including a P-GW ID and an IMSI to a reselected S-GW.
(82) When receiving downlink data sent by an external data network, the P-GW performs step 608.
(83) The downlink triggering message is a Downlink Triggering Notification message of the GTP protocol. The P-GW ID may be an IP address, an F-TEID, or an FQDN of the P-GW. A context identifier may correspond to an IP service type of the UE.
(84) Step 609: The reselected S-GW sends the downlink triggering message including the P-GW ID and the IMSI to the MME.
(85) In the solution in this embodiment, the P-GW ID may be included by the P-GW to the downlink triggering message and sent by the reselected S-GW to the MME. Alternatively, the downlink triggering notification message received by the reselected S-GW may not include the P-GW ID, and the reselected S-GW adds the P-GW ID to the downlink triggering notification message and then sends the downlink triggering notification message to the MME.
(86) Step 610: The MME rejects failure recovery of the S-GW.
(87) The MME may perform step 610 when determining through comparison that the P-GW ID in the received downlink triggering notification message and a stored P-GW ID are different.
(88) Step 611: The MME sends a notification response message including a reject cause and the IMSI to the reselected S-GW.
(89) Step 612: The reselected S-GW forwards the notification response message to the P-GW, where the notification response message includes the reject cause and the IMSI.
(90) Step 613: The P-GW deletes information about a PDN connection to the S-GW.
(91) After receiving the notification response message, the P-GW deletes the information about the PDN connection to the S-GW, that is, deletes context information corresponding to a context identifier of the IMSI included in the notification message.
(92) Optionally, in the foregoing solution, the message sent by the MME to the reselected S-GW may be a delete session request message, and accordingly, the delete session request message may include the IMSI. Correspondingly, the reselected S-GW needs to send the delete session request message that includes the IMSI to the P-GW, and the P-GW deletes the information about the PDN connection to the S-GW by deleting a session corresponding to the context identifier of the IMSI.
(93) On the basis of the solution in the foregoing embodiment, the solution in this embodiment provides description by using a specific interactive example, and a specific beneficial effect of the solution is similar to that in the foregoing embodiment.
(94)
(95) a receiving module 702, configured to receive downlink data after detecting that a failure occurs in an associated first S-GW; and
(96) a sending module 703, configured to send a notification message to a mobility management entity MME by using a second S-GW, where the notification message includes an identifier of the P-GW and an identifier of a user, so that when determining that the identifier of the P-GW included in the notification message is different from a stored P-GW identifier corresponding to a context identifier of the user, the MME refuses to initiate a procedure for recovering from the failure in the first S-GW.
(97) Further, in the foregoing solution, the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
(98) Further, in the foregoing solution, the notification message includes: a downlink triggering notification message for GPRS tunnel protocol, or an update notification message of the PMIP.
(99) Further, in the foregoing solution, the identifier of the P-GW includes at least one of the following identifiers:
(100) an IP address, an F-TEID, and an FQDN of the P-GW.
(101) Further, the receiving module 702 is further configured to: after the sending module 703 sends the notification message to the MME by using the second S-GW, receive a notification response message that is sent by the MME by using the second S-GW, where the notification response message includes rejection indication information and the identifier of the user.
(102) The P-GW 701 further includes:
(103) a first processing module, configured to delete, according to the rejection indication information, context information corresponding to the context identifier of the user.
(104) In the foregoing solution, the rejection indication information includes a reject cause value.
(105) Optionally, the receiving module 702 is further configured to: after the P-GW sends the notification message to the MME by using the second S-GW, receive a delete session request message that is sent by the MME by using the second S-GW, where the delete session request message includes the identifier of the user.
(106) The P-GW 701 further includes:
(107) a second processing module, configured to delete, according to the delete session request message, context information corresponding to the context identifier of the user.
(108) The P-GW provided in the solution in this embodiment can execute the failure handling method executed by the P-GW in the solution in the foregoing embodiment; a specific implementation process and a beneficial effect of the solution in this embodiment are similar to those in the foregoing embodiment, and details are not provided again herein.
(109)
(110) a receiving module 802, configured to receive a notification message that is sent by a P-GW by using a second S-GW, where the notification message includes an identifier of the P-GW and an identifier of a user, and the second S-GW is an S-GW reselected by the P-GW after the P-GW detects that a failure occurs in an associated first S-GW and when the P-GW receives downlink data; and
(111) a processing module 803, configured to: when determining that the identifier of the P-GW included in the notification message is different from a P-GW identifier corresponding to a context identifier of the user, refuse to initiate a procedure for recovering from the failure in the first S-GW.
(112) Further, in the foregoing solution, the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
(113) Further, in the foregoing solution, the notification message includes: a downlink triggering notification message for GPRS tunnel protocol, or an update notification message of the PMIP.
(114) Further, in the foregoing solution, the identifier of the P-GW includes at least one of the following identifiers:
(115) an IP address, an F-TEID, and an FQDN of the P-GW.
(116) On the basis of the foregoing solution, further, the MME 801 further includes:
(117) a first sending module, configured to: after the receiving module 802 receives the notification message that is sent by the P-GW by using the second S-GW, send a notification response message to the P-GW by using the second S-GW, where the notification response message includes rejection indication information and the identifier of the user, so that the P-GW deletes, according to the rejection indication information, context information corresponding to the context identifier of the user.
(118) The rejection indication information includes a reject cause value.
(119) Alternatively, the MME 801 further includes:
(120) a second sending module, configured to: after the receiving module 802 receives the notification message that is sent by the P-GW by using the second S-GW, send a delete session request message to the P-GW by using the second S-GW, where the delete session request message includes the identifier of the user, so that the P-GW deletes, according to the delete session request message, context information corresponding to the context identifier of the user.
(121) The MME provided in the solution in this embodiment can execute the failure handling method executed by the MME in the solution in the foregoing embodiment; a specific implementation process and a beneficial effect of the solution in this embodiment are similar to those in the foregoing embodiment, and details are not provided again herein.
(122)
(123) where the receiver 902 is configured to receive downlink data after detecting that a failure occurs in an associated first S-GW; and
(124) the transmitter 903 is configured to send a notification message to an MME by using a second S-GW, where the notification message includes an identifier of the P-GW and an identifier of a user, so that when determining that the identifier of the P-GW included in the notification message is different from a P-GW identifier corresponding to a context identifier of the user, the MME refuses to initiate a procedure for recovering from the failure in the first S-GW.
(125) Further, in the foregoing solution, the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
(126) In the foregoing solution, the notification message specifically includes:
(127) a downlink triggering notification message for GPRS tunnel protocol, or an update notification message for proxy mobile IP PMIP.
(128) Preferably, the identifier of the P-GW in the solution in the foregoing embodiment includes at least one of the following identifiers:
(129) an Internet Protocol IP address, a fully qualified tunnel endpoint identifier F-TEID, and a fully qualified domain name FQDN of the P-GW.
(130) Further, in the foregoing solution, the receiver 902 is further configured to: after the transmitter 903 sends the notification message to the MME by using the second S-GW, receive a notification response message that is sent by the MME by using the second S-GW, where the notification response message includes rejection indication information and the identifier of the user; and
(131) the processor 904 is configured to delete, according to the rejection indication information, context information corresponding to the context identifier of the user.
(132) In the foregoing solution, the rejection indication information includes a reject cause value.
(133) Optionally, in the foregoing solution, the receiver 902 is further configured to: after the transmitter 903 sends the notification message to the MME by using the second S-GW, receive a delete session request message that is sent by the MME by using the second S-GW, where the delete session request message includes the identifier of the user; and
(134) the processor 904 is configured to delete, according to the delete session request message, context information corresponding to the context identifier of the user.
(135) The P-GW provided in the solution in this embodiment can execute the failure handling method executed by the P-GW in the solution in the foregoing embodiment; a specific implementation process and a beneficial effect of the solution in this embodiment are similar to those in the foregoing embodiment, and details are not provided again herein.
(136)
(137) where the receiver 1002 is configured to receive a notification message that is sent by a P-GW by using a second S-GW, where the notification message includes an identifier of the P-GW and an identifier of a user, and the second S-GW is an S-GW reselected by the P-GW after the P-GW detects that a failure occurs in an associated first S-GW and when the P-GW receives downlink data; and
(138) the processor 1004 is configured to: when determining that the identifier of the P-GW included in the notification message is different from a P-GW identifier corresponding to a context identifier of the user, refuse to initiate a procedure for recovering from the failure in the first S-GW.
(139) In the foregoing solution, the identifier of the P-GW is included by the P-GW to the notification message, or is included by the second S-GW to the notification message.
(140) Further, in the foregoing solution, the notification message specifically includes: a downlink triggering notification message for GPRS tunnel protocol, or an update notification message of the PMIP.
(141) The identifier of the P-GW described above includes at least one of the following identifiers:
(142) an IP address, an F-TEID, and an FQDN of the P-GW.
(143) Further, in the foregoing solution, the transmitter 1003 is configured to send a notification response message to the P-GW by using the second S-GW, where the notification response message includes rejection indication information and the identifier of the user, so that the P-GW deletes, according to the rejection indication information, context information corresponding to the context identifier of the user.
(144) Further, the rejection indication information described above includes a reject cause value.
(145) Optionally, in the foregoing solution, the transmitter 1003 is configured to send a delete session request message to the P-GW by using the second S-GW, where the delete session request message includes the identifier of the user, so that the P-GW deletes, according to the delete session request message, context information corresponding to the context identifier of the user.
(146) The MME provided in the solution in this embodiment can execute the failure handling method executed by the MME in the solution in the foregoing embodiment; a specific implementation process and a beneficial effect of the solution in this embodiment are similar to those in the foregoing embodiment, and details are not provided again herein.
(147) Embodiment 9 of the present invention further provides a network system.
(148) The network system can implement the solutions in the foregoing embodiments; a beneficial effect of the network system is similar to those in the foregoing embodiments, and details are not provided again herein.
(149) Embodiment 10 of the present invention further provides a network system.
(150) The network system can implement the solutions in the foregoing embodiments; a beneficial effect of the network system is similar to those in the foregoing embodiments, and details are not provided again herein.
(151) A person of ordinary skill in the art may understand that all or a part of the steps of the method embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program runs, the steps of the method embodiments are performed. The foregoing storage medium includes: any medium that can store program code, such as a ROM, a RAM, a magnetic disk, or an optical disc.
(152) Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present invention, but not for limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present invention.