UPF fault detection method, device, electronic device and storage medium based on 5G

By detecting multiple interfaces and functional modules of UPF in 5G network, the business interruption problem caused by UPF failure is solved, faster and more accurate fault detection and processing is achieved, and the effectiveness of node establishment is improved.

CN115134838BActive Publication Date: 2025-02-07GENEW TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210751422.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2025-02-07
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

In the existing 5G network, UPF responds successfully directly when receiving the node establishment request of SMF, resulting in the subsequent terminal services being unable to operate normally, the troubleshooting range is large, time-consuming and waste computing resources.

Method used

By detecting the interface status, link status and functional modules of multiple interfaces of UPF, if any of the detection results are abnormal, the UPF fault is determined, and when receiving the node establishment request of the SMF, the corresponding fault detection is feedback. As a result, the SMF can choose to replace the UPF for node establishment.

Benefits of technology

It improves the comprehensiveness and accuracy of UPF fault detection, reduces the time and resource consumption of troubleshooting, and enhances the effectiveness of node establishment between SMF and UPF.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134838B_ABST
    Figure CN115134838B_ABST
Patent Text Reader

Abstract

The present invention discloses a UPF fault detection method, device, electronic device and storage medium based on 5G. The method comprises: respectively detecting the interface status of multiple interfaces of UPF to obtain multiple first detection results, each first detection result represents the interface status of one of the interfaces of UPF; respectively detecting the link status of multiple interfaces to obtain a second detection result of the link status of each interface, each second detection result represents the link status of one of the interfaces of UPF; detecting the functional modules of UPF to obtain a third detection result of the functional modules, the third detection result represents the working status of the functional modules, the functional modules include DPDK modules, if the first detection result, the second detection result or the third detection result is an abnormal state, the fault detection result of UPF is UPF fault, and the fault detection result includes UPF fault or UPF normal; when receiving a node establishment request sent by SMF, sending a feedback message corresponding to the fault detection result to SMF.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a 5G-based UPF fault detection method, device, electronic device and storage medium. Background Art

[0002] Nowadays, the fifth generation of mobile communication coefficient (5G) has gradually entered people's lives and work. When users use the network to make calls or watch videos, the user's terminal accesses the network and needs to control the user plane function (UPF) through the service management function (SMF) to establish a service channel to carry the terminal service.

[0003] The current UPF directly replies to the SMF node establishment success upon receiving the node establishment request from the SMF, which may cause the terminal service to fail to operate normally in the future. At that time, the scope of troubleshooting will be very large. For example, it is necessary to check whether there are problems inside the SMF, UPF, base station, terminal and other devices, and whether there are problems with the link status between them. This is time-consuming and wastes computing resources. Therefore, a method is needed to solve the above technical problems. Summary of the invention

[0004] The embodiments of the present invention provide a 5G-based UPF fault detection method, device, electronic device and storage medium to realize the detection of UPF faults. When a node establishment request sent by SMF is received, a corresponding feedback message can be fed back to SMF according to the fault detection result of UPF, so that SMF can know the fault condition of UPF, and then choose whether to replace other UPFs except the current UPF to establish the node, thereby improving the effectiveness of node establishment.

[0005] In a first aspect, an embodiment of the present invention provides a 5G-based UPF fault detection method, including:

[0006] Detecting the interface status of multiple interfaces of the UPF respectively to obtain multiple first detection results, each first detection result represents the interface status of one of the interfaces of the UPF, and the first detection result includes a normal state or an abnormal state;

[0007] Detect the link status of the multiple interfaces respectively to obtain a second detection result of the link status of each interface, each second detection result indicating the link status of one of the interfaces of the UPF; the link status refers to the link status between the interface and the router, and the second detection result includes a normal state or an abnormal state;

[0008] Detecting the functional module of the UPF to obtain a third detection result of the functional module, wherein the third detection result indicates a working state of the functional module of the UPF, wherein the functional module includes a DPDK module, and the third detection result includes a normal state or an abnormal state;

[0009] If the first detection result, the second detection result or the third detection result is an abnormal state, the fault detection result of the UPF is the UPF fault, and the fault detection result includes UPF fault or UPF normal;

[0010] When a node establishment request sent by the SMF is received, a feedback message corresponding to the fault detection result is sent to the SMF, and the feedback message includes a response message of successful node establishment or a response message of failed node establishment.

[0011] In a second aspect, an embodiment of the present invention further provides a 5G-based UPF fault detection device, including:

[0012] An interface status detection module, used to detect the interface status of multiple interfaces of the UPF respectively, and obtain multiple first detection results, each first detection result represents the interface status of one of the interfaces of the UPF, and the first detection result includes a normal state or an abnormal state;

[0013] A link status detection module, configured to detect the link status of the multiple interfaces respectively, and obtain a second detection result of the link status of each interface, each second detection result indicating the link status of one of the interfaces of the UPF; the link status refers to the link status between the interface and the router, and the second detection result includes a normal state or an abnormal state;

[0014] a functional module detection module, configured to detect the functional module of the UPF to obtain a third detection result of the functional module, wherein the third detection result indicates a working state of the functional module of the UPF, wherein the functional module includes a DPDK module, and the third detection result includes a normal state or an abnormal state;

[0015] A fault detection result obtaining module, configured to obtain the fault detection result of the UPF as the UPF fault if the first detection result, the second detection result or the third detection result is an abnormal state, wherein the fault detection result includes a UPF fault or a UPF normal state;

[0016] A feedback message sending module is used to send a feedback message corresponding to the fault detection result to the SMF when a node establishment request sent by the SMF is received, the feedback message includes a response message of successful node establishment or a response message of failed node establishment, and the fault detection result includes UPF failure or UPF normal.

[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0018] one or more processors;

[0019] a storage device for storing one or more programs,

[0020] When the one or more programs are executed by the one or more processors, the one or more processors implement the 5G-based UPF fault detection method as described in any one of the embodiments of the present invention.

[0021] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute a 5G-based UPF fault detection method as described in any one of the embodiments of the present invention.

[0022] The technical solution of the embodiment of the present invention detects the interface status of multiple interfaces of UPF respectively to obtain the first detection result of the interface status of each interface, detects the link status of multiple interfaces respectively to obtain the second detection result of the link status of each interface, and detects the functional modules of UPF to obtain the third detection result. If any one of the detection results of the three detections is an abnormal state, the fault detection result of UPF is a UPF fault. The technical solution of the embodiment of the present invention realizes the detection of whether UPF has a fault in many aspects by detecting the interface status of multiple interfaces of UPF itself, the link status between each interface and the router, and the functional modules of UPF itself, thereby improving the comprehensiveness of fault detection. Moreover, when any detection result of the interface status, link status or working status of the functional module is an abnormal state, the fault detection result of UPF is determined to be a UPF fault. Only when all three detection results are in a normal state, the fault detection result of UPF is UPF normal, thereby ensuring the availability of UPF. When SMF sends a node establishment request, it can send a feedback message corresponding to the fault detection result to SMF, so that SMF can know the fault condition of UPF, and then choose whether to replace other UPFs except the current UPF to establish the node. The technical solution of the embodiment of the present invention improves the effectiveness of node establishment between SMF and UPF. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] in:

[0025] Figure 1 This is a structural diagram of a 5G-based UPF system in Embodiment 1 of the present invention;

[0026] Figure 2 This is a flow chart of a 5G-based UPF fault detection method in Embodiment 1 of the present invention;

[0027] Figure 3 This is a schematic diagram of message transmission between an SMF and a UPF in Embodiment 1 of the present invention;

[0028] Figure 4 This is another schematic diagram of message transmission between SMF and UPF in Embodiment 1 of the present invention;

[0029] Figure 5 This is a flow chart of a 5G-based UPF fault detection method in Embodiment 2 of the present invention;

[0030] Figure 6 This is a schematic diagram of message transmission between an SMF and a UPF in Embodiment 2 of the present invention;

[0031] Figure 7 This is a structural diagram of a 5G-based UPF fault detection device in Embodiment 3 of the present invention;

[0032] Figure 8 This is a schematic diagram of the structure of an electronic device in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] Before describing the technical solution of the embodiment of the present invention, the application scenario of the embodiment of the present invention is first exemplarily described:

[0035] The application layer in the 5G core network uses the Packet Forwarding Cortrol Protocol (PFCP). The PFCP request and response messages are transmitted between the service management function (SMF) and the user plane function (UPF), including information such as node creation, update, and deletion. SMF and UPF are two network elements in the 5G core network. Figure 1 , N3 interface transmits data between UPF and base station, and N6 interface transmits data between UPF and public network. In the embodiment of the present invention, when UPF can receive the node establishment request, the N4 interface is in normal state by default. Figure 3 As shown, SMF creates a node by sending a node establishment request, and UPF replies with a node establishment response to respond to the node establishment request. The node establishment between SMF and UPF is successful. Subsequently, if a terminal is registered with the 5G core network, the 5G core network will send the terminal's session creation information to UPF. However, if the cause of the failure of UPF itself is not considered, such as N3 and / or N6 interface failures, the node establishment is successfully replied directly, and it may not be possible to perform operations such as forwarding the data of the base station or the public network in the future. Therefore, through the technical solution of the embodiment of the present invention, the fault of UPF itself is detected, so that when the node creation request sent by SMF is received, the corresponding response message can be fed back to SMF based on the fault detection result of UPF, so that SMF determines whether it is necessary to select other UPFs other than the UPF to send the node creation request based on the response message to ensure the effectiveness of node creation. The method of the embodiment of the present invention can improve the effectiveness of node creation.

[0036] Embodiment 1

[0037] Figure 2 A flow chart of a 5G-based UPF fault detection method provided in an embodiment of the present invention. This embodiment is applicable to the case of detecting UPF faults. The method can be executed by a 5G-based UPF fault detection device, which can be implemented in the form of software and / or hardware.

