Fault positioning method and device of network port, computer equipment and storage medium

By determining the network port and response of the detection flow, combined with network quality information, and integrating the data of multiple detection flows, the problem of low accuracy in locating faulty network ports in the existing technology is solved, achieving faster and more accurate fault identification, and improving improve the reliability of network services.

CN118802488APending Publication Date: 2024-10-18WeChat International Pte Ltd +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310391316.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-12
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technologies have low accuracy when locating network faults on the operator side, making it difficult to quickly identify faulty network ports, resulting in long access delays or inaccessibility for users.

Method used

By determining the network ports where the detection flow enters and departs, network quality information is obtained, and the fault information of the inbound and outbound network ports is combined to integrate the data of multiple detection flows to accurately locate the faulty network port.

Benefits of technology

It improves the accuracy of locating faulty network ports, reduces user access delays, and improves the reliability of network services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802488A_ABST
    Figure CN118802488A_ABST
Patent Text Reader

Abstract

The invention relates to a network port fault positioning method and device, computer equipment, a storage medium and a computer program product. The method can be applied to the fields of cloud technology and communication network, such as a scene in which fault detection is carried out on a network port of an operator network cluster. The method comprises the following steps: determining an incoming network port through which a detection stream passes when flowing into an operator network cluster in a target time period; determining an outbound network port through which the response flow of the detection flow passes when flowing out of the operator network cluster; acquiring network quality information of the operator network cluster based on the detection flow and the response; determining network port fault information of the operator network cluster based on the incoming network port, the outgoing network port and the network quality information; and determining a faulty network port of the operator network cluster among the incoming network port and the outgoing network port based on the network port fault information. By adopting the method, the accuracy of fault network port positioning can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, storage medium and computer program product for locating a fault of a network port. Background Art

[0002] With the development of computer and network technology, more and more users are using the Internet, and a large number of operators provide Internet access services to users. When users access the target server, they may need to go through multiple operator networks. Therefore, congestion or failure of the operator network will cause long access delays or inaccessibility.

[0003] In the related art, network troubleshooting tools are used to find the routing information of data packets in the network, and then the faulty network port of the operator's network is determined, but the accuracy is low. Summary of the invention

[0004] Based on this, it is necessary to provide a network port fault location, device, computer equipment, computer readable storage medium and computer program product to improve the accuracy of faulty network port location in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for locating a fault of a network port. The method comprises:

[0006] Determine the inbound network port through which the detection flow during the target time period flows into the operator's network cluster; determine the outbound network port through which the response of the detection flow flows out of the operator's network cluster; obtain network quality information of the operator's network cluster based on the detection flow and the response; determine network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information; determine the faulty network port of the operator's network cluster among the inbound network port and the outbound network port based on the network port fault information.

[0007] In a second aspect, the present application also provides a network port fault location device. The device includes:

[0008] An inbound network port determination module, used to determine the inbound network port through which the detection flow in the target period passes when it flows into the operator's network cluster;

[0009] An outbound network port determination module, used to determine the outbound network port through which the response of the detection flow flows when it flows out of the operator network cluster;

[0010] A network quality information acquisition module, configured to acquire network quality information of the operator's network cluster based on the detection flow and the response;

[0011] A network port fault information determination module, configured to determine the network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information;

[0012] The first faulty network port determining module is used to determine the faulty network port of the operator's network cluster from among the inbound network ports and the outbound network ports based on the network port fault information.

[0013] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0014] Determine the inbound network port through which the detection flow during the target time period flows into the operator's network cluster; determine the outbound network port through which the response of the detection flow flows out of the operator's network cluster; obtain network quality information of the operator's network cluster based on the detection flow and the response; determine network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information; determine the faulty network port of the operator's network cluster among the inbound network port and the outbound network port based on the network port fault information.

[0015] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0016] Determine the inbound network port through which the detection flow during the target time period flows into the operator's network cluster; determine the outbound network port through which the response of the detection flow flows out of the operator's network cluster; obtain network quality information of the operator's network cluster based on the detection flow and the response; determine network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information; determine the faulty network port of the operator's network cluster among the inbound network port and the outbound network port based on the network port fault information.

[0017] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0018] Determine the inbound network port through which the detection flow during the target time period flows into the operator's network cluster; determine the outbound network port through which the response of the detection flow flows out of the operator's network cluster; obtain network quality information of the operator's network cluster based on the detection flow and the response; determine network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information; determine the faulty network port of the operator's network cluster among the inbound network port and the outbound network port based on the network port fault information.

[0019] The above-mentioned network port fault location method, device, computer equipment, storage medium and computer program product obtain the inbound network port through which the detection flow in the target time period passes when it flows into the network cluster, obtain the outbound network port through which the response of the detection flow flows out of the network cluster, determine the network quality information of the operator's network cluster based on the detection flow and the response, determine the network port fault information corresponding to the operator's network cluster in the target time period based on the inbound network port corresponding to the detection flow in the target time period, the outbound network port corresponding to the response, and the network quality information corresponding to the detection flow and the response, and select the faulty network port from the inbound network port and the outbound network port based on the network port fault information. There are multiple detection flows in the target time period. In the complex network environment of the operator's network cluster, the faulty network port is determined by combining the inbound network ports corresponding to the multiple detection flows, the outbound network ports corresponding to the multiple responses, and the network qualities corresponding to the multiple detection flows and the responses, thereby improving the accuracy of locating the faulty network port. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A diagram of an application environment of a method for locating a fault of a network port in an embodiment;

[0021] Figure 2 A schematic diagram of a flow chart of a method for locating a fault of a network port in an embodiment;

[0022] Figure 3 A schematic diagram of data transmission between a user node and a data center through an operator network cluster in one embodiment;

[0023] Figure 4 A schematic diagram of a process for determining network quality information of an operator's network cluster in one embodiment;

[0024] Figure 5 A schematic diagram of a process of determining a faulty network port when an inbound network port and an outbound network port are the same in one embodiment;

[0025] Figure 6 A schematic diagram of a process of determining a faulty network port when an inbound network port and an outbound network port are different in one embodiment;

[0026] Figure 7 It is a schematic diagram of an operator network cluster that does not obtain a detection flow in an embodiment;

[0027] Figure 8 A schematic diagram of a process for generating a fault work order in one embodiment;

[0028] Fig. 9 A schematic diagram of a process of sending a fault ticket to a client in one embodiment;

[0029] Fig.10 It is a schematic diagram of displaying prompt information corresponding to a fault work order in a conversation group of a communication application in one embodiment;

[0030] Fig.11 A schematic diagram of a network port fault location system in which a network port fault location method can be applied in an embodiment;

[0031] Fig.12 A schematic diagram of a detection flow port positioning system in one embodiment;

[0032] Fig.13 A schematic diagram of a flow chart of fault location of a network port in another embodiment;

[0033] Fig.14 is a structural block diagram of a fault location device for a network port in one embodiment;

[0034] Fig.15 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0036] The network port fault location method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the detection node 102 communicates with the server 104 through the network, and the detection node 102 communicates with the user node 106 through the operator network cluster. The data storage system can store the data that the server 104 needs to process, and the data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The fault location method of the network port can be executed by the server 104, or it can be executed collaboratively by the detection node 102, the server 104 and the user node 106.

[0037] Taking the network port fault location method executed by server 104 as an example, server 104 obtains the inbound network port through which the detection flow flows into the operator's network cluster within the target time period, and server 104 obtains the outbound network port through which the response of the detection flow flows out of the operator's network cluster. Server 104 can determine the network quality information of the operator's network cluster based on the detection flow and the response. Server 104 can determine the network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information. Server 104 also determines the faulty network port of the operator's network cluster in the inbound network port and the outbound network port based on the network port fault information.

[0038] Server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0039] The detection node 102 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms; the user node can be a client, and the client can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The client and the server can be directly or indirectly connected through wired or wireless communication, and this application does not limit this.

[0040] In one embodiment, Figure 2 As shown, a method for locating a fault of a network port is provided. The method can be performed by Figure 1 The server in the Figure 1 The detection nodes, servers and user nodes in the method can be executed collaboratively. Figure 1 The server execution in is taken as an example to illustrate; the method includes the following steps:

[0041] Step 202: determine the inbound network port through which the detection flow in the target time period passes when it flows into the operator's network cluster.

[0042] Among them, the target time period is a time period with a preset time period. The preset time period can be set according to the detection requirements. For example, the preset time period can be 2 days or 10 days. The embodiment of the present application does not limit the preset time period.

[0043] The detection flow is the data flow sent by the detection node to the user node through the operator's network cluster; the detection node can be a server in the data center or a server cluster composed of servers in the data center; the data center can provide services or data for the user node, and the user node accesses the services or data provided by the data center.

