A SDN routing optimization method based on spatiotemporal feature fusion of graph neural network

Through the spatio-temporal feature fusion method based on graph neural network, combined with reinforcement learning agents, the problem of network performance degradation in SDN route optimization is solved, rapid self-learning and route optimization are achieved, and network performance and load balancing are improved.

CN115842768BInactive Publication Date: 2024-10-22GUILIN UNIV OF ELECTRONIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211473921.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing SDN route optimization methods lead to network performance degradation during the learning process. Especially when network topology changes, it is difficult to quickly adapt to complex traffic characteristics, resulting in long-term poor network performance.

Method used

The spatio-temporal feature fusion method based on graph neural network is used to build a GCT-Route network model and combine with reinforcement learning agents to learn the interdependence between network switch traffic load and performance, quickly complete the self-learning process, and optimize routing decisions.

Benefits of technology

Deep reinforcement learning is assisted by the graph neural network model to quickly complete the self-learning process, avoiding network performance degradation caused by exploration and trial and error, improving the network's end-to-end path bandwidth capacity and load balancing, and improving network performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842768B_ABST
    Figure CN115842768B_ABST
Patent Text Reader

Abstract

The present invention discloses an SDN routing optimization method based on spatiotemporal feature fusion of graph neural network, which uses reinforcement learning agent to learn the interdependence between network switch traffic load and network performance, and determines a set of optimal routing forwarding schemes to balance the end-to-end path bandwidth capacity and load balancing of the network. By combining the prediction of graph neural network to find the best path for data packets, that is, developing a spatiotemporal feature fusion network model (GCT-Route network model) based on graph neural network, deep reinforcement learning is assisted to quickly complete the self-learning process. The present invention can solve the problem of network routing performance degradation caused by long-term exploration and trial and error of reinforcement learning agent during the learning process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software defined networks (SDN), and in particular to an SDN routing optimization method based on spatiotemporal feature fusion of graph neural networks. Background Art

[0002] The emergence of software-defined networks makes centralized management and operation possible, and network resources such as switches become flexibly configurable through programmable interfaces. Traditional SDN routing optimization methods approximate the current network status through modeling and use heuristic methods to calculate routing configurations in real time for multimedia stream requests. The disadvantages are that they have strict applicable scenarios, huge computational overhead, and difficulty in coping with future real-time and highly dynamic network environments. In recent years, advances in deep reinforcement learning technology have provided a new way to solve the optimization of highly complex routing problems. Routing schemes based on deep reinforcement learning can learn and adapt to complex networks by improving routing decision performance in an experience-driven and model-free manner. However, due to the nature of reinforcement learning, that is, exploration in the process of determining the best strategy, network performance may degrade during the learning process. In particular, if the network topology changes, the DRL agent needs to relearn for routing optimization. The more complex the characteristics of network traffic, the longer it takes to converge, resulting in long-term poor network performance. Summary of the invention

[0003] The present invention aims to solve the problem that the existing SDN routing optimization method will cause the network performance to decline during the learning process, and provides an SDN routing optimization method based on the spatiotemporal feature fusion of graph neural network.

[0004] To solve the above problems, the present invention is achieved through the following technical solutions:

[0005] A SDN routing optimization method based on spatiotemporal feature fusion of graph neural network includes the following steps:

[0006] Step 1: The SDN control plane collects historical network information, namely, network topology, routing scheme and traffic matrix to generate a training data set, and stores the training data set in the storage area of ​​the SDN knowledge plane;

[0007] Step 2: Build a spatiotemporal feature fusion network model based on graph neural network in the SDN knowledge plane, and use the training data set to perform offline training on the spatiotemporal feature fusion network model based on graph neural network;

[0008] Step 3: The SDN control plane converts the current traffic matrix and the current reward value r t′The reinforcement learning agent input into the SDN knowledge plane generates action values, which are then input into the spatiotemporal feature fusion network model based on the graph neural network;

[0009] Step 4: The spatiotemporal feature fusion network model based on the graph neural network of the SDN knowledge plane receives the action value as the routing solution P, and combines the routing solution P, the network topology M, and the current traffic matrix And the traffic matrix sequence composed of the traffic matrix at the current moment and the previous q moments Together they serve as the input of the spatiotemporal feature fusion network model based on graph neural network, which outputs the link-level performance matrix Path-level performance matrix And the traffic matrix predicted for the next moment Where q is the set value;

[0010] Step 5: The reward function of the reinforcement learning agent in the SDN knowledge plane is based on the link-level performance matrix and path-level performance matrix Generate the reward value r at the next moment t′+1 ;

[0011] Step 6: Determine the reward value sequence {r t′+1-s ,…,r t′ ,r t′+1} is less than the set convergence threshold: where s is the set value;

[0012] If yes, the spatiotemporal feature fusion network model based on graph neural network of SDN knowledge plane sends the routing scheme P to SDN control plane. SDN control plane generates SDN flow table entries based on routing scheme P and network topology M, and sends SDN flow table entries to each network node of data plane. Network nodes forward network traffic according to the SDN flow table entries to achieve routing optimization of data plane.

[0013] Otherwise, let t′=t′+1, and the traffic matrix predicted for the next moment Assign to the current traffic matrix The reward value r at the next moment t′+1 Assign the current reward value r t′ , and go to step 3.

[0014] In the above step 1, the training data set D is:

[0015]

[0016] In the formula, M = [m ij] n*n is the network topology, m ij Represents network node v i With network node v j The connection relationship between network nodes i With network node v j Connected time ij =1, when the network node v i With network node v j When not connected ij =0; P = [p ij ] n*n is the routing scheme, p ij Represents network node v i To network node v j Path; is the flow matrix at time t, represents the network node v at time t i To network node v j traffic; i,j=1,2,…,n, n is the number of network nodes.

[0017] In the above step 2, the spatiotemporal feature fusion network model based on graph neural network includes a network performance prediction module and a traffic matrix prediction module;

[0018] ① In the network performance prediction module:

[0019] First, the minimum link capacity of all links in each path in the routing scheme is defined as the link feature and assigned to the initial link state vector; at the same time, the traffic between all network nodes in the traffic matrix at time t is defined as the path feature and assigned to the initial path state vector;

[0020] Then, the same message passing operation is repeated T times on the current link state vector and the current path state vector. During these T cycles, the link and the path exchange hidden states with each other to obtain the final link hidden state and the final path hidden state. The specific process is as follows:

[0021] Message aggregation process: First, concatenate the current link state vector and the current path state vector to obtain the link and path feature matrix, and input the link and path feature matrix and the network topology into the two-layer GCN to obtain the output state of the two-layer GCN; then send the output state of the GCN into the three-layer GCN to obtain the output state of the three-layer GCN; then send the output state of the two-layer GCN and the output state of the three-layer GCN into the residual module to obtain the output state of the residual module, and pass the output state of the residual module through the Softmax function to obtain the hidden state of the path;

[0022] Path state update process: first concatenate the current path state vector and the hidden state of the path into a matrix to obtain the path feature matrix; then input the path feature matrix into the GRU to obtain the updated path state vector;

[0023] Link state update process: Each link sums the hidden states of all paths containing it to obtain the hidden state of the link; then the current link state vector and the hidden state of the link are concatenated to obtain the link feature matrix; then the link feature matrix is ​​input into the GRU to obtain the updated link state vector;

[0024] Iteration process: The updated path state vector and the updated link state vector are used as the input of the next message passing operation. After T message passing operations, the final link hidden state and the final path hidden state are obtained; where T is the set value;

[0025] Finally, the final link hidden state is passed through a fully connected layer to obtain a link-level performance matrix, and the final path hidden state is passed through a fully connected layer to obtain a path-level performance matrix;

[0026] ②In the traffic matrix prediction module:

[0027] First, the traffic matrix sequence composed of the traffic matrices at time t and the previous q times and the network topology are input into a layer of GCN to obtain the hidden state with spatially relevant information;

[0028] Then, the hidden state with spatial feature information is input into LSTM, and the hidden state covering the spatiotemporal features is calculated to obtain a set of hidden states with spatiotemporal features;

[0029] Next, the weight of each hidden state in the hidden state set with spatiotemporal characteristics is calculated based on the attention mechanism, and the context vector of the global network topology traffic change information is obtained;

[0030] Finally, the context vector is passed through the fully connected layer, and the ReLU function is used to obtain the predicted traffic matrix for the next moment.