[0038] like Figure 2 As shown, the 5G-based UPF fault detection method of the embodiment of the present invention specifically includes the following steps:

[0039] S110. Detect the interface status of multiple interfaces of the UPF respectively to obtain multiple first detection results.

[0040] Among them, each first detection result represents the interface status of one of the interfaces of the UPF, and the first detection result includes a normal state or an abnormal state. The interfaces of the UPF include multiple, for example, an N4 interface, an N3 interface and an N6 interface. In an embodiment of the present invention, the multiple interfaces include an N3 interface and an N6 interface. The N3 interface is used to transfer data between the base station and the UPF, and the N6 interface is used to transfer data between the public network and the UPF. When the first detection result is a normal state, the interface can send / receive data. On the contrary, when the first detection result is an abnormal state, the interface cannot send or receive data.

[0041] Specifically, the interface status of multiple interfaces of the UPF is detected respectively to obtain multiple first detection results. Optionally, the interface status of the N3 interface and the N6 interface is detected respectively to obtain the first detection result of each interface. The first detection result can be used to determine whether the UPF can send or receive data.

[0042] Based on the embodiment of the present invention, for multiple interfaces, by querying the LINK status of the interfaces, a first detection result of the interface status of the interfaces is obtained, and the LINK status includes an abnormal interface status or a normal interface status.

[0043] Specifically, by searching the LINK status of each interface, the first detection result of the interface status of the interface can be obtained. It should be noted that the LINK status can be displayed as an abnormal interface status failure or a normal interface status. The reason for the abnormal interface status may be that there is no network cable plugged into the interface, or the contact between the network cable and the interface is unstable, etc. When the LINK status of a certain interface is displayed as an abnormal interface status, the corresponding first detection result is an abnormal status. Optionally, the LINK status is stored in a preset storage area, and each interface has an interface identifier, which is used to distinguish different interfaces, and the interface identifier of the interface is stored in association with the LINK status. When it is necessary to query the LINK status of the interface, the LINK status can be retrieved from the preset storage area based on the interface identifier of the interface. Optionally, the LINK status is updated regularly. When the preset update time is reached, the LINK status will be updated regularly, and the updated LINK status can be stored in the preset storage area. It should be understood that the status of the LINK can be updated in real time.

[0044] S120: Detect link status of multiple interfaces respectively to obtain a second detection result of the link status of each interface.

[0045] Among them, each second detection result represents the link status of one of the interfaces of the UPF; the link status refers to the link status between the interface and the router, and the second detection result includes a normal state or an abnormal state.

[0046] Specifically, by detecting the link status of multiple interfaces respectively, the second detection result of the link status of each interface is obtained. When the second detection result of the link status of a certain interface is an abnormal state, it means that the interface cannot transmit data at this time. By detecting the link status of the interface, it can be known whether the N3 interface and the N6 interface can transmit data. In an embodiment of the present invention, when the second detection result of the link status of a certain interface is an abnormal state, it can be determined that the interface cannot transmit data.

[0047] S130: Detect the functional modules of the UPF to obtain a third detection result of the functional modules.

[0048] Among them, the third detection result indicates the working state of the functional module of UPF, the functional module includes the DPDK module, and the third detection result includes a normal state or an abnormal state. The DPDK module is used to forward the uplink and / or downlink data of the terminal. The Fast Data Packet Processing (Date Plane Development Kit, DPDK) is a software library for accelerating packet data processing. It can provide a simple, convenient, complete and fast packet processing solution for data plane applications. It is suitable for use as an underlying forwarding platform for the data plane of the 5G core network with high requirements for performance and latency. Since the application of DPDK is the forwarding of uplink data and / or downlink data of the terminal, the functional module that needs to be detected in the embodiment of the present invention is only DPDK.

[0049] Specifically, by detecting the functional module of the UPF, a third detection result of the functional module is obtained. Optionally, the functional module itself can be detected through a pre-set self-test program to obtain a third detection result. By detecting the functional module in this step and obtaining the third detection result, the working state of the functional module of the UPF is detected to determine whether the UPF can forward the data of the terminal. Exemplarily, when the third detection result is an abnormal state, that is, the working state of the functional module of the UPF is abnormal, that is, data cannot be transmitted or data transmission errors occur, etc.

[0050] S140: If the first detection result, the second detection result or the third detection result is an abnormal state, the UPF fault detection result is a UPF fault.

[0051] The fault detection result includes UPF fault or UPF normal.

[0052] Specifically, when any one of the first detection result, the second detection result, and the third detection result is in an abnormal state, the fault detection result of the UPF is a UPF fault. For example, when the first detection result is in an abnormal state, the fault detection result of the UPF is a UPF fault. This step can be implemented to determine that the fault detection result of the UPF is UPF normal only when all the detection results are in a normal state. When the fault detection result of the UPF is UPF normal, it is ensured that the UPF can transmit data normally, thereby ensuring the effectiveness of subsequent node establishment.

