Control plane policy verification method based on GNN failure model learning

By combining the K-Means clustering method in the GNN fault model learning, designing the GNN model of the message passing mechanism, and learning the fault probability distribution in the network structure, the accuracy and speed problems of policy verification in large-scale networks are solved, and a better Efficient network policy verification.

WO2024192782A1PCT designated stage expired Publication Date: 2024-09-26SOUTHEAST UNIV

Patent Information

Application Number
PCT/CN2023/083530
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2023-03-24
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

In large-scale complex dynamic networks, traditional data plane analysis and control plane verification methods are difficult to quickly and accurately verify network policies, and are easily affected by noise and erroneous data, resulting in high computational complexity and inaccuracy in verification results.

Method used

The GNN-based fault model learning method is used to obtain the network topology information and design the GNN fault learning model of the message transmission mechanism. The model is trained to learn the fault probability distribution in the network structure and is combined with the K-Means clustering method to reduce the network size and achieve Fast and accurate network policy verification.

Benefits of technology

It improves the accuracy and speed of network policy verification, reduces the impact of noise and erroneous data, alleviates computational complexity and state explosion problems, and achieves more robust decision-making results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023083530_26092024_PF_FP
    Figure CN2023083530_26092024_PF_FP
Patent Text Reader

Abstract

Developed in the present invention is a control plane policy verification method based on GNN failure model learning, the method comprising: acquiring information of a network topology, performing equivalence classes partitioning by using a K-Means clustering method, and generating a corresponding failure model; designing a GNN failure learning model based on a message passing mechanism; training, for each equivalence class, the GNN failure learning model based on a message passing mechanism; constructing a network policy graph that conforms to a feature of the network topology; preprocessing a policy directed graph, and extracting feature data and inputting same into the trained GNN model, so as to generate an accurate network environment; and performing network policy verification on the basis of each network policy category. In the present invention, the situation where there is a failure in an actual network is taken into account, a GNN is used to assist a failure model in the inference of an actual network environment corresponding to a network policy to be verified, and equivalent class partitioning is performed by means of a K-Means clustering algorithm, such that the scale of a network is reduced, and the verification speed is improved; and a data enhancement module is added, such that a trained GNN has a certain generalization capability, thereby accurately and quickly realizing multi-type network policy verification.
Need to check novelty before this filing date? Find Prior Art

Description

A control plane policy verification method based on GNN fault model learning Technical Field

[0001] The present invention relates to the technical field of network policy verification, and in particular to a control plane policy verification method based on GNN fault model learning. Background Art

[0002] The increasing complexity of networks makes them more susceptible to various failures, such as misconfigurations, software vulnerabilities, and malicious attacks. These failures can cause the network to deviate from its policy objectives, thereby impacting its availability. However, traditional manual troubleshooting methods, such as using Ping to measure latency and packet loss, or Traceroute to measure latency, reachability, and packet loss, are not only inefficient but often result in network downtime of up to several hours, causing significant losses. Therefore, preventing network failures and ensuring proper network operation has become a fundamental challenge facing network operators and researchers.

[0003] Network policy verification technology is being used to address this problem. Compared to traditional manual troubleshooting, network policy verification technology not only enables fast, real-time, and automated testing, improving the efficiency and accuracy of network policy verification, but also, by combining formal verification methods with mathematical models and algorithms, enhances the reliability and accuracy of verification results. Currently, network policy verification technology falls into two main categories: data plane analysis and control plane verification. Data plane analysis primarily infers the policy applicable to a specific data plane, and can infer all policies that meet the expected requirements for that data plane within seconds or minutes. Control plane verification, on the other hand, verifies a single policy under a specific network configuration. To enable the application of network policy verification technology in real networks, it is necessary to model possible network failures using fault models. However, deploying existing data plane analysis and control plane verification tools in networks that consider fault models requires traversing all possible failure scenarios to determine the exact environment that complies with the network policy. Therefore, as network scale increases exponentially, finding the exact network environment that complies with the network policy becomes difficult. Directly using data plane analysis or control plane verification tools results in high computational complexity, slow verification speed, and reduced accuracy of verification results.

[0004] Config2Spec, described in the paper "Birkner, R., Drachsler-Cohen, D., Vanbever, L., and Vechev, M.T. (February 2020)," "Config2Spec: Mining Network Specifications from Network Configurations," in NSDI (pp. 969-984)," is a typical network policy verification tool that considers fault models. It combines the advantages of data plane and control plane verification methods. By analyzing historical iteration information and fault models, it uses a stage predictor to switch between data plane analysis and control plane verification to obtain the optimal verification method. This allows it to generate network specifications with high precision and recall in large networks. However, the tool is still limited by the verification capabilities of existing data plane analysis and control plane verification methods, making it difficult to meet the requirements of fast verification in large-scale network topologies with poor network conditions. Furthermore, Config2Spec may generate spurious specifications. This is because network configuration files may contain inconsistent or erroneous information, which may affect the accuracy of the specifications generated by Config2Spec.

[0005] Summary of the Invention

[0006] In view of this, the purpose of the present invention is to provide a control plane policy verification method based on GNN fault model learning to solve the technical problems mentioned in the background technology. For large-scale complex dynamic networks, not considering the existence of faults in the network will obviously reduce the reliability of the network policy verification results. Therefore, the present invention makes full use of the graph representation learning ability of the GNN neural network, combines the fault model, and fully learns the network structure when a fault exists, so as to accurately locate the fault environment for the network policy and perform relatively accurate network policy verification. In addition, since GNN is an efficient neural network model that can process large-scale network data, this greatly improves the speed of network policy verification and helps to quickly discover network faults.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] A control plane policy verification method based on GNN fault model learning includes the following steps:

[0009] Step S1: Obtain network topology information, use K-Means clustering method to divide equivalence classes, reduce the network scale, set the maximum number of faults in the network according to requirements, and generate the corresponding fault model;

[0010] Step S2: Design a GNN fault learning model based on a message passing mechanism. The model includes a linear transformation layer, a graph convolution layer, and a fully connected layer. It inputs the adjacency matrix of the network topology and the corresponding fault model, and outputs the probability distribution of the fault probability between feature nodes.

[0011] Step S3: train a GNN fault learning model based on the message passing mechanism for each equivalence class, and use the trained model to verify the network strategy;

[0012] Step S4: Collect the network policy information that the administrator needs to verify, generate a network policy set according to the requirements, and build a network policy map that conforms to the network topology characteristics;

[0013] Step S5: Preprocess the policy directed graph, extract feature data, and input it into the trained GNN model to obtain the probability distribution of failure probabilities between feature nodes and generate an accurate network environment;

[0014] Step S6: Under the accurate network environment, perform network policy verification according to the network policy category to obtain the final verification result.

[0015] Preferably, step S1 includes the following steps:

[0016] Step S1.1: Obtain network topology information, calculate node degrees and degree centrality, train a K-Means clustering model based on node degrees and degree centrality to divide the network topology into equivalence classes, use the elbow rule to select the optimal number of clusters as the optimal number of categories for the equivalence class, and generate a unique label and a topological graph corresponding to each equivalence class.

[0017] Step S1.2: Set the maximum number of failures k in the network topology according to the requirements max , generate the Monte Carlo simulation-based fault model Failure_model = {env1,...env q}, where env q Represents each possible fault environment, and in each possible fault environment, the failure probability P is calculated by Monte Carlo simulation fail ;

[0018] Assume that the probability of a failure of an edge (u, v) in the topology graph in step S1.1 is p, then max Step, the failure probability P fail Expressed using the binomial distribution:

[0019] in Indicates that in k max In the step, q(0≤q≤kmax ) The number of combinations of failures; Failure probability P fail Indicates the maximum number of faults k max The probability that an edge (u,v) fails.

[0020] Preferably, in step S2:

[0021] Construct a graph neural network (GNN) fault learning model, which includes a linear transformation layer, a graph convolution layer, and a fully connected layer:

[0022] The linear transformation layer:

[0023] h i (1) =σ(W (1) x i +b (1) ) (2)

[0024] Where: h i (1) is the feature vector of the hidden layer, σ is the ReLU activation function, W (1) ∈R din×dout is the weight matrix of the input layer, x i ∈R din is the input feature vector of node i, b (1) is the bias vector of the linear transformation layer;

[0025] The graph convolution layer:

[0026] in: is the set of neighbor nodes of node i, AGGREGATE represents the aggregation function, is the weight matrix of the k-th graph convolutional layer, represents the feature vector of node j in the k-1th graph convolutional layer, Represents the feature vector of node i in the k-th graph convolutional layer;

[0027] The fully connected layer:

[0028] h i (L) =W (L) h i (L-1) +b (L) (4)

