Disclosure of Invention
The invention provides a bearer establishment method and system, an MME (mobility management entity) and an SGW (serving gateway), which are used for solving the technical problem that the consistency of user bearers of a PGW (packet data gateway) and a target SGW (serving gateway) cannot be ensured in the switching process of the SGW in the prior art.
In order to solve the above technical problem, in one aspect, the present invention provides a bearer establishment method, including:
the MME receives a session creation response message returned by the target SGW, wherein the session creation response message carries an indication message of PDN connection and/or load bearing failed in creation of the target SGW; the MME informs a source PGW to release PDN connection and/or load which fails to be established by the target SGW through the source SGW; and the MME sends a bearer modification request to the target SGW.
Further, before the MME receives a create session response message returned by the destination SGW, the method further includes: and the MME sends a session creating request to the destination SGW.
Further, when the MME sends N create session requests to the destination SGW, and the MME receives M response messages returned by the destination SGW, where the M response messages are used to indicate that there are M PDN connections failed to be created, the MME notifies a source PGW through the source SGW to release the PDN connection that failed to be created by the destination SGW, including: the MME informs the source PGW of releasing the M PDN connections indicated by the M response messages through the source SGW; the MME sending a modify bearer request to the destination SGW, including: and the MME sends N-M modified bearer requests to the target SGW, wherein N is a positive integer, M is a positive integer, and N is more than or equal to M.
Further, the indication message of the failed bearer is used to indicate the failed bearer and the PDN where the failed bearer is created.
Further, when the MME sends N create session requests to the destination SGW, the MME receives N response messages returned by the destination SGW, where M response messages in the N response messages are used to indicate that the creation of a partial bearer in the PDN connection corresponding to the response message fails, the MME notifies, through the source SGW, the source PGW to release the bearer that the creation of the destination SGW fails, including: the MME informs the source PGW through the source SGW to release the failed bearer established under the M PDN connections corresponding to the M response messages; the MME sending a modify bearer request to the destination SGW, including: and the MME sends N modified bearer requests to the target SGW, wherein N is a positive integer, M is a positive integer, and N is more than or equal to M.
Further, the MME notifying, by the source SGW, the source PGW to release the PDN connection and/or bearer that the creation of the destination SGW fails, including: the MME sends a request for deleting the call back to the SGW; and the SGW sends a call back deletion request to the source PGW, wherein the call back deletion request is used for indicating the source PGW to release the PDN connection and/or the bearer which are failed to be created by the target SGW.
In another aspect, the present invention further provides a bearer establishment method, including:
a target SGW receives a session creation request sent by an MME; the destination SGW responds to the session creating request to create PDN connection and/or bearer; and the target SGW returns a session creation response message to the MME, wherein the session creation response message carries an indication message of PDN connection and/or bearer failed in creation of the target SGW.
Further, after the destination SGW returns a create session response message to the MME, the method further includes: and the destination SGW receives a bearer modification request sent by the MME, wherein the bearer modification request is sent by the MME after a source SGW informs a source PDN Gateway (PGW) to release the PDN connection and/or the bearer which are failed to be created by the destination SGW.
In another aspect, the present invention further provides an MME, including:
a receiving module, configured to receive a session creation response message returned by a target SGW, where the session creation response message carries an indication message of PDN connection and/or bearer that the target SGW failed to create; a notification module, configured to notify a source PGW to release a PDN connection and/or bearer that the destination SGW failed to create through the source SGW; a first sending module, configured to send a bearer modification request to the destination SGW.
Further, the above apparatus further comprises: and a second sending module, configured to send a session creation request to the destination SGW before receiving a session creation response message returned by the destination SGW.
Further, the notifying module is specifically configured to, when the MME sends N pieces of session creation requests to the destination SGW, receive M pieces of response messages returned by the destination SGW, where the M pieces of response messages are used to indicate that creation of M PDN connections fails, notify, by the source SGW, the source PGW to release the M PDN connections indicated by the M pieces of response messages; the first sending module is specifically configured to send N-M modified bearer requests to the destination SGW, where N is a positive integer, M is a positive integer, and N is greater than or equal to M.
Further, the notifying module is specifically configured to, when the MME sends N session creation requests to the destination SGW, the MME receives N response messages returned by the destination SGW, where M response messages in the N response messages are used to indicate that creation of a lower bearer of the PDN connection corresponding to the response message fails, notify, by the source SGW, the source PGW to release the bearer that was created under M PDN connections corresponding to the M response messages; the first sending module is specifically configured to send N modified bearer requests to the destination SGW, where N is a positive integer, M is a positive integer, and N is greater than or equal to M.
In yet another aspect, the present invention further provides an SGW, including:
a first receiving module, configured to receive a session creation request sent by an MME; a creation module for creating a PDN connection and/or bearer in response to the create session request; a returning module, configured to return a create session response message to the MME, where the create session response message carries an indication message of the PDN connection and/or bearer that the SGW failed to create.
Further, the SGW further includes: a second receiving module, configured to receive a bearer modification request sent by the MME after the SGW returns a create session response message to the MME, where the bearer modification request is sent by the MME after the source SGW notifies a source PDN gateway PGW to release a PDN connection and/or a bearer that the SGW failed to create.
In another aspect, the present invention further provides a bearer establishment system, including: the MME described above, the SGW described above, and the source SGW and PGW.
The invention has the following beneficial effects: after the target SGW responds to the session creation request and before receiving the bearer modification request, the target SGW notifies the MME of the PDN connection failed in creation or the bearer failed in creation, and the MME notifies the PGW to release the PND connection failed in creation or the bearer of the target SGW, so that the problem that in the intra-SGW change-office handover process in the prior art, the PGW cannot be guaranteed to be consistent with the user bearer of the target SGW is solved, and the technical effect that the PGW is consistent with the user bearer of the target SGW is achieved.
Detailed Description
In order to solve the problem that the user bearers of the PGW and the new SGW cannot be guaranteed to be consistent in the intra-SGW handover procedure in the prior art, the present invention provides a bearer establishment method and apparatus, which are further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
An embodiment of the present invention provides a bearer establishment method, where a flow of the method is shown in fig. 1, and the method includes steps S102 to S106:
step S102: the MME receives a session creation response message returned by the target SGW, wherein the session creation response message carries an indication message of PDN connection and/or load bearing failed in creation of the target SGW;
step S104: the MME informs a source PGW to release PDN connection and/or load which fails to be established by the target SGW through the source SGW;
step S106: and the MME sends a bearer modification request to the target SGW.
In this example, after the target SGW responds to the session creation request and before receiving the bearer modification request, the target SGW notifies the MME of the PDN connection that has failed to be created or the bearer that has failed to be created, and the MME notifies the PGW to release the PND connection or the bearer that has failed to be created by the target SGW, so that the problem that in the prior art, in the intra-office handover procedure of SGW change, it is not possible to ensure that the user bearers of the PGW and the target SGW are consistent is solved, and a technical effect that the user bearers of the PGW and the target SGW are consistent is achieved.
For the destination SGW, the following operations are mainly implemented, as shown in fig. 2, including the following steps:
step S202: a target SGW receives a session creation request sent by an MME;
step S204: the destination SGW responds to the session creating request to create PDN connection and/or bearer;
step S206: and the destination SGW returns a session creating response message to the MME, wherein the session creating response message carries an indication message of PDN connection and/or bearer failed in the creation of the destination SGW.
Correspondingly, after the target SGW returns a session creation response message to the MME, the MME notifies the source PGW to release the PDN connection and/or bearer that the target SGW failed to create through the source SGW, the MME sends a bearer modification request to the target SGW, and the target SGW receives the bearer modification request sent by the MME, thereby ensuring that the PGW is consistent with the user bearer of the target SGW.
Assuming that there are N PDN connections for the user, the MME sends N create session requests to the destination SGW.
The following describes two cases of PDN connection creation failure and bearer creation failure:
1) PDN connection creation failure, including:
s1: MME sends N session creating requests to the target SGW;
s2: the MME receives M pieces of response messages returned by the target SGW, wherein the M pieces of response messages are used for indicating that M PDN connections are failed to be established;
s3: the MME informs the source PGW of releasing the M PDN connections indicated by the M response messages through the source SGW;
s4: and the MME sends N-M modified bearer requests to the target SGW, wherein N is a positive integer, M is a positive integer, and N is more than or equal to M.
2) Bearer creation failure, including:
s1: MME sends N session creating requests to the target SGW;
s2: the MME receives N pieces of response messages returned by the target SGW, wherein M pieces of response messages in the N pieces of response messages are used for indicating that the part of the PDN corresponding to the response messages is connected with the part of the bearer to be established and failed to be established, namely the M pieces of response messages are used for indicating the bearer to be established and the PDN where the bearer to be established and failed to be established is located;
s3: the MME informs the source PGW through the source SGW to release the failed bearer established under the M PDN connections corresponding to the M response messages;
s4: and the MME sends N modified bearer requests to the target SGW, wherein N is a positive integer, M is a positive integer, and N is more than or equal to M.
In actual implementation, the MME may notify the source PGW to release the PDN connection and/or bearer that the target SGW fails to create, by deleting the session request, and specifically, the MME may send a delete call-back request to the SGW; and the SGW sends a call back deletion request to the source PGW, wherein the call back deletion request is used for indicating the source PGW to release the PDN connection and/or the bearer which are failed to be created by the target SGW.
In this embodiment, an MME, an SGW, and a bearer establishment system are further provided, and the apparatus is configured to implement the foregoing embodiments and preferred embodiments, which have already been described and are not described again. As used below, the term "unit" or "module" may implement a combination of software and/or hardware of predetermined functions. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. Fig. 3 is a block diagram of a preferred structure of an MME according to an embodiment of the present invention, as shown in fig. 3, which may include: a receiving module 301, a notification module 302 and a first sending module 303.
A receiving module 301, configured to receive a session creation response message returned by a target SGW, where the session creation response message carries an indication message of PDN connection and/or bearer that the target SGW failed to create;
a notifying module 302, configured to notify, by a source SGW, a source PGW to release a PDN connection and/or bearer that the destination SGW failed to create;
a first sending module 303, configured to send a modify bearer request to the destination SGW.
In one embodiment, the apparatus may further include: and a second sending module, configured to send a session creation request to the destination SGW before receiving a session creation response message returned by the destination SGW.
In an embodiment, the notifying module 302 is specifically configured to, when the MME sends N pieces of session creation requests to the destination SGW, the MME receives M pieces of response messages returned by the destination SGW, where the M pieces of response messages are used to indicate that there are M PDN connections creation failures, notify the source PGW to release the M PDN connections indicated by the M pieces of response messages through the source SGW; the first sending module 303 may be specifically configured to send N-M modified bearer requests to the destination SGW, where N is a positive integer, M is a positive integer, and N is greater than or equal to M.
In an embodiment, the notifying module 302 is specifically configured to, when the MME sends N creating session requests to the destination SGW, and the MME receives N response messages returned by the destination SGW, where there are M response messages in the N response messages, where M response messages are used to indicate that creation of a lower bearer of a PDN connection corresponding to the N response messages fails, notify, by the source SGW, the source PGW to release a bearer that has failed to be created under M PDN connections corresponding to the M response messages; the first sending module 303 may be specifically configured to send N modify bearer requests to the destination SGW, where N is a positive integer, M is a positive integer, and N is greater than or equal to M.
Fig. 4 is a block diagram of a preferred structure of a PGW according to an embodiment of the present invention, which may include:
a first receiving module 401, configured to receive a session creation request sent by an MME;
a creating module 402 for creating a PDN connection and/or bearer in response to the create session request;
a returning module 403, configured to return a create session response message to the MME, where the create session response message carries an indication message of PDN connection and/or bearer that the SGW failed to create;
a second receiving module 404, configured to receive a bearer modification request sent by the MME after the SGW returns a create session response message to the MME, where the bearer modification request is sent by the MME after the source SGW notifies a source PDN gateway PGW to release a PDN connection and/or a bearer that the SGW fails to create.
In this example, a bearer establishment system is also provided, as shown in fig. 5, the system may include the MME shown in fig. 3, the SGW shown in fig. 4, and the source SGW and the PGW, and the establishment of the bearer may be implemented through cooperation between the SGW and the PGW.
PREFERRED EMBODIMENTS
Considering that in the existing protocol, for the SGW to change the intra-office handover procedure, it cannot be guaranteed that the PGW user bearer information is consistent with other network elements: after the destination SGW receives a Create Session Request (Create Session Request) from the MME to Create the PDN connection, sometimes there is a failure in creating a PDN connection in a user part or a failure in creating a bearer in a part of a PDN connection due to resources or other factors.
The method aims to solve the problem that in the process of changing the intra-office handover by the SGW, due to the reason of a target SGW (namely a new SGW), partial bearer creation of part of PDN connection of a user or part of PDN connection fails, and a PDN connection or bearer resource corresponding to the failure of PGW release cannot be notified. In this example, in an SGW change intra-office handover procedure defined by 3GPP (The 3rd Generation Partnership Project), before The MME sends a Modify Bearer Request (Modify Bearer Request) to a new SGW, a Delete Session Request (Delete Session Request) or Delete Bearer Command (Delete Bearer Command) is sent, so that The source SGW is used to notify The PGW to release The destination SGW to create a failed PDN connection or Bearer, thereby ensuring that The PGW is consistent with user Bearer information of other network elements.
There are two cases:
case 1, PDN connection creation failure
When a user has multiple PDN connections, and when an SGW changes an intra-office SGW handover procedure, the MME receives all Create Session responses (Create Session responses) replied by a new SGW, there are one or more cause values carried by the message other than "Request Accepted". Before sending a Modify Bearer Request (Modify Bearer Request) to a destination SGW, an MME sends a Delete Session Request (Delete Session Request) message to a source SGW for each failed PDN connection, the Delete Session Request message carrying an Indication flag (Indication Flags) field, and an Operation Indication (Operation Indication) in the Indication flag (Indication Flags) field is 1.
According to the method of this embodiment, after receiving the Delete Session response (Delete Session Request), the SGW checks that the Operation Indication (Operation Indication) is valid, and then similarly sends a Delete Session response (Delete Session Request) message to the PGW, and releases the corresponding PDN connection.
Case 2, bearer creation failure
When a user has one or more PDN connections, and when an SGW in the SGW change office is performed, the MME receives all Created Session responses (Create Session responses) replied by the target SGW, and the MME has one or more fields of Created Bearer Contexts (Bearer Contexts Created) of the message, indicating that one or more bearers under the PDN are failed to be Created.
Before sending a Modify Bearer Request (Modify Bearer Request) to a destination SGW, the MME sends a Delete Bearer Command (Delete Bearer Command) message to a source SGW for a PDN connection with a partial Bearer failure, and creates a failed Bearer in a new SGW with the PDN. After receiving the Delete Bearer Command (Delete Bearer Command) message, the source SGW forwards the message to the PGW to notify the PGW to release the corresponding failed Bearer.
Specific examples are as follows:
example 1
As shown in fig. 6, the method comprises the following steps:
step S601: the user has a plurality of PDN connections, and for each PDN connection, the MME sends a Create Session Request (Create Session Request) to a destination SGW (namely, a new SGW) and informs the destination SGW to Create the PDN connection;
step S602: the destination SGW causes a failure of creating one or part of PDN connections due to resources or other factors, and replies a Create Session Response (Create Session Response) to the MME for the PDN connection with Cause instead of Request Accepted.
Step S603: the MME continues the switching process, but before sending a modification Bearer Request (Modify Bearer Request) to the destination SGW, a Delete Session Request (Delete Session Request) is sent to the source SGW, the Operation Indication (Operation Indication) carrying the Indication Flags (Indication Flags) and the Indication Flags (Indication Flags) is 1, and the MME waits or does not wait for a Delete Session Response (Delete Session Response);
step 604: the source SGW receives the Delete Session Request (Delete Session Request), checks the Operation Indication (Operation Indication) in the message, and then similarly sends the Delete Session Request (Delete Session Request) to the PGW to inform the PGW to release the corresponding PDN connection;
step 605: the MME sends a Modify Bearer Request (Modify Bearer Request) message to the destination SGW, and continues the handover procedure.
Example 2
As shown in fig. 7, the method comprises the following steps:
step S701: the user has one or more PDN connections, and for each PDN connection, the MME sends a Create Session Request (Create Session Request) to the destination SGW and informs the destination SGW to Create the PDN connection;
step S702: when the destination SGW replies a Create Session Response (Create Session Response) to each PDN connection, the failed Bearer is also carried in the Created Bearer Context (Bearer Context Created), but the corresponding cause value is not "Request Accepted".
Step S703: the MME continues the handover process, but sends a Delete Bearer Command (Delete Bearer Command) to the source SGW before sending a Modify Bearer Request (Modify Bearer Request) to the destination SGW;
step S704: the source SGW forwards a Delete Bearer Command (Delete Bearer Command) to the PGW to inform the PGW to release the failed Bearer under the corresponding PDN connection;
step S705: the MME continues the handover procedure, and sends a Modify Bearer Request (Modify Bearer Request) to the destination SGW.
By the above method, in the intra-SGW handover procedure, when a bearer creation failure or PDN occurs due to a target SGW, the PGW network element may release the corresponding failed bearer, so that the user bearer information on the PGW and the SGW may be kept consistent.
In summary, with the technology provided in the embodiment of the present invention, after the target SGW responds to the session creation request and before receiving the bearer modification request, the target SGW notifies the MME of the PDN connection that has failed to be created or the bearer that has failed to be created, and the MME notifies the PGW to release the PND connection or bearer that has failed to be created by the target SGW, so that the problem that it is not possible to ensure that the user bearers of the PGW and the target SGW are consistent in the intra-office handover procedure of the SGW change in the prior art is solved, and a technical effect that the user bearers of the PGW and the target SGW are consistent is achieved.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.