[0053] It should be noted that the UPF fault detection in the embodiment of the present invention is performed in real time, and the interface status of the interface, the link status of the interface and the working status of the functional module are detected in real time, so that the UPF fault detection result is updated in time according to the first detection result, the second detection result and the third detection result. When the node establishment request sent by the SMF is received, the corresponding feedback message is fed back to the SMF according to the current UPF fault detection result.

[0054] Based on the embodiments of the present invention, if the first detection result, the second detection result or the third detection result is an abnormal state, the fault detection result of the UPF is a UPF fault, including: when the first detection result is an abnormal state, the fault detection result of the UPF is a UPF fault; when each first detection result is a normal state, the link status of multiple interfaces is detected respectively to obtain a second detection result of the link status of each interface, and when the second detection result is an abnormal state, the fault detection result of the UPF is a UPF fault; when each second detection result is a normal state, the functional module of the UPF is detected to obtain a third detection result of the functional module, and when the third detection result is an abnormal state, the fault detection result of the UPF is a UPF fault; when the third detection result is a normal state, the fault detection result of the UPF is UPF normal.

[0055] Specifically, when the first detection result is an abnormal state, the fault detection result of UPF is UPF fault. When all the first detection results are normal, it means that the N3 and N6 interfaces are normal at this time. Then the link state of each interface is detected to obtain the second detection result of the link state of each interface. When there is a second detection result of abnormal state, the fault detection result of UPF is UPF fault. When each second detection result is normal, the functional module of UPF is detected to obtain the third detection result of the functional module. When the third detection result is abnormal, the fault detection result of UPF is UPF fault. If the third detection result is normal, the fault detection result of UPF is UPF normal. Through this step, the interface state, link state and functional module of the interface are detected in a priority manner, which improves the efficiency of obtaining fault detection results. Since the interface state of the interface is abnormal, that is, the interface is not plugged into the network cable, etc., the link state will definitely be abnormal. Therefore, the interface state of the interface is detected first, and the link state of the interface is detected secondly. When the link status is abnormal, the UPF cannot transmit data with the base station and / or the public network. Therefore, in the embodiment of the present invention, the priority of link status detection is set higher than the priority of function module detection. When the first detection result is an abnormal state, the fault detection result of the UPF is determined to be a UPF fault, without link status detection and function module detection, thereby improving the efficiency of obtaining fault detection results.

[0056] S150. When UPF receives the node establishment request sent by SMF, UPF sends a feedback message corresponding to the fault detection result to SMF.

[0057] Among them, when the fault detection result is that the UPF is normal, the feedback message is a response message of successful node establishment, and when the fault detection result is that the UPF is faulty, the feedback message is a response message of failed node establishment. Specifically, when a node establishment request sent by the SMF is received, a feedback message corresponding to the fault detection result is sent to the SMF, so that the SMF can determine whether it is necessary to send the node establishment request to other UPFs other than the current UPF based on the feedback message. For example, when the fault detection result is a UPF fault, a feedback message related to the UPF fault is sent to the SMF, so that the SMF selects other UPFs other than the current UPF to send the node establishment request.

[0058] In another embodiment of the embodiment of the present invention, a feedback message corresponding to the fault detection result is sent to SMF, including: if the fault detection result is a UPF fault, a response message of node establishment failure is sent to SMF; if the fault detection result is that UPF is normal, a response message of node establishment success is sent to SMF.

[0059] Among them, the response message of the node establishment failure may include UPF failure, fault cause, etc. The fault cause may be abnormal interface status, abnormal link status, abnormal working state of the functional module, etc. It should be understood that the abnormal interface status corresponds to the abnormal state of the first detection result, the abnormal link status corresponds to the abnormal state of the second detection result, and the abnormal working state of the functional module corresponds to the abnormal state of the third detection result. For example, the response message of the node establishment failure is UPF failure and abnormal interface status. The response message refers to the response message corresponding to the node establishment request.

[0060] Specifically, if the fault detection result is a UPF fault, a node establishment failure response message is sent to the SMF, so that when the SMF receives the node establishment failure response message, it can select other UPFs other than the current UPF to establish the node. If the fault detection result is that the UPF is normal, a node establishment success response message is sent to the SMF, so that the node between the SMF and the UPF is successfully established, and subsequent session establishment can be performed with the SMF.

[0061] For example, in Figure 3 In the example, SMF sends a node establishment request to UPF, which can be expressed as: PFCP Association Setup Request. The fault detection result of UPF is that UPF is normal, so the feedback message is a node establishment success response message to complete the node establishment with SMF. The node establishment success response message can be expressed as: PFCP Association Setup Response.

[0062] For example, in Figure 4 In the process, SMF sends a node establishment request to UPF, and the fault detection result of UPF is UPF fault. A node establishment failure response message is sent to SMF, so that SMF selects other UPFs except the current UPF to establish the node. The node establishment failure response message can be expressed as: PFCP Association Setup Response Failed.

[0063] Because, in the case of UPF failure, even if the node creation between SMF is successful, there will be problems in the subsequent data transmission between the base station or the public network. Therefore, in the case of UPF failure, a response message of node establishment failure is sent to SMF so that SMF can promptly select other UPFs besides the current UPF.

[0064] The technical solution of the embodiment of the present invention detects the interface status of multiple interfaces of UPF respectively to obtain the first detection result of the interface status of each interface, detects the link status of multiple interfaces respectively to obtain the second detection result of the link status of each interface, and detects the functional modules of UPF to obtain the third detection result. If any one of the detection results of the three detections is an abnormal state, the fault detection result of UPF is a UPF fault. The technical solution of the embodiment of the present invention realizes the detection of whether UPF has a fault in many aspects by detecting the interface status of multiple interfaces of UPF itself, the link status between each interface and the router, and the functional modules of UPF itself, thereby improving the comprehensiveness of fault detection. Moreover, when any detection result of the interface status, link status or working status of the functional module is an abnormal state, the fault detection result of UPF is determined to be a UPF fault. Only when all three detection results are in a normal state, the fault detection result of UPF is UPF normal, thereby ensuring the availability of UPF. When SMF sends a node establishment request, it can send a feedback message corresponding to the fault detection result to SMF, so that SMF can know the fault condition of UPF, and then choose whether to replace other UPFs except the current UPF to establish the node. The technical solution of the embodiment of the present invention improves the effectiveness of node establishment between SMF and UPF.

[0065] Embodiment 2

[0066] Figure 5 It is a flowchart of a 5G-based UPF fault detection method provided by an embodiment of the present invention, and the embodiment of the present invention refines step S120 based on the optional scheme of the above embodiment. Among them, the technical terms that are the same or similar to the above embodiment will not be repeated.

[0067] like Figure 5 As shown, the 5G-based UPF fault detection method of an embodiment of the present invention includes the following steps:

[0068] S210. Detect the interface status of multiple interfaces of the UPF respectively to obtain multiple first detection results.

[0069] S220. For each interface, a preset detection message is sent from the interface to the router. If no response message is received from the router within the preset detection time, the second detection result of the link state of the interface is an abnormal state; if a response message is received from the router within the preset detection time, the second detection result of the link state of the interface is a normal state.

[0070] The preset detection message may be a request message or an instruction, and the response message refers to a response message corresponding to the preset detection message. The preset detection duration refers to a preset duration, which can be set according to actual conditions, such as 20 milliseconds, 10 milliseconds, etc.

[0071] Specifically, if a preset detection message is sent from the interface to the router, and no response message fed back by the router is received within the preset detection duration, the second detection result is an abnormal state, which means that the link state between the interface and the router at this time is abnormal. On the contrary, if a response message fed back by the router is received within the preset detection duration, the second detection result is a normal state, which means that the link state between the interface and the router at this time is normal. The link state is detected by the method of this step, which improves the accuracy of link state detection.

[0072] Optionally, in the embodiment of the present invention, in order to shorten the detection time, a preset detection message may be sent to multiple interfaces at the same time, and a response message from each interface may be received.

[0073] Optionally, a preset detection message is sent from the interface to the router through a preset detection method, and the preset detection method includes any one of a BFP detection method and a PING detection method.

[0074] S230: Detect the functional modules of the UPF to obtain a third detection result of the functional modules.

[0075] On the basis of the embodiments of the present invention, the functional modules of the UPF are detected to obtain a third detection result of the functional modules, including: detecting the functional modules of the UPF based on a test program, determining whether the functional modules can obtain a preset test result by running the test program, if so, obtaining the third detection result of the functional module is a normal state, if not, obtaining the third detection result of the functional module is an abnormal state.

[0076] The test program refers to a pre-set program for testing the working status of the functional module.

[0077] Specifically, based on the test program, the functional module of the UPF is tested to determine whether the functional module can obtain a preset test result by running the test program. If so, the third test result of the functional module is a normal state. If not, the third test result of the functional module is an abnormal state. Exemplarily, the test program simulates the transmission of data from a base station or a public network. The functional module is simulated through the test program to determine whether the functional module can forward data from the base station or the public network. If so, the third test result is a normal state.

[0078] S240: If the first detection result, the second detection result or the third detection result is an abnormal state, the UPF fault detection result is a UPF fault.

[0079] S250. When UPF receives the node establishment request sent by SMF, UPF sends a feedback message corresponding to the fault detection result to SMF.

[0080] The technical solution of the embodiment of the present invention detects the interface status of multiple interfaces of UPF respectively to obtain multiple first detection results, each first detection result represents the interface status of one of the interfaces of UPF, and for multiple interfaces, sends a preset detection message from the interface to the router. If the response message fed back by the router is not received within the preset detection time, the second detection result of the link status of the interface is an abnormal state, and if the response message fed back by the router is received within the preset detection time, the second detection result of the link status of the interface is a normal state. The functional module of UPF is detected to obtain the third detection result of the functional module. If the first detection result, the second detection result or the third detection result is an abnormal state, the fault detection result of UPF is a UPF fault. When a node establishment request sent by SMF is received, a feedback message corresponding to the fault detection result is sent to SMF. Through the technical solution of the embodiment of the present invention, fault detection of UPF is realized, and when a node establishment request of SMF is received, a feedback message corresponding to the fault detection result can be fed back to SMF in a timely manner, thereby improving the effectiveness of establishing with SMF nodes.