[0031] In step 4 above, the network topology M, routing solution P, and the current traffic matrix The network performance prediction module based on the spatiotemporal feature fusion network model based on the graph neural network is input, and the network performance prediction module based on the spatiotemporal feature fusion network model based on the graph neural network outputs the link-level performance matrix and path-level performance matrix The traffic matrix sequence consisting of the network topology M and the traffic matrix at the current moment and the previous q moments The flow matrix prediction module based on the spatiotemporal feature fusion network model of the graph neural network is input, and the flow matrix prediction module based on the spatiotemporal feature fusion network model of the graph neural network outputs the predicted flow matrix at the next moment.

[0032] In step 5 above, the reward value r of the reward function at the next moment is t′+1 for:

[0033]

[0034] In the formula, α and β are the adjustable parameters set; is the link-level performance matrix; is the performance matrix at the path level, Yes all is the mean of , and n is the number of network nodes.

[0035] Compared with the prior art, the present invention uses reinforcement learning agents to learn the interdependence between network switch traffic load and network performance, and determines a set of optimal routing forwarding solutions to achieve a balance between the end-to-end path bandwidth capacity and load balancing of the network. By combining the prediction of the graph neural network to find the best path for the data packet, that is, developing a spatiotemporal feature fusion network model based on the graph neural network (GCT-Route network model), deep reinforcement learning is assisted to quickly complete the self-learning process. The present invention can solve the problem of network routing performance degradation caused by long-term exploration and trial and error of the reinforcement learning agent during the learning process. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a flow chart of an SDN routing optimization method based on spatiotemporal feature fusion of graph neural network;

[0037] Figure 2 It is a schematic diagram of the GCT-Route network model;

[0038] Figure 3 System architecture diagram for implementing an SDN routing optimization method based on graph neural network-based spatiotemporal feature fusion. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific examples.

[0040] A SDN routing optimization method based on spatiotemporal feature fusion of graph neural network, such as Figure 1 As shown, it includes the following steps:

[0041] S1. Model computer network scenarios, collect historical network information, and generate training data sets.

[0042] Graph Neural Network (GNN) is a special kind of network suitable for applications involving information structured in the form of graphs. GNN can be well generalized to different graph structures and helps to realize the relationship between different network nodes and edges.

[0043] For the communication network G, the present invention uses G = (V, L) to describe the network structure; V = [v1, v2, ..., v n ] represents the set of network nodes, n is the number of network nodes; L = [l1,l2,…,l m ] represents the link set, and m is the number of links. According to the definition of graph network, the network topology connection relationship is defined as network topology M:

[0044]

[0045] In the formula, m ij is the i-th row and j-th column of the network topology M, representing the network node v i With network node v j connection relationship.

[0046] Define the routing scheme P in the network:

[0047] P = [p ij ] n*n (2)

[0048] In the formula, p ij is the i-th row and j-th column of the routing solution, representing the network node v i To network node v j For the convenience of expression, each path p ij Use p k To express, p k Defined as the link sequence p k = where k(i) is the path p k The index of the i-th link in .

[0049] Define the traffic matrix at time t

[0050]

[0051] In the formula, is the i-th row and j-th column of the traffic matrix at time t, indicating that at time t the network node v i To network node v j of traffic.

[0052] The network monitoring module is used in the control plane to obtain network information data, including network topology M, routing solution P and traffic matrix Generate a training data set D and store the training data set D in a storage area of ​​the knowledge plane.

[0053]

[0054] S2. Construct a spatiotemporal feature fusion network model (GCT-Route) based on graph neural network on the knowledge plane, and use the above dataset to perform offline training on the GCT-Route network model.

