Network fault positioning method, equipment and medium

By generating an undirected graph and using the graph attention network algorithm to perform aggregation calculations on edge features, the problem of excessive node feature dimensions and insufficient generalization capabilities in network fault location is solved, achieving more accurate fault location and more efficient communication. Network management.

CN118802502AActive Publication Date: 2024-10-18INSPUR NETWORK TECH (SHANDONG) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410983730.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-18
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

In the existing technology, when locating network faults, all port information is represented on node features, resulting in excessively high dimensionality of node features and insufficient generalization ability of the model to changes in port connections.

Method used

By determining the communication devices with associated relationships, an undirected graph is generated, and the graph attention network algorithm is used to aggregate and calculate edge features to achieve fault location of the communication network.

Benefits of technology

It improves the accuracy of fault location and the model's generalization ability to port connection changes, reduces the workload of network maintenance personnel, and improves the stability and reliability of the communication network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802502A_ABST
    Figure CN118802502A_ABST
Patent Text Reader

Abstract

The invention discloses a network fault positioning method, equipment and a medium, which are used for solving the problems of overhigh node feature dimension and insufficient generalization ability of a model to port connection change due to the fact that all port information is represented on node features in the prior art. The method comprises the following steps: determining every two associated communication devices having an association relationship according to an actual communication network; wherein the associated communication device refers to a neighbor node with a signal transmission requirement; splicing the port states of the two associated communication devices to obtain corresponding edge features, and generating an undirected graph corresponding to the actual communication network based on the edge features; and based on a graph attention network algorithm, modeling is performed on the undirected graph, and edges in the undirected graph model are classified, so that fault positioning of an actual communication network can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of fault location, and in particular to a network fault location method, device and medium. Background Art

[0002] At present, in the current routing and switching network environment, fault location is a crucial link, which is directly related to the stability of the network and the continuity of services. However, traditional fault location methods mainly rely on manual troubleshooting by network engineers, which is not only time-consuming and labor-intensive, but also often difficult to quickly and accurately locate the root cause of the fault in a complex and changeable network environment. With the rapid development of deep learning technology, especially the significant advantages of graph neural networks (GNN) in processing graph data, applying it to fault location in communication networks has become a new research hotspot. GNN can capture the complex relationships in the graph structure and identify abnormal patterns in the network by learning node features and the connection relationships between nodes, so as to achieve automatic fault location.

[0003] Existing related inventions attempt to map network devices into graph nodes, encode the key information of the devices into graph features, and use GNN for modeling and identification of root causes of faults. However, since communication network devices usually have multiple ports, and not all ports participate in network connections at the same time, representing all port information on node features will result in too high a dimension of node features, which not only increases the computational complexity, but also introduces a large amount of redundant information. These unused port information is not helpful for fault location, but will interfere with the judgment of the model. In addition, since the port connections in the network may change frequently, the practice of solidifying all port information in node features will result in poor generalization of the model for changes in port connections. Summary of the invention

[0004] The embodiments of the present application provide a network fault location method, device and medium to solve the technical problem that the prior art represents all port information on node features, resulting in excessively high node feature dimensions and insufficient generalization capability of the model for port connection changes.

[0005] On the one hand, an embodiment of the present application provides a network fault location method, including:

[0006] According to the actual communication network, determining every two associated communication devices having an associated relationship; wherein the associated communication devices refer to neighboring nodes having signal transmission requirements;

[0007] splicing the port states of two associated communication devices to obtain corresponding edge features, and generating an undirected graph corresponding to the actual communication network based on the edge features;

[0008] Based on the graph attention network algorithm, the undirected graph is modeled, and the edges in the undirected graph model are classified to achieve fault location of the actual communication network.

[0009] In one implementation of the present application, determining, according to the actual communication network, every two associated communication devices having an associated relationship specifically includes:

[0010] Acquire an actual communication network with fault location requirements, and determine all signal transmission directions in the actual communication network;

[0011] Based on each signal transmission direction, neighbor nodes with signal transmission requirements are determined respectively, and corresponding signal senders and signal receivers are determined;

[0012] According to the signal sender and the signal receiver, every two associated communication devices having an associated relationship are determined in the actual communication network.