[0044] An operator network cluster is a cluster composed of multiple operator networks (ISP, Internet Service Provider), such as Figure 3 As shown in FIG. 1 , the operator network ISP-1, the operator network ISP-2, …, the operator network ISP-K form an operator network cluster; the data transmission between the user node and the data center usually passes through multiple operator networks, and the data center usually needs to access multiple operator networks to provide stable and high-quality network services for the user nodes. For example, the user node 1 accesses the data center through the operator network ISP-1 (such as Figure 3 In the figure, the dotted lines from user node 1 to ISP-1 and from ISP-1 to the data center are shown. When the operator's network cluster fails or the network is congested, it will affect the user node's access to the data center. For example, Figure 3 In the example, when a port of the operator network ISP-2 fails and cannot receive access requests, the access request sent by the user node 3 needs to access the data center through multiple operator networks (such as Figure 3 The dotted lines from user node 3 to ISP-K and ISP-K to the data center are shown in the figure), which results in increased latency.

[0045] Among them, the inbound network port is the port provided by the operator's network cluster and the port through which the detection flow enters the operator's network cluster. It should be noted that since the data center is connected to the operator's network cluster, the port through which the detection flow enters the operator's network cluster is also the port through which the detection flow flows out of the data center, that is, from the perspective of the data center, the port is an outbound network port. The embodiment of the present application is used to determine the fault port of the operator's network cluster, so the port through which the detection flow flows into the operator's network cluster is recorded as the inbound network port.

[0046] In some embodiments, the detection node sends a detection stream to the user node through the operator network cluster, and the server continuously detects the detection stream to obtain a transmission path of the detection stream in the operator network cluster, wherein the transmission path includes the port number through which the detection stream flows when transmitted in the operator network cluster, and the inbound network port through which the detection stream enters the operator network cluster is determined based on the port number included in the transmission path through which the detection stream enters the operator network cluster.

[0047] In some embodiments, the detection node sends a detection stream to the user node at each detection time interval. In the target period, the detection node can send multiple detection streams, and the server can determine the inbound network ports corresponding to the multiple detection streams. Exemplarily, the detection time is 1 minute and the target period is 1 day.

[0048] Step 204: determine the outgoing network port through which the response of the detection flow flows out of the operator network cluster.

[0049] Among them, the response of the detection flow is the data flow sent by the user node to the detection node after receiving the detection flow. The outbound network port is the port provided by the operator network cluster and the response flows out of the operator network cluster. It should be noted that since the data center is connected to the operator network cluster, the port where the response flows out of the operator network cluster is also the port where the response flows into the data center, that is, from the perspective of the data center, the port is an inbound network port. The embodiment of the present application is used to determine the fault port of the operator network cluster, so the port where the response flows out of the operator network cluster is recorded as the outbound network port.

[0050] In some embodiments, the user node sends a response to the detection flow to the detection node through the operator network cluster, and the server continuously detects the response to obtain a transmission path of the response in the operator network cluster, wherein the transmission path includes the port number through which the response flows when transmitted in the operator network cluster, and the outbound network port through which the response flows when flowing out of the operator network cluster is determined based on the port number of the response flowing out of the operator network cluster included in the transmission path.

[0051] In some embodiments, after determining the inbound network port of the detection flow and the outbound network port of the response, the inbound network port of the detection flow and the outbound network port of the response within the target period may be saved in a network port table.

[0052] Exemplarily, the detection flow within the target time period is a detection flow sent by a detection node with an IP address of IP-1 to a user node with an IP address of IP-2; the network port table is shown in Table 1. For example, at a timestamp of 21:00:00 on D day, M year, a detection flow is sent from the detection node to the user node, and the server determines that the inbound network port of the detection flow is ISP1-X (port X of operator network 1). At the same timestamp, the user node sends a response to the detection flow, and the server determines that the outbound network port of the response is ISP2-Y (port Y of operator network 2).

[0053] Table 1

[0054]

[0055] Step 206: Determine network quality information of the operator's network cluster based on the detection flow and the response.

[0056] The network quality information of the operator's network cluster includes, but is not limited to, the delay, jitter and packet loss rate of the detection flow.

[0057] In some embodiments, the detection stream is sent by the detection node to the user domain; after receiving the response to the detection stream, the detection node obtains detection information corresponding to the detection stream, and the detection information includes but is not limited to: the sending time of the detection stream, the receiving time of the response, the number of data packets sent by the detection node and the number of data packets received by the user domain; the server obtains the detection information corresponding to the detection stream, and determines the network quality information of the operator's network cluster based on the detection information.

[0058] In some embodiments, Figure 4 As shown, step 206 includes:

[0059] Step 401, determining the delay of the detection flow based on the time when the detection node sends the detection flow and the time when the detection node receives the response;

[0060] Step 402, determining the jitter of the detection flow based on the delay of the detection flow;

[0061] Step 403: Determine the packet loss rate of the detection flow based on the number of data packets sent by the detection node to the user domain and the number of data packets received by the user domain.

[0062] Among them, latency refers to the time between the detection node sending a detection stream and receiving a response to the detection stream, and jitter is determined based on the latency of the detection stream. The number of data packets sent by the detection node to the user domain is the number of data packets included in the detection stream sent by the detection node, and the number of data packets received by the user domain is the number of data packets included in the detection stream received by the user domain.

[0063] In some embodiments, the server determines the duration between the time when the detection node sends out the detection stream and the time when the detection node receives the response, and obtains the delay of the detection stream; there are multiple detection streams in the target time period, and after obtaining the delays corresponding to the multiple detection streams, the maximum delay and the minimum delay are determined among the delays of the multiple detection streams, and the difference between the maximum delay and the minimum delay is used as jitter; the server determines the difference between the number of data packets sent by the detection node to the user domain and the number of data packets received by the user domain, and determines the ratio between the difference and the number of data packets sent by the detection node to the user domain as the packet loss rate of the detection stream.

[0064] In some embodiments, after the network quality information of the operator's network cluster is obtained, the network quality information may be saved in a network quality information table.

[0065] Exemplarily, the detection flow within the target time period is a detection flow sent by a detection node with an IP address of IP-1 to a user node with an IP address of IP-2; the network quality information table is shown in Table 2, for example, at a timestamp of 21:00:00 on D day, M year, a detection flow is sent from the detection node to the user node, and the server determines that the inbound network port of the detection flow is ISP1-X (port X of operator network 1), and the user node sends a response to the detection flow at the same timestamp, and the server determines that the outbound network port of the response is ISP2-Y (port Y of operator network 2).

[0066] Table 2

[0067]

[0068] In some embodiments, the detection node sends the detection information to the server, and the server processes the detection information through a quality detection system to obtain network quality information of the operator's network cluster.

[0069] In the above embodiment, the network quality information of the operator network cluster is determined according to the detection stream sent by the detection node, the detection stream received by the user domain and the response received by the detection node, so as to subsequently determine the faulty network port of the operator network cluster based on the network quality information.

[0070] Step 208: Determine network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information.

[0071] Among them, the network port fault information includes the inbound fault type, the inbound fault count, the outbound fault type and the outbound fault count; the inbound fault type is the fault type of the inbound network port, the inbound fault count is the fault count corresponding to the inbound fault type, the outbound fault type is the fault type of the outbound network port, and the outbound fault count is the fault count corresponding to the outbound fault type.

[0072] In some embodiments, the inbound fault type of the inbound network port and the outbound fault type of the outbound network port are determined based on the inbound network port corresponding to the detection flow, the outbound network port corresponding to the response of the detection flow, and network quality information determined based on the detection flow and the response.

[0073] There are multiple detection streams and multiple responses within the detection period. The server can determine the inbound fault type of the inbound network port corresponding to each detection stream and the outbound fault type of the outbound network port corresponding to each response, and then obtain the number of inbound faults corresponding to each inbound fault type and the number of outbound faults corresponding to each outbound fault type.

[0074] In some embodiments, step 208 includes: determining the inbound fault type and the outbound fault type based on the inbound network port, the outbound network port and the network quality information; the number of inbound fault types and the number of outbound fault types are at least two respectively; determining the number of inbound faults corresponding to each inbound fault type; determining the number of outbound faults corresponding to each outbound fault type.

[0075] In some embodiments, the server inputs the inbound network port, the outbound network port and the network quality information into the decision tree model to obtain the inbound fault type of the inbound network port and the outbound fault type of the outbound network port.

[0076] The number of inbound fault types is at least two, indicating that there are at least two inbound fault types, and the number of outbound fault types is at least two, indicating that there are at least two outbound fault types.

[0077] In some embodiments, for the detection flow and response within the target time period, the server matches the network port table and the network quality information table according to the timestamps of the network port table and the network quality information table to obtain a data set corresponding to the timestamp. The data set corresponding to the timestamp includes: the inbound network port corresponding to the detection flow sent at the timestamp, the outbound network port corresponding to the response of the detection flow, and the network quality information determined based on the detection flow and the response. The data set corresponding to the timestamp is input into the decision tree model to obtain the inbound fault type of the inbound network port corresponding to the detection flow and the outbound fault type of the outbound network port corresponding to the response.

[0078] In some embodiments, there are multiple detection streams within the target time period, and the server can determine the inbound fault type of the inbound network port corresponding to each detection stream, and the outbound fault type of the outbound network port corresponding to the response of each detection stream; the number of inbound network ports can be one or more, and the number of outbound network ports can be one or more; the inbound network ports corresponding to each detection stream may be different, and the inbound fault types corresponding to the same inbound network port when processing different detection streams may also be different, the outbound network ports corresponding to each response may be different, and the outbound fault types corresponding to the same outbound network port when processing each response may also be different; of course, when the inbound network port processes certain detection streams, a fault may not occur, so some detection streams do not have a corresponding inbound fault type, and when the outbound network port processes certain responses, a fault may not occur, so some responses do not have a corresponding outbound fault type.

[0079] For each inbound network port, the server determines each inbound fault type corresponding to the inbound network port and the number of inbound faults corresponding to each inbound fault type based on the inbound fault type that corresponds to each detection stream when the inbound network port processes each detection stream; for each outbound fault port, the server determines each outbound fault type corresponding to the outbound fault port and the number of outbound faults corresponding to each outbound fault type based on the outbound fault type that corresponds to each response when the outbound network port processes each response.

[0080] Exemplarily, the number of detection flows within the target time period is 100, and the server obtains 40 detection flows into the operator's network cluster through the ingress network port A, and 60 detection flows into the operator's network cluster through the ingress network port B. Correspondingly, the number of responses within the target time period is 100, and the server obtains 50 responses flowing out of the operator's network cluster through the egress network port C, and 50 responses flowing out of the operator's network cluster through the egress network port D.

[0081] The server determines the inbound fault types corresponding to the inbound network port A when processing 40 detection flows, assuming that the inbound fault type when the inbound network port A processes 10 of the detection flows is inbound fault type A, and the inbound fault type when processing 15 of the detection flows is inbound fault type B; the server determines the inbound fault types corresponding to the inbound network port B when processing 50 detection flows, assuming that the inbound fault type when the inbound network port B processes 5 of the detection flows is inbound fault type A, and the inbound fault type when processing 10 of the detection flows is inbound fault type B; further, it can be determined that the inbound fault types corresponding to the inbound network port A include: inbound fault type A and inbound fault type B, wherein the number of inbound faults of inbound fault type A is 15, and the number of inbound faults of inbound fault type B is 15; the inbound fault types corresponding to the inbound network port B include: inbound fault type A and inbound fault type B, wherein the number of inbound faults of inbound fault type A is 5, and the number of inbound faults of inbound fault type B is 10.

[0082] The server determines the outbound fault types corresponding to when the outbound network port A processes 50 responses, assuming that the inbound fault type when the outbound network port A processes 30 of the responses is outbound fault type A, and the outbound fault type when it processes 5 of the responses is outbound fault type B; the server determines the outbound fault types corresponding to when the outbound network port B processes 50 responses, assuming that the outbound fault type when the network port B processes 5 of the responses is outbound fault type A, and the outbound fault type when it processes 10 of the responses is outbound fault type C; further, it can be determined that the outbound fault types corresponding to the outbound network port A include: outbound fault type A and outbound fault type B, wherein the number of outbound faults of outbound fault type A is 30, and the number of outbound faults of outbound fault type B is 5; the outbound fault types corresponding to the outbound network port B include: outbound fault type A and outbound fault type C, wherein the number of outbound faults of outbound fault type A is 5, and the number of outbound faults of outbound fault type C is 10.

[0083] In the above embodiment, each inbound fault type and each corresponding inbound fault number corresponding to the inbound network port when processing the detection flow are determined, and each outbound fault type and each corresponding outbound fault number corresponding to the outbound network port when processing the response are determined, so that the fault score of the inbound network port can be determined according to each inbound fault type and each corresponding inbound fault number, and the fault score of the outbound network port can be determined according to each outbound fault type and each outbound fault number, so as to determine the faulty network port.

[0084] Step 210: Based on the network port failure information, determine the failed network port of the operator's network cluster from the inbound network ports and the outbound network ports.

[0085] The inbound network port and the outbound network port may be the same. For example, the operator's network cluster provides some network ports, and the detection flow can flow into the operator's network cluster from these network ports, and the response can also flow out of the operator's network cluster from these network ports.

[0086] The inbound network port and the outbound network port may be different. For example, the operator's network cluster provides some network ports. The data center sends data through some of these network ports and receives data through other network ports. Then, the detection flow flows into the network cluster from some network ports, and the response flows out of the operator's network cluster from other network ports.

[0087] In some embodiments, when the inbound network port and the outbound network port are the same, the server combines the inbound fault type and the corresponding fault number of the inbound network port with the outbound fault type and the corresponding fault number of the outbound network port to obtain the port fault type and the corresponding port fault number; it should be noted that since the inbound network port and the outbound network port are the same, the port fault type can be understood as the fault type of the inbound network port, and can also be understood as the fault type of the outbound network port.

[0088] The server determines a port failure score of an inbound network port or an outbound network port according to the port failure type and the corresponding port failure number, and selects a faulty network port from the inbound network port or the outbound network port according to the port failure score.

[0089] In some embodiments, when the inbound network port and the outbound network port are different, the server determines the fault score of the inbound network port based on the inbound fault type and the number of inbound faults of the inbound network port, and determines the fault score of the outbound network port based on the outbound fault type and the number of outbound faults of the outbound network port; the server selects the faulty network port from the inbound network port and the outbound network port based on the fault scores of the inbound network port and the outbound network port.

[0090] In the above-mentioned method for locating faults of network ports, the inbound network port through which the detection flow in the target time period passes when it flows into the network cluster is obtained, the outbound network port through which the response of the detection flow flows out of the network cluster is obtained, the network quality information of the operator's network cluster is determined based on the detection flow and the response, the fault information of the network port corresponding to the operator's network cluster in the target time period is determined based on the inbound network port corresponding to the detection flow in the target time period, the outbound network port corresponding to the response, and the network quality information corresponding to the detection flow and the response, and the fault network port is selected from the inbound network port and the outbound network port based on the network port fault information. There are multiple detection flows in the target time period. In the complex network environment of the operator's network cluster, the faulty network port is determined by combining the inbound network ports corresponding to multiple detection flows, the outbound network ports corresponding to multiple responses, and the network qualities corresponding to multiple detection flows and responses, thereby improving the accuracy of locating the faulty network port.

[0091] In some embodiments, the network port fault information includes an inbound fault type, an inbound fault frequency, an outbound fault type, and an outbound fault frequency; Figure 5 As shown, step 210 includes:

[0092] Step 501, when the inbound network port and the outbound network port are the same, determine the port fault type based on the inbound fault type and the outbound fault type;

[0093] Step 502, determining the number of port failures corresponding to the port failure type according to the number of inbound failures and the number of outbound failures;

[0094] Step 503, determining a port failure score based on the port failure type and the number of port failures;

[0095] Step 504 : Select a faulty network port of the operator's network cluster from the inbound network ports or the outbound network ports based on the port fault score.

[0096] Among them, since the inbound network port and the outbound network port are the same, the port fault type is the fault type of the inbound network port or the fault type of the outbound network port. The port fault score is used to reflect the probability of a fault in the inbound network port or the outbound network port. The higher the port fault score, the higher the probability of a fault in the inbound network port or the outbound network port. The lower the port fault score, the lower the probability of a fault in the inbound network port or the outbound network port.

[0097] In some embodiments, since the inbound network port and the outbound network port are the same, that is, the inbound network port is the outbound network port, for ease of explanation, determining the port failure type, port failure number and port failure score of the inbound network port, an example is taken for explanation of determining a faulty network port in the inbound network port.

[0098] When the inbound network port and the outbound network port are the same, the server merges the inbound fault type of the inbound network port and the outbound fault type of the outbound network port to obtain the port fault type of the inbound network port; merging refers to taking the union of the inbound fault type of the inbound network port and the outbound fault type of the outbound network port.

[0099] For example, the inbound network port A and the outbound port B are the same, the inbound fault type of the inbound network port A is {A=y1,y2,y3}, and the outbound fault type of the outbound network port B is {B=y1,y2,y4}. The port fault type of the inbound network port A obtained by combining the inbound fault type and the outbound fault type is {A∪B=y1,y2,y3,y4}.

[0100] The server determines the number of port failures corresponding to the port failure type based on the number of inbound failures and the number of outbound failures, including: for the same port failure type among the port failure types, the server accumulates the number of failures of the same port failure type to obtain the port failure number of the port failure type; for other port failure types except the same port failure type among the port failure types, the number of inbound failures or the number of outbound failures corresponding to the port failure type is used as the port failure number of the port failure type.

[0101] For example, in the inbound fault type {A=y1, y2, y3} of the inbound network port A and the outbound fault type {B=y1, y2, y4} of the outbound network port B, y1 and y2 are the same port fault type. The server adds the inbound fault count of the inbound fault type y1 of the inbound network port A and the outbound fault count of the outbound fault type y1 of the outbound network port B to obtain the port fault count of the port fault type y1 of the inbound network port A; the server adds the inbound fault count of the inbound fault type y2 of the inbound network port A and the outbound fault count of the outbound fault type y2 of the outbound network port B to obtain the port fault count of the port fault type y2 of the inbound network port A; the port fault count of the port fault type y3 of the inbound network port A is the inbound fault count of the inbound fault type y3 of the inbound network port A; the port failure count of the port fault type y4 of the inbound network port A is the outbound fault count of the outbound fault type y4 of the outbound network port B.

[0102] In some embodiments, for the inbound network port, the server can determine the port failure score of the inbound network port based on the weights and port failure times corresponding to each port failure type corresponding to the inbound network port, such as multiplying the weights and port failure times corresponding to each port failure type corresponding to the inbound network port to obtain the scores of each port failure type corresponding to the inbound network port, and then obtain the port failure score of the inbound network port based on the scores of each port failure type corresponding to the inbound network port. The server determines the faulty network port in each inbound network port based on the port failure scores of each inbound network port.

[0103] In some embodiments, for the inbound network port, the server may also obtain a score for each port failure type corresponding to the inbound network port based on the number of port failures corresponding to each port failure type corresponding to the inbound network port, and then obtain a port failure score for the inbound network port based on the score for each port failure type corresponding to the inbound network port. The server determines the faulty network port in each inbound network port based on the port failure score of each inbound network port.

[0104] The server can select the inbound network port with the largest port fault score from each inbound network port to obtain the faulty network port; when there are at least two inbound network ports with the largest port fault scores, any inbound network port can be randomly selected from the at least two inbound network ports, or the at least two inbound network ports can be both used as the faulty network ports.

[0105] In the above embodiment, when the inbound network port and the outbound network port are the same, the port fault score is determined based on the inbound fault type and the number of inbound faults of the inbound network port, and the outbound fault type and the number of outbound faults of the outbound network port, that is, the port fault score is determined based on the number of faults of the inbound network port or the outbound network port in actual use, so that the port fault score can reflect the probability of the inbound network port or the outbound network port having a fault in actual use, thereby improving the accuracy of the port fault score, and thus more effectively locating the faulty network port.

[0106] In some embodiments, the number of port fault types is at least two; based on the port fault type and the number of port faults, a port fault score is determined, including: sorting at least two port fault types based on the number of port faults to obtain sorted port fault types; based on the sorted port fault types, determining an initial score corresponding to the port fault type; and determining the port fault score based on the initial score and the weight of each port fault type.

[0107] The weight of the port fault type may be preset, and the weight of the port fault type having a greater impact on the network quality may be set higher, and the weight of the port fault type having a smaller impact on the network quality may be set lower.

[0108] Exemplarily, port fault types may include, but are not limited to: traffic path data outbound fault type, traffic path data inbound fault type, network port alarm fault type, public network switching platform outbound traffic alarm fault type, public network switching platform inbound traffic alarm fault type, fixed exit detection fault type and autonomous domain alarm fault type; the weights of the traffic path data outbound fault type and the traffic path data inbound fault type may be set to 0.25, the weight of the fixed exit detection fault type may be set to 0.2, the weight of the autonomous domain alarm fault type may be set to 0.15, and the weights of the public network switching platform outbound traffic alarm fault type and the public network switching platform inbound traffic alarm fault type may be set to 0.05.

[0109] This embodiment is an embodiment of determining a port fault score when the inbound network port and the outbound network port are the same, and is described by taking the determination of the port fault score of the inbound network port as an example. The server sorts at least two port fault types of the inbound network port in order of the number of port faults from most to least, and obtains the sorted port fault types; for example, the port fault type of the inbound network port A is {A∪B=y1,y2,y3,y4}, where the number of port faults of y1 is 5, the number of port faults of y2 is 20, the number of port faults of y3 is 2, and the number of port faults of y4 is 10, and the sorted port fault types include: y2, y4, y1 and y3.

[0110] In some embodiments, the server determines the initial score corresponding to the port fault type based on the sorted port fault type. The server may obtain a first number of sorted port fault types, obtain a preset score set corresponding to the first number, the preset score set including the first number of preset scores, and assign the first number of preset scores to the sorted port fault types in order from largest to smallest, to obtain the initial scores corresponding to the first number of port fault types.

[0111] In practical applications, the sum of the preset scores included in the preset score set may be 100; when the first number is 2, the preset scores included in the preset score set may be 70 and 30; when the first number is 3, the preset scores included in the preset score set may be 60, 30 and 10. The preset scores included in the preset score set corresponding to the first number may be set according to actual needs, and this embodiment of the present application does not limit this.

[0112] Exemplarily, the sorted port fault types include 2 port fault types, the obtained preset score set includes a first preset score and a second preset score, the first preset score is greater than the second preset score, the first preset score is used as the initial score of the port fault type ranked first, and the second preset score is used as the initial score of the port fault type ranked second; for example, it is determined that the initial score of the port fault type ranked first is 70, and the initial score of the port fault type ranked second is 30.

[0113] In some embodiments, the server determines the port fault score based on the initial score and the weight of each port fault type. The server may perform weighted summation of the initial scores of each port fault type according to the weight of each port fault type to obtain the port fault score of the inbound network port.

[0114] In the above embodiment, the initial score of each port fault type is determined by the number of port failures of each port fault type, and then the port fault score is determined by the initial score and weight of each port fault type, that is, the port fault score is determined based on the port fault type and the number of port failures that exist in the actual use of the inbound network port or the outbound network port, so that the port fault score can reflect the probability of the inbound network port or the outbound network port having a fault in actual use, thereby improving the accuracy of the port fault score, and thus the faulty network port can be located more effectively.

[0115] In some embodiments, a port fault score is determined based on an initial score and a weight of each port fault type, including: selecting a critical fault type from the sorted port fault types based on the weight of each port fault type; and determining the port fault score based on the initial score corresponding to the critical fault type and the weight of the critical fault type.

[0116] The key fault types are some port fault types selected from the sorted port fault types.

[0117] In some embodiments, the weight of the port fault type can reflect the degree of influence of the port fault type on the network quality; when the first number of the sorted port fault types is greater than the preset number, the server selects a preset number of key fault types from each port fault type according to the weight of each port fault type, and the weight of the preset number of key fault types is greater than the weight of other port fault types except the key fault type in each port fault type. The server performs weighted summation on the initial scores of each key fault type according to the weight of each key fault type to obtain the port fault score of the inbound network port.

[0118] Exemplarily, the preset number is 3, the first number of port fault types is 7, and the weights corresponding to the 7 port fault types of the inbound network port are obtained. Based on the obtained weights, 3 key fault types are selected from the 7 port fault types, and the weights of the selected 3 key fault types are greater than those of the remaining 4 port fault types that are not selected.

[0119] In some embodiments, when the number of the port fault type is one, a preset score is used as an initial score of the port fault type, and the port fault score is determined according to the initial score of the port fault type and a weight of the port fault type.

[0120] Exemplarily, the preset score may be 100; that is, when the first number is 1, the preset score included in the preset score set is 100.

[0121] In the above embodiment, the key fault type that has a greater impact on the network quality is selected from the port fault types according to the weight, and the port fault score is determined by the initial score and weight of the key fault type, which reduces the amount of data involved in the calculation and improves the calculation efficiency of the port fault score.

[0122] In some embodiments, the network port fault information includes an inbound fault type, an inbound fault frequency, an outbound fault type, and an outbound fault frequency; Figure 6 As shown, step 210 includes:

[0123] Step 601, when the inbound network port and the outbound network port are different, determining an inbound fault score based on the inbound fault type and the inbound fault number; the inbound fault score is the fault score of the inbound network port;

[0124] Step 602, determining an outbound fault score based on the outbound fault type and the outbound fault number; the outbound fault score is a fault score of the outbound network port;

[0125] Step 603, sorting the inbound network ports and the outbound network ports based on the inbound fault scores and the outbound fault scores to obtain sorted inbound network ports and outbound network ports;

[0126] Step 604 : Select a network port that meets the ranking condition from among the sorted inbound network ports and outbound network ports as the faulty network port of the operator's network cluster.

[0127] Among them, the inbound fault score is used to reflect the probability of a fault in the inbound network port. The higher the inbound fault score, the higher the probability of a fault in the inbound network port. The lower the inbound fault score, the higher the probability of a fault in the inbound network port. The outbound fault score is also used to reflect the probability of a fault in the outbound network port.

[0128] In some embodiments, the ingress network port and the egress network port are different, that is, the network port of the operator's network cluster includes an ingress network port and an egress network port; for each ingress network port, the server determines the score corresponding to each ingress fault type of the ingress network port according to each ingress fault type and the corresponding number of ingress faults of the ingress network port, and the server determines the ingress fault score of the ingress network port according to the score corresponding to each ingress fault type of the ingress network port.

[0129] In some embodiments, determining an inbound fault score based on an inbound fault type and the number of inbound faults includes: sorting the inbound fault types based on the number of inbound faults to obtain sorted inbound fault types; the number of inbound fault types is at least two; determining a first candidate fault score corresponding to the inbound fault type based on the sorted inbound fault type; and determining an inbound fault score for the inbound network port based on the first candidate fault score and a weight of the inbound fault type.

[0130] The weight of the inbound fault type may be preset, and the weight of the inbound fault type having a greater impact on the network quality may be set higher, and the weight of the inbound fault type having a smaller impact on the network quality may be set lower.

[0131] The server sorts at least two inbound port fault types of the inbound network port in order of the number of inbound port faults from most to least, and obtains sorted inbound fault types. The server obtains a second number of sorted inbound fault types, obtains a preset score set corresponding to the second number, and the preset score set includes a second number of preset scores. The server sequentially allocates the second number of preset scores to the sorted inbound fault types in order from largest to smallest, and obtains first candidate fault scores corresponding to the second number of inbound fault types. The server performs weighted summation of the first candidate fault scores based on the weights corresponding to the inbound fault types of the inbound network port, and obtains the inbound fault score of the inbound network port.

[0132] In some embodiments, an inbound fault score of an inbound network port is determined based on a first candidate fault score and a weight of the inbound fault type, including: determining a first candidate fault type among the inbound fault types based on the weight of the inbound fault type; and determining the inbound fault score of the inbound network port based on the first candidate fault score corresponding to the first candidate fault type and the weight of the first candidate fault type.

[0133] Among them, the first candidate fault type is a part of the inbound fault types selected from the sorted inbound fault types. For each inbound network port, when the second number of the inbound fault types of the inbound network port is greater than the preset number, the server selects a preset number of first candidate fault types from the sorted inbound fault types according to the weight of each inbound fault type, and the weight of each of the preset number of first candidate fault types is greater than the weight of other inbound fault types except the first candidate fault type in each inbound fault type. The server performs weighted summation of the first candidate fault scores of each first candidate fault type according to the weight of each first candidate fault type to obtain the inbound fault score of the inbound network port.

[0134] The first candidate fault type with greater impact on network quality is selected from the inbound fault types according to the weight, and the inbound fault score of the inbound network port is determined by the first candidate fault score and the weight of the first candidate fault type, thereby reducing the amount of data involved in the calculation and improving the calculation efficiency of the inbound fault score.

[0135] In the above embodiment, the inbound fault score is determined based on the inbound fault type and the number of inbound faults that exist in actual use of the inbound network port, so that the inbound fault score can reflect the probability of a fault existing in the inbound network port in actual use, thereby improving the accuracy of the inbound fault score.

[0136] In some embodiments, for each outbound network port, the server determines the scores corresponding to each outbound failure type of the outbound network port based on each outbound failure type and each corresponding number of outbound failures of the outbound network port, and the server determines the outbound failure score of the outbound network port based on the scores corresponding to each outbound failure type of the outbound network port.

[0137] In some embodiments, an outbound fault score is determined based on the outbound fault type and the number of outbound faults, including: sorting the outbound fault types based on the number of outbound faults to obtain sorted outbound fault types; the number of outbound fault types is at least two; based on the sorted outbound fault types, a second candidate fault score corresponding to the outbound fault type is determined; based on the second candidate fault score and the weight of the outbound fault type, an outbound fault score of the outbound network port is determined.

[0138] The weight of the outbound fault type may be preset, and the weight of the outbound fault type having a greater impact on the network quality may be set higher, while the weight of the outbound fault type having a smaller impact on the network quality may be set lower.

[0139] The server sorts at least two outbound port fault types of the outbound network port in the order of the number of outbound port faults from most to least, and obtains the sorted outbound fault types. The server obtains a third number of the sorted outbound fault types, obtains a preset score set corresponding to the second number, and the preset score set includes a third number of preset scores. The server sequentially allocates the third number of preset scores to the sorted outbound fault types in order from large to small, and obtains second candidate fault scores corresponding to the third number of outbound fault types. The server performs weighted summation of the second candidate fault scores based on the weights corresponding to the outbound fault types of the outbound network port, and obtains the outbound fault score of the outbound network port.

[0140] In some embodiments, based on the second candidate fault score and the weight of the outbound fault type, an outbound fault score of the outbound network port is determined, including: based on the weight of the outbound fault type, determining the second candidate fault type among the inbound fault types; based on the second candidate fault score corresponding to the second candidate fault type and the weight of the second candidate fault type, determining the outbound fault score of the outbound network port.

[0141] Among them, the second candidate fault type is a part of the outgoing fault types selected from the sorted outgoing fault types. For each outgoing network port, when the second number of the outgoing fault types of the outgoing network port is greater than the preset number, the server selects a preset number of second candidate fault types from the sorted outgoing fault types according to the weight of each outgoing fault type, and the weight of each of the preset number of second candidate fault types is greater than the weight of other outgoing fault types except the second candidate fault type in each outgoing fault type. The server performs weighted summation of the second candidate fault scores of each second candidate fault type according to the weight of each second candidate fault type to obtain the outgoing fault score of the outgoing network port.

[0142] The second candidate fault type with greater impact on network quality is selected from the outgoing fault types according to the weight, and the outgoing fault score of the outgoing network port is determined by the second candidate fault score and the weight of the second candidate fault type, thereby reducing the amount of data involved in the calculation and improving the calculation efficiency of the outgoing fault score.

[0143] In the above embodiment, the outbound fault score is determined based on the outbound fault type and outbound fault frequency in actual use of the outbound network port, so that the outbound fault score can reflect the probability of a fault in actual use of the outbound network port, thereby improving the accuracy of the outbound fault score.

[0144] In some embodiments, the server sorts the inbound network ports and the outbound network ports in order from large to small according to the inbound fault score and the outbound fault score to obtain sorted inbound network ports and outbound network ports; for example, the inbound network ports include: network port d11, network port d12 and network port d13, and the outbound network ports include: network port d21 and network port d22. Assuming that the inbound fault score of d11 is greater than the inbound fault score of d12, the inbound fault score of d12 is greater than the outbound fault score of d21, the outbound fault score of d21 is greater than the outbound fault score of d22, and the outbound fault score of d22 is greater than the inbound fault score of d13, the sorted inbound network ports and outbound network ports are: d11, d12, d21, d22 and d13.

[0145] The server selects a network port that meets the ranking conditions from the sorted inbound network ports and outbound network ports as the faulty network port of the operator's network cluster. The inbound network port or outbound network port that meets the ranking conditions may be the inbound network port or outbound network port ranked first among the sorted inbound network ports and outbound network ports; when there are at least two inbound network ports or outbound network ports tied for the first place, the inbound network port or outbound network port that meets the ranking conditions may be the at least two inbound network ports or outbound network ports tied for the first place, or may be an inbound network port or outbound network port randomly selected from the at least two inbound network ports or outbound network ports tied for the first place.

[0146] In the above embodiment, when the inbound network port and the outbound network port are different, the inbound fault score is determined based on the inbound fault type and the number of inbound faults that exist in actual use of the inbound network port, so that the inbound fault score can reflect the probability of a fault in the inbound network port in actual use; the outbound fault score is determined based on the outbound fault type and the number of outbound faults that exist in actual use of the outbound network port, so that the outbound fault score can reflect the probability of a fault in the inbound network port in actual use, thereby increasing the transfer amount of the inbound fault score and the outbound fault score, and thus more effectively locating the faulty network port.

[0147] In some embodiments, the target time period includes a first time period and a second time period before the first time period; the network port fault location method also includes: when the ingress network port through which the detection flow in the first time period flows into the operator's network cluster is not obtained, and the first ingress network port through which the detection flow in the second time period flows into the operator's network cluster is obtained, determining the inflow ratio of the first ingress network port in the second time period; based on the inflow ratio of the first ingress network port in the second time period, determining the faulty network port of the operator's network cluster in the first ingress network port.

[0148] In this embodiment, the detection stream may be a detection stream sent by different detection nodes to each user node in the same user domain.

[0149] When the server fails to obtain the ingress network port corresponding to the detection flow in the first time period and obtains the detection flow in the second time period passing through the first ingress network port, if the number of first ingress network ports is at least two, obtain the inflow ratio of the detection flow in the second time period passing through at least one first ingress network port; when the user domain where the user node corresponding to the detection flow is located is not scheduled or blocked, the first ingress network port with the largest inflow ratio among the first ingress network ports is used as the faulty network port; for example, the detection flow in the second time period passes through two first ingress network ports, among which the inflow ratio of the detection flow passing through the first ingress network port ISP1-x is 90%, and the inflow ratio through the first ingress network port ISP1-y is 10%, and the first ingress network port ISP1-x is used as the faulty network port.

[0150] In some embodiments, the fault probability score of the first inbound network port is determined by formula (1), and the first inbound network port with the largest fault probability score is used as the faulty network port.

[0151] p1=(1-q1)×q2×(1-q3)(1)

[0152] Among them, q1=0, indicating that the inbound network port through which the detection flow in the first time period flows into the operator's network cluster is not obtained; when the inbound network port through which the detection flow in the first time period flows into the operator's network cluster is obtained, q1=1; q2 is the inflow ratio of the detection flow in the second time period through the first inbound network port, q3=0 indicates that the user domain corresponding to the detection flow is not scheduled or banned; when the user domain corresponding to the detection flow is scheduled or banned, q3=1; p1 is the failure probability score of the first inbound network port.

[0153] In some embodiments, when the server fails to obtain the inbound network port corresponding to the detection flow in the first time period and obtains the detection flow in the second time period passing through the first inbound network port, if the number of the first inbound network ports is one, the first inbound network port is regarded as a faulty network port.

[0154] In practical applications, the first period may be 1 minute, and the second period may be 2 days. Figure 7 As shown, the network port through which the detection flow passes is displayed in the detection flow display interface. In the current 1 minute, the inbound network port of the detection flow entering the operator's network cluster is not obtained ( Figure 7In the previous two days, the first inbound network port ( Figure 7 The "xxxx" recorded in the input network port column in the network port column can then determine the faulty network port within the current minute based on the detection flow inflow in the previous 2 days. The specific duration of the first period and the second period can be set according to the needs, and the embodiment of the present application does not limit this.

[0155] In the above embodiment, there is no need to detect the outgoing network port through which the response of the flow passes, and the participation of network quality information. The faulty network port can be determined by detecting the flow passing through the incoming network port during the first time period and the second time period, so that the faulty network port can be quickly located.

[0156] In some embodiments, the target time period includes a third time period and a fourth time period before the third time period; the network port fault location method also includes: determining the inflow ratio of the second inflow network port based on the second inflow network port through which each detection flow in the fourth time period flows into the operator's network cluster; determining the coefficient of the second inflow network port based on the inflow information of each detection flow in the third time period for the second inflow network port; determining the faulty network port of the operator's network cluster in the second inflow network port based on the inflow ratio and coefficient of the second inflow network port.

[0157] Among them, each detection flow can be a detection flow sent to different user domains; the inflow information of each detection flow to the second inbound network port refers to the information whether each detection flow flows into the second inbound network port; in actual applications, when each detection flow within the third time period flows into the second inbound network port, the coefficient of the second inbound network port is set to 1; when each detection flow within the third time period does not flow into the second inbound network port, the coefficient of the second inbound network port is set to 1.

[0158] In some embodiments, the number of second ingress network ports is at least two; when the network quality information corresponding to each detection stream sent to different user domains decreases at the same time, for each second ingress network port, the server obtains the inflow ratio of each detection stream in a fourth time period when it passes through the second ingress network port respectively, and the server averages the inflow ratio of each detection stream in the fourth time period when it passes through the second ingress network port respectively to obtain the inflow ratio of the second ingress network port; the server determines the coefficient of the second ingress network port according to whether each detection stream passes through the second ingress network port in the third time period.

[0159] The server determines the faulty network port of the operator's network cluster in the second ingress network port based on the inflow ratio and coefficient of the second ingress network port. The server may determine the product of the inflow ratio and the coefficient of the second ingress network port, determine the sum of the product and the inflow ratio of the second ingress network port, obtain the fault probability score of the second ingress network port, and take the second ingress network port with the largest fault probability score as the faulty network port.

[0160] The failure probability score of the second inbound network port is determined according to formula (2).

[0161] p2=pb×c+pb (2)

[0162] Wherein, p2 is the failure probability score of the second ingress network port, pb is the inflow ratio of the second ingress network port, and c is the coefficient of the second ingress network port.

[0163] In actual applications, the third time period can be 10 minutes, and the fourth time period can be 2 days. The specific duration of the third time period and the fourth time period can be set according to needs, and the embodiment of the present application does not limit this.

[0164] Exemplarily, in the fourth time period, the inflow ratios of the detection flows sent to n different user domains through the second inflow network port ISP2-y are: pby1=0.6, pby2=0.5, ..., pbyn=0.7, and the above inflow ratios are averaged to obtain the inflow ratio of the second inflow network port ISP2-y pby=0.55; the inflow ratios of the detection flows sent to n different user domains through the second inflow network port ISP2-z are: pbz1=0.4, pbz2=0.5, ..., pbzn=0.3, and the above inflow ratios are averaged to obtain the inflow ratio of the second inflow network port ISP2-z pbz=0.3. Assuming that each detection flow in the third time period passes through the second ingress network port ISP2-y but not the second ingress network port ISP2-z, the coefficient of ISP2-y is 1 and the coefficient of ISP2-z is 0. According to formula (2), it can be determined that the failure probability score of the second ingress network port ISP2-y is 1.1 and the failure probability score of the second ingress network port ISP2-z is 0.3, and the faulty network port is determined to be the second ingress network port ISP2-y.

[0165] In the above embodiment, there is no need to detect the outgoing network port through which the response of the flow passes, and the participation of network quality information. The faulty network port can be determined by detecting the flow passing through the incoming network port during the third time period and the fourth time period, so that the faulty network port can be quickly located.

[0166] In some embodiments, Figure 8As shown, the method for locating a fault of a network port further includes:

[0167] Step 801, generating a fault work order based on the faulty network port of the operator's network cluster;

[0168] Step 802: Send the fault ticket to the client, so that the client displays prompt information corresponding to the fault ticket in the conversation group of the communication application.

[0169] Among them, the fault work order is a work document including the faulty network port.

[0170] In some embodiments, the server sends a fault ticket to the client, and the client displays prompt information corresponding to the fault ticket in a conversation group of the communication application. The client displays the fault ticket in response to a trigger operation for the prompt information to implement an alarm for the faulty network port. Displaying the prompt information corresponding to the fault ticket in the conversation group may be in the form of a system notification, and displaying the prompt information corresponding to the fault ticket in the conversation group.

[0171] For example, Fig. 9 As shown, detection node 1, detection node 2, ..., detection node m, send detection streams to user node 1, user node 2, ..., user node n through the operator network cluster, and user node 1, user node 2, ..., user node n, send detection stream responses to detection node 1, detection node 2, ..., detection node m through the operator network cluster; the inbound network port and outbound network port of the operator network cluster include network port 1, network port 2, ..., network port K; the server processes the detection streams and responses sent between the detection nodes and the user nodes to obtain the faulty network port; the server generates a fault ticket according to the faulty network port, sends the fault ticket to the client, and the client displays the prompt information corresponding to the fault ticket in the session group of the communication application. For example, Fig.10 As shown, prompt information corresponding to the fault work order is displayed in the conversation group of the communication application.

[0172] In the above embodiment, the fault ticket including the faulty network port is pushed to the client, and the faulty network port can be viewed through the fault ticket in the session group of the communication application, so as to process the faulty network port through the communication application.

[0173] In some embodiments, the network port fault location method can be applied to a network port fault location system, such as Fig.11As shown, the fault location system of the network port includes a data center, an operator network cluster, an Internet security system, a big data analysis platform, a geographic location information library, a detection flow port location system and a quality information evaluation system; in some embodiments, the Internet security system can be configured in a data center or set up separately, and the server can include a big data analysis platform, a detection flow port location system and a quality information evaluation system.

[0174] The detection node of the data center sends the detection flow to the user domain through the operator's network cluster. The Internet security system sends the detection information of each detection flow and response sent by the data center to the big data analysis platform. The big data analysis platform can classify each detection flow and response according to the detection information. Each detection flow and response belonging to the same category corresponds to the same detection node and the same user domain. Specifically, the big data analysis platform can classify each detection flow and response through the geographic location information library;

[0175] The big data analysis platform sends the classified detection flows and responses to the detection flow port positioning system, and the detection flow port positioning system determines the inbound network port corresponding to the detection flow and the outbound network port corresponding to the response;

[0176] The data center sends the time when the detection node sends the detection flow, the time when the response to the detection flow is received, the number of data packets included in the detection flow sent by the detection node, and the number of datagrams included in the detection flow received by the user domain to the quality information evaluation system, determines the network quality information through the quality information evaluation system, and sends the network quality information to the detection flow port positioning system;

[0177] The detection flow port positioning system determines the network port fault information of the operator's network cluster according to the inbound network port, the outbound network port and the network quality information, and determines the faulty network port of the operator's network cluster among the inbound network port and the outbound network port based on the network port fault information.

[0178] In some embodiments, Fig.12 As shown, the detection flow port positioning system includes: a data access platform, a fault location module, a work order push module and a fault processing module; the data access platform receives data sent by the big data analysis platform and the quality information evaluation system, the fault network port is obtained through the fault location module, the fault work order is generated through the work order push module, and the fault work order is sent to the client; the fault network port included in the fault work order is reported for repair or other fault processing is performed through the fault processing module.

[0179] In some embodiments, Fig.13 As shown, the method for locating a network port fault includes:

[0180] Step 1301, determining the inbound network port through which the detection flow in the target period flows into the operator's network cluster;

[0181] Step 1302, determining the outgoing network port through which the response of the detection flow flows out of the operator's network cluster; based on the detection flow and the response, obtaining network quality information of the operator's network cluster;

[0182] Step 1303, the network port fault information includes an inbound fault type, an inbound fault count, an outbound fault type, and an outbound fault count; based on the inbound network port, the outbound network port, and the network quality information, the inbound fault type and the outbound fault type are determined; the number of inbound fault types and the number of outbound fault types are at least two respectively; the number of inbound faults corresponding to each inbound fault type is determined; the number of outbound faults corresponding to each outbound fault type is determined;

[0183] Step 1304A, when the inbound network port and the outbound network port are the same, determine the port fault type based on the inbound fault type and the outbound fault type; determine the port fault number corresponding to the port fault type based on the inbound fault number and the outbound fault number;

[0184] Step 1305A, the number of port fault types is at least two; sorting the at least two port fault types based on the number of port faults to obtain sorted port fault types; determining an initial score corresponding to the port fault type based on the sorted port fault types;

[0185] Step 1306A, based on the weight of each port fault type, select a critical fault type from the sorted port fault types; based on the initial score corresponding to the critical fault type and the weight of the critical fault type, determine the port fault score;

[0186] Step 1304B, when the inbound network port and the outbound network port are different, sort the inbound fault types based on the number of inbound faults to obtain sorted inbound fault types; the number of inbound fault types is at least two; based on the sorted inbound fault types, determine a first candidate fault score corresponding to the inbound fault type; based on the first candidate fault score and the weight of the inbound fault type, determine the inbound fault score of the inbound network port;

[0187] Step 1305B, sorting the outbound fault types based on the outbound fault count to obtain sorted outbound fault types; the number of outbound fault types is at least two; based on the sorted outbound fault types, determining a second candidate fault score corresponding to the outbound fault type; based on the second candidate fault score and the weight of the outbound fault type, determining an outbound fault score for the outbound network port;

[0188] Step 1306B, sorting the inbound network ports and the outbound network ports based on the inbound fault scores and the outbound fault scores to obtain sorted inbound network ports and outbound network ports; selecting the network ports that meet the ranking conditions from among the sorted inbound network ports and outbound network ports as the faulty network ports of the operator's network cluster;

[0189] Step 13001A, the target time period includes a first time period and a second time period before the first time period, and in the case that the inbound network port through which the detection flow in the first time period flows into the operator's network cluster is not obtained, and the first inbound network port through which the detection flow in the second time period flows into the operator's network cluster is obtained, determine the inflow ratio of the first inbound network port in the second time period; based on the inflow ratio of the first inbound network port in the second time period, determine the faulty network port of the operator's network cluster in the first inbound network port;

[0190] Step 13001B, the target time period includes the third time period and the fourth time period before the third time period; based on the second inbound network port through which each detection flow in the fourth time period flows into the operator's network cluster, determine the inflow ratio of the second inbound network port; based on the inflow information of each detection flow in the third time period for the second inbound network port, determine the coefficient of the second inbound network port; based on the inflow ratio and coefficient of the second inbound network port, determine the faulty network port of the operator's network cluster in the second inbound network port;

[0191] Step 1307: Generate a fault ticket based on the faulty network port of the operator's network cluster; send the fault ticket to the client, so that the client displays prompt information corresponding to the fault ticket in the conversation group of the communication application.

[0192] In the above-mentioned method for locating faults of network ports, the inbound network port through which the detection flow in the target time period passes when it flows into the network cluster is obtained, the outbound network port through which the response of the detection flow flows out of the network cluster is obtained, the network quality information of the operator's network cluster is determined based on the detection flow and the response, the fault information of the network port corresponding to the operator's network cluster in the target time period is determined based on the inbound network port corresponding to the detection flow in the target time period, the outbound network port corresponding to the response, and the network quality information corresponding to the detection flow and the response, and the fault network port is selected from the inbound network port and the outbound network port based on the network port fault information. There are multiple detection flows in the target time period. In the complex network environment of the operator's network cluster, the faulty network port is determined by combining the inbound network ports corresponding to multiple detection flows, the outbound network ports corresponding to multiple responses, and the network qualities corresponding to multiple detection flows and responses, thereby improving the accuracy of locating the faulty network port.

[0193] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0194] Based on the same inventive concept, the embodiment of the present application also provides a network port fault location device for implementing the network port fault location method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the fault location device for one or more network ports provided below can refer to the limitations of the network port fault location method above, and will not be repeated here.