[0081] Based on the above embodiment, when the node between SMF and UPF is successfully established and the fault detection result is a UPF fault, UPF sends a node update request to SMF, and when receiving the node update response and node release request replied by SMF, UPF sends a node release response to SMF to release the node between UPF and SMF.

[0082] Specifically, after the node between SMF and UPF is successfully established, the subsequent session is established, but the fault detection of UPF is always ongoing. Of course, it can also be a timed detection. In this way, when the fault detection result of UPF is UPF fault, that is, it cannot provide data forwarding service for the terminal, a node update request is sent to SMF to let SMF know the current UPF fault and the need to replace UPF. After receiving the node update response and node release request sent by SMF, the node release response is fed back to SMF when the node release request is received to release the node, so that SMF can select other UPFs to establish nodes.

[0083] See also Figure 6After the node between UPF and SMF is successfully established, at a certain moment, UPF detects that the interface status of the N3 interface is abnormal. Therefore, the fault detection result of UPF is updated to UPF fault, and UPF sends a node update request to SMF. The node update request can be expressed as: Association Update Request. After receiving the node update request, SMF sends a node update response to SMF, indicating that SMF has received the node update request sent by UPF. After sending the node update response, it sends a node release request to UPF to release the node established between SMF and UPF. The node update response can be expressed as: Association Update Response, and the node release request can be expressed as: Association ReleaseRequest. After receiving the node release request, UPF replies with a node release response to complete the node release between SMF. The node release response can be expressed as: Association Release Response.

[0084] Embodiment 3

[0085] Figure 7 A structural diagram of a 5G-based UPF fault detection device provided in an embodiment of the present invention. The 5G-based UPF fault detection device provided in an embodiment of the present invention can execute the 5G-based UPF fault detection method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0086] The device includes: an interface status detection module 710, a link status detection module 720, a function module detection module 730, a fault detection result acquisition module 740 and a feedback message sending module 750; wherein:

[0087] The interface status detection module 710 is used to detect the interface status of multiple interfaces of the UPF respectively, and obtain multiple first detection results, each of which indicates the interface status of one of the interfaces of the UPF, and the first detection result includes a normal state or an abnormal state; the link status detection module 720 is used to detect the link status of multiple interfaces respectively, and obtain a second detection result of the link status of each interface, and each second detection result indicates the link status of one of the interfaces of the UPF; the link status refers to the link status between the interface and the router, and the second detection result includes a normal state or an abnormal state; the function module detection module 730 is used to detect the function module of the UPF, and obtain a third detection result of the function module, and the third detection result indicates the UPF. The working status of the functional modules of PF, the functional modules include the DPDK module, and the third detection result includes a normal state or an abnormal state; a fault detection result obtaining module 740, which is used for if the first detection result, the second detection result or the third detection result is an abnormal state, then the fault detection result of UPF is a UPF fault, and the fault detection result includes a UPF fault or a UPF normal; a feedback message sending module 750, which is used for when UPF receives a node establishment request sent by SMF, UPF sends a feedback message corresponding to the fault detection result to SMF, when the fault detection result is that UPF is normal, the feedback message is a response message of successful node establishment, and when the fault detection result is that UPF is faulty, the feedback message is a response message of failed node establishment.

[0088] Furthermore, in the embodiment of the present invention, the fault detection result obtaining module 740 is further used to:

[0089] When there is a first detection result that is an abnormal state, the fault detection result of UPF is UPF fault; when each first detection result is a normal state, the link status of multiple interfaces is detected respectively to obtain a second detection result of the link status of each interface. When there is a second detection result that is an abnormal state, the fault detection result of UPF is UPF fault; when each second detection result is a normal state, the functional module of UPF is detected to obtain a third detection result of the functional module. When the third detection result is an abnormal state, the fault detection result of UPF is UPF fault; when the third detection result is a normal state, the fault detection result of UPF is UPF normal.

[0090] Furthermore, in the embodiment of the present invention, the link status detection module 720 is further configured to:

[0091] For each interface, a preset detection message is sent from the interface to the router. If no response message is received from the router within the preset detection time, the second detection result of the link state of the interface is an abnormal state; if a response message is received from the router within the preset detection time, the second detection result of the link state of the interface is a normal state.

[0092] Furthermore, in the embodiment of the present invention, the function module detection module 730 is also used for:

[0093] Based on the test program, the functional modules of UPF are tested to determine whether the preset test results can be obtained by running the test program on the functional modules. If the preset test results can be obtained, the third test result of the functional module is a normal state; if the preset test results cannot be obtained, the third test result of the functional module is an abnormal state.

[0094] Furthermore, in the embodiment of the present invention, the feedback message sending module 750 is further configured to:

[0095] If the fault detection result is a UPF fault, a response message of node establishment failure is sent to SMF; if the fault detection result is that UPF is normal, a response message of node establishment success is sent to SMF.