[0013] In one implementation of the present application, the port states of two associated communication devices are spliced ​​to obtain corresponding edge features, specifically including:

[0014] Determine the port status corresponding to the communication device, and obtain a preset number of port status values ​​in two associated communication devices respectively; wherein the port status includes: the port's send and receive packet count, maximum transmission unit configuration, rate configuration, MAC address, IP address, and device operating temperature, system resource consumption, and switch status;

[0015] The port status values ​​of the two associated communication devices are randomly concatenated to obtain edge features corresponding to the edges between the two associated communication devices.

[0016] In one implementation of the present application, the undirected graph is modeled based on the graph attention network algorithm, specifically including:

[0017] Based on the undirected graph, a plurality of neighbor edge features corresponding to each edge feature are determined; wherein the edges connected to the nodes corresponding to the communication devices at both ends of the edge in the undirected graph are used as the neighbor edges of the edge;

[0018] Based on the graph attention network algorithm, the edge feature and the neighbor edge features corresponding to the edge feature are aggregated and calculated to obtain the next layer of edge features corresponding to the edge feature;

[0019] After the edge features are multi-layer aggregated, the node classification representation corresponding to the multi-layer aggregated edge features is output through the fully connected layer.

[0020] In one implementation of the present application, the graph attention network algorithm is based on which the edge feature and the neighbor edge feature corresponding to the edge feature are aggregated and calculated to obtain the next layer of edge features corresponding to the edge feature, specifically including:

[0021] The next layer of edge features is calculated using the following formula:

[0022]

[0023] in, represents the edge feature of the i-th edge in the next layer, σ represents the activation function, K hyperparameter represents the number of aggregation heads in this layer, N i represents the features of all neighboring edges of the ith edge, W k represents the edge feature linear transformation matrix, which is the parameter to be learned. Represents the importance coefficient between the i-th edge and each neighbor edge feature.

[0024] In one implementation of the present application, the graph attention network algorithm is based on which the edge feature and the neighbor edge feature corresponding to the edge feature are aggregated and calculated to obtain the next layer of edge features corresponding to the edge feature, specifically including:

[0025] The importance coefficient between an edge and each neighbor edge feature is calculated using the following formula:

[0026]

[0027] Among them, || represents the vector concatenation operation, A k represents the vector to be learned, A represents the linear transformation and concatenation of the l-th layer feature vectors of i and j. k The length and The same length, Indicates A k and Do the inner product, LeakyReLU() represents the activation function, and exp() represents the exponential function.

[0028] In one implementation of the present application, the classification of the edges in the undirected graph model to achieve fault location of the actual communication network specifically includes:

[0029] Based on the pre-trained graph attention network model, features are extracted for each edge in the undirected graph model, and the extracted features are classified and judged;

[0030] Determine a fault edge whose classification result is a fault category, and determine two associated communication devices corresponding to the fault edge based on edge features of the fault edge;

[0031] Generate a fault location report corresponding to the two associated communication devices, and send the fault location report to a corresponding management personnel to achieve fault location of the actual communication network.

[0032] In one implementation of the present application, the feature extraction of each edge in the undirected graph model based on the pre-trained graph attention network model and classification judgment of the extracted features specifically include:

[0033] Based on the pre-trained graph attention network model, in the undirected graph model, the packet count, maximum transmission unit configuration, rate configuration, MAC address, IP address, device operating temperature, system resource consumption and switch status of the port corresponding to each edge are extracted;

[0034] Inputting the edge features into the pre-trained graph attention network model to perform forward propagation calculation on the edge features and outputting the fault probability of each edge being a fault category;

[0035] A magnitude relationship between the fault probability and a preset threshold is determined to determine whether each edge belongs to a fault category based on the magnitude relationship.

[0036] On the other hand, an embodiment of the present application further provides a network fault location device, the device comprising:

[0037] at least one processor;

[0038] and, a memory communicatively coupled to the at least one processor;

[0039] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a network fault locating method as described above.

[0040] On the other hand, an embodiment of the present application further provides a non-volatile computer storage medium storing computer executable instructions, which, when executed, implement a network fault locating method as described above.