[0195] In one embodiment, Fig.14 As shown, a network port fault location device is provided, including an inbound network port determination module 1401, an outbound network port determination module 1402, a network quality information acquisition module 1403, a network port fault information determination module 1404 and a first fault network port determination module 1405;

[0196] An inbound network port determination module 1401 is used to determine the inbound network port through which the detection flow in the target period passes when it flows into the operator's network cluster;

[0197] An outbound network port determination module 1402, used to determine the outbound network port through which the response of the detection flow flows out of the operator's network cluster;

[0198] The network quality information acquisition module 1403 is used to acquire the network quality information of the operator's network cluster based on the detection flow and the response;

[0199] A network port fault information determination module 1404, configured to determine network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information;

[0200] The first faulty network port determining module 1405 is configured to determine, based on the network port fault information, a faulty network port of the operator's network cluster from among the inbound network ports and the outbound network ports.

[0201] In some embodiments, the detection stream is sent by the detection node to the user domain, and the first fault network port determination module 1405 is specifically used to determine the delay of the detection stream based on the time when the detection node sends the detection stream and the time when the detection node receives the response; determine the jitter of the detection stream based on the delay of the detection stream; determine the packet loss rate of the detection stream based on the number of data packets sent by the detection node to the user domain and the number of data packets received by the user domain.

