CN115865804A - SDN route optimization method based on link flow prediction - Google Patents

SDN route optimization method based on link flow prediction Download PDF

Info

Publication number
CN115865804A
CN115865804A CN202211496598.9A CN202211496598A CN115865804A CN 115865804 A CN115865804 A CN 115865804A CN 202211496598 A CN202211496598 A CN 202211496598A CN 115865804 A CN115865804 A CN 115865804A
Authority
CN
China
Prior art keywords
link
traffic
flow
time
sdn
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211496598.9A
Other languages
Chinese (zh)
Inventor
陈俊彦
肖微
黄雪锋
王勇
李欣梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guilin University of Electronic Technology
Original Assignee
Guilin University of Electronic Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guilin University of Electronic Technology filed Critical Guilin University of Electronic Technology
Priority to CN202211496598.9A priority Critical patent/CN115865804A/en
Publication of CN115865804A publication Critical patent/CN115865804A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an SDN route optimization method based on link flow prediction, wherein a network link flow prediction model is designed based on an attention mechanism and a multi-graph view diagram neural network, link flow data can be directly processed in an original graph-based network topology, dynamic space-time characteristics are effectively captured, and the accuracy of link flow prediction is improved. According to the invention, the influence caused by the time delay of the controller for acquiring the network state is reduced through the prediction model, so that the routing decision of the controller is more accurate.

Description