[0096] Furthermore, in the embodiment of the present invention, the interface status detection module 710 is further configured to:

[0097] For multiple interfaces, by querying the LINK status of the interface, a first detection result of the interface status of the interface is obtained, where the LINK status includes an abnormal interface status or a normal interface status.

[0098] Furthermore, in an embodiment of the present invention, the device further includes:

[0099] The node release module is used to send a node update request to SMF when the node between SMF and UPF is successfully established and the fault detection result is UPF fault. When receiving the node update response and node release request replied by SMF, UPF sends a node release response to SMF to release the node between UPF and SMF.

[0100] The technical solution of the embodiment of the present invention detects the interface status of multiple interfaces of UPF respectively to obtain the first detection result of the interface status of each interface, detects the link status of multiple interfaces respectively to obtain the second detection result of the link status of each interface, and detects the functional modules of UPF to obtain the third detection result. If any one of the detection results of the three detections is an abnormal state, the fault detection result of UPF is a UPF fault. The technical solution of the embodiment of the present invention realizes the detection of whether UPF has a fault in many aspects by detecting the interface status of multiple interfaces of UPF itself, the link status between each interface and the router, and the functional modules of UPF itself, thereby improving the comprehensiveness of fault detection. Moreover, when any detection result of the interface status, link status or working status of the functional module is an abnormal state, the fault detection result of UPF is determined to be a UPF fault. Only when all three detection results are in a normal state, the fault detection result of UPF is UPF normal, thereby ensuring the availability of UPF. When SMF sends a node establishment request, it can send a feedback message corresponding to the fault detection result to SMF, so that SMF can know the fault condition of UPF, and then choose whether to replace other UPFs except the current UPF to establish the node. The technical solution of the embodiment of the present invention improves the effectiveness of node establishment between SMF and UPF.

[0101] It is worth noting that the various modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific names of the various functional modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0102] Embodiment 4

[0103] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 8 A block diagram of an exemplary electronic device 50 suitable for implementing exemplary embodiments of the present invention is shown. Figure 8 The electronic device 50 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0104] like Figure 8 As shown, the electronic device 50 is in the form of a general computing device. The components of the electronic device 50 may include but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 connecting different system components (including the system memory 502 and the processing unit 501).

[0105] Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0106] The electronic device 50 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 50, including volatile and non-volatile media, removable and non-removable media.

[0107] System memory 502 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. Electronic device 50 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 506 may be used to read and write non-removable, non-volatile magnetic media ( Figure 8 not shown, usually called a "hard drive"). Although Figure 8 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 via one or more data medium interfaces. The memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the embodiments of the present invention.

[0108] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in the memory 502, such program modules 507 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 507 generally perform the functions and / or methods of the embodiments described herein.

[0109] The electronic device 50 may also communicate with one or more external devices 509 (e.g., keyboards, pointing devices, displays 510, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 50, and / or communicate with any device that enables the electronic device 50 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 511. Furthermore, the electronic device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 512. As shown, the network adapter 512 communicates with other modules of the electronic device 50 through the bus 503. It should be understood that although Figure 8 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 50, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0110] The processing unit 501 executes various functional applications and data processing by running the program stored in the system memory 502, such as implementing the 5G-based UPF fault detection method provided in an embodiment of the present invention.

[0111] Embodiment 5

[0112] An embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute a 5G-based UPF fault detection method when executed by a computer processor, the method comprising:

[0113] The interface status of multiple interfaces of UPF are detected respectively to obtain multiple first detection results, each first detection result indicates the interface status of one of the interfaces of UPF, and the first detection result includes a normal state or an abnormal state; the link status of multiple interfaces are detected respectively to obtain a second detection result of the link status of each interface, and each second detection result indicates the link status of one of the interfaces of UPF; the link status refers to the link status between the interface and the router, and the second detection result includes a normal state or an abnormal state; the functional modules of UPF are detected to obtain a third detection result of the functional modules, the third detection result indicates the working status of the functional modules of UPF, the functional modules include DPDK modules, and the third detection result includes a normal state or an abnormal state; if the first detection result, the second detection result or the third detection result is an abnormal state, the fault detection result of UPF is UPF fault, and the fault detection result includes UPF fault or UPF normal; when a node establishment request sent by SMF is received, a feedback message corresponding to the fault detection result is sent to SMF, and the feedback message includes a response message of successful node establishment or a response message of failed node establishment.