[0202] In some embodiments, the network port fault information includes an inbound fault type, a number of inbound faults, an outbound fault type, and a number of outbound faults; the network port fault information determination module 1404 is specifically used to determine the inbound fault type and the outbound fault type based on the inbound network port, the outbound network port, and the network quality information; the number of inbound fault types and the number of outbound fault types are at least two respectively; determine the number of inbound faults corresponding to each inbound fault type; determine the number of outbound faults corresponding to each outbound fault type.

[0203] In some embodiments, the network port fault information includes an inbound fault type, an inbound fault number, an outbound fault type, and an outbound fault number; the network port fault information determination module 1404 includes:

[0204] a port fault type determination unit, configured to determine the port fault type based on the inbound fault type and the outbound fault type when the inbound network port and the outbound network port are the same;

[0205] A port fault score determination unit, configured to determine the number of port faults corresponding to the port fault type according to the number of inbound faults and the number of outbound faults; and determine the port fault score based on the port fault type and the number of port faults;

[0206] The first faulty network port determining unit is configured to select a faulty network port of the operator's network cluster from the inbound network ports or the outbound network ports based on the port fault score.

[0207] In some embodiments, the number of port fault types is at least two, and the port fault score determination unit is specifically used to sort at least two port fault types based on the number of port faults to obtain sorted port fault types; based on the sorted port fault types, determine the initial score corresponding to the port fault type; based on the initial score and the weight of each port fault type, determine the port fault score.

