Disclosure of Invention
The invention aims to provide a method and a system for selecting a service gateway, which are used for ensuring that an SGW is separated into an SGW-C entity and an SGW-U entity and then evolves effective operation of a packet core network architecture.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of serving gateway selection, comprising:
the mobile management entity selects a target service gateway control plane entity for the user equipment;
the mobile management entity sends a first bearer establishment request to the target service gateway control plane entity;
the target service gateway control plane entity responds to the first bearer establishment request and selects a target service gateway user plane entity for the user equipment;
and the target service gateway control plane entity sends a second bearer establishment request to the target service gateway user plane entity.
In the foregoing method, preferably, the selecting, by the mobility management entity, the target serving gateway control plane entity for the user equipment includes:
the mobility management entity obtains a list of service gateway control plane entities available to the user equipment;
distributing weight to each service gateway control plane entity in the list;
and determining the service gateway control plane entity with the largest weight as a target service gateway control plane entity.
In the foregoing method, preferably, the obtaining, by the mobility management entity, the list of serving gateway control plane entities available to the user equipment includes:
the mobility management entity obtains a list of serving gateway control plane entities available to the user equipment as determined by a domain name server.
In the foregoing method, preferably, the allocating weights to each serving gateway control plane entity in the list includes:
and distributing weight for each service gateway control plane entity in the list based on the interface protocol type supported by the service gateway control plane entity and the load condition of the service gateway control plane entity.
Preferably, the allocating, to each serving gateway control plane entity in the list, a weight based on an interface protocol type supported by the serving gateway control plane entity and a load condition of the serving gateway control plane entity includes:
if the interface protocol type supported by the service gateway control plane entity is not matched with the service transmitted by the user equipment, or the load condition of the service gateway control plane entity exceeds a preset load threshold value, the weight distributed to the service gateway control plane entity is 0;
if the interface protocol type supported by the service gateway control plane entity is matched with the service transmitted by the user equipment, and the load condition of the service gateway control plane entity does not exceed a preset load threshold value, allocating weight to the service gateway control plane entity according to a first formula, wherein the first formula is as follows:
wc=1/Lc+μc
wherein, wcControlling the weight of the plane entity c for the serving gateway, LcControlling the load of the plane entity c, mu, for the serving gatewaycIs a correction factor corresponding to the serving gateway control plane entity c.
A service gateway selection system comprising: the mobile management entity, at least one service gateway control plane entity connected with the mobile management entity, and a plurality of service gateway user plane entities connected with the at least one service gateway control plane entity;
the mobile management entity is used for selecting a target service gateway control plane entity for user equipment from the at least one service gateway control plane entity and sending a first bearer establishment request to the target service gateway control plane entity;
the service gateway control plane entity is used for responding to a first bearer establishment request when receiving the first bearer establishment request, selecting a target service gateway user plane entity for the user equipment from the plurality of service gateway user plane entities, and sending a second bearer establishment request to the target service gateway user plane entity.
The above system, preferably, in terms of selecting a target serving gateway control plane entity for the user equipment from the at least one serving gateway control plane entity, the mobility management entity is configured to,
acquiring a list of service gateway control plane entities available for the user equipment; distributing weight to each service gateway control plane entity in the list; and determining the service gateway control plane entity with the largest weight as a target service gateway control plane entity.
The above system, preferably, in terms of obtaining the list of serving gateway control plane entities available to the user equipment, the mobility management entity is configured to,
obtaining a list of serving gateway control plane entities available to the user equipment as determined by a domain name server.
The above system, preferably, is a method of assigning a weight to each serving gateway control plane entity in the list, the mobility management entity is configured to,
and distributing weight for each service gateway control plane entity in the list based on the interface protocol type supported by the service gateway control plane entity and the load condition of the service gateway control plane entity.
The above system, preferably, in terms of assigning weights to each serving gateway control plane entity in the list based on the interface protocol type supported by the serving gateway control plane entity and the load status of the serving gateway control plane entity, the mobility management entity is configured to,
if the interface protocol type supported by the service gateway control plane entity is not matched with the service transmitted by the user equipment, or the load condition of the service gateway control plane entity exceeds a preset load threshold value, the weight distributed to the service gateway control plane entity is 0;
if the interface protocol type supported by the service gateway control plane entity is matched with the service transmitted by the user equipment, and the load condition of the service gateway control plane entity does not exceed a preset load threshold value, allocating weight to the service gateway control plane entity according to a first formula, wherein the first formula is as follows:
wc=1/Lc+μc
wherein, wcControlling the weight of the plane entity c for the serving gateway, LcControlling the load of the plane entity c, mu, for the serving gatewaycIs a correction factor corresponding to the serving gateway control plane entity c.
According to the scheme, the service gateway selection method and the service gateway selection system provided by the embodiment of the invention have the advantages that the mobile management entity selects a proper service gateway control plane entity for the user equipment, and the service gateway control plane entity selected by the mobile management entity selects a service gateway service plane entity for the user equipment, so that the effective operation of the packet core network architecture is guaranteed after the SGW is separated into two entities, namely the SGW-C entity and the SGW-U entity.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
For better understanding of the embodiment of the present invention, an existing evolved packet core EPC will first be described.
The core network device in the existing EPC includes: a mobility management entity MME, a serving gateway SGW, a PDN gateway PGW, a Home Subscriber Server (HSS) for storing subscriber subscription information, a Policy and Charging Rules Function (PCRF) for measuring control and charging rules, and so on. Wherein,
the MME is a device of the unique control plane of the EPC core network, and its main functions include: access control, mobility management, session management, network element selection, user bearer information storage, and the like.
The SGW is located in a user plane, is a gateway facing an evolved universal radio access network (E-UTRAN) side, and can be served by only one SGW at a time for each user equipment UE accessing the E-UTRAN. The SGW has the main functions of session management, routing and data forwarding, Quality of service (QOS) control, charging, and information storage.
The PGW is located in a user plane, and is a gateway facing a Public Data Network (PDN) and terminating at an SGi interface, that is, the PGW communicates with an IP server (e.g., Packet Switching Service (PSS), IP Multimedia Subsystem (IMS)) of an operator through the SGi interface. If the UE accesses multiple PDNs, the UE will correspond to one or more PGWs. The main functions of the PGW include IP address allocation, session management, PCRF selection, routing and data forwarding, QOS control, charging, policy and charging enforcement, etc.
The PCRF contains Policy and Charging Enforcement Function (PCEF) functions related to service data flow detection, gating, QOS-based and Charging-based network control functions, and functions related to flow Charging control, and is located in the PGW.
Fig. 1 is a schematic diagram of a network architecture of an EPC core network currently specified by 3 GPP. In fig. 1, the user is within the home network and is not roaming. When the user does not roam, the structure is simple, the signaling and the media are connected through the home network, and all network elements are provided by the home network. The control plane of the LTE system is connected with the MME through an S1-MME interface, the user plane is directly connected with the SGW through an S1-U interface, and the SGW and the PGW are connected through an S5 interface.
At present, a control plane and a user plane of an EPC core network element are not separated, an SGW is generally centrally deployed in a machine room of an operator, the SGW not only needs to transmit user plane data, but also needs to transmit some control plane signaling, with the increasing forwarding number of EPC core network data packets, the capacity of the SGW becomes a bottleneck limiting the increase of the transmission rate of the core network, and the centralized deployment of the SGW makes networking inflexible, poor expansibility, and is unable to adapt to the development of future services. For this reason, the 3GPP determines a research project for separating the control plane and the user plane of the LTE core network, and separates the control plane Function and the user plane Function of a core network element SGW, a PGW, and a TDF (Traffic Detection Function, which belongs to optional network element equipment in the core network and is not shown in fig. 1).
Fig. 2 is a schematic diagram of a network architecture of an enhanced EPC core network. The SGW in the original core network architecture is separated into two entities: the method comprises a service gateway control plane entity SGW-C and a service gateway user plane entity SGW-U, wherein the SGW-C is used for realizing the control plane function of the original SGW, and the SGW-U is used for realizing the user plane function of the original SGW. A new interface (shown by a dotted line in fig. 2) is introduced between the serving gateway control plane entity and the serving gateway user plane entity for information interaction. Similarly, the original PGW is also divided into a packet data gateway control plane entity PGW-C and a packet data gateway user plane entity PGW-U. The SGW-C and the PGW-C carry out interaction of control plane information through an S5 interface; and the SGW-U and the PGW-U carry out interaction of user plane information through an S5 interface.
After the control plane and the user plane are separated, the design of each entity can be simplified, so that the distributed network structure is more suitable for the distributed network structure, and the networking flexibility and the expandability are stronger, thereby being more suitable for the development of future services. The service gateway control plane entity and the service gateway user plane entity may be in one-to-many (that is, one service gateway control plane entity is connected with a plurality of service gateway user plane entities) or in many-to-many connection relationship, and may be deployed flexibly according to different service scenarios. For example, for an urban scenario with dense users, the serving gateway user plane entity may be deployed on the cell side close to the access network, while for a suburban scenario with sparse users, the serving gateway user plane entity may be concentrated in the center of the area (i.e., the central area of the suburban users); meanwhile, the serving gateway control plane entity may still be centrally deployed in the machine room of the operator, so as to facilitate interaction with other control plane core network nodes (MME, HSS, etc.) in the machine room, and may also be deployed on the access network side as needed.
It should be noted that the enhanced EPC network architecture is a hot spot of research of various companies of the current 3GPP organization, the final architecture is not determined yet, the enhanced EPC network architecture diagram of fig. 2 is a scheme that most member organizations of the current 3GPP tend to adopt, and the EPC architecture written into the standard finally may be slightly different from that of fig. 2.
In addition, only network elements related to the embodiment of the present invention are shown in fig. 1 and fig. 2, and other network elements are not shown.
Before the control plane and the user plane are separated, the MME is responsible for the gateway selection of the core network, namely, the selection of a service gateway and a PDN gateway is realized in the MME. After the control plane and the user plane are separated, because the serving gateway user plane entity belongs to a user plane node, and the MME is a control plane node, the association between the serving gateway user plane entity and the user plane node is not large, and there is no direct interface between the serving gateway user plane entity and the control plane node for communication, the MME is difficult to obtain the load condition of the serving gateway user plane entity and the link state of the serving gateway user plane entity and other networks, so the scheme of selecting a serving gateway by the MME is not suitable for the enhanced EPC network architecture. Based on this, the embodiment of the present invention provides a service gateway selection method and system suitable for an enhanced EPC network architecture.
Referring to fig. 3, fig. 3 is a flowchart of an implementation of a service gateway selection method according to an embodiment of the present invention, where the method includes:
step S31: the mobile management entity selects a target service gateway control plane entity for the user equipment;
in the embodiment of the invention, a mobile management entity MME selects a serving gateway control plane entity SGW-C from a plurality of serving gateway control plane entities connected with the MME to serve user equipment UE.
Step S32: the mobile management entity sends a first bearer establishment request to a target service gateway control plane entity;
after selecting a target service gateway control plane entity, the mobility management entity sends a bearer establishment request to the target service gateway control plane entity to establish a bearer with the target service gateway control plane entity, and triggers the target service gateway control plane entity to select a service gateway user plane entity SGW-U for the user equipment.
Step S33: and the target service gateway control plane entity responds to the first bearer establishment request and selects a target service gateway user plane entity for the user equipment.
And the target serving gateway control plane entity selects one serving gateway user plane entity from a plurality of serving gateway user plane entities connected with the target serving gateway control plane entity to serve the user equipment UE.
Step S34: and the target service gateway control plane entity sends a second bearer establishment request to the target service gateway user plane entity.
After the serving gateway user plane entity is selected, a second bearer establishment request may be sent to the selected serving gateway user plane entity to establish a bearer with the selected serving gateway user plane entity.
In the service gateway selection method provided by the embodiment of the present invention, the mobility management entity selects an appropriate service gateway control plane entity for the user equipment, and the service gateway control plane entity selected by the mobility management entity selects a service gateway service plane entity for the user equipment, thereby ensuring that the SGW is separated into two entities, i.e., an SGW-C entity and an SGW-U entity, and then the effective operation of the packet core network architecture is evolved.
Optionally, an implementation flowchart of selecting, by the mobility management entity, the target serving gateway control plane entity for the user equipment according to the embodiment of the present invention is shown in fig. 4, and may include:
step S41: the mobile management entity obtains a list of service gateway control plane entities available for the user equipment;
the serving gateway control plane entities in the list are all serving gateway control plane entities that can serve the user equipment.
If the list is empty, that is, there is no serving gateway control plane entity in the list, indicating that there is no serving gateway control plane entity meeting the transmission requirement of the user equipment, the mobility management entity fails to select the serving gateway, and the user equipment cannot access the EPC core network through the mobility management entity.
Step S42: the mobile management entity distributes weight to each service gateway control plane entity in the list;
the weight may be assigned to the serving gateway control plane entity based on the configuration parameters of the serving gateway control plane entity and the actual operational parameters.
Step S43: and the mobility management entity determines the service gateway control plane entity with the maximum weight as a target service gateway control plane entity.
In the embodiment of the invention, the larger the weight of the service gateway control plane entity is, the higher the priority of the service gateway control plane entity is selected is, the higher the priority is, the priority is selected.
Optionally, an implementation manner of the mobility management entity obtaining the list of the serving gateway control plane entity available to the user equipment provided in the embodiment of the present invention may be:
the mobility management entity obtains a list of serving gateway control plane entities available to the user equipment as determined by the domain name server.
Specifically, the domain name server may parse available serving gateway control plane entities that may serve the user equipment according to a location of the user equipment (i.e., a Tracking Area Identity (TAI) where the user equipment is located), where the serving gateway control plane entities constitute a list of selectable serving gateway control plane entities of the user equipment.
Optionally, an implementation manner of the mobility management entity allocating a weight to each serving gateway control plane entity in the list provided in the embodiment of the present invention may specifically be:
the mobility management entity assigns a weight to each serving gateway control plane entity in the list based on the interface protocol type supported by the serving gateway control plane entity and the load condition of the serving gateway control plane entity.
The interface protocol type supported by the service gateway control plane entity belongs to the configuration parameter of the service gateway control plane entity, and the load condition of the service gateway control plane entity reflects the actual operation condition of the service gateway control plane entity.
If the interface protocol type supported by the service gateway control plane entity is matched with the service transmitted by the user equipment, the larger the load of the service gateway control plane entity is, the smaller the weight of the service gateway control plane entity is; the smaller the load, the more weight it is.
The matching of the interface protocol type supported by the service gateway control plane entity and the service transmitted by the user equipment means that: the serving gateway control plane entity may satisfy the data transmission requirements of the user equipment. For example, according to the interface protocol type supported by the serving gateway control plane entity, the serving gateway control plane entity can be divided into three types: the system comprises a service gateway control plane entity only supporting a GTP interface protocol, a service gateway control plane entity only supporting a PMIP interface protocol and a service gateway control plane entity supporting both the GTP interface protocol and the PMIP interface protocol. If the service transmitted by the user equipment requires to support a GTP interface protocol and a certain service gateway control plane entity only supports a PMIP interface protocol, the type of the interface protocol supported by the certain service gateway control plane entity is not matched with the service transmitted by the user equipment; and if the certain serving gateway control plane entity only supports the GTP interface protocol, or supports both the GTP interface protocol and the PMIP interface protocol, the interface protocol type supported by the certain serving gateway control plane entity is matched with the service transmitted by the user equipment.
Optionally, in order to ensure that the mobility management entity learns the load status of the serving gateway control plane entity in time, all serving gateway control plane entities controlled by the mobility management entity report the load status to the mobility management entity. In particular, the method comprises the following steps of,
the serving gateway control plane entity may report periodically, that is, at intervals, the serving gateway control plane entity reports its load status to the mobility management entity.
The load status may also be reported in an event-triggered manner, for example, if the load status of the serving gateway control plane entity is changed from the last reported load status by more than a preset variable threshold, the load status is reported to the mobility management entity.
The load condition may be measured by a percentage, that is, a ratio of a current load of the serving gateway control plane entity to a load in a full load state.
Optionally, an implementation manner of the mobility management entity allocating a weight to each serving gateway control plane entity in the list based on an interface protocol type supported by the serving gateway control plane entity and a load condition of the serving gateway control plane entity may specifically be:
if the interface protocol type supported by the service gateway control plane entity is not matched with the service transmitted by the user equipment, the weight distributed to the service gateway control plane entity by the mobile management entity is 0;
if the load condition of the service gateway control plane entity exceeds a preset load threshold value, the weight distributed to the service gateway control plane entity by the mobile management entity is also 0;
optionally, if the weight of the serving gateway control plane entity is 0, the serving gateway control plane entity is regarded as an invalid serving gateway control plane entity, and is removed from the serving gateway control plane entity list.
If the interface protocol type supported by the serving gateway control plane entity is matched with the service transmitted by the user equipment, and the load of the serving gateway control plane entity does not exceed the preset load threshold value, the mobile management entity allocates weight to the serving gateway control plane entity according to a first formula, wherein the first formula is as follows:
wc=1Lc+μc
wherein, wcControlling the weight of the plane entity c for the serving gateway, LcControlling the load of the plane entity c, mu, for the serving gatewaycIs a correction factor corresponding to the serving gateway control plane entity c.
In the embodiment of the present invention, the correction factors corresponding to different service gateway control plane entities may be the same or different. The specific value of the correction factor may be specifically set according to the stability of the serving gateway control plane entity within a certain time period. That is, the values of the correction factors may be different in different time periods for the same serving gateway control plane entity. For example, if a certain serving gateway control plane entity has unstable performance in a recent period, and is frequently overloaded or has a link failure with another device, compared with other serving gateway control plane entities around the certain serving gateway control plane entity, the value of the correction factor of the certain serving gateway control plane entity needs to be reduced, so that the certain serving gateway control plane entity maintains a lower load. And if the certain serving gateway control plane entity has stable performance in a recent period, is less overloaded, and has no fault in a link with other equipment relative to other serving gateway control plane entities around, the value of the correction factor of the certain serving gateway control plane entity can be increased, so that the certain serving gateway control plane entity maintains higher load.
The serving gateway control plane entity c is any one serving gateway control plane entity in the serving gateway control plane entity list.
Similar to the implementation manner of selecting the target serving gateway control plane entity for the ue by the mobility management entity, in the embodiment of the present invention, an implementation flowchart of selecting the target serving gateway user plane entity for the ue in response to the first bearer establishment request is shown in fig. 5, and may include:
step S51: a target service gateway control plane entity acquires a list of service gateway user plane entities available for user equipment;
the serving gateway user plane entities in the list are all serving gateway user plane entities that can serve the user equipment.
If the list is empty, that is, there is no serving gateway user plane entity in the list, it indicates that none of the serving gateway user plane entities controlled by the target serving gateway control plane entity can meet the data transmission requirement of the user equipment, and the target serving gateway control plane entity sends a response message of failure in establishing a bearer to the mobility management entity. After receiving the response message of failing to establish the bearer, the mobility management entity sets the weight of the target serving gateway control plane entity to 0, and may also delete the target serving gateway control plane entity from the serving gateway control plane entity list, and then reselect a new target serving gateway control plane entity.
Step S52: the target service gateway control plane entity distributes weight for each service gateway user plane entity in the list;
the weight can be distributed to the service gateway user plane entity according to the configuration parameters and the actual operation parameters of the service gateway user plane entity.
Step S53: and the target service gateway control plane entity determines the service gateway user plane entity with the maximum weight as the target service gateway user plane entity.
In the embodiment of the invention, the higher the weight of the user plane entity of the service gateway is, the higher the priority level of the selected user plane entity of the service gateway is, the more preferred the user plane entity is.
Optionally, an implementation manner of acquiring, by the target serving gateway control plane entity, the list of serving gateway user plane entities available to the user equipment, provided by the embodiment of the present invention, may be:
the target serving gateway control plane entity obtains a list of serving gateway user plane entities available to the user equipment as determined by the domain name server.
Specifically, the domain name server may parse available service gateway user plane entities that may serve the ue according to a location of the ue (i.e., a Tracking Area Identity (TAI) of the ue, where the service gateway user plane entities constitute an optional service gateway user plane entity list of the ue.
Optionally, an implementation manner of the target serving gateway control plane entity allocating a weight to each serving gateway user plane entity in the list provided in the embodiment of the present invention may specifically be:
the target serving gateway control plane entity assigns a weight to each serving gateway user plane entity in the list based on the interface protocol type supported by the serving gateway user plane entity and the load condition of the serving gateway user plane entity.
The interface protocol type supported by the service gateway user plane entity belongs to the configuration parameters of the service gateway user plane entity, and the load condition of the service gateway user plane entity reflects the actual operation condition of the service gateway user plane entity.
If the interface protocol type supported by the service gateway user plane entity is matched with the service transmitted by the user equipment, the larger the load of the service gateway user plane entity is, the smaller the weight of the service gateway user plane entity is; the smaller the load, the more weight it is.
The matching between the interface protocol type supported by the service gateway user plane entity and the service transmitted by the user equipment means that: the service gateway user plane entity can meet the data transmission requirement of the user equipment. For example, according to the interface protocol type supported by the serving gateway user plane entity, the serving gateway user plane entity can be divided into three types: a serving gateway user plane entity supporting only the GTP interface protocol, a serving gateway user plane entity supporting only the PMIP interface protocol, and a serving gateway user plane entity supporting both the GTP interface protocol and the PMIP interface protocol. If the service transmitted by the user equipment requires to support a GTP interface protocol and a certain service gateway user plane entity only supports a PMIP interface protocol, the interface protocol type supported by the certain service gateway user plane entity is not matched with the service transmitted by the user equipment; and if the certain serving gateway user plane entity only supports the GTP interface protocol, or supports both the GTP interface protocol and the PMIP interface protocol, the interface protocol type supported by the certain serving gateway user plane entity is matched with the service transmitted by the user equipment.
Optionally, in order to ensure that the serving gateway control plane entity learns the load status of the serving gateway user plane entity in time, all the serving gateway user plane entities controlled by the serving gateway control plane entity report the load status of the serving gateway user plane entity to the serving gateway control plane entity. In particular, the method comprises the following steps of,
the serving gateway user plane entity may report periodically, that is, at intervals, the serving gateway user plane entity reports its load status to the serving gateway control plane entity.
The reporting may also be performed in an event-triggered manner, for example, if the load condition of the serving gateway user plane entity is changed from the last reported load condition by more than a preset variable threshold, the load condition is reported to the serving gateway control plane entity.
The load condition may be measured by a percentage, that is, a ratio of a current load of the service gateway user plane entity to a load in a full load state.
Optionally, a specific implementation manner of the target serving gateway control plane entity allocating a weight to each serving gateway user plane entity in the list based on an interface protocol type supported by the serving gateway user plane entity and a load condition of the serving gateway user plane entity may be:
if the interface protocol type supported by the service gateway user plane entity is not matched with the service transmitted by the user equipment, the weight distributed to the service gateway user plane entity by the target service gateway control plane entity is 0;
if the load condition of the service gateway user plane entity exceeds a preset load threshold value, the weight distributed by the target service gateway control plane entity for the service gateway user plane entity is also 0;
optionally, if the weight of the service gateway user plane entity is 0, the service gateway user plane entity is regarded as an invalid service gateway user plane entity, and is removed from the service gateway user plane entity list.
If the interface protocol type supported by the service gateway user plane entity is matched with the service transmitted by the user equipment, and the load of the service gateway user plane entity does not exceed the preset load threshold value, the target service gateway control plane entity distributes weight to the service gateway user plane entity according to a first formula, wherein the first formula is as follows:
wu=1/Lu+μu
wherein, wuAs weight, L, of serving gateway user plane entity uuFor the load capacity, mu, of the service gateway user plane entity uuIs the correction factor corresponding to the serving gateway user plane entity u.
In the embodiment of the present invention, the correction factors corresponding to different service gateway user plane entities may be the same or different. The specific value of the correction factor may be specifically set according to the stability of the service gateway user plane entity in a certain time period. That is, the values of the correction factors may be different in different time periods for the same serving gateway user plane entity. For example, when a certain serving gateway user plane entity has unstable performance in a recent period, and is frequently overloaded or has a link failure with another device, compared with other serving gateway user plane entities around, the value of the correction factor of the certain serving gateway user plane entity needs to be reduced to maintain a lower load for the certain serving gateway user plane entity. And if the certain service gateway user plane entity has stable performance in a recent period, is less overloaded and has no fault in a link with other equipment compared with other surrounding service gateway user plane entities, the value of the correction factor of the certain service gateway user plane entity can be increased, so that the certain service gateway user plane entity maintains higher load.
The service gateway control plane entity u is any one service gateway user plane entity in the service gateway user plane entity list.
Another implementation flowchart of the service gateway selection method provided in the embodiment of the present invention is shown in fig. 6, and may include:
step S61: the MME selects a target SGW-C for User Equipment (UE);
step S62: the MME sends a first bearer establishment request to the selected target SGW-C;
step S63: the target SGW-C responds to the first bearer establishing request and selects a target SGW-U for the UE;
step S64: the target SGW-C sends a second bearer establishment request to the selected target SGW-U;
step S65: the target SGW-U responds to the second bearer establishing request and sends a first response message of successful bearer establishment to the target SGW-C;
step S66: and the target SGW-C sends a second response message of successful bearer establishment to the MME.
Fig. 7 shows a flowchart of another implementation of the service gateway selection method according to the embodiment of the present invention, which may include:
step S71: and the MME updates an optional SGW-C list of the UE and sets weights for all SGW-Cs in the SGW-C list.
Step S72: and judging whether the SGW-C list is empty, if so, ending, otherwise, executing the step S73.
Step S73: and selecting the SGW-C with the largest weight as the optimal SGW-C (namely the target SGW-C), and sending a first bearer establishment request to the optimal SGW-C.
Step S74: the SGW-C receiving the first bearer establishment request judges whether the UE can be admitted or not according to the load condition of the SGW-C; if yes, step S75 is executed, and if not, step S710 is executed.
Step S75: and the SGW-C receiving the first bearer establishment request updates an optional SGW-U list of the UE and sets weight for each SGW-U in the SGW-U list.
Step S76: and judging whether the SGW-U list is empty, if so, executing step S710, otherwise, executing step S77.
Step S77: and selecting the SGW-U with the largest weight as the optimal SGW-U, and sending a second bearer establishment request to the optimal SGW-U. Step S78: the SGW-U receiving the second bearer establishment request judges whether the UE can be admitted or not according to the load condition of the SGW-U; if yes, step S79 is executed, and if not, step S712 is executed.
Step S79: transmitting a response message, comprising: and the SGW-U receiving the second bearer establishment request sends a first response message of successful bearer establishment to the SGW-C sending the second bearer establishment request, and the SGW-C receiving the first response message sends a second response message of successful bearer establishment to the MME.
Step S710: and the SGW-C receiving the first bearer establishment request sends a third response message of failure in bearer establishment to the MME.
Step S711: after receiving the third response message, the MME deletes the SGW-C that sent the third response message from the SGW-C list, and then proceeds to step S72.
Step S712: and the SGW-U receiving the second bearer establishment request sends a fourth response message of failed bearer establishment to the SGW-C sending the second bearer establishment request.
Step S713: the SGW-C receiving the fourth response message deletes the SGW-U transmitting the fourth response message from the SGW-U list, and then proceeds to step S76.
Wherein, steps S71-S73, and S711 are executed by the MME. Step S74 to step S77, and step S710 and step S713 are performed by the optimum SGW-C. Step S78 and step S712 are performed by the optimal SGW-U.
Corresponding to the method embodiment, the embodiment of the present invention further provides a service gateway selection system, where the service gateway selection system provided in the embodiment of the present invention includes: the mobile management entity, at least one service gateway control plane entity connected with the mobile management entity, and a plurality of service gateway user plane entities connected with the at least one service gateway control plane entity; the service gateway control plane entity and the service gateway user plane entity may be in a one-to-many connection relationship (that is, one service gateway control plane entity is connected with a plurality of service gateway user plane entities), or may be in a many-to-many connection relationship.
The mobile management entity is used for selecting a target service gateway control plane entity for the user equipment from at least one service gateway control plane entity and sending a first bearer establishment request to the target service gateway control plane entity;
the service gateway control plane entity is used for responding to the first bearer establishment request when receiving the first bearer establishment request, selecting a target service gateway user plane entity for the user equipment from the plurality of service gateway user plane entities, and sending a second bearer establishment request to the target service gateway user plane entity.
In the service gateway selection system provided by the embodiment of the present invention, the mobility management entity selects an appropriate service gateway control plane entity for the user equipment, and the service gateway control plane entity selected by the mobility management entity selects a service gateway service plane entity for the user equipment, thereby ensuring that the SGW is separated into two entities, i.e., an SGW-C entity and an SGW-U entity, and then the effective operation of the packet core network architecture is evolved.
Optionally, in an aspect of selecting a target serving gateway control plane entity for the user equipment from the at least one serving gateway control plane entity, the mobility management entity may be specifically configured to,
acquiring a list of service gateway control plane entities available for user equipment; distributing weight for each service gateway control plane entity in the list; and determining the service gateway control plane entity with the largest weight as a target service gateway control plane entity.
Alternatively, in terms of obtaining a list of serving gateway control plane entities available to the user equipment, the mobility management entity may specifically be configured to,
a list of serving gateway control plane entities available to the user equipment as determined by the domain name server is obtained.
Optionally, in terms of assigning weights to the respective serving gateway control plane entities in the list, the mobility management entity may specifically be configured to,
and allocating weight for each service gateway control plane entity in the list based on the interface protocol type supported by the service gateway control plane entity and the load condition of the service gateway control plane entity.
Alternatively, the mobility management entity may be specifically configured to assign a weight to each serving gateway control plane entity in the list based on the type of interface protocol supported by the serving gateway control plane entity and the load status of the serving gateway control plane entity,
if the interface protocol type supported by the service gateway control plane entity is not matched with the service transmitted by the user equipment, or the load condition of the service gateway control plane entity exceeds a preset load threshold value, the weight distributed to the service gateway control plane entity is 0;
if the interface protocol type supported by the serving gateway control plane entity is matched with the service transmitted by the user equipment, and the load condition of the serving gateway control plane entity does not exceed a preset load threshold value, allocating weight to the serving gateway control plane entity according to a first formula, wherein the first formula is as follows:
wc=1/Lc+μc
wherein, wcControlling the weight of the plane entity c for the serving gateway, LcControlling the load of the plane entity c, mu, for the serving gatewaycIs a correction factor corresponding to the serving gateway control plane entity c.
Optionally, in an aspect of selecting a target serving gateway user plane entity for the user equipment from the plurality of serving gateway user plane entities, the serving gateway control plane entity may be specifically configured to:
acquiring a list of service gateway user plane entities available to user equipment; distributing weight to each service gateway user plane entity in the list; and determining the service gateway user plane entity with the maximum weight as a target service gateway user plane entity.
Optionally, in terms of obtaining the list of service gateway user plane entities available to the user equipment, the service gateway control plane entity may specifically be configured to:
a list of serving gateway user plane entities available to the user equipment as determined by the domain name server is obtained.
Optionally, in the aspect of assigning a weight to each serving gateway user plane entity in the list, the serving gateway control plane entity may specifically be configured to:
and distributing weight for each service gateway user plane entity in the list based on the interface protocol type supported by the service gateway user plane entity and the load condition of the service gateway user plane entity.
Optionally, in an aspect that a weight is allocated to each serving gateway user plane entity in the list based on an interface protocol type supported by the serving gateway user plane entity and a load condition of the serving gateway user plane entity, the serving gateway control plane entity may specifically be configured to:
if the interface protocol type supported by the service gateway user plane entity is not matched with the service transmitted by the user equipment, the weight distributed to the service gateway user plane entity by the target service gateway control plane entity is 0;
if the load condition of the service gateway user plane entity exceeds a preset load threshold value, the weight distributed by the target service gateway control plane entity for the service gateway user plane entity is also 0;
optionally, if the weight of the service gateway user plane entity is 0, the service gateway user plane entity is regarded as an invalid service gateway user plane entity, and is removed from the service gateway user plane entity list.
If the interface protocol type supported by the service gateway user plane entity is matched with the service transmitted by the user equipment, and the load of the service gateway user plane entity does not exceed the preset load threshold value, the target service gateway control plane entity distributes weight to the service gateway user plane entity according to a first formula, wherein the first formula is as follows:
wu=1/Lu+μu
wherein, wuAs weight, L, of serving gateway user plane entity uuFor the load capacity, mu, of the service gateway user plane entity uuIs the correction factor corresponding to the serving gateway user plane entity u.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses (if any), and units (if any) may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus (if present), and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.