A load balancing method driven by deep reinforcement learning

Through the load balancing method driven by deep reinforcement learning, combined with the graph convolutional neural network and the recurrent neural network, the routing path selection in the SDN data center network is optimized, solving the problems of slow response and large calculation amount in the existing technology, and achieving More efficient load balancing and network stability.

CN115102906BInactive Publication Date: 2024-09-13UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210700058.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-20
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In SDN data center networks, existing load balancing algorithms have problems such as slow response and heavy calculation, making it difficult to effectively manage network traffic.

Method used

A load balancing method driven by deep reinforcement learning is used to construct a BRGCN network model by obtaining network topology, switch characteristics, and data link characteristics. The model is trained using a combination of graph convolutional neural network and recurrent neural network to optimize routing path selection.

Benefits of technology

It improves the decision-making performance of the model, can make more reasonable routing choices based on network status and topology relationships, optimizes link utilization, reduces delay and packet loss rates, and improves the long-term stability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115102906B
    Figure CN115102906B
Patent Text Reader

Abstract

The present invention discloses a load balancing method driven by deep reinforcement learning, including obtaining a network topology, switch features and data link features; generating node-wise graph features according to the network topology and switch features; generating edge-wise graph features according to the network topology and data link features; constructing and training a BRGCN network model, and using the trained BRGCN network model to obtain a routing path according to the node-wise graph features and the edge-wise graph features. The present invention combines deep reinforcement learning with a graph convolutional neural network and a recurrent neural network and applies them to a load balancing method, so that the model can not only make decisions based on state information, but also consider the structure and topological relationship of the network as decision-making factors, and has the ability to process timing information, thereby improving the performance of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of SDN data center network optimization, and in particular to a load balancing method driven by deep reinforcement learning. Background Art

[0002] Since the beginning of the 21st century, the development of information technology has become faster and faster. The number of Internet users around the world has increased significantly, and the amount of data in the network has also exploded. The network world has entered a new era. Especially in the past 10 years, more and more users have generated more and more large-scale information data through various behaviors on the Internet, such as voice, text, and pictures. The development of the Internet and the increase in Internet users have also spawned many large Internet companies, which provide users with various application services. The traffic and resources consumed by running these services are inseparable from the support of data center networks. There are multiple paths between different pairs of hosts in the data center network. Due to the dynamic nature of the data center network, the uncertainty is relatively large. The load balancing algorithm selects the appropriate path to route the flow in the network, so that the data link load of the network is balanced and the stability of the network is guaranteed.

[0003] In the SDN architecture, the controller can detect network information in real time. When SDN is deployed in the data center network, the controller can manage the network according to the global information of the network. Thanks to this feature of SDN and the multi-path structure of the data center network, the controller can select the appropriate path routing for the traffic according to the global state of the network. Therefore, after SDN was introduced into the data center network, the load balancing algorithm has greater room for improvement. However, due to the overhead of calculating the routing path and the dynamic nature of network traffic, the load balancing algorithm in the network still has problems such as slow response and large amount of calculation.

[0004] Therefore, it is desired to have a technical solution to overcome or at least alleviate at least one of the above-mentioned defects of the prior art. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a load balancing method driven by deep reinforcement learning.

[0006] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0007] A deep reinforcement learning driven load balancing method includes the following steps:

[0008] S1, obtaining network topology, switch characteristics and data link characteristics;

[0009] S2, generating node-wise graph features based on network topology and switch features;

[0010] S3, generating edge-wise graph features based on network topology and data link features;

[0011] S4. Build and train the BRGCN network model, and use the trained BRGCN network model to obtain the routing path based on the node-wise graph features and edge-wise graph features.

[0012] Optionally, in step S1:

[0013] Acquiring the network topology structure specifically includes acquiring the connection relationship between the switch and the data link;

[0014] Obtaining switch characteristics specifically includes obtaining switch load information, flow table utilization information, and one-hot encoding of source switch addresses and destination switch addresses;

[0015] Acquiring data link characteristics specifically includes acquiring delay, packet loss rate, and link utilization information of data links in the network.

[0016] Optionally, step S2 specifically includes:

[0017] The switches are regarded as nodes and the data links between switches are regarded as edges to construct a node-wise graph structure.

[0018] Optionally, step S3 specifically includes:

[0019] The data links are regarded as nodes and the public switches between the data links are regarded as edges to construct an edge-wise graph structure.

[0020] Optionally, the BRGCN network model constructed in step S4 specifically includes:

[0021] A node-wise recurrent graph neural network consisting of a three-layer graph convolutional neural network and a three-layer recurrent neural network alternating;

[0022] An edge-wise recurrent graph neural network consisting of a three-layer graph convolutional neural network and a three-layer recurrent neural network alternating with each other;

[0023] The node-wise recurrent graph neural network and edge-wise recurrent graph neural network are spliced ​​at the end and connected with a layer of fully connected neural network.

[0024] Optionally, training the BRGCN network model in step S4 specifically includes:

[0025] Get the network status after executing the routing path;

[0026] Calculate rewards based on the network state after executing the routing path;

[0027] Store the network status and rewards after executing the routing path into the experience pool;

[0028] A random continuous sampling strategy is adopted to select a group of experiences from the experience pool to calculate the action value, and the loss function based on the action value is used to update the model parameters.

[0029] Optionally, the reward is calculated as follows:

[0030]

[0031] Among them, lr i represents the utilization rate of the i-th link, Ave lr Indicates the mean value of the current link utilization, Cor lr represents the link utilization correction coefficient, α represents the link utilization evaluation weight coefficient, Tol ade Indicates the variation of the average link delay, Met ade Indicates the average link delay at the current moment, Mle ade Indicates the average link delay at the last moment, Cor ade represents the average link delay correction coefficient, β represents the average link delay evaluation weight coefficient, Tol apl Indicates the change mean of the average packet loss rate of the link, Met apl Indicates the average packet loss rate of the link at the current moment, Mle apl Indicates the average packet loss rate of the link at the last moment, Cor apl represents the correction coefficient of the average packet loss rate of the link, γ represents the evaluation weight coefficient of the average packet loss rate of the link, Tlo al Indicates the change mean of the average link load, Met al Indicates the average link load at the current moment, Mle al Indicates the average link load at the last moment, Cor al represents the average link load correction coefficient, θ represents the average link load evaluation weight coefficient, L num Indicates the number of links.

[0032] Optionally, the action value is calculated as follows:

[0033] y i =r i +δQ′(s′ i ,a max (Q(s′ i ,a i ,ω));ω′)

[0034] Among them, y i represents the action value, r irepresents the reward, δ represents the decay factor, Q represents the Q network, Q' represents the target network, s i 'Indicates the network status at the next moment, a i represents the action, ω represents the parameters of the Q network, and ω' represents the parameters of the target network.

[0035] Optionally, the loss function based on action value is specifically:

[0036]

[0037] Where M represents the number of samples, y i represents the action value, γ represents the decay factor, Q represents the Q network, s i Indicates the current state, a i represents the action, and ω represents the parameter of the Q network.

[0038] Optionally, in step S4, obtaining a routing path according to the node-wise graph features and the edge-wise graph features using the trained BRGCN network model specifically includes:

[0039] The node-wise feature matrix is ​​constructed using switch features, the node-wise adjacency matrix and node-wise degree matrix are constructed based on the node-wise graph structure, the edge-wise feature matrix is ​​constructed using data link features, and the edge-wise adjacency matrix and edge-wise degree matrix are constructed based on the edge-wise graph structure;

[0040] The trained BRGCN network model is used to obtain the action value table according to the node-wise feature matrix, node-wise adjacency matrix, node-wise degree matrix, edge-wise feature matrix, edge-wise adjacency matrix and edge-wise degree matrix;

[0041] According to the action value table, the action is selected as the routing path of the traffic with a greedy strategy.

[0042] The present invention has the following beneficial effects:

[0043] 1. This application combines deep reinforcement learning with graph convolutional neural networks and recurrent neural networks and applies them to the load balancing algorithm, so that the model can not only make decisions based on state information, but also consider the structure and topological relationship of the network as decision-making factors. At the same time, it has the ability to process timing information, thereby improving the performance of the model.

[0044] 2. Aiming at the optimization goal of load balancing, this application proposes to calculate the variance of link utilization as the main reward factor, which can better maintain the stability of the long-term state of the network compared to calculating the change value of the maximum link utilization.