[0055] The GCT-Route network model is divided into a network performance prediction module and a traffic matrix prediction module, such as Figure 2 As shown. The network performance prediction module uses a message passing neural network (MPNN) to represent the dependency between links and paths of a given routing solution. The module follows that the state of the path depends on the state of all links on the path and the state of the link depends on the state of all paths of the links passed through. It is composed of a graph convolutional neural network (GCN), a skip connect, a gated recurrent unit (GRU), and a full connection layer (FC). In order to fully obtain the spatial correlation and temporal correlation of the network, the traffic matrix prediction module first uses GCN to capture the spatial features of the network information, and then uses the long short-term memory network (LSTM) to capture the temporal features of the network information to obtain network state information with spatiotemporal feature fusion. Subsequently, the self-attention mechanism is introduced to adjust the importance of different time slices and collect global spatiotemporal information to improve the prediction accuracy. Finally, after a full connection layer (FC), the ReLU function is selected to obtain the final prediction result. The constructed GCT-Route network model proposes input network topology M, routing solution P, and traffic matrix The complex relationship between topology, routing and input traffic is realized by combining the network nodes and links in the topology with the source-destination paths in the routing scheme and the traffic passing through them, and the performance estimation and predicted traffic matrix at the next moment of the network link level and path level are output. During the training process, the network topology M, the routing scheme P and the traffic matrix at time t are combined. Input to the network performance prediction module for training, the traffic matrix sequence composed of the network topology M and the traffic matrix at time t and the previous q times Input to the traffic matrix prediction module for training, q is the length of the traffic matrix sequence.

[0056] ①For the network performance prediction module:

[0057] 1) Each path p in the routing solution P k All links The minimum link capacity is defined as the link characteristic x l , the flow matrix at time t The total traffic between network nodes (i.e., the bandwidth carried by each source-destination path) is defined as the path characteristic x p , then the link feature x l and path feature x p Assign to the initial link state vector and the initial path state vector Initialize the state vectors of links and paths.

[0058]

[0059]

[0060] 2) In order to solve the dependency between links and paths, the network performance prediction module repeats the same message passing operation T times on the state vectors of links and paths. During these T cycles, links and paths exchange hidden states with each other, and the final link hidden state h l and the path hidden state h p .

[0061] 2.1) For each path in the routing scheme P, each path collects messages from all the links contained in it, and uses GCN and residual modules to perform message aggregation to capture the spatial relationship of the path state and obtain the hidden state of the path.

[0062] First, the current path state vector and the current link state vector Do matrix concatenation to get the link and path feature matrix X t :

[0063]

[0064] After splicing, the network topology M is converted into the adjacency matrix and the link and path feature matrix X t Input into the two-layer GCN, after the graph convolution operation of the two-layer GCN, the output state h of the two-layer GCN is obtained gcn :

[0065] h gcn =GCN (2)(M,X t ) (8)

[0066] Then the output state h of the two-layer GCN gcn After passing through three layers of GCN in sequence, the output state GCN of the three layers of GCN is obtained (3) (M,h gcn ), and the output state of the three-layer GCN GCN (3) (M,h gcn ) and the output state h of the two-layer GCN gcn Send it to the residual module to get the output state h of the residual module r :

[0067] h r =GCN (3) (M,h gcn )+h gcn (9) Then, the output state h of the residual module r The hidden state of the path is obtained through the Softmax function

[0068]

[0069] 2.2) After completing the above message aggregation process, the path state is updated to obtain an updated path state vector

[0070] First, the current path state vector and the hidden state of the path Do matrix concatenation to get the path feature matrix

[0071]

[0072] After concatenation, the feature matrix will be obtained As the input of a layer of GRU, the path state is updated to obtain the updated path state vector

[0073]

[0074] 2.3) After completing the path state update, the link state is updated to obtain an updated link state vector

[0075] First, the hidden state based on the path Each link sums the hidden states of all paths containing it to obtain the hidden state of the link

[0076]

[0077] In the formula, represents the path p containing the lth link k The hidden state of .

[0078] Then the current link state vector and the hidden state of the link Do matrix concatenation to get the link feature matrix

[0079]

[0080] After concatenation, the link feature matrix As the input of a layer of GRU, the link state is updated to obtain the updated link state vector

[0081]

[0082] 2.4) After completing the update of the path status and link status, the results will be updated and As the input of the next message passing operation, after T message passing operations, the final link hidden state h l and the path hidden state h p .

[0083] 3) Hide the link status h l and the path hidden state h p The performance prediction indicators of links and paths are obtained through the fully connected layer, that is, the link-level performance matrix and path-level performance matrix

[0084] Represents the link-level performance matrix, which is used to measure the remaining link capacity of the network.

[0085]

[0086] Represents a path-level performance matrix that measures the bearer bandwidth between network nodes.

[0087]