[0029] Where: W (L) ∈R dout×dout and are the weight and bias matrices of the fully connected layer, Represents the feature vector output by node i in the fully connected layer;

[0030] Then the eigenvector The final probability distribution of the failure probability is obtained through a Softmax activation function:

[0031] Where: h ij (L) represents the characteristic value of the failure probability between nodes i and j in the fully connected layer, h im (L) represents the mth feature of the i-th node in the fully connected layer output, p ij represents the probability distribution of failure probability between slave nodes i and j.

[0032] Preferably, in step S3:

[0033] The graph neural network GNN fault learning model uses the MSE mean square error loss function during training.

[0034] Among them, output is the output of the graph neural network GNN fault learning model, and adj is the adjacency matrix of the actual network topology.

[0035] Preferably, step S4 includes the following steps:

[0036] Step S4.1: Generate a network policy set according to the requirements. The network policy set includes: policy sequence number, policy type, source device, destination device and delay limit. The policy type includes: policy reachability, policy isolation and policy load balancing, which are represented by Reachiability(src, dst, delay), Isolation(src, dst) and Loadbalancing(src, dst) respectively. Where src represents the source device, dst represents the destination device, and delay represents the delay limit. Reachiability(src, dst, delay) means that the network traffic reaches dst from src under the premise of delay limit delay; Isolation(src, dst) means that the network traffic does not reach dst from src; Loadbalancing(src, dst) means that the network traffic is load balanced on at least two paths from src to dst.

[0037] Step S4.2: Construct a policy directed graph G based on the network policy set, and G = (V, E); where V = {d|d = 1, ..., n} is the set of all physical devices in the network, where d∈V is the physical device with serial number d in the policy directed graph; E = {e(a, b)|a, b∈V} is the set of policy state transfers between physical devices, where a represents the source device serial number, b represents the destination device serial number, and e(a, b)∈E represents that there is a link between the device with device serial number a and the device with device serial number b, so that network traffic is transmitted from device a to device b.

[0038] Preferably, step S5 includes the following steps:

[0039] Step S5.1: Preprocess the policy directed graph G by combining pruning and filling: If the number of nodes or edges in the policy directed graph G is greater than the number of nodes or edges in the network topology, perform a pruning operation to delete nodes or edges in the policy directed graph G that do not exist in the original network topology until the scale of the policy directed graph G is the same as the original network topology; If the number of nodes or edges in the policy directed graph G is less than the number of nodes or edges in the original network topology, perform a filling operation to add virtual nodes or edges until the scale of the policy directed graph G is the same as the original network topology;

[0040] Step S5.2: Input the preprocessed strategy directed graph G into the trained K-Means model, divide the strategy directed graph G into strategy subgraphs, each strategy subgraph corresponds to a network topology subgraph under a label, and extract the features of each strategy subgraph;

[0041] Step S5.3: Input the extracted features of the strategy subgraph into the GNN fault learning model trained under the corresponding label, and perform Transformation, and then binary classification is performed; a threshold θ is introduced, and the probability greater than the threshold is judged as 1, and the probability less than or equal to the threshold is judged as 0, that is:

[0042] Edge represents the state of each edge, i and j represent the source device and destination device of the edge respectively, and the values ​​0 and 1 represent whether the edge is faulty or not, respectively. It represents the probability distribution of the connection probability between node i and node j obtained by learning the graph neural network GNN fault learning model; based on the link status between the nodes in the accurate fault environment obtained, the fault environment corresponding to the strategy subgraph is obtained.

[0043] Preferably, step S6 includes the following steps:

[0044] Step S6.1: Classify network policies according to requirements and obtain network policy sets under different policy types;

[0045] Step S6.2: If the reachability of the network policy needs to be verified, use a depth-first search algorithm to determine whether there is a reachable path from the source node to the target node in the given policy subgraph, and limit the maximum distance of the search;

[0046] Step S6.3: If the isolation of the network policy needs to be verified, use a depth-first search algorithm to determine whether there is a reachable path from the source node to the target node in the given policy subgraph, limit the maximum distance of the search, and invert the result;

[0047] Step S6.4: If the load balancing of the network policy needs to be verified, the load balancing is ensured by checking whether there is a node whose arrival distance does not exceed a certain multiple of the average shortest path length; where the average shortest path length is calculated by calculating the shortest path length from the source node to all other nodes and then averaging it.

[0048] Compared with the prior art, the present invention has the following beneficial effects:

[0049] 1. This network policy verification method based on GNN fault model learning uses GNN to learn the network environment. Compared with general verification methods, it can better learn the performance and characteristics of the network, thereby determining the accurate fault environment for the policy to be verified and achieving accurate network policy verification.

[0050] 2. This network policy verification method based on GNN fault model learning reduces the impact of noise and erroneous data on the network policy verification results by introducing a fault model during GNN learning and combining it with reinforcement learning, thereby improving the robustness of decision-making and making the results of network policy verification more accurate.

[0051] 3. This network policy verification method based on GNN fault model learning uses K-Means clustering to assist GNN in network policy verification, which reduces the network size, makes the verification process faster, and effectively alleviates the state explosion problem of the benchmark tool. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] FIG1 is a schematic flow diagram of the present invention;

[0053] FIG2 is a schematic diagram of a message transmission mechanism used in the present invention;

[0054] FIG3 is a calculation diagram of the model structure based on GNN fault model learning used in the present invention;

[0055] FIG4 is a schematic diagram of a network policy expression defined in the present invention;

[0056] FIG5 is a comparison of verification time between the present invention and the benchmark method when considering different maximum numbers of faults. DETAILED DESCRIPTION

[0057] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0058] As shown in FIG1 , the present invention provides a control plane policy verification method based on GNN fault model learning, which includes the following steps:

[0059] Step S1: Generate a corresponding fault model based on the network topology information and the maximum number of faults in the network set as needed:

[0060] Specifically, in this embodiment, step S1 includes:

[0061] First, we obtain the network topology information from the public configuration dataset of Internet2 network in May 2015. The network topology includes 33 nodes and 96 edges. The network topology is calculated by calculating the node degree D∈R n and degree centrality node centrality C∈R n , where n represents the number of devices in the network topology 33. Based on these two features, the K-Means clustering model is trained on the network topology to realize the division of equivalence classes. The elbow rule is used to select the optimal number of equivalence classes as 8, and then a unique label and the corresponding topology map of each equivalence class are generated.

[0062] Then set the maximum number of failures k in the network topology according to the requirements max In this embodiment, it is assumed that k max =1, at the maximum number of faults k max Under the constraints of , all possible fault environments are enumerated. To avoid the data explosion caused by enumeration, the number of Monte Carlo simulations is set to num_simulations = 100, and the number of fault combinations to be simulated is set to num_combinations = 10. For each edge, the failure probability is calculated using Monte Carlo simulation and added to the corresponding fault environment feature vector.

[0063] Step S2: Design a GNN fault learning model based on the message passing mechanism, which adopts a three-layer network structure, including: linear transformation layer, graph convolution layer and full connection layer. The model inputs the original network topology adjacency matrix A∈R n×n , fault model F∈Rl×m (l represents the number of fault environments in the fault model, m represents the number of edges in the network), the node centrality C∈R n and node degree D∈R n The node features are jointly represented and the probability distribution p of the failure probability between the output nodes is ij .

[0064] Specifically, as shown in FIG2 , in this embodiment, the input dimension is N in =96, the hidden layer dimension is N hid =16, the output dimension is N out =96, and the activation function uses the nonlinear activation function ReLU. First, the input features are linearly transformed and activated by the ReLU function to obtain the hidden layer features.

[0065] h i (1) =ReLU(W (1) x i +b (1) ) (1)

[0066] Where W (1) is the weight matrix of the input layer, with dimension [N in ,N hid ], x i The dimension is [N in ,N in ] input features, b (1) is the bias vector of the linear transformation layer, and the output is the feature vector h of the hidden layer i (1) .

[0067] Next, the first hidden layer features are used as input and passed through the graph convolution layer to obtain new hidden layer features:

[0068] in is the set of neighbor nodes of node i, c ij is the normalized coefficient between node i and node j, the aggregation function is addition, W (k) is the weight matrix of the k-th graph convolutional layer, represents the feature vector of node j in the k-1th graph convolutional layer, Represents the feature vector of node i in the kth graph convolutional layer. As shown in Figure 2, the neighboring nodes of the destination node add the features element by element according to certain rules and aggregate them to the destination node for information transmission. In order to consider the amount of information in the source node itself, the nodes themselves are connected using self-connection.

[0069] The third layer is a multi-layer perceptron (MLP) layer consisting of three linear layers and two ReLU activation functions. It converts the output of the graph convolution layer into the final output and passes it through a Softmax activation function to obtain the probability distribution of the failure probability between nodes:

[0070] p ij =Softmax(W (L) h i (L-1) +b (L) ) (3)

[0071] in, and are the weight and bias matrices of the fully connected layer, and the output p ij represents the probability distribution of failure probability between slave nodes i and j.

[0072] Step S3: After the GNN model is designed, it is trained. The overall calculation diagram is shown in Figure 3. The training data comes from the original network topology. The mean square error (MSE) loss function is used to measure the gap between the output model output of the GNN model and the adjacency matrix adj of the actual network topology, and the Adam optimizer is used to update the model parameters.

[0073] Step S4: Generate a network policy map based on the network policy information that the administrator needs to verify.

[0074] Specifically, as shown in Figure 3, each network policy is represented by a five-tuple, including: policy number, policy type, source device, destination device, and delay constraint. Policy types include: Reachiability (src, dst, delay), which indicates that network traffic can reach dst from src under the delay constraint; Isolation (src, dst), which indicates that network traffic cannot reach dst from src; and Loadbalancing (src, dst), which indicates that network traffic is load-balanced across at least two paths from src to dst. Here, src represents the source device, dst represents the destination device, and delay represents the delay constraint.

[0075] Next, a policy directed graph G is constructed based on the network policy set, and G = (V, E); where V = {d|d = 1, ..., n} is the set of all physical devices in the network, where d∈V is the physical device with serial number d in the policy directed graph; E = {e(a, b)|a, b∈V} is the set of policy state transfers between physical devices, where a represents the source device serial number, b represents the destination device serial number, and e(a, b)∈E indicates that there is a link between the device with device serial number a and the device with device serial number b, allowing network traffic to be transmitted from device a to device b.

[0076] Step S5: Preprocess the policy directed graph, extract feature data, and input it into the trained GNN model to obtain the probability distribution of failure probabilities between feature nodes and generate an accurate network environment;

[0077] Specifically, if the number of nodes or edges in the strategy graph is greater than the number of nodes or edges in the network topology, a pruning operation is performed to delete the nodes or edges in the strategy graph that do not exist in the original topology; if the number of nodes or edges in the strategy graph is less than the number of nodes or edges in the original topology, a filling operation is performed to add virtual nodes or edges.

[0078] Next, the preprocessed strategy graph is input into the trained K-Means model to realize the division of the strategy subgraph. Each strategy subgraph corresponds to a network topology subgraph under a label, and the features of each strategy subgraph are extracted.

[0079] Finally, the features of the extracted strategy subgraph are input into the GNN model trained under the corresponding label, and the output results are The connection probability between nodes is obtained by transforming After that, binary classification is performed, and a threshold θ is introduced. The probability greater than the threshold is judged as 1, and the probability less than or equal to the threshold is judged as 0, that is:

[0080] Edge represents the state of each edge, i and j represent the source device and destination device of the edge respectively, and the values ​​0 and 1 represent whether the edge has a fault, 0 means a fault occurs, and 1 means no fault occurs. represents the probability distribution of the connection probability between node i and node j obtained through GNN learning. Based on the link status between nodes in the accurate fault environment obtained, the fault environment corresponding to the strategy subgraph can be obtained.

[0081] Step S6: Perform network policy verification on different types of network policies in an accurate fault environment.

[0082] Specifically, network policies are classified according to requirements, and policy sets under different policy types are obtained.

[0083] If you need to verify the reachability of the strategy considering latency, use a depth-first search algorithm to determine whether there is a reachable path from the source node to the target node in a given strategy subgraph, and limit the maximum distance of the search.

[0084] If you need to verify the isolation of the policy, the method is the same as the reachability, and the final result can be inverted.

[0085] If you need to verify the load balancing of the strategy, you can check whether there is a node whose reach distance does not exceed a certain multiple of the average shortest path length to ensure load balancing. The average shortest path length is calculated by calculating the shortest path lengths from the source node to all other nodes and then averaging them.

[0086] In summary, the present invention proposes a control plane policy verification method based on GNN fault model learning. As shown in Figure 4, as the maximum number of faults increases, the present invention, compared to the baseline method, can quickly locate the exact environment in which the policy to be verified exists under complex fault models, thereby achieving accurate and rapid network policy verification. Furthermore, this method has a certain degree of generalization capability and is applicable to different network policy verifications under various network topologies.