[0208] In some embodiments, the port fault score determination unit is further specifically used to select a critical fault type from the sorted port fault types based on the weight of each port fault type; and determine the port fault score based on the initial score corresponding to the critical fault type and the weight of the critical fault type.

[0209] In some embodiments, the network port fault information includes an inbound fault type, an inbound fault number, an outbound fault type, and an outbound fault number; the network port fault information determination module 1404 includes:

[0210] An inbound fault score determination unit, used to determine an inbound fault score based on an inbound fault type and an inbound fault number when an inbound network port and an outbound network port are different; the inbound fault score is a fault score of the inbound network port;

[0211] An outbound fault score determination unit, used to determine an outbound fault score based on the outbound fault type and the outbound fault number; the outbound fault score is a fault score of an outbound network port;

[0212] The second fault network port determination unit is used to sort the inbound network ports and the outbound network ports based on the inbound fault score and the outbound fault score to obtain sorted inbound network ports and outbound network ports; and select the network port that meets the ranking conditions from the sorted inbound network ports and outbound network ports as the fault network port of the operator's network cluster.

[0213] In some embodiments, the inbound fault score determination unit is specifically used to sort the inbound fault types based on the number of inbound faults to obtain sorted inbound fault types; the number of inbound fault types is at least two; based on the sorted inbound fault types, a first candidate fault score corresponding to the inbound fault type is determined; based on the first candidate fault score and the weight of the inbound fault type, the inbound fault score of the inbound network port is determined.