SDN route optimization method based on link flow prediction
Technical Field
The invention relates to the technical field of Software Defined Networking (SDN), in particular to an SDN route optimization method based on link flow prediction.
Background
In recent years, the popularity of social media, high-definition movies, and online games has led to a rapid increase in network traffic and an increasing scale of networks. Under a huge traffic data environment, network devices face an increasing forwarding pressure. In a real network environment, network traffic may peak within a certain period of time, and a valley period may occur. When the generated traffic is excessive and concentrated, it may cause the network to be broken down; in the area with sparse traffic, the network device may not obtain a good utilization rate because it is in an idle state for a long time.
In software defined networks, making routing decisions requires obtaining network link traffic information. However, there is a delay in the process of periodically acquiring the network link traffic information by the controller, including: a. the time delay of a safe channel from the switch to the controller; b. link delay of the forwarding layer; c. the switch processes the delay of the data packet, and the existence of the delay causes the time difference between the network link flow information acquired by the controller and the current information. At this time, the link resources may have changed, so that the issued flow table cannot effectively utilize the network resources, and the network congestion may be aggravated accordingly in the case of high load.
Disclosure of Invention
The invention aims to solve the problem that the existing software defined network has time delay in acquiring network link flow information so as to influence routing decision, and provides an SDN (software defined network) route optimization method based on link flow prediction.
In order to solve the problems, the invention is realized by the following technical scheme:
an SDN route optimization method based on link flow prediction comprises the following steps:
step 1, an SDN control plane collects historical network information and flow data of an SDN data plane to construct a training data set,storing the training data set in a data storage area of the SDN application plane; wherein the historical network information and traffic data comprises an adjacency matrix A AD Source-destination traffic matrix for historical time t
Figure BDA0003963131770000011
Short-term traffic sequence at historical time t
Figure BDA0003963131770000012
Long-term flow sequence ^ at historical time t>
Figure BDA0003963131770000013
And the actual value X of the link traffic at the historical time t +1 t+1
Step 2, constructing a link flow prediction model by an SDN application plane; the link flow prediction model consists of 4 sub-models and a selection full-connection layer; each sub-model consists of an input full-link layer, an attention mechanism module, a convolution module consisting of a graph convolution unit and a time convolution unit, and an output full-link layer; the input end of the submodel is formed by the input end of the input full connection layer, the output end of the input full connection layer is connected with the input end of the attention mechanism module, the output end of the attention mechanism module is connected with the input end of the graph convolution unit, the output end of the graph convolution unit is connected with the input end of the time convolution unit, and the output end of the time convolution unit is connected with the input end of the output full connection layer; the input ends of the 4 sub-models form 4 groups of input ends of the link flow prediction model, the output ends of the 4 sub-models are simultaneously connected with the input end of the selected full connection layer, and the output end of the selected full connection layer forms the output end of the link flow prediction model;
step 3, the SDN application plane utilizes the training data set to carry out off-line training on the link flow prediction model, namely, an adjacent matrix A in the training data set is firstly used AD Short-term traffic sequence with historical time t
Figure BDA0003963131770000021
Sending the data into a first group of input ends of a link flow prediction model, and training an adjacency matrix A in a data set AD Long-term flow sequence based on the historical time t->
Figure BDA0003963131770000022
Sending the traffic into a second set of input terminals of the link traffic prediction model, and training a source-destination traffic matrix at the historical time t in the data set to->
Figure BDA0003963131770000023
Short-term flow sequence based on the historical time t->
Figure BDA0003963131770000024
Sending the traffic into a third group of input ends of the link traffic prediction model, and training a source-destination traffic matrix of the historical time t in the data set to be->
Figure BDA0003963131770000025
Long-term flow sequence based on the historical time t->
Figure BDA0003963131770000026
Sending the link flow into a fourth group of input ends of the link flow prediction model, and outputting a predicted value of the link flow at historical time t +1 by an output end of the link flow prediction model>
Figure BDA0003963131770000027
And then the predicted value of the link flow at the historical time t +1 output by the link flow prediction model is used for combining>
Figure BDA0003963131770000028
True value X of link traffic with historical time t +1 in training dataset t+1 The mean square error of the model is used as a loss function, and model parameters are updated through back propagation, so that a trained link flow prediction model is obtained;
step 4, the SDN control plane collects real-time network information and flow data of the SDN data plane and sends the real-time network information and flow data into the SDN application plane; wherein the real-time network information and traffic data comprises an adjacency matrix A AD Source-destination traffic matrix for current time t
Figure BDA0003963131770000029
Short-term flow sequence at the present time t>
Figure BDA00039631317700000210
And a long-term flow sequence at the current time t>
Figure BDA00039631317700000211
Step 5, the SDN application plane sends real-time network information and flow data into a trained link flow prediction model for prediction, namely an adjacency matrix A AD Short-term traffic sequence with current time t
Figure BDA00039631317700000212
Feeding into a first set of inputs of a trained link traffic prediction model, an adjacency matrix A AD Long-term flow sequence based on the current time t>
Figure BDA00039631317700000213
The source-destination traffic matrix at the current time t' is asserted into a second set of inputs of the trained link traffic prediction model>
Figure BDA00039631317700000214
Short-term flow sequence based on the current time t>
Figure BDA00039631317700000215
A source-destination traffic matrix->
Figure BDA00039631317700000216
Long-term flow sequence based on the current time t>
Figure BDA00039631317700000217
Sending the data to the fourth group of input ends of the trained link flow prediction model, and outputting the data from the output end of the trained link flow prediction modelThe next time t' +1 of the link traffic
Figure BDA00039631317700000218
And returning to the SDN control plane;
step 6, the SDN control plane uses the predicted value of the link flow at the next time t' +1
Figure BDA00039631317700000219
And calculating a data packet forwarding path as a link weight of a Dijkstra algorithm, generating a switch flow entry, and sending the switch flow entry to each switch of the SDN data plane to realize the routing optimization of the SDN data plane.
In the step 1:
adjacency matrix A AD Comprises the following steps:
A AD =[a ij ] k×k
source-destination traffic matrix for historical time t
Figure BDA00039631317700000220
Comprises the following steps:
Figure BDA00039631317700000221
short-term traffic sequence at historical time t
Figure BDA00039631317700000222
Comprises the following steps:
Figure BDA00039631317700000223
long-term traffic sequence at historical time t
Figure BDA00039631317700000224
Comprises the following steps: />
Figure BDA0003963131770000031
Actual value X of link flow at historical time t +1 t+1 Comprises the following steps:
Figure BDA0003963131770000032
in the formula, a ij For switches v in SDN data plane i And a switch v j (ii) an adjacent relationship of (a);
Figure BDA0003963131770000033
for a source host h in the SDN data plane at the current time t i To the destination host h j A normalized value of the transmitted traffic; />
Figure BDA0003963131770000034
Switch links e in the historical time t +1SDN data plane respectively 1 ,e 2 ,…,e r The flow transmitted between the exchangers at the two ends; x The actual value of link traffic for time 9632; r is the interception length of the short-term flow sequence, L is the interception length of the long-term flow sequence, n is the sampling frequency of the link flow per hour, and m is the number of sampling points intercepted by the link flow per hour; k is the number of switches in the SDN data plane, l is the number of hosts in the SDN data plane, and r is the number of switch links in the SDN data plane.
In the step 4:
adjacency matrix A AD Comprises the following steps:
A AD =[a ij ] k×k
source-destination traffic matrix for current time t
Figure BDA0003963131770000035
Comprises the following steps:
Figure BDA0003963131770000036
short-term traffic sequence at the current time t
Figure BDA0003963131770000037
Comprises the following steps:
Figure BDA0003963131770000038
long-term traffic sequence at the current time t
Figure BDA0003963131770000039
Comprises the following steps:
Figure BDA00039631317700000310
in the formula, a ij For switches v in SDN data plane i And a switch v j (ii) an adjacent relationship of (a);
Figure BDA00039631317700000311
for a source host h in the SDN data plane at the current time t i To the destination host h j A normalized value of the transmitted traffic; x The actual value of link traffic for time 9632; r is the interception length of the short-term flow sequence, L is the interception length of the long-term flow sequence, n is the sampling frequency of the link flow per hour, and m is the number of sampling points intercepted by the link flow per hour; k is the number of switches in the SDN data plane, l is the number of hosts in the SDN data plane, and r is the number of switch links in the SDN data plane.
Compared with the prior art, the network link flow prediction model is designed based on the attention mechanism and the multi-graph view neural network, the link flow data can be directly processed in the original graph-based network topology, the dynamic space-time characteristics are effectively captured, and the accuracy of link flow prediction is improved. According to the invention, the influence caused by the time delay of the controller for acquiring the network state is reduced through the prediction model, so that the routing decision of the controller is more accurate.
Drawings
Fig. 1 is an architecture diagram of a link traffic prediction model.
Fig. 2 is a schematic diagram of an SDN architecture to which the present invention is applied.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to specific examples.
Modeling a computer network scenario of an SDN data plane. A data plane of the SDN may represent a topological network formed by switches and hosts with a symbol G, defining G = (H, V, E); h represents a set of hosts in a computer network topology, H = (H) 1 ,h 2 ,…,h l ) L is the number of all hosts; v denotes a set of switches in a computer network topology, V = (V) 1 ,v 2 ,…,v k ) K is the number of all switches; if the exchange v i And a switch v j Adjacent exchange v i And v j There is a link connected between them, the link connected is defined as a switch v i And a switch v j Switch link e between ij The set of all edges is denoted as E, E = (E) 1 ,e 2 ,…,e r ) And r is the number of all switch links.
(1) Defining a source-destination matrix (OD matrix) within a time t
Figure BDA0003963131770000041
Flow rate
Figure BDA0003963131770000042
Denotes the source host h at time t i To the destination host h j Sending flow is all source hosts h of the computer network of the SDN data plane in time t i To the destination host h j The transmitted traffic constitutes a traffic demand matrix
Figure BDA0003963131770000043
Where l is the number of all hosts.
Matrix of demand for flow
Figure BDA0003963131770000044
Carrying out Min-Max data normalization processing to obtain a source-destination matrix
Figure BDA0003963131770000045
Wherein->
Figure BDA0003963131770000046
To source host h at time t i To the destination host h j Normalized value of traffic sent to each other:
Figure BDA0003963131770000047
in the formula (I), the compound is shown in the specification,
Figure BDA0003963131770000048
to source host h at time t i To the destination host h j The transmitted flow is->
Figure BDA0003963131770000049
As a traffic demand matrix D t Is selected, and a minimum flow of>
Figure BDA00039631317700000410
As a traffic demand matrix D t Of the flow rate.
(2) Defining an adjacency matrix A AD
Adjacency matrix A AD =[a ij ] k×k Wherein a is ij Representing a switch v i And a switch v j The adjacent relation of (2). When the switch v i And a switch v j When adjacent to each other, a ij =1; when the switch v i And a switch v j When they are not adjacent, a ij =0。
(3) Defining link traffic X over time t t
Switch link e during time t ij Flow rate of
Figure BDA00039631317700000411
Equal to switch v during time t i And exchange v j The traffic sent to each other, namely:
Figure BDA00039631317700000412
in the formula (I), the compound is shown in the specification,
Figure BDA00039631317700000413
for the exchange v within time t i To the exchange v j The transmitted flow is->
Figure BDA00039631317700000414
For switching v within time t j To the exchange v i The traffic sent.
Link traffic X consisting of traffic of all switch links in a computer network of SDN data plane within time t t Comprises the following steps:
Figure BDA0003963131770000051
in the formula (I), the compound is shown in the specification,
Figure BDA0003963131770000052
respectively representing the switch link e during time t 1 ,e 2 ,…,e r The flow rate of (c).
(4) Short-term traffic sequence defining a time t
Figure BDA0003963131770000053
And a long-term flow sequence->
Figure BDA0003963131770000054
Consider that link traffic of a computer network has both short-term and long-term temporal dependencies. In order to capture the periodic characteristics of the data long-term flow sequence and the short-term flow sequence, the invention sets two sequence sampling modes of long term and short term. Assuming that the sampling frequency is n times per hour, the interception length of the short-term flow sequence is R, and the interception length of the long-term flow sequence is L.
The short-term flow sequence is a continuous sequence, R link flows are continuously intercepted, and the short-term flow sequence of time t
Figure BDA0003963131770000055
Comprises the following steps:
Figure BDA0003963131770000056
the long-term flow sequence is a discrete sequence, and m sampling points are intercepted every hour, wherein m<n, the long-term flow sequence intercepts the data of the previous L/m hours, and then the long-term flow sequence of the time t
Figure BDA0003963131770000057
Comprises the following steps:
Figure BDA0003963131770000058
an SDN route optimization method based on link flow prediction specifically comprises the following steps:
step 1, an SDN control plane collects historical network information and flow data of an SDN data plane to construct a training data set, and the training data set is stored in a data storage area of an SDN application plane.
A traffic monitoring module of the SDN control plane obtains historical network information and traffic data, including an adjacency matrix A AD Source-destination traffic matrix for historical time t
Figure BDA0003963131770000059
Short-term traffic sequence in history time t>
Figure BDA00039631317700000510
Long-term flow sequence ^ at historical time t>
Figure BDA00039631317700000511
And the actual value X of the link traffic at the historical time t +1 t+1
And 2, constructing a link flow prediction model by the SDN application plane.
The architecture of the link traffic prediction model is shown in fig. 1. The link flow prediction model is based on the multiple map view angles of the adjacency graph and the OD graph, and is constructed by adopting two modes of a short-term flow sequence and a long-term flow sequence. The model has two structurally identical components from two perspectives of a neighborhood network map (neighborhood matrix) and an OD map (OD matrix), each component containing two submodels to capture features of short-term and long-term traffic sequence characteristics. Each sub-model consists of an input full link layer, an attention mechanism module, a convolution module and an output full link layer. The convolution module comprises a graph convolution unit and a time convolution unit, wherein the graph convolution unit is a two-layer GCN (graph convolution neural network), and the time convolution unit is a one-layer CNN (convolution neural network). The input end of the submodel is formed by the input end of the input full-connection layer, the output end of the input full-connection layer is connected with the input end of the attention mechanism module, the output end of the attention mechanism module is connected with the input end of the graph convolution unit, the output end of the graph convolution unit is connected with the input end of the time convolution unit, and the output end of the time convolution unit is connected with the input end of the output full-connection layer. The input ends of the 4 sub-models form 4 groups of input ends of the link flow prediction model, the output ends of the 4 sub-models are simultaneously connected with the input end of the selected full connection layer, and the output end of the selected full connection layer forms the output end of the link flow prediction model.
And 3, performing offline training on the link flow prediction model by the SDN application plane by using the training data set to obtain the trained link flow prediction model.
When off-line training is carried out, the adjacent matrix a in the training data set is firstly trained AD Short-term traffic sequence with historical time t
Figure BDA0003963131770000061
Feeding into a first set of inputs of a link flow prediction model, training an adjacency matrix A in a data set AD Long-term traffic sequence in relation to a historical time t>
Figure BDA0003963131770000062
Sending the traffic into a second set of input terminals of the link traffic prediction model, and training a source-destination traffic matrix at the historical time t in the data set to->
Figure BDA0003963131770000063
Short-term flow sequence based on the historical time t->
Figure BDA0003963131770000064
Sending the traffic into a third group of input ends of the link traffic prediction model, and training a source-destination traffic matrix of the historical time t in the data set to be->
Figure BDA0003963131770000065
Long-term flow sequence based on the historical time t->
Figure BDA0003963131770000066
Sending the link flow into a fourth group of input ends of the link flow prediction model, and outputting a predicted value of the link flow at historical time t +1 by an output end of the link flow prediction model>
Figure BDA0003963131770000067
And then the predicted value of the link flow at the historical time t +1 output by the link flow prediction model is used for combining>
Figure BDA0003963131770000068
True value X of link traffic with historical time t +1 in training dataset t+1 The mean square error of the model is used as a loss function, model parameters are updated through back propagation, and when the loss function is converged or reaches a preset training frequency, a trained link flow prediction model is obtained.
S3.1, splicing the long-term flow sequence or the short-term flow sequence and the adjacent matrix or the OD matrix in the input full-connection layer, and outputting X F
The input fully-connected layer of the first submodel will be adjacent to matrix A AD Short-term traffic sequence with historical time t
Figure BDA0003963131770000069
Splicing to obtain X F1 . The input fully-connected layer of the second submodel will be adjacent to matrix A AD Long-term flow sequence based on the historical time t->
Figure BDA00039631317700000610
Splicing to obtain X F2 . The input fully-connected layer of the third submodel will history the source-destination traffic matrix of time t
Figure BDA00039631317700000611
Short-term flow sequence based on the historical time t->
Figure BDA00039631317700000612
Splicing to obtain X F3 . The input fully-connected layer of the fourth submodel combines the source-destination traffic matrix { -at historical time t>
Figure BDA00039631317700000613
Long-term flow sequence based on the historical time t->
Figure BDA00039631317700000614
Splicing to obtain X F4
S3.2, in the attention mechanism module, X is firstly carried out F Obtaining link slice data X by link and time-sliced data e And time slice data X t (ii) a Then link the slice data X e The input space attention mechanism unit calculates the characteristic correlation among all links to obtain S A While slicing time-sliced data X t Inputting a time attention mechanism module, calculating the correlation of the characteristics of each time slice to obtain T A (ii) a Then X is put F And S A And T A Performing an exclusive nor operation and outputting
Figure BDA00039631317700000615
Figure BDA00039631317700000616
Figure BDA00039631317700000617
Figure BDA00039631317700000618
In the formula (I), the compound is shown in the specification,
Figure BDA00039631317700000619
the learning parameter matrixes are all learnable parameter matrixes and are used for learning the weight value of each link of the computer network under each time slice; s A Is the output of the spatial attention mechanism unit, representing the spatial dimension weights of the network topology; t is A Is the output of the time attention mechanism unit, representing the time dimension weight of the network topology.
Since the switch in a computer network is not correlated at different time slices, the traffic of the links at different time slices is also dynamically changed. The invention uses an attention mechanism to dynamically capture the key characteristic that the relevance of the downlink traffic of the switch and the current time link traffic is large at different times.
S3.3, attention paying mechanism module output
Figure BDA00039631317700000623
Sending the image volume unit to capture the space characteristic to obtain->
Figure BDA00039631317700000620
I.e. is>
Figure BDA00039631317700000621
Or
Figure BDA00039631317700000622
Whether the spectrum domain convolution or the space domain convolution is adopted, the convolution unit of the graph in the GCN is the adjacent switch characteristic of the fusion computing switch. The invention selects a two-layer GCN network structure as a graph convolution unit, and the graph convolution unit selects a ReLU as an activation function. The graph convolution unit comprises a space-time capture module based on the adjacency graph and a space-time capture module based on the OD graph.
Output of graph convolution unit based on adjacency matrix
Figure BDA0003963131770000071
Comprises the following steps:
Figure BDA0003963131770000072
output of graph convolution unit based on OD matrix
Figure BDA0003963131770000073
Comprises the following steps:
Figure BDA0003963131770000074
in the formula, theta AD And Θ OD Representing the convolution kernels on the adjacency matrix and the OD matrix respectively,
Figure BDA0003963131770000075
and &>
Figure BDA0003963131770000076
Representing the graph convolution operations on the adjacency matrix and the OD matrix, respectively.
S3.3, outputting the graph convolution unit
Figure BDA0003963131770000077
Sending the time convolution unit to capture the time characteristic to obtain->
Figure BDA0003963131770000078
The invention selects CNN as time convolution unit, and the time convolution unit selects ReLU as activation function.
Figure BDA0003963131770000079
In the formula (I), the compound is shown in the specification,
Figure BDA00039631317700000710
is the output of the time convolution unit>
Figure BDA00039631317700000711
And phi is a convolution kernel and phi is a convolution operation, which are output of the graph convolution unit.
S3.4, convolving the output of the unit with time
Figure BDA00039631317700000712
The vector dimension of the input and output full connection layer is converted to obtain a vector of r dimension->
Figure BDA00039631317700000713
Where r is the number of all switch links.
Output full connection layer output of the first sub-model
Figure BDA00039631317700000714
The output of the second submodel is fully connected to the layer output->
Figure BDA00039631317700000715
The output of the third submodel is fully connected to the layer output->
Figure BDA00039631317700000716
Output fully connected-layer output +for a fourth sub-model>
Figure BDA00039631317700000717
S3.5, selecting a full connection layer to output results of 4 submodels
Figure BDA00039631317700000718
Fusing to obtain the predicted value of the link flow>
Figure BDA00039631317700000719
Figure BDA00039631317700000720
In the formula, f represents a fusion operation.
S3.6, using the link flow prediction value of the historical time t
Figure BDA00039631317700000721
And true value X t+1 The mean square error of the link flow prediction model is used as a Loss function Loss, model parameters are updated through back propagation, and the link flow prediction model is obtained through multiple training.
Figure BDA00039631317700000722
And 4, the SDN control plane collects real-time network information and flow data of the SDN data plane and sends the SDN data and flow data into the SDN application plane.
The flow monitoring module of the SDN control plane acquires real-time network information and flow data, including an adjacency matrix A AD Source-destination traffic matrix for current time t
Figure BDA00039631317700000723
Short-term traffic sequence in conjunction with the current time t>
Figure BDA00039631317700000724
And a long-term flow sequence at the current time t>
Figure BDA00039631317700000725
Step 5, SDN application plane enables real-time network information and flow quantityThe link flow is sent to a trained link flow prediction model for prediction to obtain the predicted value of the link flow at the next time t' +1
Figure BDA00039631317700000726
And returns to the SDN control plane.
When prediction is performed, the adjacency matrix A is formed AD Short-term traffic sequence with current time t
Figure BDA00039631317700000727
Feeding into a first set of inputs of a trained link traffic prediction model, an adjacency matrix A AD Long-term flow sequence based on the current time t>
Figure BDA00039631317700000728
The source-destination traffic matrix at the current time t' is asserted into a second set of inputs of the trained link traffic prediction model>
Figure BDA0003963131770000081
Short-term flow sequence based on the current time t>
Figure BDA0003963131770000082
A source-destination traffic matrix->
Figure BDA0003963131770000083
Long-term traffic sequence in relation to the current time t>
Figure BDA0003963131770000084
The link flow is sent to a fourth group of input ends of the trained link flow prediction model, and a predicted value of the link flow at the next time t' +1 output by an output end of the trained link flow prediction model>
Figure BDA0003963131770000085
Step 6, the SDN control plane uses the link at the next time t' +1Flow prediction
Figure BDA0003963131770000086
And calculating a data packet forwarding path as a link weight of Dijkstra (Dijkstra) algorithm, generating a switch flow entry, and sending the switch flow entry to each switch of the SDN data plane to realize the routing optimization of the SDN data plane.
Dijkstra (Dijkstra) is a typical shortest path algorithm that extends layer by layer from a starting point to an outer layer until extending to an end point, resulting in one or more shortest paths from one node to other nodes. The invention obtains a plurality of shortest paths between the hosts through a Dijkstra algorithm, sums the flow of the link passed by each path, and then selects the path with the minimum flow as a data packet forwarding path.
An SDN network architecture to which the present invention is applicable is shown in fig. 2, and includes a data plane, a control plane, and an application plane.
The data plane consists of SDN switches and hosts connected under the switches.
The control plane is composed of SDN controllers. The control plane is a network component that forwards control to the data plane downward and transfers data to the application plane upward. The SDN controller is divided into a flow monitoring module and a flow table generating module according to functions. The flow monitoring module periodically acquires network link flow data. And the flow table generating module uses the link flow generated by the link flow prediction model as Dijkstra algorithm link weight, calculates a data packet forwarding path, generates a switch flow table entry and sends the switch flow table entry to each switch of the data plane.
The application plane can customize different applications therein according to the requirements of different scenes. The application plane is composed of a data storage area, a model training module and a link flow prediction model. The data storage area stores network link traffic data as a training data set of a link traffic prediction model. And the model training module is used for training a link flow prediction model according to historical network link information as training data to obtain a trained model which is used as a model of the link flow prediction algorithm. And the link flow prediction model receives the input link flow sequence and outputs the predicted link flow at the next moment.
It should be noted that, although the above-mentioned embodiments of the present invention are illustrative, the present invention is not limited thereto, and thus the present invention is not limited to the above-mentioned embodiments. Other embodiments, which can be made by those skilled in the art in light of the teachings of the present invention, are considered to be within the scope of the present invention without departing from its principles.

Claims (3)

1. An SDN route optimization method based on link flow prediction is characterized by comprising the following steps:
the method comprises the following steps that 1, an SDN control plane collects historical network information and flow data of an SDN data plane to construct a training data set, and the training data set is stored in a data storage area of an SDN application plane; wherein the historical network information and traffic data comprises an adjacency matrix A AD Source-destination traffic matrix for historical time t
Figure FDA0003963131760000011
Short-term flow sequence->
Figure FDA0003963131760000012
Long-term flow sequence ^ at historical time t>
Figure FDA0003963131760000013
And the actual value X of the link traffic at the historical time t +1 t+1
Step 2, constructing a link flow prediction model by an SDN application plane; the link flow prediction model consists of 4 sub-models and a selection full-connection layer; each submodel consists of an input full connection layer, an attention mechanism module, a convolution module consisting of a graph convolution unit and a time convolution unit, and an output full connection layer; the input end of the submodel is formed by the input end of the input full connection layer, the output end of the input full connection layer is connected with the input end of the attention mechanism module, the output end of the attention mechanism module is connected with the input end of the graph convolution unit, the output end of the graph convolution unit is connected with the input end of the time convolution unit, and the output end of the time convolution unit is connected with the input end of the output full connection layer; the input ends of the 4 sub-models form 4 groups of input ends of the link flow prediction model, the output ends of the 4 sub-models are simultaneously connected with the input end of the selected full connection layer, and the output end of the selected full connection layer forms the output end of the link flow prediction model;
step 3, off-line training is carried out on the link flow prediction model by the SDN application plane through the training data set, namely, the adjacent matrix A in the training data set is firstly carried out AD Short-term traffic sequence with historical time t
Figure FDA0003963131760000014
Feeding into a first set of inputs of a link flow prediction model, training an adjacency matrix A in a data set AD Long-term traffic sequence in relation to a historical time t>
Figure FDA0003963131760000015
Sending the traffic into a second set of input terminals of the link traffic prediction model, and training a source-destination traffic matrix at the historical time t in the data set to->
Figure FDA0003963131760000016
Short-term flow sequence based on the historical time t->
Figure FDA0003963131760000017
Sending the traffic into a third group of input ends of the link traffic prediction model, and training a source-destination traffic matrix of the historical time t in the data set to be->
Figure FDA0003963131760000018
Long-term flow sequence based on the historical time t->
Figure FDA0003963131760000019
Sending the data to a fourth group of input ends of the link flow prediction model, and outputting the data at an output end of the link flow prediction modelPrediction value of link traffic at historical time t + 1->
Figure FDA00039631317600000110
Reusing history output by link flow prediction model the prediction value of the link traffic at time t + 1->
Figure FDA00039631317600000111
True value X of link traffic with historical time t +1 in the training dataset t+1 The mean square error of the model is used as a loss function, and model parameters are updated through back propagation, so that a trained link flow prediction model is obtained;
step 4, the SDN control plane collects real-time network information and flow data of the SDN data plane and sends the real-time network information and flow data into the SDN application plane; wherein the real-time network information and traffic data comprises an adjacency matrix A AD Source-destination traffic matrix for current time t
Figure FDA00039631317600000112
Short-term flow sequence at the present time t>
Figure FDA00039631317600000113
And a long-term flow sequence at the current time t>
Figure FDA00039631317600000114
Step 5, the SDN application plane sends real-time network information and flow data into a trained link flow prediction model for prediction, namely an adjacency matrix A AD Short-term traffic sequence with current time t
Figure FDA00039631317600000115
Feeding into a first set of inputs of a trained link traffic prediction model, an adjacency matrix A AD Long-term flow sequence based on the current time t>
Figure FDA00039631317600000116
A source-destination traffic matrix->
Figure FDA00039631317600000117
Short-term traffic sequence in conjunction with the current time t>
Figure FDA00039631317600000118
The source-destination traffic matrix at the current time t' is asserted into a third set of inputs of the trained link traffic prediction model>
Figure FDA00039631317600000119
Long-term flow sequence based on the current time t>
Figure FDA00039631317600000120
The link flow is sent to a fourth group of input ends of the trained link flow prediction model, and a predicted value of the link flow at the next time t' +1 output by an output end of the trained link flow prediction model>
Figure FDA0003963131760000021
And returning to the SDN control plane;
step 6, the SDN control plane uses the predicted value of the link flow at the next time t' +1
Figure FDA0003963131760000022
And calculating a data packet forwarding path as a link weight of a Dijkstra algorithm, generating a switch flow entry, and sending the switch flow entry to each switch of the SDN data plane to realize the routing optimization of the SDN data plane.
2. The SDN route optimization method based on link flow prediction as claimed in claim 1, wherein in step 1,
adjacency matrix A AD Comprises the following steps:
A AD =[a ij ] k×k
source-destination traffic matrix for historical time t
Figure FDA0003963131760000023
Comprises the following steps:
Figure FDA0003963131760000024
short-term traffic sequence at historical time t
Figure FDA0003963131760000025
Comprises the following steps:
Figure FDA0003963131760000026
long-term traffic sequence at historical time t
Figure FDA0003963131760000027
Comprises the following steps:
Figure FDA0003963131760000028
true value X of link traffic at historical time t +1 t+1 Comprises the following steps:
Figure FDA0003963131760000029
in the formula, a ij For switches v in SDN data plane i And a switch v j (ii) an adjacent relationship of (a);
Figure FDA00039631317600000210
for a source host h in the SDN data plane at the current time t i To the destination host h j A normalized value of the transmitted traffic; />
Figure FDA00039631317600000211
Switch links e in the historical time t +1SDN data plane respectively 1 ,e 2 ,…,e r The flow transmitted between the exchangers at the two ends; x The actual value of link traffic for time 9632; r is the interception length of the short-term flow sequence, L is the interception length of the long-term flow sequence, n is the sampling frequency of the link flow per hour, and m is the number of sampling points intercepted by the link flow per hour; k is the number of switches in the SDN data plane, l is the number of hosts in the SDN data plane, and r is the number of switch links in the SDN data plane.
3. The SDN route optimization method based on link flow prediction as claimed in claim 1, wherein in step 4,
adjacency matrix A AD Comprises the following steps:
A AD =[a ij ] k×k
source-destination traffic matrix for current time t
Figure FDA00039631317600000212
Comprises the following steps:
Figure FDA00039631317600000213
short-term traffic sequence at the current time t
Figure FDA00039631317600000214
Comprises the following steps:
Figure FDA0003963131760000031
long-term traffic sequence at current time t
Figure FDA0003963131760000032
Comprises the following steps: />
Figure FDA0003963131760000034
In the formula, a ij For switches v in SDN data plane i And a switch v j (ii) an adjacent relationship of (a);
Figure FDA0003963131760000035
as the source host h in the SDN data plane at the current time t i To the destination host h j A normalized value of the transmitted traffic; x The actual value of link traffic for time 9632; r is the interception length of the short-term flow sequence, L is the interception length of the long-term flow sequence, n is the sampling frequency of the link flow per hour, and m is the number of sampling points intercepted by the link flow per hour; k is the number of switches in the SDN data plane, l is the number of hosts in the SDN data plane, and r is the number of switch links in the SDN data plane. />
CN202211496598.9A 2022-11-25 2022-11-25 SDN route optimization method based on link flow prediction Pending CN115865804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211496598.9A CN115865804A (en) 2022-11-25 2022-11-25 SDN route optimization method based on link flow prediction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211496598.9A CN115865804A (en) 2022-11-25 2022-11-25 SDN route optimization method based on link flow prediction

Publications (1)

Publication Number Publication Date
CN115865804A true CN115865804A (en) 2023-03-28

Family

ID=85666909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211496598.9A Pending CN115865804A (en) 2022-11-25 2022-11-25 SDN route optimization method based on link flow prediction

Country Status (1)

Country Link
CN (1) CN115865804A (en)

Similar Documents

Publication Publication Date Title
CN108173761B (en) SDN and NFV fused resource optimization method
CN108259367B (en) Service-aware flow strategy customization method based on software defined network
Akbar et al. SDN-enabled adaptive and reliable communication in IoT-fog environment using machine learning and multiobjective optimization
CN114567598B (en) Load balancing method and device based on deep learning and cross-domain cooperation
Ridwan et al. Applications of machine learning in networking: a survey of current issues and future challenges
CN112350949B (en) Rerouting congestion control method and system based on flow scheduling in software defined network
Li et al. Knowledge graph aided network representation and routing algorithm for LEO satellite networks
CN115396366B (en) Distributed intelligent routing method based on graph attention network
CN111404815B (en) Constrained routing method based on deep learning
CN114422453B (en) Method, device and storage medium for online planning of time-sensitive stream
Meng et al. Intelligent routing orchestration for ultra-low latency transport networks
Yahya et al. Enhancement of voip performance in MANET using fuzzy logic
CN117714307A (en) Dynamic network route optimization method and system based on deep learning prediction
CN115865804A (en) SDN route optimization method based on link flow prediction
CN114745322B (en) Video flow routing method based on genetic algorithm in SDN environment
Wei et al. G-Routing: Graph Neural Networks-Based Flexible Online Routing
Rao et al. A deep learning-based constrained intelligent routing method
CN115935563A (en) Network bandwidth prediction method and device based on graph neural network
Panigrahy et al. What, when and where to cache: A unified optimization approach
CN112333102B (en) Software defined network routing method and system based on knowledge graph
Malboubi et al. Software defined network inference with evolutionary optimal observation matrices
Moza et al. Routing in networks using genetic algorithm
Noskov et al. Development of an adaptive routing mechanism in software-defined networks
WO2024119513A1 (en) Device and method for agent for dynamically adapting explicit congestion notification configuration in network system
Kawaguchi et al. Network Partitioning Algorithm for Minimizing Communication Latency in SDN

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination