A QoS guarantee method for data center network video stream based on multi-controller SDN
Through multi-controller SDN and DDPG algorithms, the video stream forwarding path is optimized, which solves the problem of insufficient bandwidth and delay guarantee of traditional networks in multimedia video stream transmission, improves network performance and user experience, and enhances network scalability and fault tolerance. sex.
Patent Information
- Application Number
- CN202311641561.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-04
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-12-04
AI Technical Summary
When faced with multimedia video stream transmission, traditional network architecture cannot effectively guarantee the bandwidth and delay requirements of the video stream, resulting in network congestion and performance degradation. In addition, the single-controller SDN network architecture has performance bottlenecks and migration scheduling efficiency in large-scale network management. low question.
A data center network video stream QoS guarantee method based on multi-controller SDN is adopted. By introducing queuing theory and DDPG algorithm, the main controller generates a global network view, using the M/M/N+1 model and RNN improved deep reinforcement learning algorithm. Optimize the video stream forwarding path to ensure high-quality transmission of the video stream.
It improves the quality and user experience of multimedia video streaming transmission, enhances the scalability and fault tolerance of the network, reduces the impact of single points of failure, optimizes task scheduling and routing optimization, and improves the accuracy of QoS guarantee and network performance.
Smart Images

Figure CN117880256B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of network technology, and in particular to a data center network video stream QoS guarantee method based on multi-controller SDN. Background Art
[0002] With the rapid development of current communication technology and the increasing scale of networks, network congestion and latency are becoming more and more prominent. However, the traditional network architecture closely combines control and forwarding functions, and adopts a "best effort" QoS service model for traffic transmission, which makes the traditional network lack flexibility and optimization capabilities, and it is difficult to meet the business QoS requirements of different application scenarios. At the same time, SDN (Software Defined Network) technology can dynamically adjust network traffic by separating the network control plane and data plane, showing great potential in improving network performance and ensuring network QoS.
[0003] Introducing SDN technology in data center networks and using the SDN control plane to schedule traffic in data center networks has brought new solutions to traditional network management problems. However, the single core controller model used in the traditional SDN network architecture has performance bottlenecks for large-scale network management, especially when a large number of data flows simultaneously flow into the data center network, which can easily lead to controller overload, resulting in low operating efficiency of the control plane. At the same time, in terms of switch migration scheduling, the traditional single-controller SDN network architecture can only simply use the controller with the lowest network utilization as the migration object of the switch. The migration scheduling efficiency is low and the process is complicated, causing the SDN control plane to consume a large amount of resources for communication interaction, reducing the traffic scheduling performance of the controller.
[0004] With the rapid development of Internet technology, the content of network transmission has gradually changed from static information such as text and pictures to dynamic information such as audio and video. The proportion of multimedia video streams in network transmission traffic has become increasingly higher, and has become an important part of network transmission. However, when facing a large amount of multimedia traffic transmission, the traditional network architecture has deficiencies in the QoS guarantee solutions for multimedia video stream transmission. First, the traditional network architecture based on the TCP / IP protocol cannot meet the real-time and stability requirements of multimedia video streams, resulting in packet loss, freezes and other problems in video stream transmission. Secondly, the traditional traffic scheduling algorithm lacks consideration of the special needs of multimedia video streams and cannot effectively guarantee the bandwidth and delay requirements of video streams. In addition, the traditional network topology design is difficult to meet the transmission needs of large-scale multimedia video streams, resulting in network congestion and performance degradation. Summary of the invention
[0005] In view of the problem that the traditional traffic scheduling algorithm in the prior art lacks consideration for the special needs of multimedia video streams, cannot effectively guarantee the bandwidth and delay requirements of video streams, and the traditional network topology design is difficult to meet the transmission needs of large-scale multimedia video streams, the present invention proposes a data center network video stream QoS guarantee method based on multi-controller SDN. The method introduces queuing theory and DDPG algorithm, can effectively solve network congestion and QoS guarantee problems, and improve the quality of multimedia video stream transmission and user experience.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions: a data center network video stream QoS guarantee method based on multi-controller SDN, comprising the following steps:
[0007] S1, the main controller obtains the global network view based on the sub-network information collected by each sub-controller, and then generates a directed graph G and a network reachable path matrix Ar;
[0008] S2, the main controller determines whether the source host and the destination host of the video stream to be transmitted are directly connected according to the directed graph G and the network reachable path matrix Ar, and directly forwards it if it is; otherwise, based on the M / M / N+1 queuing model and the priority of the video stream, the main controller forwards the video stream to be transmitted to the sub-controller with the lowest network reachable and load value in combination with the reachable path matrix Ar;
[0009] S3, for the video stream to be forwarded that is assigned to the sub-controller, construct multiple constraints for QoS guarantee of the video stream and obtain the minimum total transmission cost of the path;
[0010] S4. Using the deep reinforcement learning algorithm DDPG improved by RNN, the optimal path planning of the video stream to be forwarded is obtained by continuously iteratively training the current network and the target network, including the following sub-steps:
[0011] S401, perform DDPG algorithm mapping to build the current network and target network based on the Actor-Critic architecture;
[0012] S402, using the experience replay mechanism to store the current state, the action performed by the agent, the reward, and the next state information into the experience buffer at each time step, and then randomly sampling a batch of experience samples from the experience buffer to train the current network and the target network;
[0013] S403, returning to step S402, until all weight values of any path between the forwarding source node and the destination node of the video stream to be forwarded are generated, and the optimal path is obtained;
[0014] S5. Use the node minimum weight value function to determine the nodes passed by each path, and then combine the optimal path to generate a routing table and send it to the switch to complete the forwarding of the video stream to be forwarded.
[0015] Furthermore, the network status information and traffic information in the aforementioned step S1 include: the link connection status between each node, the link available bandwidth B, the transmission packet loss rate Lo, the end-to-end delay T d ;
[0016] The link available bandwidth B is calculated as follows:
[0017]
[0018] Among them, D r is the amount of data received by the port in the current time interval t, D t ′ is the amount of data sent by the port in the previous time interval t, B c is the channel bandwidth defined based on Shannon’s theory;
[0019] The transmission packet loss rate Lo is calculated according to the following formula:
[0020]
[0021] Among them, T1 and T2 represent the time it takes for the data packet to travel from the SDN controller to switches s1 and s2;
[0022] End-to-end delay T d Calculated as follows:
[0023]
[0024] Among them, D t_all is the total amount of data sent by the port in the current time interval t; D r is the amount of data received by the port in the current time interval t, and the difference between the two is the packet loss amount;
[0025] The subnetwork load value is calculated according to the following formula:
[0026] Bu=∑(Bu node +Bu link )
[0027] Among them node Indicates the node load value in the network, Bu node =∑(Bu link_in +Bu link_out ), Bu link_in is the input link load, Bu linkout is the output link load, Bu link is the load value of each link in the network,
[0028] The reachable path matrix Ar is represented by M N ×M NThe matrix representation of is as follows:
[0029]
[0030] If the weight Wt between two nodes is 0, there is no reachable path; if the weight Wt is R + , that is, a positive real number, then there is a reachable path for data packet transmission.
[0031] Furthermore, the aforementioned step S2 includes the following sub-steps:
[0032] S201, M / M / N+1 model parameter mapping: Based on the traditional M / M / c queuing theory, the data center network is modeled as an M / M / N+1 model. The first M represents the customer arrival process, which is a Poisson process; the second M represents the service time, which is also a Poisson process; N+1 refers to the number of service desks, that is, N sub-controllers and 1 main controller that handle the task of forwarding the video stream to be forwarded, indicating the number of customers served at the same time;
[0033] S202, collecting network information: monitoring the data packets in and out of the main controller interface to obtain the task arrival rate λ and the task service rate μ, where the task arrival rate λ is the number of video stream forwarding tasks arriving at the main controller within time t, i.e., the tasks to be processed; the task service rate μ is the number of tasks in which the main controller sends the video stream forwarding tasks to the sub-controller within time t and completes the video stream forwarding through the sub-controller, i.e., the tasks that have been processed;
[0034] S203, calculate the flow intensity ρ, as follows:
[0035]
[0036] If ρ<1, the system is stable; if ρ≥1, the system is unstable;
[0037] S204. Calculate the average queue length of the system as follows:
[0038]
[0039] Calculate the average waiting time of the system as follows:
[0040]
[0041] Among them, N+1 means the service station, that is, 1 main controller and N sub-controllers.
[0042] S205, define the task priority function Pri of the video stream to be forwarded, and calculate the task priority function Pri of the video stream to be forwarded i The forwarding priority value of the video stream l to be forwarded within t time i The priority function is as follows:
[0043]
[0044] Among them, g1 and g2 are weight coefficients and g1+g2=1, b bps Indicates bandwidth requirements;
[0045] S206, setting a priority queue of the video stream tasks to be forwarded based on the heap structure, storing the video stream forwarding tasks to be forwarded in the priority queue in order of priority, and processing them from the queue in order of priority from high to low by the main controller; calculating the priority of the new video stream forwarding task to be forwarded, and inserting the new video stream forwarding task to be forwarded into the queue; after the task is assigned to the sub-controller, the corresponding task is removed from the queue;
[0046] S207, setting task scheduling strategy: The main controller first filters out the sub-networks without reachable paths based on the network reachable path matrix Ar obtained in step S1, and then calculates the load weight Load of the corresponding sub-controller according to the priority of the task and the load of the sub-network. w , and selects a sub-controller to handle the task of forwarding the video stream to be forwarded through the load weight priority strategy. The load weight of the sub-controller is Load w , calculated as follows:
[0047]
[0048] Ar is the reachable path matrix representing the connection status of network nodes, and the elements in the matrix are either 0 or R. + ; is the weight coefficient, It is used to adjust the relative importance of load index and task priority in the weighted load value. Bu represents the sub-network load value.
[0049] Furthermore, in the aforementioned step S3, constructing multiple constraints for QoS guarantee of video streams includes the following sub-steps:
[0050] S301, calculate the end-to-end delay of any path p between nodes i and j, as follows:
[0051]
[0052] Among them, T t (v) T c (v) T q (v) are the transmission delay, propagation delay and waiting delay of a node v on path p;
[0053] S302: Calculate the available bandwidth of path p according to the link available bandwidth B, as follows:
[0054]
[0055] Where t is the preset time interval for the SDN controller to obtain global network information; D r is the amount of data received by the port in the current time interval t; D t ′ is the amount of data sent by the port in the previous time interval t, B c is the channel bandwidth defined based on Shannon’s theory;
[0056] S303, calculate the packet loss rate of data transmitted by path p:
[0057]
[0058] Among them, D t_all is the total amount of data sent by the port in the current time interval t; D r is the amount of data received by the port in the current time interval t, and the difference between the two is the packet loss amount;
[0059] S304, calculating the network energy consumption of the video stream to be forwarded through the path p, as follows:
[0060] E p =∑[(Po d +mD p *d p *r p )*t]
[0061] Among them, Po d That is, the power of the node device on path p; D p is the amount of video stream data transmitted on path p; m is the data transmission energy consumption coefficient, which is determined by the transmission mode, and d p is the transmission distance, r p is the transmission rate;
[0062] S305, calculate the minimum total transmission cost Cost of path p min (p), as follows:
[0063] Cost min (p) = [k1T d (p)-k2B(p)+k3Lo(p)+k4E p ]
[0064] Among them, T d (p) is the end-to-end transmission delay, B(p) is the available bandwidth, Lo(p) is the packet loss rate, and E p is the network energy consumption, k1, k2, k3, k4 are the weight coefficients of the link cost, and k1+k2+k3+k4=1.
[0065] Furthermore, the aforementioned step S401, performing DDPG algorithm mapping is specifically:
[0066] Define the state space S: node information, link information, network status;
[0067] Define action space A: Define action a as the weight value of the pth path between nodes i and j in video stream l Composition, that is
[0068]
[0069] Where K represents the number of all paths between nodes i and j;
[0070] Define the reward function r: The reward function r is defined as the negative correlation of the minimum cost of each link in the network, then
[0071] r=-Cost min (p) = [-k1T d (p)+k2B(p)-k3Lo(p)-k4E p ]
[0072] Among them, T d (p), B(p), Lo(p) represent the end-to-end delay, available bandwidth, and packet loss rate of link p between nodes i and j; k1, k2, k3, k4 are the weight coefficients of link cost, and k1+k2+k3+k4=1; construct the current network and target network based on the Actor-Critic architecture, specifically: the Actor current network is used to update the strategy parameter α, the Critic current network is used to update the strategy parameter β, the target network is used to backup the current network, E p It indicates calculating the network energy consumption of the video stream to be forwarded through path p.
[0073] Furthermore, the aforementioned step S402 includes the following sub-steps:
[0074] S402-1. Initialize the DDPG neural network model: define the deep neural network structure, learning rate φ, discount factor μ, and exploration rate ε;
[0075] S402-2, Initialize the experience pool: Build an experience playback buffer to store the experience gained by the agent's interaction with the environment, including the state s t 、Action a t , Reward t , the next state s t+1 ;
[0076] S402-3. Agent interacts with the environment: obtains current network status information t , Actor current network according to the network status st Generate action a t , which is the weight value of the video stream transmission path p, representing the selection of path p for data transmission, where a t =π(s|α), π represents the policy function, and π(s|α) represents the action value function selected by the policy network according to the current parameter α in a given state s;
[0077] S402-4. Set the Actor's current network status s t and action a t Input to the environment and critic current network, obtain the current network Q value, and perform action a t The corresponding reward value obtained and the next state s t+1 , get reward r t :
[0078] r t =-Cost min (p) = [-k1T d (p)+k2B(p)-k3Lo(p)-k4E p ]
[0079] Q(s t ,a t |β)=f β (s t ,a t |β)
[0080] Where T d (p), B(p), Lo(p) represent the end-to-end delay, available bandwidth, and packet loss rate of link p between nodes i and j; k1, k2, k3, k4 are the weight coefficients of link cost; f β Represents the output function of the current network, which is a function determined by the deep neural network during initialization;
[0081] S402-5, the empirical data (s t ,a t ,r t ,s t+1 ) is stored in the experience replay buffer;
[0082] S402-6. Randomly sample a batch of experience data from the experience playback buffer As a sample, in the current state The critic target network is based on the action Calculate the corresponding target Q value, expressed as Q′:
[0083]
[0084] Among them, γ is a decay coefficient used to balance the importance of current rewards and future rewards;
[0085] S402-7, update the current network parameter β of Critic by minimizing the loss function, that is
[0086]
[0087] Update the Actor's current network parameter α through the policy gradient function, that is
[0088]
[0089] in, represents the performance indicator of the strategy;
[0090] S402-8. Return to execute S402-3 until all weight values of any path between the video stream forwarding source node and the destination node are generated and stored in the experience playback buffer.
[0091] Furthermore, the node minimum weight value function in the aforementioned step S5 is as follows:
[0092]
[0093] in, Indicates whether the path p planned between node i and node j contains node z. The value is 1 or 0. When the value is 1, node z is included. When the value is 0, node z is not included.
[0094] Compared with the prior art, the beneficial technical effects of the present invention using the above technical solution are as follows:
[0095] 1. Distributed SDN network controller architecture: By dividing the data plane switch into multiple Fat-Tree structure areas and deploying a sub-controller in each area, distributed deployment of network control can be achieved. This can improve the scalability and fault tolerance of the network and reduce the impact of single point failures.
[0096] 2. Get a global view of the network: The main controller can get a global view of the network by obtaining the network status information of the corresponding areas of all sub-controllers. This can better understand the topology, load conditions and reachable paths of the entire network, and provide more accurate information for task scheduling and routing optimization.
[0097] 3. Task scheduling based on queuing model: The main controller assigns the forwarding task of multimedia data stream to the sub-controller through the queuing model. By considering factors such as the urgency of the task and the waiting time in the queue, the task can be optimally scheduled and the delay of the task can be reduced.
[0098] 4. Improved deep reinforcement learning algorithm DDPG using RNN: The neural network used in the traditional DDPG algorithm usually uses a fully connected layer as the main structure of the Actor and Critic network. The fully connected layer can handle the nonlinear relationship between input and output, but its ability to process the timing information of multimedia video streams is limited. The algorithm has poor scalability and may cause the loss of video stream timing information, which may affect the decision-making and optimization of QoS guarantee. The present invention innovatively uses RNN as the DDPG neural network structure. The DDPG algorithm can better process the timing information of multimedia video streams and improve the accuracy of decision-making and optimization of QoS guarantee. RNN can capture the long-term dependencies of video streams and has the advantage of parameter sharing, making the algorithm more scalable when processing large-scale video stream data. BRIEF DESCRIPTION OF THE DRAWINGS
[0099] Figure 1 This is a data center network model diagram of the multi-controller SDN architecture of the present invention.
[0100] Figure 2 The figure is an overall flow chart of the data center network video stream QoS guarantee method of the present invention.
[0101] Figure 3 This is a model diagram of the deep reinforcement learning algorithm of the present invention. DETAILED DESCRIPTION
[0102] In order to better understand the technical content of the present invention, specific embodiments are given and described as follows in conjunction with the accompanying drawings.
[0103] Various aspects of the invention are described herein with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the invention are not limited to those described in the accompanying drawings. It should be understood that the invention is implemented by any of the various concepts and embodiments described above, as well as the concepts and embodiments described in detail below, because the concepts and embodiments disclosed in the invention are not limited to any implementation. In addition, some aspects disclosed in the invention may be used alone or in any appropriate combination with other aspects disclosed in the invention.
[0104] like Figure 1 As shown, the application scenario of the present invention is as follows: the data center network is divided into multiple Fat-tree topology areas. The network model includes 1 SDN main controller, N sub-controllers and N Fat-tree topology areas. Among them, the main controller is connected to N sub-controllers, each sub-controller is connected to 1 Fat-tree area, and each data center network contains multiple switches and hosts.
[0105] like Figure 2As shown, the present invention provides a data center network video stream QoS guarantee method based on multi-controller SDN, characterized in that it includes the following steps:
[0106] S1. Each sub-controller of the SDN control plane periodically obtains the status information and traffic information of the corresponding sub-network according to time t, including the link connection status between each node, the link available bandwidth B, the transmission packet loss rate Lo, and the end-to-end delay T d The sub-controllers send the corresponding sub-network status information and network traffic information to the main controller, and then the main controller obtains the global network view and generates the directed graph G and the network reachable path matrix Ar. The specific steps include:
[0107] S101, monitoring of link available bandwidth: first set a fixed time interval t, and then use the OpenFlow protocol to periodically monitor the ports of each switching device in the network to obtain statistical information of each port. The statistical information includes the amount of received data and the amount of sent data of each port, and then calculate the available bandwidth of the link. The available bandwidth is calculated as follows:
[0108]
[0109] Among them, D r is the amount of data received by the port in the current time interval t, D t ′ is the amount of data sent by the port in the previous time interval t, B c is the channel bandwidth defined based on Shannon's theory.
[0110] S102, monitoring of link delay: When the SDN network transmits data, the controller will send a Packet-Out message to instruct switch s1 to send the data flow to switch s2. However, when switch s2 does not have a flow table entry that can handle the data flow, it will send a Packet-In message to the SDN controller in response. Based on the sending time and receiving time, the SDN controller can calculate the total round-trip time T of the message on this path (sent from the SDN controller to switch s1, then to switch s2, and finally from switch s2 back to the controller) tr ;
[0111] The SDN controller then sends echo-request messages to s1 and s2 respectively, and switches s1 and s2 then send echo-reply messages to the SDN controller respectively. The SDN controller obtains the time T1 and T2 from the SDN controller to switches s1 and s2 based on the time difference between sending the echo-request message and receiving the echo-reply message, and then calculates the end-to-end delay T between switches s1 and s2.d :
[0112]
[0113] S103, link packet loss rate monitoring: The packet loss rate is the ratio of the number of data packets lost during the transmission process to the number of data packets sent. The number of lost data packets is the number of data packets that failed to successfully reach the destination during the link transmission process, and the number of data packets sent is the total number of data packets sent on the link.
[0114]
[0115] Among them, D t_all is the total amount of data sent by the port in the current time interval t; D r is the amount of data received by the port in the current time interval t, and the difference between the two is the packet loss amount.
[0116] S104, sub-network load value calculation: define the sub-network load value Bu within time t as the load value Bu of each link in the network link The node load value Bu in the network node For the link load of the sub-network, according to the basic principle of network communication, the data packet can be successfully transmitted only when the transmission rate of the network link is greater than or equal to the length of the data packet. Therefore, the link load Bu can be calculated based on the available bandwidth of the network link and the transmission packet loss rate. link ,Right now
[0117]
[0118] Where B is the link available bandwidth and Lo is the transmission packet loss rate. This formula shows that if the link available bandwidth B is larger or the transmission packet loss rate Lo is smaller, the link load is lower. The same is true in reverse.
[0119] The node load of a subnetwork includes the input load and output load of the node. The input load is the sum of the loads of all input links connected to the node, and the output load is the sum of the loads of all output links connected to the node. node Defined as the input link load Bu connected to it link_in and output link load Bu link_out sum. Right now
[0120] Bu node =∑(Bu link_in +Bu link_out )
[0121] Then the load value of the subnetwork in time t is
[0122] Bu=∑(Bu node +Bulink )
[0123] S105, each sub-controller in the time period t sends the corresponding sub-network traffic information and network status information obtained to the main controller, and the main controller then obtains the global network view. The network is abstracted into a directed graph G using graph theory algorithms. The directed graph G contains M N The vertices correspond to the set of M switch devices in all N sub-networks in the data center network.
[0124] The connection between switch nodes in the network is represented as an edge in the directed graph G, and the initial weight Wt of the edge is represented by the number of hops between nodes. N ×M N The matrix Ar represents the network path reachability, that is,
[0125]
[0126] If the weight Wt between two nodes is 0, there is no reachable path; if the weight Wt is R + , that is, a positive real number, then there is a reachable path for data packet transmission.
[0127] S2: The main controller forwards any video stream l to be forwarded in the traffic set L. i , according to the directed graph G and the network reachable path matrix Ar, determine whether the source host and the destination host of the video stream to be transmitted are directly connected. If yes, forward it directly; otherwise, based on the M / M / N+1 queuing model and the priority of the video stream, combined with the reachable path matrix Ar, forward the video stream to be transmitted to the sub-controller with the lowest network reachable and load value. Among them, the vector set L = {l i |l i ∈R di ,i=1,2,3,…,n}, n is the number of traffic to be transmitted in the network within time t, and di is the representation dimension of the traffic.
[0128] S201, M / M / N+1 model parameter mapping: Based on the traditional M / M / c queuing theory, the data center network is modeled as an M / M / N+1 model. The first M represents that the customer arrival process is a Poisson process, that is, the number of customers arriving within time t is random; the second M represents that the service time is also a Poisson process, that is, the service time of each customer is also random. N+1 refers to the number of service desks, that is, N sub-controllers and 1 main controller that handle the task of forwarding the video stream to be forwarded, indicating the number of customers that can be served at the same time;
[0129] S202, collecting network information: monitoring the data packets in and out of the main controller interface to obtain the task arrival rate λ and the task service rate μ, where the task arrival rate λ is the number of video stream forwarding tasks arriving at the main controller within time t, i.e., the tasks to be processed; the task service rate μ is the number of tasks in which the main controller sends the video stream forwarding tasks to the sub-controller within time t and completes the video stream forwarding through the sub-controller, i.e., the tasks that have been processed;
[0130] S203, calculate the flow intensity ρ, as follows:
[0131]
[0132] The stability of the system can be judged according to the value of flow intensity. If ρ<1, the system is stable; if ρ≥1, the system is unstable.
[0133] S204. Calculate the average queue length of the system as follows:
[0134]
[0135] Calculate the average waiting time of the system as follows:
[0136]
[0137] Among them, N+1 represents a service desk, i.e., 1 main controller and N sub-controllers. The average queue length and average waiting time reflect the average length of the queue that customers wait in the system and the average waiting time for service. In the scenario of the present invention, the shorter the average queue length and average waiting time of the customer, i.e., the video stream forwarding task, the more efficient the video stream forwarding task processing is, indicating that the network response is faster, the video stream delay is smaller, and the network performance is better.
[0138] S205, define the task priority function Pri of the video stream to be forwarded, and calculate the task priority function Pri of the video stream to be forwarded i The forwarding priority value of the video stream l to be forwarded within t time i The priority function is as follows:
[0139]
[0140] Among them, g1 and g2 are weight coefficients and g1+g2=1, b bps Indicates bandwidth demand. Its actual physical meaning is the bit rate of the video stream, that is, the amount of video data transmitted per second. The setting of the priority function takes into account the deadline t_end of the video stream transmission task and the bandwidth demand b bpsThe closer the current time t_cur is to the deadline of video stream transmission, the less remaining transmission time is, and the higher the data transmission priority is; the higher the bandwidth requirement of video stream transmission is, the more network resources are needed. In order to ensure the efficiency and quality of video stream transmission, the lower the forwarding priority is.
[0141] S206. A priority queue for tasks of video streams to be forwarded is set based on a heap structure. Tasks of forwarding video streams to be forwarded are stored in the priority queue in order of priority. The main controller processes tasks from the queue in order of priority from high to low. For new tasks of forwarding video streams to be forwarded, the priority of the tasks is calculated, and the new tasks of forwarding video streams to be forwarded are inserted into the queue according to the priority. After the tasks are assigned to the sub-controllers, the corresponding tasks are removed from the queue to ensure that, under limited resource conditions, video streams with more urgent deadlines and smaller bandwidth requirements are given priority, thereby improving system efficiency and user experience.
[0142] S207, setting task scheduling strategy: The main controller first filters out the sub-networks without reachable paths based on the network reachable paths Ar obtained in step S1, and then calculates the load weight Load of the corresponding sub-controller according to the priority of the task and the load of the sub-network. w , and selects a sub-controller to handle the task of forwarding the video stream to be forwarded through the load weight priority strategy. The load weight of the sub-controller is Load w , calculated as follows:
[0143]
[0144] Ar is the reachable path representing the connection status of network nodes, which is represented as a matrix. The elements in the matrix are either 0 or R. + ; is the weight coefficient, It is used to adjust the relative importance of load index and task priority in the weighted load value. Bu represents the sub-network load value.
[0145] After completing step S2, the main controller selects a sub-controller with a smaller load weight to forward the video stream through reasonable task scheduling of the M / M / N+1 queuing model. The smaller the sub-controller load weight, the lighter the load of the corresponding sub-network, which can improve the transmission quality of the video stream, avoid the problems of increased delay and packet loss caused by the heavily loaded sub-network to the video stream transmission, and effectively improve the utilization efficiency of network resources and the overall performance of the system, creating conditions for the realization of video stream QoS guarantee described later.
[0146] S3. For the video streams to be forwarded that are assigned to the sub-controller, multiple constraints for QoS protection of the video streams are constructed to obtain the minimum total transmission cost of the path. Video streams have extremely high QoS standards and requirements in terms of transmission bandwidth, latency, jitter, etc. In order to achieve QoS protection for video stream transmission in the data center network, multiple constraints for QoS protection of video streams are constructed, and these constraints are combined with the DDPG deep reinforcement learning algorithm deployed in the sub-controller to generate the optimal path that can achieve QoS protection for video stream transmission.
[0147] Constructing multiple constraints for QoS guarantee of video streams includes the following sub-steps:
[0148] S301, calculate the end-to-end delay of any path p between nodes i and j, as follows:
[0149]
[0150] Among them, T t (v) T c (v) T q (v) are the transmission delay, propagation delay and waiting delay of a node v on path p, respectively; the transmission delay depends on the size of the data packet and the transmission capacity of the link; the propagation delay depends on the physical distance of the link and the signal propagation speed; the waiting delay required for the data packet to wait for transmission in the queue of the network device depends on the network congestion situation.
[0151] S302: Calculate the available bandwidth of path p according to the link available bandwidth B, as follows:
[0152]
[0153] Where t is the preset time interval for the SDN controller to obtain global network information; D r is the amount of data received by the port in the current time interval t; D t ′ is the amount of data sent by the port in the previous time interval t, B c is the channel bandwidth defined based on Shannon’s theory;
[0154] S303, calculate the packet loss rate of data transmitted by path p:
[0155]
[0156] Among them, D t_all is the total amount of data sent by the port in the current time interval t; D ris the amount of data received by the port in the current time interval t, and the difference between the two is the packet loss; the packet loss rate of the data transmitted on path p is the ratio of the number of data packets lost during the transmission process to the number of data packets sent. The number of lost data packets is the number of data packets that failed to successfully reach the destination during the link transmission process, and the number of data packets sent is the total number of data packets sent on the link.
[0157] S304, calculating the network energy consumption of the video stream to be forwarded through the path p, as follows:
[0158] E p =∑[(Po d +mD p *d p ·r p )*t]
[0159] Among them, Po d That is, the power of the node device on path p; D p is the amount of video stream data transmitted on path p; m is the data transmission energy consumption coefficient, which is determined by the transmission mode, and d p is the transmission distance, r p is the transmission rate; the network energy consumption of video stream transmitted through path p is composed of the node device energy consumption and data transmission energy consumption on path p. The node device energy consumption can be obtained by monitoring the device according to factors such as the type and scale of the device; the data transmission energy consumption is related to the transmission distance d p , transmission rate r p It is related to factors such as transmission method.
[0160] S305, calculate the minimum total transmission cost Cost of path p min (p), as follows:
[0161] Cost min (p) = [k1T d (p)-k2B(p)+k3Lo(p)+k4E p ]
[0162] Among them, T d (p) is the end-to-end transmission delay, B(p) is the available bandwidth, Lo(p) is the packet loss rate, E p is the network energy consumption, k1, k2, k3, k4 are the weight coefficients of the link cost, and k1+k2+k3+k4=1.
[0163] The minimum cost of data transmission in the present invention is min (p) Taking into account the combined effects of factors such as link bandwidth, latency, packet loss rate, and network energy consumption, the minimum cost Cost is controlled. min(p) The best performance of network transmission can be achieved. When the total cost of network transmission is minimized, network congestion can be effectively avoided, thus transforming the complex and changeable routing problem based on SDN network traffic into an optimization problem.
[0164] S4. Using the deep reinforcement learning algorithm DDPG improved by RNN, the optimal path planning of the video stream to be forwarded is obtained by continuously iteratively training the current network and the target network. The DDPG algorithm model is shown in the figure Figure 3 As shown, in this embodiment, the DDPG algorithm consists of a current network and a target network based on the AC (Actor-Critic) architecture:
[0165] The present invention makes innovative improvements on the basis of the traditional DDPG algorithm, and improves the neural network structure in the DDPG algorithm to RNN. RNN can capture the timing information of the video stream and keep the transmission and memory of information in time, and can more accurately learn the decision strategy and state value function of the video stream QoS guarantee, thereby improving the performance and effect of the algorithm. Specifically, step S4 includes the following sub-steps:
[0166] S401, perform DDPG algorithm mapping:
[0167] Define the state space S: node information, link information, network status;
[0168] Define action space A: Define action a as the weight value of the pth path between nodes i and j in video stream l Composition, that is
[0169]
[0170] Where K represents the number of all paths between nodes i and j; the initial weight values of the K paths are represented by the element value Wt in the reachable path matrix Ar. Define the reward function r: In order to select the optimal path that meets the service QoS requirements and avoid the congestion problem that often occurs in data centers, the video stream transmission optimization goal of the present invention is to minimize the sum of the weights of the links through which the data stream is transmitted. At the same time, the goal of the DDPG neural network is to output the maximum Q value corresponding to the action a that maximizes the reward function r. Therefore, the reward function r is defined as the negative correlation of the minimum cost of each link in the network:
[0171] r=-Cost min (p) = [-k1T d (p)+k2B(p)-k3Lo(p)-k4E p ]
[0172] Among them, T dE(p), B(p), and Lo(p) represent the end-to-end delay, available bandwidth, and packet loss rate of link p between nodes i and j; k1, k2, k3, and k4 are the weight coefficients of the link cost, and k1+k2+k3+k4=1; p It indicates calculating the network energy consumption of the video stream to be forwarded through path p.
[0173] Construct the current network and target network based on the Actor-Critic architecture; Actor current network: The network responsible for iteratively updating the policy parameter α. It receives the current state s of the environment as input and outputs the action a of each node, that is, the weight value of the node. This network is used to interact with the environment and generate the next state s t+1 and the corresponding reward r. Critic current network: The network responsible for iterative updates of the value parameter β. It receives the current state s of the environment and the action a output by the Actor current network as input, and outputs the Q value corresponding to the action a.
[0174] Target network: It is a backup network of the current network, used to provide stability and avoid the impact of over-update during training. The network parameters are α′ and β′, which are copied from the current network regularly. The target network receives the current state s of the environment as input and outputs the action a′ and the corresponding Q′ value.
[0175] In this embodiment, the experience replay mechanism adopted by the DDPG algorithm is a method of experience storage and random sampling for training the DDPG algorithm. At each time step, the algorithm stores information such as the current state, the selected action, the reward obtained, the next state, etc. in the experience buffer. Then, a batch of experience samples are randomly sampled from the experience buffer for training the current network and the target network. By continuously iterating the training of the current network and the target network, the DDPG algorithm can learn the optimal strategy and perform optimal path planning for the video stream.
[0176] The sub-controller corresponding to each sub-network in the data center network of the present invention is regarded as an intelligent agent to interact with the environment, and the video stream routing optimization problem is modeled as a Markov decision process (MDP) with a state space, a behavior space and an instantaneous reward function.
[0177] S402, using the experience playback mechanism to store the current state, the action performed by the agent, the reward, and the next state information in the experience buffer at each time step, and then randomly sampling a batch of experience samples from the experience buffer to train the current network and the target network; specifically including the following sub-steps:
[0178] S402-1. Initialize the DDPG neural network model: define the deep neural network structure, learning rate φ, discount factor μ, and exploration rate ε;
[0179] S402-2, Initialize the experience pool: Build an experience playback buffer to store the experience gained by the agent's interaction with the environment, including the state s t 、Action a t , Reward t , the next state s t+1 , ensuring the stability of the DDPG model;
[0180] S402-3. Agent interacts with the environment: obtains current network status information t , Actor current network according to the network status s t Generate action a t , which is the weight value of the video stream transmission path p, represents the selection of path p for data transmission, where,
[0181] a t =π(s|α)
[0182] Among them, π represents the policy function, and π(s|α) represents the action value function selected by the policy network based on the current parameter α in a given state s.
[0183] S402-4. Set the Actor's current network status s t and action a t Input to the environment and critic current network, obtain the current network Q value, and perform action a t The corresponding reward value obtained and the next state s t+1 , get reward r t :
[0184] r t =-Cost min (p) = [-k1T d (p)+k2B(p)-k3Lo(p)-k4E p ]
[0185] Q(s t ,a t |β)=f β (s t ,a t |β)
[0186] Where T d (p), B(p), Lo(p) represent the end-to-end delay, available bandwidth, and packet loss rate of link p between nodes i and j; k1, k2, k3, k4 are the weight coefficients of link cost; f β Represents the output function of the current network, which is a function determined by the deep neural network during initialization;
[0187] S402-5, the empirical data (st ,a t ,r t ,s t+1 ) is stored in the experience replay buffer;
[0188] S402-6. Randomly sample a batch of experience data from the experience playback buffer As a sample, in the current state The critic target network is based on the action Calculate the corresponding target Q value, expressed as Q′:
[0189]
[0190] Among them, γ is a decay coefficient used to balance the importance of current rewards and future rewards;
[0191] S402-7, update the current network parameter β of Critic by minimizing the loss function, that is
[0192]
[0193] Update the Actor's current network parameter α through the policy gradient function, that is
[0194]
[0195] in, represents the performance indicator of the strategy;
[0196] S402-8. Return to execute S402-3 until all weight values of any path between the video stream forwarding source node and the destination node are generated and stored in the experience playback buffer.
[0197] S403, returning to step S402, until all weight values of any path between the forwarding source node and the destination node of the video stream to be forwarded are generated, and the optimal path is obtained;
[0198] S5, using the node minimum weight function We min , determine the nodes passed by each path, and then combine the optimal path to facilitate the sub-controller to generate flow table entries and send them to the switch. The nodes corresponding to the generated optimal path configure the network routing protocol and interface. The transmission node information corresponding to the optimal path is configured into a routing table and sent to the switch. The switch forwards data according to the sent path information, thereby completing the QoS guarantee transmission of the forwarded video stream.
[0199] Although the present invention has been described above with preferred embodiments, it is not intended to limit the present invention. A person skilled in the art of the present invention may make various modifications and improvements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the definition of the claims.
Claims
1. A data center network video stream QoS guarantee method based on multi-controller SDN, characterized in that: The steps include: S1, the main controller obtains the global network view based on the sub-network information collected by each sub-controller, and then generates a directed graph G and a network reachable path matrix Ar; S2, the main controller determines whether the source host and the destination host of the video stream to be transmitted are directly connected according to the directed graph G and the network reachable path matrix Ar, and directly forwards if so; Otherwise, based on the M / M / N+1 queuing model and the priority of the video stream, combined with the reachable path matrix Ar, the video stream to be transmitted is forwarded to the sub-controller that is reachable in the network and has the lowest load value; S3, for the video stream to be forwarded that is assigned to the sub-controller, construct multiple constraints for QoS guarantee of the video stream and obtain the minimum total transmission cost of the path; S4. Using the deep reinforcement learning algorithm DDPG improved by RNN, the optimal path planning of the video stream to be forwarded is obtained by continuously iteratively training the current network and the target network, including the following sub-steps: S401, perform DDPG algorithm mapping, and build the current network and target network based on the Actor-Critic architecture; the specific steps of performing DDPG algorithm mapping are: Define the state space S: node information, link information, network status; Define action space A: Define action a as the weight value of the pth path between nodes i and j in video stream l Composition, that is Where K represents the number of all paths between nodes i and j; Define the reward function r: The reward function r is defined as the negative correlation of the minimum cost of each link in the network, then r=-Cost min (p)=[-k1T d (p)+k2B(p)-k3Lo(p)-k4E p ] Among them, T d (p), B(p), Lo(p) represent the end-to-end delay, available bandwidth, and packet loss rate of link p between nodes i and j; k1, k2, k3, k4 are the weight coefficients of link cost, and k1+k2+k3+k4=1; Construct the current network and target network based on the Actor-Critic architecture. Specifically, the Actor current network is used to update the strategy parameter α, the Critic current network is used to update the strategy parameter β, and the target network is used to back up the current network. p It represents calculating the network energy consumption of the video stream to be forwarded through the path p; S402, using the experience playback mechanism to store the current state, the action performed by the agent, the reward, and the next state information in the experience buffer at each time step, and then randomly sampling a batch of experience samples from the experience buffer to train the current network and the target network; step S402 includes the following sub-steps S402-1 to S402-8: S402-1. Initialize the DDPG neural network model: define the deep neural network structure, learning rate φ, discount factor μ, and exploration rate ε; S402-2, Initialize the experience pool: Build an experience playback buffer to store the experience gained by the agent's interaction with the environment, including the state s t 、Action a t , Reward t , the next state s t+1 ; S402-3. Agent interacts with the environment: obtains current network status information t , Actor current network according to the network status s t Generate action a t , which is the weight value of the video stream transmission path p, representing the selection of path p for data transmission, where a t =π(s|α), π represents the policy function, and π(s|α) represents the action value function selected by the policy network according to the current parameter α in a given state s; S402-4. Set the Actor's current network status s t and action a t Input to the environment and critic current network, obtain the current network Q value, and perform action a t The corresponding reward value obtained and the next state s t+1 , get reward r t : r t =-Cost min (p)=[-k1T d (p)+k2B(p)-k3Lo(p)-k4E p ] Q(s t ,a t |b)=f β (s t ,a t |b) Where T d (p), B(p), Lo(p) represent the end-to-end delay, available bandwidth, and packet loss rate of link p between nodes i and j; k1, k2, k3, k4 are the weight coefficients of link cost; f β Represents the output function of the current network, which is a function determined by the deep neural network during initialization; S402-5, the empirical data (s t ,a t ,r t ,s t+1 ) is stored in the experience replay buffer; S402-6. Randomly sample a batch of experience data from the experience playback buffer As a sample, in the current state The critic target network is based on the action Calculate the corresponding target Q value, expressed as Q′: Among them, γ is a decay coefficient used to balance the importance of current rewards and future rewards; S402-7, update the current network parameter β of Critic by minimizing the loss function, that is Update the Actor's current network parameter α through the policy gradient function, that is in, represents the performance indicator of the strategy; S402-8, return to execute S402-3, until all weight values of any path between the video stream forwarding source node and the destination node are generated and stored in the experience playback buffer; S403, returning to step S402, until all weight values of any path between the forwarding source node and the destination node of the video stream to be forwarded are generated, and the optimal path is obtained; S5. Use the node minimum weight value function to determine the nodes passed by each path, and then combine the optimal path to generate a routing table and send it to the switch to complete the forwarding of the video stream to be forwarded.
2. According to claim 1, a data center network video stream QoS guarantee method based on multi-controller SDN is characterized in that: The network status information and traffic information in step S1 include: the link connection status between each node, the link available bandwidth B, the transmission packet loss rate Lo, the end-to-end delay T d ; The link available bandwidth B is calculated as follows: Among them, D r is the amount of data received by the port in the current time interval t, D′ t is the amount of data sent by the port in the previous time interval t, B c is the channel bandwidth defined based on Shannon’s theory; The transmission packet loss rate Lo is calculated according to the following formula: Among them, T1 and T2 represent the time it takes for the data packet to travel from the SDN controller to switches s1 and s2; End-to-end delay T d Calculated as follows: Among them, D t_all is the total amount of data sent by the port in the current time interval t; D r is the amount of data received by the port in the current time interval t, and the difference between the two is the packet loss amount; The subnetwork load value is calculated according to the following formula: This=∑(This node +This link ) Among them node Indicates the node load value in the network, Bu node =∑(Bu link_in +Bu link_0ut ), Bu link_in is the input link load, Bu link_out is the output link load, Bu link is the load value of each link in the network, The reachable path matrix Ar is represented by M N ×M N The matrix representation of is as follows: If the weight Wt between two nodes is 0, there is no reachable path; if the weight Wt is R + , that is, a positive real number, then there is a reachable path for data packet transmission.
3. According to claim 2, a data center network video stream QoS guarantee method based on multi-controller SDN is characterized in that: Step S2 includes the following sub-steps: S201, M / M / N+1 model parameter mapping: Based on the traditional M / M / c queuing theory, the data center network is modeled as an M / M / N+1 model. The first M represents the Poisson process of customer arrival. The second M represents the service time, which is also a Poisson process; N+1 refers to the number of service stations, that is, N sub-controllers and 1 main controller that handle the task of forwarding the video stream to be forwarded, indicating the number of customers served at the same time; S202, collecting network information: monitoring the data packets in and out of the main controller interface to obtain the task arrival rate λ and the task service rate μ, where the task arrival rate λ is the number of video stream forwarding tasks arriving at the main controller within time t, i.e., the tasks to be processed; the task service rate μ is the number of tasks in which the main controller sends the video stream forwarding tasks to the sub-controller within time t and completes the video stream forwarding through the sub-controller, i.e., the tasks that have been processed; S203, calculate the flow intensity v, as follows: If ρ<1, the system is stable; if ρ≥1, the system is unstable; S204. Calculate the average queue length of the system as follows: Calculate the average waiting time of the system as follows: Among them, N+1 means the service station, that is, 1 main controller and N sub-controllers. S205, define the task priority function Pri of the video stream to be forwarded, and calculate the task priority function Pri of the video stream to be forwarded i The forwarding priority value of the video stream l to be forwarded within t time i The priority function is as follows: Among them, g1 and g2 are weight coefficients and g1+g2=1, b bps Indicates bandwidth requirements; S206, setting a priority queue of the video stream tasks to be forwarded based on the heap structure, storing the video stream forwarding tasks to be forwarded in the priority queue in order of priority, and processing them from the queue in order of priority from high to low by the main controller; calculating the priority of the new video stream forwarding task to be forwarded, and inserting the new video stream forwarding task to be forwarded into the queue; after the task is assigned to the sub-controller, the corresponding task is removed from the queue; S207, setting task scheduling strategy: The main controller first filters out the sub-networks without reachable paths based on the network reachable path matrix Ar obtained in step S1, and then calculates the load weight Load of the corresponding sub-controller according to the priority of the task and the load of the sub-network. w , and selects a sub-controller to handle the task of forwarding the video stream to be forwarded through the load weight priority strategy. The load weight of the sub-controller is Load w , calculated as follows: Ar is the reachable path matrix representing the connection status of network nodes, and the elements in the matrix are either 0 or R. + ; is the weight coefficient, It is used to adjust the relative importance of load index and task priority in the weighted load value. Bu represents the sub-network load value.
4. According to the method of claim 1, the method is characterized in that: In step S3, constructing multiple constraints for QoS guarantee of video streams includes the following sub-steps: S301, calculate the end-to-end delay of any path p between nodes i and j, as follows: Among them, T t (v) T c (v) T q (v) are the transmission delay, propagation delay and waiting delay of a node v on path p; S302: Calculate the available bandwidth of path p according to the link available bandwidth B, as follows: Where t is the preset time interval for the SDN controller to obtain global network information; D r is the amount of data received by the port in the current time interval t; D t ′ is the amount of data sent by the port in the previous time interval t, B c is the channel bandwidth defined based on Shannon’s theory; S303, calculate the packet loss rate of data transmitted by path p: Among them, D t_all is the total amount of data sent by the port in the current time interval t; D r is the amount of data received by the port in the current time interval t, and the difference between the two is the packet loss amount; S304, calculating the network energy consumption of the video stream to be forwarded through the path p, as follows: E p =∑,(Po d +mD p *d p *r p )*t- Among them, Po d That is, the power of the node device on path p; D p is the amount of video stream data transmitted on path p; m is the data transmission energy consumption coefficient, which is determined by the transmission mode, and d p is the transmission distance, r p is the transmission rate; S305, calculate the minimum total transmission cost Cost of path p min (p), as follows: Cost min (p)=[k1T d (p)-k2B(p)+k3Lo(p)+k4E p ] Among them, T d (p) is the end-to-end transmission delay, B(p) is the available bandwidth, Lo(p) is the packet loss rate, and E p is the network energy consumption, k1, k2, k3, k4 are the weight coefficients of the link cost, and k1+k2+k3+k4=1.
5. According to the method of claim 1, the method is characterized in that: The minimum node weight function in step S5 is as follows: in, Indicates whether the path p planned between node i and node j contains node z. The value is 1 or 0. When the value is 1, node z is included. When the value is 0, node z is not included.
Citation Information
Cited By
SDN-based aviation multi-source data transmission priority scheduling method
CN121151329A
SDN-based priority scheduling method for multi-source data transmission in aviation
CN121151329B