[0087] Anything not described in detail in the present invention is well known to those skilled in the art.

[0088] The above describes in detail the preferred embodiments of the present invention. It should be understood that those skilled in the art can make numerous modifications and variations based on the concepts of the present invention without inventive effort. Therefore, any technical solutions that can be derived by those skilled in the art through logical analysis, reasoning, or limited experimentation based on the concepts of the present invention and the prior art should be within the scope of protection defined by the claims.

Claims

1. A control plane policy verification method based on GNN fault model learning, characterized in that: The steps include: Step S1, obtain network topology information, use K-Means clustering method to divide equivalence classes, reduce the network scale, set the maximum number of faults in the network according to requirements, and generate a corresponding fault model; Step S2, designing a GNN fault learning model based on a message passing mechanism, the model includes a linear transformation layer, a graph convolution layer and a fully connected layer, inputs the adjacency matrix of the network topology and the corresponding fault model, and outputs the probability distribution of the fault probability between the feature nodes; Step S3: training a GNN fault learning model based on the message passing mechanism for each equivalence class, and using the trained model to verify the network strategy; Step S4: Collect the network policy information that the administrator needs to verify, generate a network policy set according to the requirements, and construct a network policy map that conforms to the network topology characteristics; Step S5: pre-process the strategy directed graph, extract feature data, input it into the trained GNN model, obtain the probability distribution of the failure probability between feature nodes, and generate an accurate network environment; Step S6: Under an accurate network environment, perform network policy verification according to network policy categories to obtain a final verification result.

2. According to a control plane strategy verification method based on GNN fault model learning according to claim 1, it is characterized in that: Step S1 includes the following steps: Step S1.1: Obtain network topology information, calculate node degree and degree centrality, train the K-Means clustering model based on node degree and degree centrality to realize equivalence class division, use the elbow rule to select the best number of clusters as the optimal number of categories for the equivalence class, and generate a unique label and the topology map corresponding to each equivalence class for each equivalence class; Step S1.2: Set the maximum number of failures k in the network topology according to the requirements max , Generate a fault model based on Monte Carlo simulation Failure_model = {env1,...env q }, where env q Represents each possible fault environment, and in each possible fault environment, the fault probability P is calculated by Monte Carlo simulation fail ; Assume that the probability of a failure of an edge (u, v) in the topology graph in step S1.1 is p, then max Step, the failure probability P fail Expressed using binomial distribution: in Indicates that in k max In the step, q(0≤q≤k max ) The number of combinations of failures; the failure probability P fail Indicates that the maximum number of faults k max The probability that an edge (u,v) fails.

3. According to a control plane strategy verification method based on GNN fault model learning according to claim 2, it is characterized in that: In step S2: Construct a graph neural network (GNN) fault learning model, which includes a linear transformation layer, a graph convolution layer, and a fully connected layer: The linear transformation layer: h i (1) =σ(W (1) x i +b (1) ) (2) Where: h i (1) is the feature vector of the hidden layer, σ is the ReLU activation function, W (1) ∈R din×dout is the weight matrix of the input layer, x i ∈R din is the input feature vector of node i, b (1) is the bias vector of the linear transformation layer; The graph convolution layer: in: is the set of neighbor nodes of node i, AGGREGATE represents the aggregation function, is the weight matrix of the k-th graph convolutional layer, represents the feature vector of node j in the k-1th graph convolutional layer, Represents the feature vector of node i in the k-th graph convolutional layer; The fully connected layer: h i (L) =W (L) h i (L-1) +b (L) (4) Where: W (L) ∈R dout×dout and are the weight and bias matrices of the fully connected layer, Represents the feature vector output by node i in the fully connected layer; Then the feature vector The final probability distribution of the failure probability is obtained through a Softmax activation function: Where: h ij (L) represents the characteristic value of the failure probability between nodes i and j in the fully connected layer, h im (L) represents the mth feature of the i-th node in the fully connected layer output, p ij represents the probability distribution of the failure probability between slave nodes i and j.

4. According to a control plane strategy verification method based on GNN fault model learning according to claim 3, it is characterized in that: In step S3: The graph neural network GNN fault learning model adopts the MSE mean square error loss function during training. Among them, output is the output of the graph neural network GNN fault learning model, and adj is the adjacency matrix of the actual network topology.