[0214] In some embodiments, the inbound fault score determination unit is specifically used to sort the outbound fault types based on the number of outbound faults to obtain sorted outbound fault types; the number of outbound fault types is at least two; based on the sorted outbound fault types, a second candidate fault score corresponding to the outbound fault type is determined; based on the second candidate fault score and the weight of the outbound fault type, the outbound fault score of the outbound network port is determined.

[0215] In some embodiments, the target time period includes a first time period and a second time period before the first time period; the fault location device of the network port further includes:

[0216] A second faulty network port determination module is used to determine the inflow ratio of the first ingress network port in the second time period when the ingress network port through which the detection flow in the first time period flows into the operator's network cluster is not obtained and the first ingress network port through which the detection flow in the second time period flows into the operator's network cluster is obtained; based on the inflow ratio of the first ingress network port in the second time period, determine the faulty network port of the operator's network cluster in the first ingress network port.

[0217] In some embodiments, the target time period includes a third time period and a fourth time period before the third time period; the fault location device of the network port further includes:

[0218] The third faulty network port determination module is used to determine the inflow ratio of the second ingress network port based on the second ingress network port through which each detection flow in the fourth time period flows into the operator's network cluster; determine the coefficient of the second ingress network port based on the inflow information of each detection flow in the third time period for the second ingress network port; and determine the faulty network port of the operator's network cluster in the second ingress network port based on the inflow ratio and coefficient of the second ingress network port.