[0114] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0115] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0116] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0117] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0118] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A 5G-based UPF fault detection method, characterized in that: include: Detecting the interface status and link status of multiple interfaces of the UPF and the functional modules of the UPF according to the detection priority; Detecting the interface status of multiple interfaces of the UPF respectively to obtain multiple first detection results, each first detection result represents the interface status of one of the interfaces of the UPF, and the first detection result includes a normal state or an abnormal state; When the first detection result is an abnormal state, the fault detection result of the UPF is a UPF fault; when each first detection result is a normal state, the link states of the multiple interfaces are detected respectively to obtain a second detection result of the link state of each interface, and each second detection result represents the link state of one of the interfaces of the UPF; the link state refers to the link state between the interface and the router, and the second detection result includes a normal state or an abnormal state; When there is an abnormal state of the second detection result, the fault detection result of the UPF is a UPF fault; when each second detection result is a normal state, the functional module of the UPF is detected to obtain a third detection result of the functional module, the third detection result indicates the working state of the functional module of the UPF, the functional module includes a DPDK module, and the third detection result includes a normal state or an abnormal state; When the third detection result is an abnormal state, the fault detection result of the UPF is that the UPF is faulty; when the third detection result is a normal state, the fault detection result of the UPF is that the UPF is normal; When the UPF receives a node establishment request sent by the SMF, the UPF sends a feedback message corresponding to the fault detection result to the SMF. When the fault detection result is that the UPF is normal, the feedback message is a response message of successful node establishment. When the fault detection result is that the UPF is faulty, the feedback message is a response message of failed node establishment.

2. The 5G-based UPF fault detection method according to claim 1, characterized in that: The detecting the link status of the multiple interfaces respectively to obtain a second detection result of the link status of each interface includes: For each interface, a preset detection message is sent from the interface to the router. If no response message fed back by the router is received within the preset detection time, the second detection result of the link state of the interface is an abnormal state; If a response message fed back by the router is received within the preset detection time, the second detection result of the link status of the interface is a normal status.

3. The 5G-based UPF fault detection method according to claim 1, characterized in that: The detecting the functional module of the UPF to obtain a third detection result of the functional module includes: Based on the test program, the functional module of the UPF is detected to determine whether the functional module can obtain a preset test result by running the test program. If so, the third test result of the functional module is a normal state; if not, the third test result of the functional module is an abnormal state.

4. The 5G-based UPF fault detection method according to claim 1, characterized in that: The sending a feedback message corresponding to the fault detection result to the SMF includes: If the fault detection result is that the UPF fails, a response message of node establishment failure is sent to the SMF; If the fault detection result shows that the UPF is normal, a response message of successful node establishment is sent to the SMF.

5. The 5G-based UPF fault detection method according to claim 1, characterized in that: The detecting the interface states of the multiple interfaces of the UPF respectively to obtain multiple first detection results includes: For multiple interfaces, by querying the LINK status of the interfaces, a first detection result of the interface status of the interfaces is obtained, where the LINK status includes an abnormal interface status or a normal interface status.

6. The 5G-based UPF fault detection method according to claim 4, characterized in that: Also includes: When the node between the SMF and the UPF is successfully established and the fault detection result is a UPF fault, the UPF sends a node update request to the SMF, and upon receiving the node update response and node release request replied by the SMF, the UPF sends a node release response to the SMF to release the node between the UPF and the SMF.

7. A 5G-based UPF fault detection device, characterized in that: include: An interface status detection module, used to detect the interface status of multiple interfaces of the UPF respectively, and obtain multiple first detection results, each first detection result represents the interface status of one of the interfaces of the UPF, and the first detection result includes a normal state or an abnormal state; the interface status and link status of multiple interfaces of the UPF and the functional modules of the UPF are detected according to the detection priority; A link status detection module, configured to detect, when the first detection result is an abnormal state, the fault detection result of the UPF is a UPF fault; when each of the first detection results is a normal state, respectively detect the link status of the multiple interfaces to obtain a second detection result of the link status of each interface, each second detection result indicating the link status of one of the interfaces of the UPF; the link status refers to the link status between the interface and the router, and the second detection result includes a normal state or an abnormal state; A functional module detection module, configured to detect, when the second detection result is in an abnormal state, the fault detection result of the UPF is a UPF fault; when each second detection result is in a normal state, detect the functional module of the UPF to obtain a third detection result of the functional module, the third detection result indicating a working state of the functional module of the UPF, the functional module including a DPDK module, and the third detection result including a normal state or an abnormal state; when the third detection result is in an abnormal state, the fault detection result of the UPF is the UPF fault; when the third detection result is in a normal state, the fault detection result of the UPF is that the UPF is normal; A fault detection result obtaining module, configured to obtain the fault detection result of the UPF as the UPF fault if the first detection result, the second detection result or the third detection result is an abnormal state, wherein the fault detection result includes a UPF fault or a UPF normal state; A feedback message sending module is used for sending a feedback message corresponding to the fault detection result to the SMF when the UPF receives a node establishment request sent by the SMF. When the fault detection result is that the UPF is normal, the feedback message is a response message of successful node establishment; when the fault detection result is that the UPF is faulty, the feedback message is a response message of failed node establishment.

8. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the 5G-based UPF fault detection method as described in any one of claims 1-6.

9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions, when executed by a computer processor, are used to execute the 5G-based UPF fault detection method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Broadband user side fault detection method, device and equipment and medium

    CN109995429A

  • User plane network element fault processing method and device

    CN112867039A

  • Method, device and system for notifying SMF of 5G UPF abnormal restart and storage medium

    CN114500342A