[0088] ②For the traffic matrix prediction module:

[0089] 1) Use the GCN module to capture the spatial correlation information of the state information.

[0090] The flow matrix sequence composed of the flow matrix of the input time t and the previous q times And Y TM The feature matrix of the network nodes is input into GCN. At the same time, the network topology M is input into GCN as the adjacency matrix. After the graph convolution operation, the hidden state with spatial related information is obtained:

[0091]

[0092] Then, in order to obtain the temporal correlation of the network, the hidden state with spatial feature information is transformed Input into LSTM and calculate the hidden state covering spatiotemporal features:

[0093]

[0094] And these hidden states are represented as H, that is, H is a set of hidden states with spatiotemporal characteristics:

[0095]

[0096] 2) Based on the attention mechanism, the weight of each hidden state is calculated and the context vector of the global network topology traffic change information is obtained.

[0097] The self-attention mechanism is introduced to adjust the importance of different time slices and collect global spatiotemporal information to improve prediction accuracy. In the attention-based mechanism:

[0098] First, take the hidden state set H as input and get the corresponding output through two hidden layers

[0099]

[0100] Where w1 and b1 are the weight and bias of the first hidden layer, respectively, and w2 and b2 are the weight and bias of the second hidden layer, respectively.

[0101] Then use the Softmax normalized exponential function to calculate the weight of each feature

[0102]

[0103] Then, the context vector b of the global network topology traffic change information is obtained through weighted sum calculation t :

[0104]

[0105] 3) Use the fully connected layer to output the prediction result and select the ReLU function to obtain the final prediction result, that is, the traffic matrix prediction value at the next moment

[0106]

[0107] Where FC(·) represents a fully connected network.

[0108] ③Loss function

[0109] In the training of the network performance prediction module, the predicted value of the link-level performance matrix is ​​used and the true value Y l The mean square error and the predicted value of the path-level performance matrix and the true value Y p The sum of the mean square errors is used as the loss function, and the model parameters of the network performance prediction module are updated by the gradient descent method;

[0110]

[0111] In the training of the traffic matrix prediction module, the predicted value of the traffic matrix is ​​used With the true value The mean square error between them is calculated, and the L2 regularization term is added as the loss function. The model parameters of the traffic matrix prediction module are updated by the gradient descent method.

[0112]

[0113] In the formula, λ is a hyperparameter;

[0114] The loss function Loss of the entire GCT-Route network model is:

[0115] Loss = Loss1 + Loss2 (27)

[0116] Where Loss1 represents the loss term of the network performance prediction module, and Loss2 represents the loss term of the traffic matrix prediction module.

[0117] S3. The network monitoring module of the control plane obtains the traffic matrix at the current moment The current flow matrix and the current reward value r t′ The input is fed into the reinforcement learning agent, where the agent generates action values ​​based on the state, and then fed into the GCT-Route network model.

[0118] S4, GCT-Route network model receives the action value as the routing solution P and compares it with the current traffic matrix The flow matrix sequence composed of the flow matrix at the current moment and the flow matrix at the previous q moments and the network topology M as the input of the model, and then output the link-level performance matrix Path-level performance matrix And the traffic matrix prediction value at the next moment

[0119] S5. The reward function of the reinforcement learning agent is based on the link-level performance matrix and path-level performance matrix Generate the reward value for the next moment.

[0120] The reward function takes load balancing as the optimization goal, that is, maximizing the remaining capacity of the link and minimizing the path bandwidth between network nodes, that is, the reward value r at the next moment t′+1 for:

[0121] r t′+1 =αr l -βr p (28)

[0122] Where α and β are adjustable parameters.

[0123] Link remaining capacity r l is the sum of the remaining capacity of the network links, that is:

[0124]

[0125] In the formula, Right now The performance matrix for the link level The i-th row of is the link-level performance matrix, and n is the number of network nodes.

[0126] The path bandwidth between network nodes is r p The variance of the bandwidth carried by each source-destination path is:

[0127]

[0128] In the formula, is the performance matrix at the path level The i-th row of Yes all The mean of is the performance matrix at the path level, and n is the number of network nodes.

[0129] S6. Determine whether the reward value converges.