[0045] 3. This application uses a more comprehensive network status, including the multi-dimensional characteristics of switches and data links, as well as the topological structure characteristics of the network, to ensure that the model can make decisions based on a more comprehensive status. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of a flow chart of a load balancing method driven by deep reinforcement learning in an embodiment of the present invention;

[0047] Figure 2 Schematic diagram of a node-wise graph structure and an edge-wise graph structure in an embodiment of the present invention;

[0048] Figure 3 Schematic diagram of the BRGCN network model structure in an embodiment of the present invention;

[0049] Figure 4 It is a schematic diagram of the node-wise recurrent graph neural network structure in an embodiment of the present invention;

[0050] Figure 5 FIG. 4 is an exemplary structural diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0051] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.

[0052] like Figure 1 As shown, an embodiment of the present invention provides a deep reinforcement learning driven load balancing method, comprising the following steps S1 to S4:

[0053] S1, obtaining network topology, switch characteristics and data link characteristics;

[0054] In an optional embodiment of the present invention, in step S1:

[0055] Acquiring the network topology structure specifically includes acquiring the connection relationship between the switch and the data link;

[0056] Obtaining switch characteristics specifically includes obtaining switch load information, flow table utilization information, and one-hot encoding of source switch addresses and destination switch addresses;

[0057] Acquiring data link characteristics specifically includes acquiring delay, packet loss rate, and link utilization information of data links in the network.

[0058] S2, generating node-wise graph features based on network topology and switch features;

[0059] In an optional embodiment of the present invention, step S2 specifically includes:

[0060] The switches are regarded as nodes and the data links between switches are regarded as edges to construct a node-wise graph structure.

[0061] S3, generating edge-wise graph features based on network topology and data link features;

[0062] In an optional embodiment of the present invention, step S3 specifically includes:

[0063] The data links are regarded as nodes and the public switches between the data links are regarded as edges to construct an edge-wise graph structure.

[0064] like Figure 2 As shown, taking the structure on the left as an example, each node af represents a switch, and AF represents the edge between switches. The node-wise structure after modeling is shown in the left figure, and the edge-wise structure is shown in the right figure. It can be seen that the node-wise structure diagram (left figure) has a total of 6 nodes af and 6 edges AF. When constructing the edge-wise structure (right figure), AF is regarded as the node of the new graph, and the common nodes between AF are regarded as the edges of the new graph. The common nodes can be transformed into multiple edges between the new graphs. It can be seen that there are 6 nodes AF in the new graph, corresponding to the 6 edges in the original graph; at the same time, there are 10 edges c1-c6, d, e1-e3, corresponding to the nodes c, d, and f in the original graph, respectively, where each new edge represents the mapping of a pair of edges with common nodes in the original graph.

[0065] S4. Build and train the BRGCN network model, and use the trained BRGCN network model to obtain the routing path based on the node-wise graph features and edge-wise graph features.

[0066] In an optional embodiment of the present invention, the BRGCN network model constructed in step S4 specifically includes:

[0067] A node-wise recurrent graph neural network consisting of a three-layer graph convolutional neural network and a three-layer recurrent neural network alternating;

[0068] An edge-wise recurrent graph neural network consisting of a three-layer graph convolutional neural network and a three-layer recurrent neural network alternating with each other;

[0069] The node-wise recurrent graph neural network and edge-wise recurrent graph neural network are spliced ​​at the end and connected with a layer of fully connected neural network.

[0070] like Figure 3 and Figure 4 As shown, the present invention adopts a combination of graph convolutional neural network and recurrent neural network to construct a deep neural network in the BRGCN network model, wherein the node-wise recurrent graph neural network and the edge-wise recurrent graph neural network have the same structure, both including three layers of graph convolutional neural network and three layers of recurrent neural network, and each layer of graph convolutional neural network is connected to a layer of recurrent neural network.

[0071] Training the BRGCN network model in step S4 specifically includes:

[0072] First, the network state after executing the routing path is obtained; the network state includes a node-wise feature matrix, a node-wise adjacency matrix and a node-wise degree matrix, which are used as inputs of the node-wise recurrent graph neural network. The network state also includes an edge-wise feature matrix, an edge-wise adjacency matrix and an edge-wise degree matrix, which are used as inputs of the edge-wise recurrent graph neural network.

[0073] The reward is then calculated based on the network state after executing the routing path; the reward is calculated as follows:

[0074]

[0075] Among them, lr i represents the utilization rate of the i-th link, Ave lr Indicates the mean value of the current link utilization, Cor lr represents the link utilization correction coefficient, α represents the link utilization evaluation weight coefficient, Tol ade Indicates the variation of the average link delay, Met ade Indicates the average link delay at the current moment, Mle ade Indicates the average link delay at the last moment, Cor ade represents the average link delay correction coefficient, β represents the average link delay evaluation weight coefficient, Tol apl Indicates the change mean of the average packet loss rate of the link, Met apl Indicates the average packet loss rate of the link at the current moment, Mle aplIndicates the average packet loss rate of the link at the last moment, Cor apl represents the correction coefficient of the average packet loss rate of the link, γ represents the evaluation weight coefficient of the average packet loss rate of the link, Tlo al Indicates the change mean of the average link load, Met al Indicates the average link load at the current moment, Mle al Indicates the average link load at the last moment, Cor al represents the average link load correction coefficient, θ represents the average link load evaluation weight coefficient, L num Indicates the number of links.

[0076] Then the network status and rewards after executing the routing path are stored in the experience pool;

[0077] Finally, a random continuous sampling strategy is adopted to select a group of experiences from the experience pool to calculate the action value, and the loss function based on the action value is used to update the model parameters. The action value is calculated as follows:

[0078] y i =r i +δQ′(s′ i ,a max (Q(s′ i ,a i ,ω));ω′)

[0079] Among them, y i represents the action value, r i represents the reward, δ represents the decay factor, Q represents the Q network, Q' represents the target network, s i 'Indicates the network status at the next moment, a i represents the action, ω represents the parameters of the Q network, and ω' represents the parameters of the target network.

[0080] The loss function based on action value is specifically:

[0081]

[0082] Where M represents the number of samples, y i represents the action value, γ represents the decay factor, Q represents the Q network, s i Indicates the current state, a i represents the action, and ω represents the parameter of the Q network.

[0083] In step S4, using the trained BRGCN network model to obtain a routing path according to the node-wise graph features and edge-wise graph features specifically includes:

[0084] The node-wise feature matrix is ​​constructed using switch features, the node-wise adjacency matrix and node-wise degree matrix are constructed based on the node-wise graph structure, the edge-wise feature matrix is ​​constructed using data link features, and the edge-wise adjacency matrix and edge-wise degree matrix are constructed based on the edge-wise graph structure;

[0085] The trained BRGCN network model is used to obtain the action value table according to the node-wise feature matrix, node-wise adjacency matrix, node-wise degree matrix, edge-wise feature matrix, edge-wise adjacency matrix and edge-wise degree matrix; Figure 3 and Figure 4 As shown, specifically, the node-wise feature matrix, node-wise adjacency matrix and node-wise degree matrix are used as inputs of the node-wise recurrent graph neural network, and the edge-wise feature matrix, edge-wise adjacency matrix and edge-wise degree matrix are used as inputs of the edge-wise recurrent graph neural network. After being processed by the node-wise recurrent graph neural network and the edge-wise recurrent graph neural network, the network state is processed into two sets of features, which are the outputs of the two recurrent graph neural networks. The two sets of features are concatenated, and finally the action value table is output through the fully connected neural network.

[0086] According to the action value table, the action is selected as the routing path of the traffic with a greedy strategy. Specifically, the greedy strategy is to assume that the greediness is e, then the model has a probability of e to select the action with the highest value according to the action value table, and a probability of 1-e to randomly select an action to execute.

[0087] After the SDN controller is started, the present invention first initializes the network to obtain basic information of each switch and link in the network and the network topology structure formed by these physical devices.

[0088] According to the topological structure of the network, switches are regarded as nodes and data links between switches are regarded as edges to model a node-wise graph structure. Data links are regarded as nodes and public switches between data links are regarded as edges to model an edge-wise graph structure.

[0089] The present invention uses an SDN controller to monitor the status of the entire network at all times, sends an inquiry message to the switch through the SDN communication protocol, and the switch returns a reply message, and obtains the switch characteristics and data link characteristics of the network based on the analysis of the reply message.

[0090] Whenever a new flow arrives at the network, the SDN controller sends the current network status to the BRGCN network model. After analyzing the network status, the model determines a reasonable routing path and then executes routing for the current flow based on this routing path.

[0091] The load balancing method driven by deep reinforcement learning of graph convolutional neural networks and recurrent neural networks of the present application is further explained below by way of example. It should be understood that this example does not constitute any limitation to the present application.

[0092] In this embodiment, the hardware platform is Dell Precision T7920 tower workstation, and Java and Python languages ​​are used for programming.

[0093] We implemented the SDN controller using Java. The controller performs state detection, routing control, data processing, and reward calculation for the entire network. Whenever a new flow arrives at the network, the controller collects the latest network state and sends it to the model, and then routes the flow according to the routing path determined by the model. The new network state after the routing flow is collected, and the reward is calculated. The (state, action, reward, new state) tuple is then sent to the experience pool as experience.

[0094] We implemented a deep reinforcement learning model using Python. During the operation of the model, it receives requests from the controller and the state data of the network, including the node-wise feature matrix, node-wise adjacency matrix, node-wise degree matrix, edge-wise feature matrix, edge-wise adjacency matrix and edge-wise degree matrix. The state data is input into two recurrent graph neural networks for processing, and finally, after concatenation and processing by the fully connected layer, the action value table is output. The model decides the routing path based on the action value table with a greedy strategy, and finally sends the routing path to the SDN controller for execution. After executing the routing, the controller collects the new state, calculates the reward and sends the experience to the experience pool of the model. After the experience is stored to a certain scale, the model will adopt a random continuous sampling strategy to collect a set of experience to update the neural network parameters.

[0095] The deep reinforcement learning-driven load balancing method of the present application can realize intelligent routing of flows within the SDN data center network and achieve load balancing effect. Its maximum link utilization index is improved by more than 20% compared with methods such as ECMP. At the same time, indicators such as delay and packet loss rate are better than the ECMP method.

[0096] The present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the above-mentioned load balancing method based on deep reinforcement learning is implemented.

[0097] The present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it can implement the above-mentioned load balancing method based on deep reinforcement learning drive.

[0098] Figure 5 It is an exemplary structural diagram of an electronic device that can implement the load balancing method based on deep reinforcement learning driven according to an embodiment of the present application.

[0099] like Figure 5 As shown, the electronic device includes an input device 501, an input interface 502, a central processor 503, a memory 504, an output interface 505, and an output device 506. The input interface 502, the central processor 503, the memory 504, and the output interface 505 are interconnected through a bus 507, and the input device 501 and the output device 506 are connected to the bus 507 through the input interface 502 and the output interface 505, respectively, and then connected to other components of the electronic device. Specifically, the input device 504 receives input information from the outside, and transmits the input information to the central processor 503 through the input interface 502; the central processor 503 processes the input information based on the computer executable instructions stored in the memory 504 to generate output information, temporarily or permanently stores the output information in the memory 504, and then transmits the output information to the output device 506 through the output interface 505; the output device 506 outputs the output information to the outside of the electronic device for use by the user.

[0100] That is to say, Figure 5 The electronic device shown can also be implemented as comprising: a memory storing computer executable instructions; and one or more processors, which can implement the combination when executing the computer executable instructions. Figure 1 Described is a load balancing method driven by deep reinforcement learning.

[0101] In one embodiment, Figure 5 The electronic device shown can be implemented to include: a memory 504 configured to store executable program code; and one or more processors 503 configured to run the executable program code stored in the memory 504 to execute the human-computer multi-round dialogue method in the above embodiment.

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

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

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

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

[0106] In addition, it is obvious that the word "comprising" does not exclude other units or steps. Multiple units, modules or devices stated in the device claim can also be implemented by one unit or the overall device through software or hardware.

[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes identified in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or the total flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The processor referred to in this embodiment may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0109] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the device / terminal equipment by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0110] In this embodiment, if the module / unit integrated in the device / terminal equipment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. Although the present application is disclosed as above in terms of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

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

[0112] The above description is only a preferred embodiment of the present invention, which is only illustrative and not restrictive of the present invention. A person skilled in the art will understand that many changes, modifications and even equivalent changes may be made to the present invention within the spirit and scope defined by the claims of the present invention, but all of them will fall within the scope of protection of the present invention.

Claims