[0041] The present invention provides a method, device and medium for locating network faults, including at least the following:

[0042] Beneficial effects:

[0043] By determining the communication devices with associated relationships and generating an undirected graph based on the port status of these devices, the topological structure of the actual communication network and the association relationship between devices can be more accurately reflected; by using the graph attention network algorithm to model and classify the edges of the undirected graph, the fault points in the network can be more accurately identified, thereby improving the accuracy of fault location; by automatically identifying and analyzing the association relationships between communication devices and locating faults based on these relationships, the workload of network maintenance personnel can be greatly reduced, making the maintenance of communication networks more efficient and systematic, and helping to improve overall maintainability; using the graph attention network algorithm to model and analyze communication networks, intelligent management of communication networks is realized; accurate fault location helps to quickly respond to and repair problems in the network, thereby reducing the impact of network failures on communication services; by promptly discovering and handling potential failure points, larger-scale network failures can be prevented, thereby improving the stability and reliability of communication networks. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0045] Figure 1 A flowchart of a network fault location method provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of an undirected graph constructed according to a network provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of undirected graph edge features provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of the internal structure of a network fault locating device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0050] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0051] Figure 1A flowchart of a network fault locating method provided in an embodiment of the present application.

[0052] The analysis method involved in the embodiments of the present application can be implemented by a terminal device or a server, and the present application does not impose any special restrictions on this. For the convenience of understanding and description, the following embodiments are described in detail by taking a server as an example.

[0053] It should be noted that the server may be a single device or a system consisting of multiple devices, that is, a distributed server, and this application does not make any specific limitation on this.

[0054] like Figure 1 As shown, a network fault location method provided in an embodiment of the present application includes:

[0055] 101. According to an actual communication network, determine every two associated communication devices having an associated relationship; wherein the associated communication devices refer to neighbor nodes having signal transmission requirements.

[0056] Specifically, in one embodiment of the present application, the server obtains an actual communication network with a fault location requirement, and determines all signal transmission directions in the actual communication network; based on each signal transmission direction, the server determines the neighboring nodes with signal transmission requirements respectively, and determines the corresponding signal senders and signal receivers; according to the signal senders and signal receivers, every two associated communication devices with an associated relationship are determined in the actual communication network.

[0057] In one embodiment, an actual communication network with fault location requirements is first obtained, which includes multiple switches, routers and terminal devices, and network management tools or protocols (such as SNMP, LLDP or wireless SNMP, NetFlow, etc.) are used to collect device information in the network and the connection relationship between them, so as to determine the transmission direction of all signals.

[0058] For each signal transmission direction, identify neighbor nodes with signal transmission requirements. For example, if the signal is transmitted from switch A to switch B, then switch A and switch B are neighbor nodes. Determine the signal sender and signal receiver in each transmission direction. In the above example, switch A is the signal sender and switch B is the signal receiver.

[0059] According to the information of the signal sender and the signal receiver, every two associated communication devices with an associated relationship are determined in the actual communication network. For example, if switch A has a signal transmission relationship with switch B, router C, and terminal device D, then these devices are associated with switch A and can be regarded as associated communication devices.

[0060] 102. Concatenate the port states of two associated communication devices to obtain corresponding edge features, so as to generate an undirected graph corresponding to the actual communication network based on the edge features.

[0061] Specifically, in one embodiment of the present application, the server determines the port status corresponding to the communication device, and obtains a preset number of port status values ​​in two associated communication devices. It should be noted that the port status in the embodiment of the present application includes: the port's send and receive packet count, maximum transmission unit (MTU) configuration, rate configuration, MAC address, IP address, and device operating temperature, system resource consumption, and switch status. Which specific port status to take can be customized according to actual conditions. The MAC address or IP address of the port needs to be normalized, and the normalized MAC address or IP address can be used as an edge feature.

[0062] Then, the port state values ​​of the two associated communication devices are randomly concatenated to obtain the edge features corresponding to the edges between the two associated communication devices.

[0063] In one embodiment, in an actual communication network, two associated communication devices are selected, such as switch A and switch B. For switch A and switch B, their port status information is obtained through network management tools or protocols (such as SNMP). Then, a preset number is set, for example, 5 ports on each communication device are selected. For switch A and switch B, the above port status values ​​are obtained from the 5 ports.

[0064] Randomly concatenate the five port status values ​​of switch A with the five port status values ​​of switch B. For example, you can select the first port status value of switch A and the third port status value of switch B for concatenation, then select the second port status value of switch A and the fifth port status value of switch B for concatenation, and so on, until all selected port status values ​​are concatenated. The concatenated result is used as the edge feature corresponding to the edge between the two associated communication devices. The edge feature contains the port status information of the two communication devices, which can be used for subsequent fault location and network analysis.

[0065] Figure 2 A schematic diagram of an undirected graph constructed according to a network is provided in an embodiment of the present application. Figure 2As shown, there are six communication devices R0, R1, R2, R3, R4, and R5. Communication device R0 includes ports Gi0 / 0 and Gi0 / 1, communication device R1 includes ports Gi0 / 0, Gi0 / 1, and Gi0 / 2, communication device R2 includes ports Gi0 / 0, Gi0 / 1, and Gi0 / 2, communication device R3 includes ports Gi0 / 0 and Gi0 / 1, communication device R4 includes ports Gi0 / 0, Gi0 / 1, and Gi0 / 2, and communication device R5 includes ports Gi0 / 0, Gi0 / 1, and Gi0 / 2.

[0066] Figure 3 Schematic diagram of undirected graph edge features provided in the embodiment of the present application. Figure 3 As shown, e n2 / e 21 The characteristics of the corresponding line are concatenated with the R1-Gi0 / 1 and R2-Gi0 / 0 port states at both ends, and n port state values ​​are taken. The R1-Gi0 / 1 port state is taken. Similarly, take the R2-Gi0 / 0 port status Randomly splice edge features or

[0067]

[0068] 103. Based on the graph attention network algorithm, the undirected graph is modeled and the edges in the undirected graph model are classified to realize fault location in the actual communication network.

[0069] Specifically, in one embodiment of the present application, the server determines multiple neighbor edge features corresponding to each edge feature based on an undirected graph; wherein, in the undirected graph, the edges connected to the nodes corresponding to the communication devices at both ends of the edge are used as neighbor edges of the edge; based on the graph attention network algorithm, the edge features and the neighbor edge features corresponding to the edge features are aggregated and calculated to obtain the next layer of edge features corresponding to the edge features; after the edge features are multi-layer aggregated, the node classification representation corresponding to the multi-layer aggregated edge features is output through the fully connected layer.

[0070] In one embodiment, in an actual communication network undirected graph that has been constructed, an edge feature is selected as a target edge feature. All other edge features that have the same communication device as the target edge feature are determined, and these edge features are the neighbor edge features of the target edge feature. For the target edge feature and its corresponding neighbor edge feature, an aggregation calculation is performed using a graph attention network algorithm. During the aggregation calculation process, the importance coefficients between the edge features are considered, and the neighbor edge features are weighted summed, and linear transformation and activation function processing are performed with the target edge feature. Through the aggregation calculation, the next layer of edge features corresponding to the target edge feature is obtained.

[0071] Add multiple next-layer edge features corresponding to the target edge feature to the target edge feature to form a new edge feature representation. Output the new edge feature representation through the fully connected layer to obtain the final edge feature output. Repeat the above steps to aggregate and output each edge feature in the undirected graph.

[0072] In one embodiment of the present application, the edge feature of the next layer is calculated by the following formula:

[0073]

[0074] It should be noted that the embodiments of the present application represents the edge feature of the i-th edge in the next layer, σ represents the activation function, K hyperparameter represents the number of aggregation heads in this layer, N i represents the features of all neighboring edges of the ith edge, W k represents the edge feature linear transformation matrix, which is the parameter to be learned. Represents the importance coefficient between the i-th edge and each neighbor edge feature.

[0075] In one embodiment, in the constructed actual communication network undirected graph, all edges and their corresponding edge features are determined, and an edge is selected as the target edge, and all its neighbor edge features are obtained. An activation function is set, such as a ReLU function. The number of aggregation heads in this layer, i.e., the value of the hyperparameter, is determined. The edge feature linear transformation matrix is ​​initialized, which is a parameter to be learned. The importance coefficient is initialized, which is also a parameter to be learned, and is used to represent the strength of the relationship between the target edge and each neighbor edge feature.

[0076] For each neighbor edge feature of the target edge, use the edge feature linear transformation matrix to linearly transform the neighbor edge feature, and multiply the transformed neighbor edge feature with the importance coefficient of the target edge to obtain the weighted neighbor edge feature. Sum all weighted neighbor edge features to obtain the aggregated neighbor edge feature. Concatenate the aggregated neighbor edge feature with the original edge feature of the target edge, and apply the activation function to the concatenated feature to obtain a portion of the edge feature of the target edge in the next layer.

[0077] Repeat the above steps to calculate a part of the next layer edge feature for each aggregation head. If there are multiple aggregation heads, their results can be concatenated or summed to obtain the final edge feature of the next layer target edge. Add the calculated next layer edge feature to the original edge feature of the target edge, and output the updated edge feature for subsequent network fault location tasks.

[0078] In one embodiment of the present application, the server calculates the importance coefficient between the edge and each neighbor edge feature by the following formula:

[0079]

[0080] It should be noted that || in the embodiment of the present application represents a vector concatenation operation, A k represents the vector to be learned, A represents the linear transformation and concatenation of the l-th layer feature vectors of i and j. k The length and The same length, Indicates A k and Do the inner product, LeakyReLU() represents the activation function, and exp() represents the exponential function.

[0081] In one embodiment of the present application, the server extracts features from each edge in the undirected graph model based on a pre-trained graph attention network model, and classifies and judges the extracted features; determines the fault edge whose classification result is a fault category, and based on the edge features of the fault edge, determines the two associated communication devices corresponding to the fault edge; generates a fault location report corresponding to the two associated communication devices, and sends the fault location report to the corresponding management personnel to realize fault location of the actual communication network.

[0082] In one embodiment, a pre-trained graph attention network model is used to extract features from each edge in the undirected graph model, and the extracted edge features are classified and judged to determine the category to which each edge belongs, including a normal category and a fault category. From the classification results, the edges classified as the fault category, i.e., the fault edges, are screened out, and then the two associated communication devices corresponding to the fault edge are determined based on the edge features of the fault edge. Afterwards, a corresponding fault location report is generated for the two determined associated communication devices, and the fault location report is sent to the corresponding management personnel so that they can understand and take measures to solve the network failure in a timely manner.

[0083] Specifically, the historical communication network data and the corresponding fault labels are used to train the graph attention network model so that it can accurately extract edge features and classify them. Each edge in the undirected graph model is used as input, and features are extracted through the graph attention network model to obtain the feature representation of each edge. The extracted edge features are classified using a classifier to determine whether each edge belongs to a fault category, and based on the classification results, the edges classified as fault categories are screened out as fault edges. Based on the edge features of the fault edge, the two nodes connected to the edge in the undirected graph model are searched, i.e., the associated communication devices, so as to generate a detailed fault location report for the associated communication devices, including information such as the fault type, fault location, and recommended solutions, and the fault location report is sent to the corresponding management personnel via email, SMS, or other means.

[0084] In one embodiment of the present application, the server extracts the receive and send packet counts, maximum transmission unit configuration, rate configuration, MAC address, IP address, and device operating temperature, system resource consumption, and switch status of the port corresponding to each edge in the undirected graph model based on a pre-trained graph attention network model; inputs the edge features into the pre-trained graph attention network model to perform forward propagation calculations on the edge features, and outputs the fault probability of each edge being a fault category; determines the size relationship between the fault probability and a preset threshold, and determines whether each edge belongs to a fault category based on the size relationship.

[0085] To locate the line connection failure in the actual communication network, the corresponding thing in the undirected graph is to classify the edges in the undirected graph. The category label of the edge can be determined based on whether there is a fault on the edge, such as the fault category or the non-fault category. You can also define a more detailed edge classification based on the constructed edge features. For example, selecting the send and receive packet count as an edge feature can locate the line that causes congestion. In addition, by selecting the MTU, MAC, and IP configurations, you can define whether the cause of the fault is due to the mismatch of these configurations.

[0086] In one embodiment, in an undirected graph model, each edge is traversed to extract the packet count, maximum transmission unit configuration, rate configuration, MAC address, IP address, device operating temperature, system resource consumption and switch status of the port corresponding to each edge as edge features. Afterwards, the extracted edge features of each edge are input into a pre-trained graph attention network model, and the graph attention network model performs forward propagation calculation on the edge features to obtain the fault probability of each edge being a fault category.

[0087] A preset threshold is set to determine whether the failure probability of an edge is high enough to classify it as a failure category. For each edge, the failure probability corresponding to each edge is compared with the preset threshold. If the failure probability of the edge is greater than or equal to the preset threshold, the edge is determined to belong to the failure category; otherwise, the edge is determined to belong to the normal category.

[0088] Specifically, a large amount of historical communication network data and corresponding fault labels are used to train the graph attention network model, so that it can accurately learn the relationship between edge features and fault categories, and ensure that the features extracted from each edge are complete and accurate, so as to provide reliable information for subsequent fault judgment. Through the forward propagation calculation of the graph attention network model, the probability of each edge being a fault category is obtained, so as to facilitate the subsequent judgment of whether the edge belongs to the fault category.

[0089] According to actual needs and network environment, set an appropriate preset threshold to determine whether the failure probability of the edge is high enough, and then determine the category of each edge based on the relationship between the failure probability and the preset threshold, and output the result or use it in subsequent fault handling processes.

[0090] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a network fault location device, whose structure is as follows: Figure 4 shown.

[0091] Figure 4 A schematic diagram of the internal structure of a network fault location device provided in an embodiment of the present application. Figure 4 As shown, the device includes:

[0092] at least one processor;

[0093] and, a memory communicatively coupled to the at least one processor;

[0094] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to:

[0095] According to the actual communication network, determining every two associated communication devices having an associated relationship; wherein the associated communication devices refer to neighboring nodes having signal transmission requirements;

[0096] The port states of two associated communication devices are spliced ​​to obtain corresponding edge features, so as to generate an undirected graph corresponding to the actual communication network based on the edge features;

[0097] Based on the graph attention network algorithm, the undirected graph is modeled and the edges in the undirected graph model are classified to realize fault location in the actual communication network.

[0098] The present application also provides a non-volatile computer storage medium storing computer executable instructions. When the computer executable instructions are executed, they can:

[0099] According to the actual communication network, determining every two associated communication devices having an associated relationship; wherein the associated communication devices refer to neighboring nodes having signal transmission requirements;

[0100] The port states of two associated communication devices are spliced ​​to obtain corresponding edge features, so as to generate an undirected graph corresponding to the actual communication network based on the edge features;

[0101] Based on the graph attention network algorithm, the undirected graph is modeled and the edges in the undirected graph model are classified to realize fault location in the actual communication network.

[0102] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0103] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0104] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0105] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0106] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0109] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0110] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0111] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0112] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0113] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A network fault location method, characterized in that: The method comprises: According to the actual communication network, determining every two associated communication devices having an associated relationship; wherein the associated communication devices refer to neighboring nodes having signal transmission requirements; splicing the port states of two associated communication devices to obtain corresponding edge features, and generating an undirected graph corresponding to the actual communication network based on the edge features; Based on the graph attention network algorithm, the undirected graph is modeled, and the edges in the undirected graph model are classified to achieve fault location of the actual communication network.

2. A network fault location method according to claim 1, characterized in that: The step of determining, according to the actual communication network, every two associated communication devices having an associated relationship specifically includes: Acquire an actual communication network with fault location requirements, and determine all signal transmission directions in the actual communication network; Based on each signal transmission direction, neighbor nodes with signal transmission requirements are determined respectively, and corresponding signal senders and signal receivers are determined; According to the signal sender and the signal receiver, every two associated communication devices having an associated relationship are determined in the actual communication network.

3. A network fault location method according to claim 1, characterized in that: The port states of two associated communication devices are spliced ​​to obtain corresponding edge features, specifically including: Determine the port status corresponding to the communication device, and obtain a preset number of port status values ​​in two associated communication devices respectively; wherein the port status includes: the port's send and receive packet count, maximum transmission unit configuration, rate configuration, MAC address, IP address, and device operating temperature, system resource consumption, and switch status; The port status values ​​of the two associated communication devices are randomly concatenated to obtain edge features corresponding to the edges between the two associated communication devices.

4. A network fault location method according to claim 1, characterized in that: The undirected graph is modeled based on the graph attention network algorithm, specifically including: Based on the undirected graph, a plurality of neighbor edge features corresponding to each edge feature are determined; wherein the edges connected to the nodes corresponding to the communication devices at both ends of the edge in the undirected graph are used as the neighbor edges of the edge; Based on the graph attention network algorithm, the edge feature and the neighbor edge features corresponding to the edge feature are aggregated and calculated to obtain the next layer of edge features corresponding to the edge feature; After the edge features are multi-layer aggregated, the node classification representation corresponding to the multi-layer aggregated edge features is output through the fully connected layer.

5. A network fault location method according to claim 4, characterized in that: The graph attention network algorithm is based on which the edge feature and the neighbor edge features corresponding to the edge feature are aggregated and calculated to obtain the next layer of edge features corresponding to the edge feature, specifically including: The next layer of edge features is calculated using the following formula: in, represents the edge feature of the i-th edge in the next layer, σ represents the activation function, K hyperparameter represents the number of aggregation heads in this layer, N i represents the features of all neighboring edges of the ith edge, W k represents the edge feature linear transformation matrix, which is the parameter to be learned. Represents the importance coefficient between the i-th edge and each neighbor edge feature.

6. A network fault location method according to claim 5, characterized in that: The graph attention network algorithm is based on which the edge feature and the neighbor edge features corresponding to the edge feature are aggregated and calculated to obtain the next layer of edge features corresponding to the edge feature, specifically including: The importance coefficient between an edge and each neighbor edge feature is calculated using the following formula: Among them, || represents the vector concatenation operation, A k represents the vector to be learned, A represents the linear transformation and concatenation of the l-th layer feature vectors of i and j. k The length and The same length, Indicates A k and Do the inner product, LeakyReLU() represents the activation function, and exp() represents the exponential function.

7. A network fault location method according to claim 1, characterized in that: The classifying of the edges in the undirected graph model to locate the fault of the actual communication network specifically includes: Based on the pre-trained graph attention network model, features are extracted for each edge in the undirected graph model, and the extracted features are classified and judged; Determine a fault edge whose classification result is a fault category, and determine two associated communication devices corresponding to the fault edge based on edge features of the fault edge; Generate a fault location report corresponding to the two associated communication devices, and send the fault location report to a corresponding management personnel to achieve fault location of the actual communication network.

8. A network fault location method according to claim 7, characterized in that: Based on the pre-trained graph attention network model, feature extraction is performed on each edge in the undirected graph model, and classification and judgment of the extracted features are performed, specifically including: Based on the pre-trained graph attention network model, in the undirected graph model, the packet count, maximum transmission unit configuration, rate configuration, MAC address, IP address, device operating temperature, system resource consumption and switch status of the port corresponding to each edge are extracted; Inputting the edge features into the pre-trained graph attention network model to perform forward propagation calculation on the edge features and outputting the fault probability of each edge being a fault category; A magnitude relationship between the fault probability and a preset threshold is determined to determine whether each edge belongs to a fault category based on the magnitude relationship.

9. A network fault location device, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a network fault locating method as described in any one of claims 1-8.

10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed, a network fault locating method as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method and system for judging whether network connection can be established between network nodes

    CN113114541A

  • Method for positioning fault in telecommunication network, method of node classification and related devices

    CN113162787A

  • Radio access network resource management based on reinforcement learning (RL) and graph neural network (GNN)

    CN115866610A

  • Malicious traffic detection method based on differential space-time diagram convolutional neural network

    CN117118688A

  • Man-machine terminal picture data interaction method and system

    CN117454315A