[0219] In some embodiments, the fault location device of the network port also includes: a fault work ticket push module, which is used to generate a fault work ticket based on the faulty network port of the operator's network cluster; send the fault work ticket to the client so that the client displays prompt information corresponding to the fault work ticket in the session group of the communication application.

[0220] Each module in the above-mentioned network port fault location device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0221] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.15 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store detection flows, responses and relevant data of the operator's network cluster. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for locating a network port fault is implemented.

[0222] Those skilled in the art will understand that Fig.15The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0223] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: determining an inbound network port through which a detection flow within a target time period passes when it flows into an operator network cluster; determining an outbound network port through which a response of the detection flow flows when it flows out of the operator network cluster; obtaining network quality information of the operator network cluster based on the detection flow and the response; determining network port fault information of the operator network cluster based on the inbound network port, the outbound network port and the network quality information; and determining a faulty network port of the operator network cluster from among the inbound network port and the outbound network port based on the network port fault information.

[0224] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: determining an inbound network port through which a detection flow within a target time period passes when it flows into an operator network cluster; determining an outbound network port through which a response of the detection flow flows out of the operator network cluster; obtaining network quality information of the operator network cluster based on the detection flow and the response; determining network port fault information of the operator network cluster based on the inbound network port, the outbound network port and the network quality information; and determining a faulty network port of the operator network cluster among the inbound network port and the outbound network port based on the network port fault information.