1. A load balancing method based on deep reinforcement learning. It is characterized in that The following steps are involved: S1, obtaining network topology, switch characteristics and data link characteristics; S2, generating node-wise graph features based on network topology and switch features; S3, generating edge-wise graph features based on network topology and data link features; S4. Build and train the BRGCN network model, and use the trained BRGCN network model to obtain routing paths based on node-wise graph features and edge-wise graph features; The constructed BRGCN network model specifically includes: A node-wise recurrent graph neural network consisting of a three-layer graph convolutional neural network and a three-layer recurrent neural network alternating; An edge-wise recurrent graph neural network consisting of a three-layer graph convolutional neural network and a three-layer recurrent neural network alternating with each other; The node-wise recurrent graph neural network and edge-wise recurrent graph neural network are spliced ​​at the end and connected to a layer of fully connected neural network; Training the BRGCN network model specifically includes: Get the network status after executing the routing path; Calculate rewards based on the network state after executing the routing path; Store the network status and rewards after executing the routing path into the experience pool; A random continuous sampling strategy is adopted to select a group of experiences from the experience pool to calculate the action value, and the loss function based on the action value is used to update the model parameters; The reward is calculated as follows: , in, lr i Indicates i Link utilization, Ave lr Indicates the average value of the current link utilization, Cor lr represents the link utilization correction factor, α represents the link utilization evaluation weight coefficient, Tol ade represents the variation of the average link delay, Met ade Indicates the average link delay at the current moment, Mle ade Indicates the average link delay at the last moment, Cor ade represents the average link delay correction factor, β represents the link average delay evaluation weight coefficient, Tol apl Indicates the change in the average packet loss rate of the link, Met apl Indicates the average packet loss rate of the link at the current moment, Mle apl Indicates the average packet loss rate of the link at the previous moment, Cor apl Indicates the link average packet loss rate correction coefficient, γ Indicates the link average packet loss rate evaluation weight coefficient, Tol al Indicates the change in the average link load. Met al Indicates the average link load at the current moment. M al Indicates the average link load at the last moment. Cor al represents the link average load correction factor, θ represents the link average load evaluation weight coefficient, L num Indicates the number of links; The action value is calculated as follows: , in, y i represents the action value, r i Indicates reward, δ represents the attenuation factor, Q represents the Q network, Q ’ represents the target network, s i ’ Indicates the network status at the next moment. a i Indicates action, represents the parameters of the Q network, Represents the parameters of the target network; The loss function based on action value is specifically: , in, M represents the number of samples, y i represents the action value, Q represents the Q network, s i Indicates the current state. a i Indicates action, represents the parameters of the Q network.

2. According to the load balancing method based on deep reinforcement learning drive according to claim 1, It is characterized in that In step S1: Acquiring the network topology structure specifically includes acquiring the connection relationship between the switch and the data link; Obtaining switch characteristics specifically includes obtaining switch load information, flow table utilization information, and one-hot encoding of source switch addresses and destination switch addresses; Acquiring data link characteristics specifically includes acquiring delay, packet loss rate, and link utilization information of data links in the network.

3. According to the load balancing method driven by deep reinforcement learning according to claim 1, It is characterized in that Step S2 specifically includes: The switches are regarded as nodes and the data links between switches are regarded as edges to construct a node-wise graph structure.

4. The load balancing method based on deep reinforcement learning drive according to claim 1, It is characterized in that Step S3 specifically includes: The data links are regarded as nodes and the public switches between the data links are regarded as edges to construct an edge-wise graph structure.

5. The load balancing method based on deep reinforcement learning drive according to claim 1, It is characterized in that In step S4, using the trained BRGCN network model to obtain a routing path according to the node-wise graph features and edge-wise graph features specifically includes: The node-wise feature matrix is ​​constructed using switch features, the node-wise adjacency matrix and node-wise degree matrix are constructed based on the node-wise graph structure, the edge-wise feature matrix is ​​constructed using data link features, and the edge-wise adjacency matrix and edge-wise degree matrix are constructed based on the edge-wise graph structure; The trained BRGCN network model is used to obtain the action value table according to the node-wise feature matrix, node-wise adjacency matrix, node-wise degree matrix, edge-wise feature matrix, edge-wise adjacency matrix and edge-wise degree matrix; According to the action value table, the action is selected as the routing path of the traffic with a greedy strategy.