[0130] Set the reward value sequence R t′+1 R is composed of the reward values ​​of the next moment and the previous s moments t′+1 = {r t′+1-s ,…,r t′ ,r t′+1}, where s is the length of the reward value sequence.

[0131] Set the convergence threshold to ε. If the standard deviation σ(R t′+1 ) is less than ε, that is, σ(R t′+1 )<ε, the reward value is determined to be converged. At this time, the GCT-Route network model sends the routing solution P to the flow table generation module of the control plane. The flow table generation module combines the routing solution P with the network topology M to generate SDN flow table entries, and then sends the SDN flow table entries to each network node of the data plane. The network nodes forward network traffic according to the latest flow table entries to achieve routing optimization of the data plane.

[0132] Otherwise, it is judged as non-convergence.

[0133] S7, let t'=t'+1, and the traffic matrix predicted at the next moment Assign to the current traffic matrix The reward value r at the next moment t′+1 Assign the current reward value r t′ , and transfer to S3. Finally, the network self-learning is formed to solve the problem of network routing performance degradation caused by long-term exploration and trial and error of the reinforcement learning agent during the learning process.

[0134] The system architecture to implement the above method is as follows: Figure 3 As shown in the figure, it is specifically composed of a data plane, a control plane, and a knowledge plane. The data plane is composed of SDN switches (network nodes) and is used to forward network traffic data. The control plane is composed of SDN controllers, and its functions are divided into a network monitoring module and a flow table generation module. The network monitoring module is used to collect network information data, and the flow table generation module generates SDN flow table entries according to the routing scheme sent from the upper layer, and sends the SDN switch of the data plane. The knowledge plane is composed of a reinforcement learning agent, a GCT-Route network model, and a storage area. The storage area is used to store training data sets. The reinforcement learning agent and the GCT-Route network model interact to generate a network traffic scheduling strategy.

[0135] It should be noted that although the embodiments of the present invention described above are illustrative, they are not intended to limit the present invention, and therefore the present invention is not limited to the above specific embodiments. Without departing from the principles of the present invention, any other embodiments obtained by those skilled in the art under the guidance of the present invention are deemed to be within the protection of the present invention.

Claims

1. A SDN routing optimization method based on spatiotemporal feature fusion of graph neural network, characterized in that: The steps include: Step 1: The SDN control plane collects historical network information, namely, network topology, routing scheme and traffic matrix to generate a training data set, and stores the training data set in the storage area of ​​the SDN knowledge plane; Step 2: Build a spatiotemporal feature fusion network model based on graph neural network in the SDN knowledge plane, and use the training data set to perform offline training on the spatiotemporal feature fusion network model based on graph neural network; Step 3: The SDN control plane converts the current traffic matrix and the current reward value r t′ The reinforcement learning agent input into the SDN knowledge plane generates action values, which are then input into the spatiotemporal feature fusion network model based on the graph neural network; Step 4: The spatiotemporal feature fusion network model based on the graph neural network of the SDN knowledge plane receives the action value as the routing solution P, and combines the routing solution P, the network topology M, and the current traffic matrix And the traffic matrix sequence composed of the traffic matrix at the current moment and the previous q moments Together they serve as the input of the spatiotemporal feature fusion network model based on graph neural network, which outputs the link-level performance matrix Path-level performance matrix And the traffic matrix predicted for the next moment Where q is the set value; Step 5: The reward function of the reinforcement learning agent in the SDN knowledge plane is based on the link-level performance matrix and path-level performance matrix Generate the reward value r at the next moment t′+1 ; Step 6: Determine the reward value sequence {r t′+1-s ,…,r t′ ,r t′+1 } is less than the set convergence threshold: where s is the set value; If yes, the spatiotemporal feature fusion network model based on graph neural network of SDN knowledge plane sends the routing scheme P to SDN control plane. SDN control plane generates SDN flow table entries based on routing scheme P and network topology M, and sends SDN flow table entries to each network node of data plane. Network nodes forward network traffic according to the SDN flow table entries to achieve routing optimization of data plane. Otherwise, let t′=t′+1, and the traffic matrix predicted for the next moment Assign to the current traffic matrix The reward value r at the next moment t′+1 Assign the current reward value r t′ , and go to step 3.