[0225] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: determining an inbound network port through which a probe flow within a target time period passes when it flows into an operator network cluster; determining an outbound network port through which a response of the probe flow flows when it flows out of the operator network cluster; obtaining network quality information of the operator network cluster based on the probe flow and the response; determining network port fault information of the operator network cluster based on the inbound network port, the outbound network port and the network quality information; and determining a faulty network port of the operator network cluster among the inbound network port and the outbound network port based on the network port fault information.

[0226] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0227] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0228] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0229] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for locating a fault of a network port, characterized in that: The method comprises: Determine the inbound network port through which the detection flow in the target period flows into the operator's network cluster; Determine the outbound network port through which the response of the detection flow flows when flowing out of the operator network cluster; Based on the detection flow and the response, obtaining network quality information of the operator network cluster; Determine network port fault information of the operator network cluster based on the inbound network port, the outbound network port and the network quality information; Based on the network port failure information, a failed network port of the operator network cluster is determined from among the inbound network ports and the outbound network ports.

2. The method according to claim 1, characterized in that The detection stream is sent by the detection node to the user domain; and obtaining the network quality information of the operator network cluster based on the detection stream and the response includes: Determining a delay of the detection flow based on a time when the detection node sends the detection flow and a time when the detection node receives the response; Determining a jitter of the detection flow based on a delay of the detection flow; The packet loss rate of the detection flow is determined based on the number of data packets sent by the detection node to the user domain and the number of data packets received by the user domain.

3. The method according to claim 1, characterized in that The network port fault information includes the inbound fault type, the inbound fault number, the outbound fault type and the outbound fault number; The determining, based on the inbound network port, the outbound network port and the network quality information, network port fault information of the operator network cluster includes: Determine an inbound fault type and an outbound fault type based on the inbound network port, the outbound network port and the network quality information; the number of the inbound fault types and the number of the outbound fault types are at least two respectively; Determine the number of inbound faults corresponding to each of the inbound fault types; The number of outbound faults corresponding to each of the outbound fault types is determined.

4. The method according to claim 1, characterized in that The network port fault information includes the inbound fault type, the inbound fault number, the outbound fault type and the outbound fault number; The determining, based on the network port fault information, a faulty network port of the operator's network cluster from among the inbound network ports and the outbound network ports comprises: When the inbound network port and the outbound network port are the same, determining a port fault type based on the inbound fault type and the outbound fault type; Determine the number of port failures corresponding to the port failure type according to the number of inbound failures and the number of outbound failures; Determining a port failure score based on the port failure type and the port failure number; Based on the port fault score, the faulty network port of the operator's network cluster is selected from the inbound network port or the outbound network port.

5. The method according to claim 4, characterized in that The number of the port fault types is at least two; and determining the port fault score based on the port fault type and the number of port faults includes: Sorting at least two of the port failure types based on the number of port failures to obtain sorted port failure types; Based on the sorted port fault types, determining an initial score corresponding to the port fault types; A port fault score is determined based on the initial score and the weight of each port fault type.

6. The method according to claim 5, characterized in that The determining of the port fault score based on the initial score and the weight of each port fault type includes: Based on the weight of each of the port fault types, selecting a critical fault type from the sorted port fault types; A port fault score is determined based on an initial score corresponding to the key fault type and a weight of the key fault type.

7. The method according to claim 1, characterized in that The network port fault information includes the inbound fault type, the inbound fault number, the outbound fault type and the outbound fault number; The determining, based on the network port fault information, a faulty network port of the operator's network cluster from among the inbound network ports and the outbound network ports comprises: When the inbound network port and the outbound network port are different, determining an inbound fault score based on the inbound fault type and the inbound fault number; the inbound fault score is a fault score of the inbound network port; Determine an outbound fault score based on the outbound fault type and the outbound fault number; the outbound fault score is the fault score of the outbound network port; Based on the inbound fault score and the outbound fault score, sorting the inbound network port and the outbound network port to obtain sorted inbound network ports and outbound network ports; Among the ranked inbound network ports and outbound network ports, a network port that meets the ranking condition is selected as the faulty network port of the operator's network cluster.

8. The method according to claim 7, characterized in that The determining the inbound fault score based on the inbound fault type and the inbound fault number includes: Sorting the inbound fault types based on the number of inbound faults to obtain sorted inbound fault types; the number of the inbound fault types is at least two; Based on the sorted inbound fault type, determining a first candidate fault score corresponding to the inbound fault type; An inbound fault score of the inbound network port is determined based on the first candidate fault score and the weight of the inbound fault type.

9. The method according to claim 7, characterized in that: The determining of the outbound fault score based on the outbound fault type and the outbound fault number includes: Sorting the outbound fault types based on the outbound fault counts to obtain sorted outbound fault types; the number of the outbound fault types is at least two; Based on the sorted outgoing fault type, determining a second candidate fault score corresponding to the outgoing fault type; An outbound fault score of the outbound network port is determined based on the second candidate fault score and the weight of the outbound fault type.

10. The method according to claim 1, characterized in that The target time period includes a first time period and a second time period before the first time period; the method further includes: In the case where the inbound network port through which the detection flow in the first time period flows into the operator network cluster is not obtained, and the first inbound network port through which the detection flow in the second time period flows into the operator network cluster is obtained, determining the inflow ratio of the first inbound network port in the second time period; Based on the inflow ratio of the first inbound network port in the second time period, a faulty network port of the operator network cluster is determined from the first inbound network ports.

11. The method according to claim 1, characterized in that: The target time period includes a third time period and a fourth time period before the third time period; the method further includes: Determine an inflow ratio of the second inbound network port based on the second inbound network port through which each detection flow in the fourth time period flows into the operator network cluster; Determine a coefficient of the second inbound network port based on inflow information of each detection flow within the third time period for the second inbound network port; Based on the inflow ratio and coefficient of the second inbound network port, a faulty network port of the operator network cluster is determined in the second inbound network port.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: Generate a fault work order based on the faulty network port of the operator's network cluster; The fault ticket is sent to the client, so that the client displays prompt information corresponding to the fault ticket in the conversation group of the communication application.

13. A network port fault location device, characterized in that: The device comprises: An inbound network port determination module, used to determine the inbound network port through which the detection flow in the target period passes when it flows into the operator's network cluster; An outbound network port determination module, used to determine the outbound network port through which the response of the detection flow flows when it flows out of the operator network cluster; A network quality information acquisition module, configured to acquire network quality information of the operator's network cluster based on the detection flow and the response; A network port fault information determination module, configured to determine the network port fault information of the operator's network cluster based on the inbound network port, the outbound network port and the network quality information; The first faulty network port determining module is used to determine the faulty network port of the operator's network cluster from among the inbound network ports and the outbound network ports based on the network port fault information.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.