5. According to a control plane strategy verification method based on GNN fault model learning according to claim 4, it is characterized in that: Step S4 includes the following steps: Step S4.1: Generate a network policy set according to the demand, the network policy set includes: policy sequence number, policy type, source device, destination device and delay limit, wherein the policy type includes: policy reachability, policy isolation and policy load balancing, which are represented by Reachiability(src, dst, delay), Isolation(src, dst) and Loadbalancing(src, dst), respectively, wherein src represents the source device, dst represents the destination device, and delay represents the delay limit; Reachiability(src, dst, delay) means that the network traffic reaches dst from src under the premise of delay limit delay; Isolation(src, dst) means that the network traffic does not reach dst from src; Loadbalancing(src, dst) means that the network traffic is load balanced on at least two paths from src to dst; Step S4.2: Construct a policy directed graph G according to the network policy set, and G = (V, E); wherein V = {d|d = 1, ..., n} is the set of all physical devices in the network, wherein d∈V is the physical device with serial number d in the policy directed graph; E = {e(a, b)|a, b∈V} is the set of policy state transfers between physical devices, wherein a represents the source device serial number, b represents the destination device serial number, and e(a, b)∈E represents that there is a link between the device with device serial number a and the device with device serial number b, so that network traffic is transmitted from device a to device b.

6. A control plane strategy verification method based on GNN fault model learning according to claim 5, characterized in that: Step S5 includes the following steps: Step S5.1: Preprocess the strategy directed graph G by combining pruning and filling: If the number of nodes or edges in the strategy directed graph G is greater than the number of nodes or edges in the network topology, perform pruning to delete nodes or edges in the strategy directed graph G that do not exist in the original network topology until the scale of the strategy directed graph G is the same as that of the original network topology; If the number of nodes or edges of the strategy directed graph G is less than the number of nodes or edges of the original network topology, a filling operation is performed to add virtual nodes or edges until the scale of the strategy directed graph G is the same as the original network topology; Step S5.2: Input the preprocessed strategy directed graph G into the trained K-Means model, divide the strategy directed graph G into strategy subgraphs, each strategy subgraph corresponds to a network topology subgraph under a label, and extract the features of each strategy subgraph; Step S5.3: Input the features of the extracted strategy subgraph into the GNN fault learning model trained under the corresponding label, and perform Transformation, and then binary classification; introduce a threshold θ, the probability greater than the threshold is judged as 1, and the probability less than or equal to the threshold is judged as 0, that is: Edge represents the state of each edge, i and j represent the source device and destination device of the edge respectively, and the values ​​0 and 1 represent that the edge is faulty or not faulty respectively. It represents the probability distribution of the connection probability between node i and node j obtained by learning the graph neural network GNN fault learning model; according to the link status between the nodes of the accurate fault environment obtained, the fault environment corresponding to the strategy subgraph is obtained.

7. The control plane strategy verification method based on GNN fault model learning according to claim 6 is characterized in that: Step S6 includes the following steps: Step S6.1: Classify network policies according to requirements and obtain network policy sets under different policy types; Step S6.2: If the reachability of the network strategy needs to be verified, a depth-first search algorithm is used to determine whether there is a reachable path from the source node to the target node in the given strategy subgraph, and the maximum distance of the search is limited; Step S6.3: If the isolation of the network policy needs to be verified, use a depth-first search algorithm to determine whether there is a reachable path from the source node to the target node in the given policy subgraph, and limit the maximum distance of the search, and negate the result; Step S6.4: If the load balancing of the network policy needs to be verified, the load balancing is ensured by checking whether there is a node whose arrival distance does not exceed a certain multiple of the average shortest path length; wherein the average shortest path length is obtained by calculating the shortest path length from the source node to all other nodes and then averaging it.

Citation Information

Patent Citations

  • Network verification method and device, computer storage medium and electronic equipment

    CN112054921A

  • Routing optimization method and system based on graph structure characteristics

    CN115225561A

  • Robustness verification method and apparatus for distributed control plane in software-defined network

    US10771319B1

Cited By

  • Industrial equipment fault diagnosis method and system based on graph structure joint optimization

    CN118862950A

  • Space-air-ground network flow unloading decision-making method and system based on graph neural network

    CN118972900A

  • Power grid intelligent power transmission line fault positioning system

    CN119291378A

  • Lamp networking method

    CN119402988A

  • Graph similarity search method based on sub-graph matching

    CN119415744A