2. According to claim 1, the SDN routing optimization method based on spatiotemporal feature fusion of graph neural network is characterized in that: In step 1, the training data set D is: In the formula, M = [m ij ] n*n is the network topology, m ij Represents network node v i With network node v j The connection relationship between network nodes i With network node v j Connected time ij =1, when the network node v i With network node v j When not connected ij =0; P = [p ij ] n*n is the routing scheme, p ij Represents network node v i To network node v j Path; is the flow matrix at time t, represents the network node v at time t i To network node v j traffic; i,j=1,2,…,n, n is the number of network nodes.

3. According to claim 1 or 2, a SDN routing optimization method based on spatiotemporal feature fusion of graph neural network is characterized in that: In step 2, the spatiotemporal feature fusion network model based on graph neural network includes a network performance prediction module and a traffic matrix prediction module; ① In the network performance prediction module: First, the minimum link capacity of all links in each path in the routing scheme is defined as the link feature and assigned to the initial link state vector; at the same time, the traffic between all network nodes in the traffic matrix at time t is defined as the path feature and assigned to the initial path state vector; Then, the same message passing operation is repeated T times on the current link state vector and the current path state vector. During these T cycles, the link and the path exchange hidden states with each other to obtain the final link hidden state and the final path hidden state. The specific process is as follows: Message aggregation process: First, concatenate the current link state vector and the current path state vector to obtain the link and path feature matrix, and then input the link and path feature matrix and the network topology into the two-layer GCN to obtain the output state of the two-layer GCN; Then the output state of GCN is sent to the three-layer GCN to obtain the output state of the three-layer GCN; then the output state of the two-layer GCN and the output state of the three-layer GCN are sent to the residual module to obtain the output state of the residual module, and the output state of the residual module is passed through the Softmax function to obtain the hidden state of the path; Path state update process: first concatenate the current path state vector and the hidden state of the path into a matrix to obtain the path feature matrix; Then input the path feature matrix into GRU to obtain the updated path state vector; Link state update process: Each link sums the hidden states of all paths containing it to obtain the hidden state of the link; Then, the current link state vector and the hidden state of the link are concatenated into a matrix to obtain the link feature matrix; Then the link feature matrix is ​​input into GRU to obtain the updated link state vector; Iteration process: The updated path state vector and the updated link state vector are used as the input of the next message passing operation. After T message passing operations, the final link hidden state and the final path hidden state are obtained; where T is the set value; Finally, the final link hidden state is passed through a fully connected layer to obtain a link-level performance matrix, and the final path hidden state is passed through a fully connected layer to obtain a path-level performance matrix; ②In the traffic matrix prediction module: First, the traffic matrix sequence composed of the traffic matrices at time t and the previous q times and the network topology are input into a layer of GCN to obtain the hidden state with spatially relevant information; where q is the set value; Then, the hidden state with spatial feature information is input into LSTM, and the hidden state covering the spatiotemporal features is calculated to obtain a set of hidden states with spatiotemporal features; Next, the weight of each hidden state in the hidden state set with spatiotemporal characteristics is calculated based on the attention mechanism, and the context vector of the global network topology traffic change information is obtained; Finally, the context vector is passed through the fully connected layer, and the ReLU function is used to obtain the predicted traffic matrix for the next moment.

4. According to claim 1, the SDN routing optimization method based on spatiotemporal feature fusion of graph neural network is characterized in that: In step 4, the network topology M, routing solution P, and the current traffic matrix The network performance prediction module based on the spatiotemporal feature fusion network model based on the graph neural network is input, and the network performance prediction module based on the spatiotemporal feature fusion network model based on the graph neural network outputs the link-level performance matrix and path-level performance matrix The traffic matrix sequence consisting of the network topology M and the traffic matrix at the current moment and the previous q moments The flow matrix prediction module based on the spatiotemporal feature fusion network model of the graph neural network is input, and the flow matrix prediction module based on the spatiotemporal feature fusion network model of the graph neural network outputs the predicted flow matrix at the next moment.

5. According to claim 1, the SDN routing optimization method based on spatiotemporal feature fusion of graph neural network is characterized in that: In step 5, the reward value r of the reward function at the next moment t′+1 for: In the formula, α and β are the adjustable parameters set; is the link-level performance matrix; is the performance matrix at the path level, Yes all is the mean of , and n is the number of network nodes.