Fault detection method, device, equipment and computer storage medium
By receiving and matching the preset fields in the heartbeat message sent by UPF, it is judged that the data interaction abnormality between UPF and external devices is solved, and the problem of inaccurate UPF fault detection in the prior art is improved, and the effect and timely failure detection are improved ensures the stability of the 5G service architecture.
Patent Information
- Application Number
- CN202110636045.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-08
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-06-08
AI Technical Summary
现有技术难以有效检测5G服务架构中的用户面功能(UPF)故障,导致故障检测不够准确和及时。
By receiving M heartbeat messages sent by UPF, each heartbeat message contains N preset fields, which are used to indicate the interaction data between UPF and its external devices, match the preset fields and conditions, and generate the fault detection result Determine whether there is a fault in the UPF.
It realizes comprehensive and flexible detection of UPF faults, improves the accuracy and timeliness of fault detection, and ensures the stability of the 5G service architecture.
Smart Images

Figure CN115460635B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a fault detection method, device, equipment and computer storage medium. Background Art
[0002] The fifth generation mobile networks (5G) have been widely used. In the 5G service architecture, the user plane function (UPF) and session management function (SMF) are usually included. Among them, UPF can switch to the backup SMF for communication when it senses that the corresponding main SMF has a fault.
[0003] However, in the prior art, it is often difficult to effectively detect UPF failures. Summary of the invention
[0004] The embodiments of the present application provide a fault detection method, apparatus, device and computer storage medium to solve the problem that it is difficult to effectively detect UPF faults in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a fault detection method, which is applied to SMF, and the method includes:
[0006] Receive M heartbeat messages sent by the first UPF, each heartbeat message includes N preset fields, the preset fields are used to indicate the interaction data between the first UPF and its external device, and M and N are both positive integers;
[0007] Match each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result;
[0008] A fault detection result is generated according to the matching result, and the fault detection result is used to indicate whether there is a fault in the first UPF.
[0009] In a second aspect, an embodiment of the present application provides a fault detection device, which is applied to SMF, and the device includes:
[0010] A receiving module, used to receive M heartbeat messages sent by the first user plane function UPF, each heartbeat message includes N preset fields, the preset fields are used to indicate the interaction data between the first UPF and its external device, and M and N are both positive integers;
[0011] A matching module, used for matching each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result;
[0012] The first generating module is used to generate a fault detection result according to the matching result, and the fault detection result is used to indicate whether there is a fault in the first UPF.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0014] The processor implements the above fault detection method when executing computer program instructions.
[0015] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and the computer program instructions implement the above-mentioned fault detection method when executed by a processor.
[0016] The fault detection method provided in the embodiment of the present application receives M heartbeat messages sent by the first UPF, each heartbeat message includes N preset fields, and the preset fields can be used to indicate the interaction data between the first UPF and its external device; the non-preset fields in the M heartbeat messages are matched with the corresponding preset field conditions to obtain a matching result, and a fault detection result for indicating whether the first UPF has a fault is generated according to the matching result. In the embodiment of the present application, the heartbeat message includes a preset field indicating the interaction data between the first UPF and its external device. By matching the preset field with the preset field condition, it can be determined whether there is a data interaction anomaly between the first UPF and its external device, which helps to achieve comprehensive and flexible detection of the first UPF fault and improve the fault detection effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 is an example diagram of an architecture to which the fault detection method provided by the embodiments of the present application can be applied;
[0019] Figure 2 is a flowchart of a fault detection method provided in an embodiment of the present application;
[0020] Figure 3 This is an example diagram of the connection structure between SMF and UPF in a specific application example;
[0021] Figure 4 is a flowchart of a fault detection method in a specific application example;
[0022] Figure 5is a structural schematic diagram of a fault detection device provided in an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0025] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0026] In order to solve the problems of the prior art, the embodiments of the present application provide a fault detection method, device, equipment and computer storage medium. The following first introduces the architecture to which the fault detection method provided by the embodiments of the present application can be applied.
[0027] The fault detection method provided in the embodiment of the present application can be applied to the 5G service architecture. Figure 1 As shown, Figure 1 This is an example diagram of the communication connection relationship between several functional units in the 5G service architecture.
[0028] like Figure 1 As shown, the 5G service architecture may include a session management function (SMF) 11, a user plane function (UPF) 12, a 5G base station (gNB) 13 and a data network (DN) 14.
[0029] Among them, SMF can select UPF based on Data Network Name (DNN), Single Network Slice Selection Assistance Information (S-NSSAI) or Tracking Area Code (TAC). In order to ensure the network robustness of 5G service architecture, in general, a UPF pool (UPF POOL) can be composed of multiple UPFs for SMF to select.
[0030] The UPF may receive a session initiated by a user equipment (UE) 15 through the gNB. In addition, the UPF may also perform data interaction with the DN.
[0031] In the 5G service architecture, each functional unit can exchange data through preset interfaces, which usually have relatively fixed names. For example, SMF and UPF can exchange data through the N4 interface; UPF and gNB can exchange data through the N3 interface; UPF and DN can exchange data through the N6 interface; different UPFs can exchange data through the N9 interface.
[0032] The following is an introduction to the fault detection method provided in the embodiments of the present application.
[0033] Figure 2 FIG. 1 is a flow chart of a fault detection method provided by an embodiment of the present application. The method can be applied to the above-mentioned SMF, such as Figure 1 As shown, the method specifically includes:
[0034] Step 201, receiving M heartbeat messages sent by a first user plane function UPF, each heartbeat message includes N preset fields, the preset fields are used to indicate the data exchanged between the first UPF and its external device, and M and N are both positive integers;
[0035] Step 202, matching each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result;
[0036] Step 203: Generate a fault detection result based on the matching result, where the fault detection result is used to indicate whether the first UPF has a fault.
[0037] The first UPF mentioned above can be any UPF in the UPF POOL that can be selected by the SMF.
[0038] In this embodiment, the SMF and the first UPF can exchange heartbeat messages. For example, the SMF and the first UPF can agree to send preset messages to each other at a certain frequency. In other words, during normal data exchange, the SMF and the first UPF can regularly send preset messages to each other, and the preset messages correspond to the heartbeat messages.
[0039] In the interaction cycle of a heartbeat message, the SMF may actively send a heartbeat message (recorded as message A), and the first UPF may feedback a heartbeat message (recorded as message B) to the SMF upon receiving message A. Of course, in actual applications, the first UPF may actively send message B, and the SMF may feedback message A to the first UPF in response to the received message B.
[0040] Generally speaking, for SMF, when the heartbeat message sent by the first UPF is not received for a long time, it can be considered that there is an abnormality in the first UPF.
[0041] In some examples, the aforementioned longer time may correspond to a time threshold. For example, when the duration of not receiving the heartbeat message sent by the first UPF exceeds the time threshold, it is considered that the first UPF is abnormal.
[0042] In combination with some actual application scenarios, SMF sends a heartbeat message, and after not receiving a UPF response for more than a preset number of times, it is considered that the first UPF is abnormal. The preset number of times can be considered as the ratio of the time threshold to the heartbeat message interaction period.
[0043] However, in actual applications, the first UPF may not be able to interact normally with other functional units due to some faults, for example, the first UPF cannot interact normally with the gNB, or the first UPF cannot interact normally with the DN, etc. In some cases, the SMF may normally receive the heartbeat message sent by the first UPF, but cannot perceive the actual fault of the first UPF.
[0044] In this embodiment, in order to effectively detect the fault of the first UPF, N preset fields may be added to the heartbeat message, and these preset fields may be used to indicate the interaction data between the first UPF and its external device.
[0045] In other words, the above-mentioned N preset fields can be considered as heartbeat extension fields added to a simple heartbeat message.
[0046] For the first UPF, its external device can be considered as a device that has a communication connection with it, that is, data can be exchanged between the first UPF and its external device.
[0047] Combination Figure 1In the 5G service architecture shown, the external device of the first UPF can be a gNB, SMF, DN, or other UPFs in the UPF POOL to which the first UPF belongs. Of course, in actual applications, the external device can also be other types of functional units, which are not illustrated one by one here.
[0048] The first UPF and its external device can interact with each other. Accordingly, the interaction data can be acquired by the first UPF, and corresponding preset fields can be added to the heartbeat message based on the interaction data.
[0049] For example, there may be uplink and downlink traffic between the first UPF and the gNB, and the uplink and downlink traffic may be used as one of the preset fields. For another example, there may be a session record between the first UPF and the SMF, and the success rate of the session establishment between the first UPF and the SMF may be obtained through the session record, and the success rate of the session establishment may be used as another preset field.
[0050] According to the preset fields in the heartbeat message, it can be determined whether there is an abnormal interaction between the first UPF and its external device. From another perspective, it can be determined whether there is a fault in the first UPF. The specific judgment process will be described below.
[0051] In step 201, the SMF may receive M heartbeat messages sent by the first UPF, and detect whether the first UPF has a fault based on the M heartbeat messages. M is a positive integer, that is, in practical applications, according to the actual requirements for the reliability of the fault detection result, one heartbeat message may be selected to determine whether the first UPF has a fault; or at least two heartbeat messages may be selected to determine whether the first UPF has a fault.
[0052] In step 202, each preset field in each heartbeat message may be matched with a corresponding preset field condition to obtain a comparison result.
[0053] The following mainly introduces the matching process of each preset field in a heartbeat message and the corresponding preset field condition.
[0054] For example, the heartbeat message includes a preset field for the uplink traffic between the first UPF and the gNB. The preset field condition corresponding to the preset field may be the upper limit of the uplink traffic, the lower limit of the uplink traffic, or the upper and lower limits of the uplink traffic, etc.
[0055] For example, if the uplink traffic between the first UPF and the gNB indicated in the heartbeat message is 200MB, and the corresponding preset field condition is the lower limit of the uplink traffic of 100MB, then the preset field of the uplink traffic between the first UPF and the gNB can be considered to match the corresponding preset field condition. On the contrary, if the uplink traffic between the first UPF and the gNB indicated in the heartbeat message is 10MB, then the preset field of the uplink traffic between the first UPF and the gNB can be considered to not match the corresponding preset field condition.
[0056] Similarly, other preset fields in the corresponding heartbeat message may also have corresponding preset field conditions. By matching each preset field with its corresponding preset field condition, a matching result may be obtained. In other words, the matching result may indicate whether each preset field in the heartbeat message matches its corresponding preset field condition.
[0057] In practical applications, the above-mentioned preset field condition may indicate a numerical range through an upper limit or a lower limit, or may be a preset field set. For example, the preset field may be text or letters, etc., and the corresponding preset field set may include multiple fields.
[0058] When a preset field has a corresponding field in the preset field set, it can be considered that the preset field matches the preset field condition. For example, the preset field of the uplink traffic between the first UPF and the gNB can be described by "high", "medium", and "low", and the corresponding preset field set is {"high", "medium"}. Then, if the preset field is "high", it means that the preset field matches the preset field condition; if the preset field is "low", it means that the preset field does not match the preset field condition.
[0059] In step 203, a fault detection result is generated according to the matching result, and the fault detection result can be used to indicate whether there is a fault in the first UPF.
[0060] In combination with the above example, the number of heartbeat messages used to determine whether the first UPF is faulty can be one or more, and each heartbeat message can contain one or more preset fields. To a certain extent, the matching result obtained in step 102 can be considered as a matching result including M×N preset fields and their corresponding preset field conditions (hereinafter referred to as sub-matching result).
[0061] It is easy to understand that in practical applications, when one of the sub-matching results indicates a mismatch, it is considered that the first UPF has a fault; or when multiple sub-matching results simultaneously indicate a mismatch, it is considered that the first UPF has a fault.
[0062] For example, the heartbeat message includes a preset field for the uplink traffic between the first UPF and the gNB. When the uplink traffic between the first UPF and the gNB in the M heartbeat messages does not match the corresponding preset field conditions, it can be determined that the first UPF has a fault.
[0063] For another example, the heartbeat message includes two preset fields: the uplink traffic between the first UPF and the gNB, and the uplink traffic between the first UPF and the DN. When these two preset fields do not match the corresponding preset field conditions in M heartbeat messages, it can be determined that there is a fault in the first UPF.
[0064] Of course, whether the first UPF is faulty can be determined by considering the type, quantity or combination of preset fields when there is a mismatch with the preset field conditions, and these considerations can be preset according to actual needs. But in general, the SMF can generate a fault detection result based on the matching result obtained in step 102.
[0065] The fault detection method provided in the embodiment of the present application receives M heartbeat messages sent by the first UPF, each heartbeat message includes N preset fields, and the preset fields can be used to indicate the interaction data between the first UPF and its external device; the non-preset fields in the M heartbeat messages are matched with the corresponding preset field conditions to obtain a matching result, and a fault detection result for indicating whether the first UPF has a fault is generated according to the matching result. In the embodiment of the present application, the heartbeat message includes a preset field indicating the interaction data between the first UPF and its external device. By matching the preset field with the preset field condition, it can be determined whether there is a data interaction anomaly between the first UPF and its external device, which helps to achieve comprehensive and flexible detection of the first UPF fault and improve the fault detection effect.
[0066] In some implementations, the N preset fields include at least one of the following:
[0067] A first field, the first field is used to indicate traffic data between the first UPF and the base station, wherein the external device includes the base station, and the interaction data includes traffic data;
[0068] A second field, the second field is used to indicate traffic data between the first UPF and the data network, wherein the external device includes the data network;
[0069] A third field, the third field is used to indicate the flow data between the first UPF and the second UPF, wherein the external device includes the second UPF;
[0070] The fourth field is used to indicate the session establishment success rate between the first UPF and the SMF, wherein the interaction data includes the session establishment success rate.
[0071] The external device of the first UPF has been described above, and may be a device that has a communication connection with the first UPF. The external device of the first UPF reflected in the preset field may be selected according to actual needs.
[0072] The following is an illustration of each of the above-mentioned preset fields.
[0073] The first field is used to indicate the traffic data between the first UPF and the base station. The base station here can be a wireless base station of the type such as the gNB mentioned above, which can interact with the first UPF. Examples are not given here one by one.
[0074] In combination with the above description, data exchange between the first UPF and the base station may be performed through the N3 interface, and the specific exchanged data may include traffic data and the like.
[0075] Accordingly, the first UPF can obtain traffic data related to the N3 interface, such as the total uplink traffic, the total downlink traffic, the uplink traffic average or the downlink traffic average in a heartbeat message interaction cycle, etc. The first field can indicate these uplink and downlink traffic data.
[0076] The second field is used to indicate the traffic data between the first UPF and the data network. The data network may correspond to the above-mentioned DN.
[0077] The first UPF and the DN may exchange data via the N6 interface. The first UPF may obtain uplink and downlink traffic data related to the N6 interface, and reflect the uplink and downlink traffic data in the second field.
[0078] The third field is used to indicate the traffic data between the first UPF and the second UPF. As shown above, for SMF, a UPF POOL can usually be configured, and the second UPF can be any UPF in the UPF POOL except the first UPF.
[0079] UPFs can exchange data through the N9 interface. Accordingly, the first UPF can obtain the uplink and downlink traffic data between it and the second UPF through the N9 interface, and reflect these uplink and downlink traffic data in the third field.
[0080] The fourth field is used to indicate the success rate of session establishment between the first UPF and the SMF. The first UPF and the SMF may exchange data via the N4 interface.
[0081] It is easy to understand that the first UPF can count the session records between it and the SMF, such as the number of sessions initiated in a heartbeat message interaction cycle, and the number of successful sessions established with the SMF, etc. Based on these session records, the session establishment success rate can be obtained and reflected in the fourth field.
[0082] It can be seen that in this implementation, the preset fields in the heartbeat message can be flexibly assembled to meet the flexible detection requirements for the fault of the first UPF.
[0083] The above-mentioned heartbeat message may include a basic field for determining whether a communication connection is in progress, and the above-mentioned N preset fields may be considered as extended fields on these basic fields. In some examples, the extended fields in the heartbeat message may be represented as:
[0084]
[0085] Optionally, in step 202, each preset field in the M heartbeat messages is matched with its corresponding preset field condition to obtain a matching result, including:
[0086] Matching the first preset field in each heartbeat message with the corresponding preset field condition respectively, the first preset field being any preset field among the N preset fields;
[0087] When the number of first heartbeat messages in the M heartbeat messages is greater than the first number threshold, a matching result indicating that an abnormality exists in the first preset field is generated, and the first heartbeat message is a heartbeat message including a first preset field that does not match the corresponding preset field condition.
[0088] In this embodiment, the first preset field can be considered as any preset field among the N preset fields. In order to simplify the description, the following mainly takes the case where the first preset field is the above-mentioned "N4 session establishment success rate" as an example for explanation. In the M heartbeat messages, each heartbeat message may include the first preset field of "N4 session establishment success rate".
[0089] Assume that M=3. In three heartbeat messages, the first preset fields are 30%, 80% and 85% respectively.
[0090] The preset field condition corresponding to the first preset field "N4 session establishment success rate" may be "lower limit 50%". That is, when the first preset field is greater than or equal to 50%, it can be considered that the first preset field matches its preset field condition. On the contrary, when the first preset field is less than 50%, it can be considered that the first preset field does not match its preset field condition.
[0091] After matching, it can be known that among the three heartbeat messages, the first preset field in one heartbeat message does not match the corresponding preset field condition, and the first preset field in two heartbeat messages matches the corresponding preset field condition. That is, the number of the above first heartbeat messages is 1.
[0092] If the first quantity threshold is 0, the number of first heartbeat messages is greater than the first quantity threshold, indicating that the first preset field has an abnormality. If the first quantity threshold is 2, the number of first heartbeat messages is less than the first quantity threshold, indicating that the first preset field has no abnormality.
[0093] Whether the first heartbeat message is abnormal can be reflected in the matching result. In other words, the matching result can indicate which specific preset fields are abnormal.
[0094] Of course, the above are only some examples for determining whether the first preset field in the heartbeat message is abnormal. In practical applications, the value of M, the preset field condition or the quantity threshold used, etc., can be adjusted as needed.
[0095] For example, the value of M may be 1. Thus, an abnormality judgment of a preset field may be performed based on one heartbeat message, thereby ensuring the timeliness of obtaining the matching result.
[0096] In contrast, in the above example, the value of M can be greater than 1, and the value of the first quantity threshold can also be greater than 1. In this way, the interference of factors such as data errors can be effectively reduced, and the reliability of the matching results can be improved.
[0097] It can be seen that this embodiment provides some solutions for determining whether there are abnormalities in the preset fields, wherein the value of M or the first quantity threshold can be set as needed, which helps to meet the requirements for timeliness or reliability of obtaining matching results.
[0098] Optionally, the above step 303, generating a fault detection result according to the matching result, includes:
[0099] In the case where the matching result indicates at least one of the following, a fault detection result indicating that the first UPF is faulty is generated:
[0100] The number of abnormal preset fields in the N preset fields is greater than a second number threshold;
[0101] There is an exception in the target field among the N preset fields.
[0102] Combined with the above examples, the N preset fields may include "UPF N3 uplink and downlink traffic", "UPF N6 uplink and downlink traffic", "UPF N9 uplink and downlink traffic" and "N4 session establishment success rate".
[0103] In one example, when the number of abnormal preset fields among the N preset fields is greater than a second number threshold, it can be determined that the first UPF has a fault.
[0104] For example, if the second quantity threshold is 2, and if 3 of the 4 preset fields are abnormal, a fault detection result indicating that the first UPF is faulty can be generated. On the contrary, if only 1 preset field is abnormal, it can be determined that the first UPF is not currently faulty.
[0105] In another example, if there is an abnormality in the target field among the above four preset fields, it can also be determined that there is a fault in the first UPF.
[0106] The target field may be preset. For example, if the "N4 session establishment success rate" is set as the target field, if the "N4 session establishment success rate" does not match its preset field condition, it can be determined that the first UPF has a fault.
[0107] Of course, in actual applications, if the number of abnormal preset fields in the N preset fields is greater than the second number threshold, and the target field in the N preset fields is abnormal, it can also be determined that the first UPF is faulty.
[0108] It can be seen that the present embodiment can flexibly set conditions to determine whether there is a fault in the first UPF, thereby meeting the needs of first UPF fault detection in different application scenarios.
[0109] Optionally, when the fault detection result indicates that the first UPF has a fault, the method may further include:
[0110] In response to the fault detection result, disaster recovery processing is performed on the first UPF.
[0111] For example, when the SMF determines through fault detection results that the first UPF is faulty, a first instruction can be generated to disconnect the communication connection between the first UPF and its external device to prevent the faulty first UPF from continuing to work, resulting in the related sessions not being processed in a timely manner.
[0112] It is easy to understand that the first instruction can be responded to by the SMF, or it can be sent to other devices and then responded to by these devices that receive the first instruction. For example, when the communication connection between the SMF and the first UPF is interrupted, the SMF can send the first instruction to the first UPF, and the first UPF responds to the first instruction to disconnect the communication connection with the gNB and other devices.
[0113] In other words, in practical applications, the above-mentioned disaster recovery processing may refer to the process in which the SMF releases the coupling with the first UPF and deactivates the user session carried by the first UPF.
[0114] In some examples, when the SMF detects a fault in the first UPF, it can select other UPFs in the UPF POOL to replace the first UPF to carry traffic, complete disaster recovery scheduling of user plane traffic, and ensure that services such as sessions are not affected.
[0115] In other words, the disaster recovery process may also include the process in which the SMF selects another UPF to replace the function of the first UPF.
[0116] Of course, in order to avoid signaling storms and other phenomena caused by too many UPFs performing disaster recovery processing, optionally, in the above step 203, after generating a fault detection result according to the matching result, the fault detection method further includes:
[0117] When the fault detection result indicates that the first UPF has a fault, obtaining the number of the third UPF, where the third UPF is connected to the SMF and has undergone disaster recovery processing;
[0118] When the number of the third UPFs is less than or equal to a third number threshold, disaster recovery processing is performed on the first UPF.
[0119] In this embodiment, when a fault is detected in the first UPF, it can be further determined whether to perform disaster recovery processing on the first UPF based on the number of UPFs that have performed disaster recovery processing in the UPF POOL corresponding to the SMF.
[0120] Specifically, in this embodiment, the number of third UPFs can be obtained, and when the number of third UPFs is less than or equal to a third number threshold, the disaster recovery process for the first UPF is triggered.
[0121] Among them, disaster recovery processing may refer to the process in which the SMF mentioned above releases the coupling with the first UPF, deactivates the user session carried by the first UPF, and selects another UPF to replace the function of the first UPF.
[0122] As shown above, SMF can communicate with multiple UPFs in UPF POOL, and the first UPF can be any UPF in UPF POOL. SMF may also detect faults of other UPFs except the first UPF. Accordingly, other UPFs may be detected by SMF as faulty and disaster recovery is performed, and these UPFs that have undergone disaster recovery may correspond to the third UPF mentioned above.
[0123] The SMF may count the third UPFs to obtain the number of third UPFs.
[0124] Generally speaking, the UPF that has been processed for disaster recovery will be terminated by the SMF. Since the number of UPFs in the UPF POOL is limited, if the number of third UPFs is large, if the UPFs continue to be detected and processed for disaster recovery using more stringent fault detection standards, the number of remaining UPFs that can work normally may be too small, resulting in signaling storms and other phenomena.
[0125] The above-mentioned detection of the fault of the first UPF based on the preset field can be considered to adopt a more stringent fault detection standard because the interaction between the first UPF and the external equipment is taken into consideration.
[0126] Therefore, in this embodiment, in order to avoid the situation where too many UPFs directly terminate their work due to being judged to have faults, resulting in the remaining processing capacity of the UPF POOL being unable to process user information, the first UPF can be disaster-recovery processed when the number of third UPFs is less than or equal to the third number threshold.
[0127] For example, the above-mentioned third quantity threshold is 5. If a fault is detected in the first UPF, the number of third UPFs is obtained. Assuming that the number is 3, at this time, the number of third UPFs is less than the third quantity threshold, and disaster recovery processing can be performed on the first UPF.
[0128] If the number of third UPFs is 6, at this time, the number of third UPFs is greater than the third number threshold, and there is no need to perform disaster recovery processing on the first UPF subsequently, and the current working status of the first UPF can be maintained.
[0129] From the above, it can be seen that in this embodiment, if there is a fault in the first UPF, the number of third UPFs will continue to be obtained. When the number of third UPFs is less than or equal to the third number threshold, disaster recovery processing will be performed on the first UPF. This can avoid the situation where the number of third UPFs is too large and the UPF continues to be subjected to fault detection and disaster recovery processing with more stringent fault detection standards, resulting in insufficient signaling processing capabilities of the remaining UPFs, thereby improving the reliability of the service architecture.
[0130] In one example, when disaster recovery processing is performed on the first UPF, the number of the third UPF can be updated.
[0131] In actual applications, the generation of a fault detection result indicating that the first UPF is faulty may not rely on the matching process of the preset fields. For example, when the interaction process of the heartbeat message between the SMF and the first UPF is abnormal (for example, the SMF does not receive the heartbeat message sent by the first UPF within the preset time), a fault detection result indicating that the first UPF is faulty may also be generated.
[0132] Generally speaking, when the heartbeat message sent by the first UPF is not detected within the preset time period, it means that the communication connection between the SMF and the first UPF is disconnected, and the first UPF can no longer assume the corresponding session function.
[0133] Therefore, in one embodiment, the fault detection method may further include:
[0134] Monitoring the heartbeat message;
[0135] When no heartbeat message sent by the first UPF is detected within a preset time period, disaster recovery processing is performed on the first UPF.
[0136] Generally speaking, the process of monitoring the heartbeat message may occur during the entire communication between the SMF and the first UPF. Therefore, in combination with an application scenario, when the number of the third UPF is greater than the third number threshold, the heartbeat message may also continue to be monitored;
[0137] When the heartbeat message sent by the first UPF is not detected within the preset time period, disaster recovery processing can be directly performed on the first UPF.
[0138] Generally speaking, whether the SMF can regularly receive the heartbeat message from the first UPF can be a sign of whether the SMF and the first UPF can communicate normally. When the SMF fails to obtain the heartbeat message sent by the first UPF within the preset time, it means that there is a communication failure between the SMF and the first UPF, and the SMF cannot receive the session request initiated by the first UPF.
[0139] When no heartbeat message sent by the first UPF is detected within a preset time period, disaster recovery processing is performed on the first UPF.
[0140] In other words, when the first UPF cannot communicate normally with the SMF, the SMF can control the disconnection of the communication connection between the first UPF and its external device, and select other UPFs to carry the user session, thereby avoiding signaling obstruction.
[0141] In one embodiment, the SMF may continue to receive the heartbeat message sent by the first UPF, but may choose whether to process the heartbeat message.
[0142] Specifically, the above step 202, matching each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result, may specifically include:
[0143] Obtaining target switch information associated with the first UPF;
[0144] In the case where the target switch information indicates that the heartbeat message is to be processed, each preset field in the M heartbeat messages is matched with its corresponding preset field condition to obtain a matching result.
[0145] The target switch information can be used to indicate whether to process the heartbeat message. The target switch information can be pre-stored in the SMF. For example, the target switch information can be stored in the form of "ID, value", where ID represents the identity information of the UPF, and value can indicate the switch state. For example, when the value is 1, it means that the processing of the heartbeat message is turned on; when the value is 0, it means that the processing of the heartbeat message is turned off.
[0146] When the SMF receives a heartbeat message carrying identity information, it can determine whether it is necessary to further read and process the preset fields in the heartbeat message based on the identity information and the target switch information.
[0147] When the target switch information is stored in the SMF, each UPF in the corresponding UPF POOL can be uniformly configured in the SMF to ensure the convenience of configuration of the target switch information.
[0148] Of course, the above-mentioned target switch information may also be carried in the heartbeat message. When the SMF reads the target switch information, it determines whether it is necessary to further read and process the preset fields in the heartbeat message according to the target switch information.
[0149] The target switch information is in the heartbeat message, and the first UPF can configure the target switch information as needed. For example, the first UPF can automatically match the target switch information according to the number of sessions currently carried.
[0150] In this embodiment, the SMF can determine whether to further process the heartbeat message sent by the first UPF based on the target switch information associated with the first UPF, which can effectively improve the flexibility of fault detection.
[0151] The fault detection method provided in the embodiment of the present application is introduced below in combination with some specific application examples.
[0152] like Figure 3As shown, the heartbeat message between SMF and UPF can adopt the heartbeat message based on the message forwarding control protocol (PFCP_Heartbeat_Request / Response). In the N4 heartbeat message between SMF and UPF, a new "process status" (business process status or signaling process status) characterization field is added (corresponding to N preset fields), including but not limited to: "UPF N3, N6, N9 uplink and downlink traffic" statistical field, "N4 session establishment success rate" statistical field, etc. The field value is counted by UPF according to the current value of the device and fed back to SMF in the heartbeat interaction.
[0153] SMF accepts N4 heartbeat messages and adds "problem judgment and response" logic for the newly added extended fields. The specific mechanisms are as follows:
[0154] (1) “Process status” represents the field problem judgment mechanism.
[0155] For each "process status" representation field (such as x, y, z fields), configure the problem judgment rule. If the heartbeat message is received n times within the configured heartbeat number (such as n), and the x value is continuously lower than or higher than the configured threshold value t (this threshold value can be manually statically configured or dynamically calculated through system statistics), it is determined that there is a problem with the x representation state. The x representation state can be counted as (but not limited to) x!. When there is a problem with the state, x! is true, and when there is no problem with the state, x! is false.
[0156] (2) UPF problem judgment mechanism.
[0157] Based on the representation state (x!, y!, z!, etc.), the corresponding UPF problem judgment rules are configured according to the logical operators. For example, the expression can be configured as x! &y! (where & is the AND operation). When the expression is "true", the UPF problem is judged to be "true", otherwise it is judged to be false.
[0158] (3) UPF problem disaster recovery behavior mechanism.
[0159] When SMF determines that the UPF problem is "true", it releases the coupling with the UPF and deactivates the user session carried by the UPF, allowing the user to re-initiate session establishment. SMF selects a normal UPF to complete the disaster recovery operation.
[0160] (4) Maximization configuration of disaster recovery behavior for UPF problems.
[0161] To prevent abnormal problem determination or the possibility of signaling storms, SMF can set the maximum number of problem UPFs determined based on "process status", such as m. When SMF determines that there is a problem with UPF, the "UPF problem count" under SMF is increased by 1. When the number of problem UPFs determined based on "process status" in SMF is greater than m, SMF will no longer perform disaster recovery for subsequent problem UPFs. When SMF re-determines that the problem UPF has returned to normal, the "UPF problem count" under SMF is reduced by 1.
[0162] (5) Determine the switching mechanism.
[0163] SMF sets the switch for "process status" judgment of different UPFs (corresponding target switch information): when the UPF "process status" judgment is turned off, SMF does not perform corresponding processing on the "process status" representation field contained in the heartbeat message sent by the UPF; when the UPF "process status" judgment is turned on, SMF accepts and processes the "process status" representation field contained in the heartbeat message, and enters the UPF judgment process for the "process status" problem.
[0164] Combination Figure 4 , based on the above mechanism, the fault detection method can specifically include:
[0165] Step 401: The SMF can configure a "process status" judgment switch for each of the connected UPFs.
[0166] In step 402, SMF receives the heartbeat message fed back from UPF. When the "UPF judgment switch" is configured to "off", SMF does not make a problem judgment on the UPF "process status" in the message, that is, it does not process the "process status" field in the N4 heartbeat interaction, and can judge whether UPF has a fault as follows: When SMF does not receive the heartbeat message feedback from UPF within a certain configuration cycle, SMF determines that the UPF has a fault.
[0167] Step 403, when the "UPF judgment switch" is configured to "on", the SMF accepts the newly added "process status" field, and performs a "process status" field characterization problem judgment based on the "problem" judgment rules configured for each field.
[0168] Step 404, based on the configured "UPF problem determination expression", such as (x! & y!), UPF problem determination is performed. When the expression is "true", it is determined that there is a problem with the UPF. When the expression is "false", it is determined that the UPF is normal.
[0169] Step 405, when SMF determines that there is a problem with UPF, the "UPF problem count" on the SMF is increased by 1, and compared with the maximum number of problematic UPFs m determined by the "process status" on the SMF. When it is greater than m, the process ends; when it is less than or equal to m, SMF executes the corresponding UPF disaster recovery behavior.
[0170] Combined with the above specific application examples, it can be seen that the fault detection method provided in the embodiment of the present application can combine various "process status" fields and perform UPF problem determination by setting different logical expressions. Based on this, SMF will be more comprehensive and flexible in determining UPF problems. When UPF peripheral data communication equipment fails, UPF has a hidden failure, or other N4 heartbeat interactions are normal, but business and signaling processes are blocked, SMF can keenly perceive the problem and take disaster recovery actions in time.
[0171] like Figure 5 As shown, the embodiment of the present application also provides a fault detection device, which is applied to SMF, and the device includes:
[0172] A receiving module 501 is used to receive M heartbeat messages sent by the first UPF, each heartbeat message includes N preset fields, the preset fields are used to indicate the interaction data between the first UPF and its external device, and M and N are both positive integers;
[0173] A matching module 502, used for matching each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result;
[0174] The first generating module 503 is used to generate a fault detection result according to the matching result, and the fault detection result is used to indicate whether the first UPF has a fault.
[0175] Optionally, the N preset fields include at least one of the following:
[0176] A first field, the first field is used to indicate traffic data between the first UPF and the base station, wherein the external device includes the base station, and the interaction data includes traffic data;
[0177] A second field, the second field is used to indicate traffic data between the first UPF and the data network, wherein the external device includes the data network;
[0178] A third field, the third field is used to indicate the flow data between the first UPF and the second UPF, wherein the external device includes the second UPF;
[0179] The fourth field is used to indicate the session establishment success rate between the first UPF and the SMF, wherein the interaction data includes the session establishment success rate.
[0180] Optionally, the matching module 502 may include:
[0181] A first matching unit, used for matching a first preset field in each heartbeat message with a corresponding preset field condition, wherein the first preset field is any preset field among the N preset fields;
[0182] The first generating unit is used to generate a matching result indicating that there is an abnormality in the first preset field when the number of first heartbeat messages in M heartbeat messages is greater than a first number threshold, and the first heartbeat message is a heartbeat message in which the first preset field included does not match the corresponding preset field condition.
[0183] Optionally, the first generating module 503 includes:
[0184] The second generating unit is configured to generate a fault detection result indicating that a fault exists in the first UPF when the matching result indicates at least one of the following:
[0185] The number of abnormal preset fields in the N preset fields is greater than a second number threshold;
[0186] There is an exception in the target field among the N preset fields.
[0187] Optionally, the fault detection device may further include:
[0188] An acquisition module, configured to acquire the number of a third UPF when the fault detection result indicates that the first UPF has a fault, wherein the third UPF is a UPF connected to the SMF and has undergone disaster recovery processing;
[0189] The first disaster recovery processing module is used to perform disaster recovery processing on the first UPF when the number of the third UPFs is less than or equal to a third number threshold.
[0190] Optionally, the matching module 502 may include:
[0191] an acquiring unit, configured to acquire target switch information associated with the first UPF;
[0192] The second matching unit is configured to match each preset field in the M heartbeat messages with a corresponding preset field condition to obtain a matching result when the target switch information indicates that the heartbeat message is to be processed.
[0193] Optionally, the fault detection device may further include:
[0194] A monitoring module, used for monitoring the heartbeat message;
[0195] The second disaster recovery processing module is used to perform disaster recovery processing on the first UPF when the heartbeat message sent by the first UPF is not detected within a preset time period.
[0196] It should be noted that the fault detection device is a device corresponding to the above-mentioned fault detection method, and all implementation methods in the above-mentioned method embodiment are applicable to the embodiment of the device and can achieve the same technical effect.
[0197] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0198] The electronic device may include a processor 601 and a memory 602 storing computer program instructions.
[0199] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0200] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory.
[0201] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to the present disclosure.
[0202] The processor 601 implements any one of the fault detection methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .
[0203] In one example, the electronic device may further include a communication interface 603 and a bus 604. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 604 and communicate with each other.
[0204] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0205] Bus 604 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 604 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0206] In addition, in combination with the fault detection method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the fault detection methods in the above embodiment is implemented.
[0207] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0208] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0209] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0210] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0211] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A fault detection method, applied to a session management function SMF, characterized in that: The method comprises: Receive M heartbeat messages sent by the first user plane function UPF, each of the heartbeat messages includes N preset fields, the preset fields are used to indicate the interaction data between the first UPF and its external device, and M and N are both positive integers; Matching each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result; Generate a fault detection result according to the matching result, wherein the fault detection result is used to indicate whether the first UPF has a fault; The matching of each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result includes: Respectively matching a first preset field in each of the heartbeat messages with a corresponding preset field condition, the first preset field being any preset field among the N preset fields; When the number of first heartbeat messages in the M heartbeat messages is greater than a first number threshold, generating a matching result indicating that the first preset field is abnormal, the first heartbeat message being a heartbeat message in which the first preset field included does not match the corresponding preset field condition; The preset field is used to indicate the interaction data between the first UPF and its external device.
2. The method according to claim 1, characterized in that The N preset fields include at least one of the following: A first field, the first field is used to indicate traffic data between the first UPF and a base station, wherein the external device includes the base station, and the interaction data includes traffic data; a second field, the second field being used to indicate traffic data between the first UPF and a data network, wherein the external device includes the data network; A third field, the third field is used to indicate flow data between the first UPF and the second UPF, wherein the external device includes the second UPF; The fourth field is used to indicate the success rate of session establishment between the first UPF and the SMF, wherein the interaction data includes the success rate of session establishment.
3. The method according to claim 1, characterized in that Generate a fault detection result according to the matching result, including: In the case where the matching result indicates at least one of the following, generating a fault detection result indicating that the first UPF has a fault: The number of abnormal preset fields in the N preset fields is greater than a second number threshold; There is an abnormality in the target field among the N preset fields.
4. The method according to claim 1, characterized in that: After generating a fault detection result according to the matching result, the method further includes: When the fault detection result indicates that the first UPF has a fault, obtaining the number of the third UPF, where the third UPF is connected to the SMF and has undergone disaster recovery processing; When the number of the third UPFs is less than or equal to a third number threshold, disaster recovery processing is performed on the first UPF.
5. The method according to claim 4, characterized in that The step of matching each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result includes: Obtaining target switch information associated with the first UPF; In the case where the target switch information indicates that the heartbeat message is to be processed, each preset field in the M heartbeat messages is matched with its corresponding preset field condition to obtain a matching result.
6. The method according to claim 1, characterized in that The method further comprises: Monitoring the heartbeat message; When no heartbeat message sent by the first UPF is detected within a preset time period, disaster recovery processing is performed on the first UPF.
7. A fault detection device, applied to a session management function SMF, characterized in that: The device comprises: A receiving module, used to receive M heartbeat messages sent by the first user plane function UPF, each of the heartbeat messages includes N preset fields, the preset fields are used to indicate the interaction data between the first UPF and its external device, and M and N are both positive integers; A matching module, used for matching each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result; A first generating module, used for generating a fault detection result according to the matching result, wherein the fault detection result is used for indicating whether the first UPF has a fault; The matching of each preset field in the M heartbeat messages with its corresponding preset field condition to obtain a matching result includes: Respectively matching a first preset field in each of the heartbeat messages with a corresponding preset field condition, the first preset field being any preset field among the N preset fields; When the number of first heartbeat messages in the M heartbeat messages is greater than a first number threshold, generating a matching result indicating that the first preset field is abnormal, the first heartbeat message being a heartbeat message in which the first preset field included does not match the corresponding preset field condition; The preset field is used to indicate the interaction data between the first UPF and its external device.
8. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the fault detection method according to any one of claims 1 to 6 is implemented.
9. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the fault detection method according to any one of claims 1 to 6 is implemented.
