Intelligent agent load balancing method, controller and system based on SDN network

By detecting traffic size in the SDN network and using agent load balancing decisions, the problem of a single load balancing solution and insufficient applicability of the group intelligence algorithm in the SDN network is solved, and the link utilization rate and network throughput are improved. promote.

CN117014367BActive Publication Date: 2024-10-01CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311065752.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2024-10-01
Estimated Expiration
2043-08-23

AI Technical Summary

Technical Problem

In the existing SDN network, the load balancing scheme is single and it is impossible to perform reasonable link allocation for data of different traffic sizes. The swarm intelligent communication body algorithm is not very applicable in the SDN network, resulting in low link utilization and delay. Poor sex.

Method used

Provides an agent load balancing method based on SDN network. By detecting the size of the traffic to be forwarded, if it is an elephant flow, the agent load balancing decision is called to obtain the scheduling link. Otherwise, the shortest path decision is called. The agent load balancing decision includes Node coding sequence allocation and iterative optimization based on the SDN network topology diagram ensure the improvement of link utilization.

Benefits of technology

It realizes the selection of different scheduling strategies according to the traffic size, improves the link utilization, overcomes the problem of weak applicability of the agent algorithm in the SDN network, and improves the throughput and load balancing effect of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117014367B_ABST
    Figure CN117014367B_ABST
Patent Text Reader

Abstract

The present invention provides an intelligent agent load balancing method, controller and system based on SDN network, the method comprising: the traffic to be forwarded is an elephant flow; calling the intelligent agent load balancing decision to obtain the scheduling link, otherwise calling the shortest path decision to obtain the scheduling link; forwarding the traffic to be forwarded according to the scheduling link; load balancing decision: counting the node coding sequence of the reachable link from the source host address to the destination host address to form a node coding sequence set; the state of the intelligent agent is defined as the node coding sequence of the reachable link; iterative execution: the intelligent agent performs foraging behavior and updates the fitness of the intelligent agent; if the fitness of the intelligent agent is greater than the optimal fitness on the bulletin board, the optimal fitness on the bulletin board is updated and associated with the reachable link corresponding to the intelligent agent state; the reachable link associated with the optimal fitness on the bulletin board after the iteration stops is used as the scheduling link. Links are reasonably allocated for traffic of different sizes, so that the link utilization rate is higher and the data traffic is better transmitted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an intelligent body load balancing method, a controller and a system based on an SDN network. Background Art

[0002] Software Defined Network (SDN) is a new type of innovative network architecture proposed by the Clean-Slate research group of Stanford University in the United States. It is a way to implement network virtualization.

[0003] Among the existing technologies related to software-defined networks, SDN controllers usually come with built-in load balancing algorithms, such as the most commonly used Dijkstra algorithm. With the rise of technologies such as cloud computing and big data, the scale of data centers continues to expand, and network traffic continues to grow. The single load balancing solution based on SDN controllers is not very applicable. Most of these built-in load balancing algorithms are based on the shortest path and cannot meet the reasonable communication link selection of large and small elephant flows. It is easy to cause the large elephant flow to fail to select a suitable link, and there is a high delay of the small elephant flow in front of the elephant flow.

[0004] Since the swarm intelligence algorithm (such as artificial fish swarm algorithm, ant colony algorithm, artificial bee colony algorithm, particle swarm algorithm, etc.) was proposed, it is relatively simple to implement and can find the global optimal solution. It has been widely used in robot path planning, obstacle avoidance, unmanned workshop scheduling and other fields. However, the swarm intelligence algorithm cannot be applied to solve specific engineering application problems under software-defined networks, and cannot reasonably calculate link utilization. Specifically, the fitness function of the swarm intelligence communication body algorithm is not very applicable in SDN networks. Therefore, there are technical difficulties in applying the intelligent body algorithm to SDN networks.

[0005] To sum up, the technical problems that need to be solved in this application are: first, in the software defined network SDN, the load balancing solution of the SDN controller is single and cannot reasonably allocate links for real data of different traffic sizes; second, the fitness function of the swarm intelligent communication body algorithm is not applicable in the SDN network. Summary of the invention

[0006] The present invention aims to solve the technical problems existing in the prior art and provide an intelligent body load balancing method based on SDN network, an SDN controller and a system to reasonably allocate links for traffic of different sizes, so as to achieve higher link utilization and better transmission of data traffic.

[0007] In order to achieve the above-mentioned purpose of the present invention, according to the first aspect of the present invention, the present invention provides an intelligent body load balancing method based on SDN network, including: detecting the size of the forwarding traffic; if the forwarding traffic is a large elephant flow, calling the intelligent body load balancing decision to obtain the scheduling link, otherwise, calling the shortest path decision to obtain the scheduling link; forwarding the forwarding traffic according to the scheduling link; the intelligent body load balancing decision includes: based on the SDN network topology diagram, counting the reachable links from the source host address of the forwarding traffic to the destination host address, representing the reachable links as a node code sequence composed of the node codes of the switch nodes it passes through in sequence, and the nodes of all reachable links The coding sequences constitute a node coding sequence set; the number of agents is set, the state of the agent is defined as the node coding sequence of the reachable link, and a node coding sequence is randomly assigned to each agent from the node coding sequence set as the initial state; the following steps are iteratively performed until the iteration stop condition is met: execute for all agents in turn: the agent performs foraging behavior and updates the fitness of the agent; if the fitness of the agent is greater than the optimal fitness on the billboard, the optimal fitness on the billboard is updated to the fitness of the agent, and the optimal fitness and the reachable link corresponding to the state of the agent are associated; the reachable link associated with the optimal fitness on the billboard after the iteration stops is used as the scheduling link.

[0008] In order to achieve the above-mentioned purpose of the present invention, according to the second aspect of the present invention, the present invention provides an SDN controller, including: an information collection module, used to collect switch information and information of traffic to be forwarded; a traffic detection module, used to detect the size of traffic in the SDN network and obtain the number of elephant flows; a scheduling decision module, which is respectively connected to the information collection module and the traffic detection module, and when there is traffic to be forwarded in the SDN network, the steps of the intelligent body load balancing method based on the SDN network provided by the first aspect of the present invention are executed to forward the traffic to be forwarded.

[0009] In order to achieve the above-mentioned object of the present invention, according to the second aspect of the present invention, the present invention provides an SDN network system, including multiple switches and the SDN controller provided by the second aspect of the present invention, and the switches serve as nodes to form an SDN network with the SDN controller.

[0010] The beneficial technical effects of the present application are as follows: different scheduling strategies are selected according to the size of the traffic to be forwarded, the shortest path decision is called for fast forwarding when it is not an elephant flow, and the intelligent agent load balancing decision is called to obtain the scheduling link when it is an elephant flow, so as to select different scheduling methods according to the traffic size, allocate different links, and improve link utilization; the intelligent agent load balancing decision overcomes the problem that the existing intelligent agent algorithm is not well applicable in the SDN network, sets the state of the intelligent agent to the node coding sequence of the reachable link, and reasonably moves the state of the intelligent agent through foraging and other behaviors of the intelligent agent, obtains the optimal fitness through multiple iterations, and continuously updates the optimal fitness on the bulletin board, thereby finding the best scheduling link for the elephant flow, achieving load balancing, and making the link utilization rate in the SDN network higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a schematic diagram of the overall process of an intelligent agent load balancing method based on an SDN network in a preferred embodiment of the present invention;

[0012] Figure 2 It is a flow chart of an intelligent agent load balancing method based on an SDN network in an application scenario of the present invention;

[0013] Figure 3 It is a flow chart of the intelligent agent load balancing decision execution in an application scenario of the present invention;

[0014] Figure 4 It is a diagram to verify the load balancing effect of the SDN network-based intelligent agent load balancing method provided by the present invention under different data flow sizes;

[0015] Figure 5 It is an experimental network topology diagram for verifying the intelligent agent load balancing method based on SDN network provided by the present invention;

[0016] Figure 6 It is a schematic diagram of a load balancing process in an application scenario of the present invention. DETAILED DESCRIPTION

[0017] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0018] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0019] In the description of the present invention, unless otherwise specified and limited, it should be noted that the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a mechanical connection or an electrical connection, or it can be the internal connection between two components. It can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to the specific circumstances.

[0020] The present invention provides an intelligent agent load balancing method based on SDN network. In a preferred embodiment, the overall schematic diagram is as follows: Figure 1 As shown, including:

[0021] Step S1, detecting the size of the traffic to be forwarded. Generally, the size of the traffic to be forwarded is detected by a traffic detection module, preferably but not limited to obtaining the size of the traffic to be forwarded by detecting the size of the data packet to be forwarded. The traffic detection module can be integrated in the SDN controller.

[0022] Step S2, if the traffic to be forwarded is an elephant flow, call the intelligent agent load balancing decision to obtain the scheduling link, otherwise, call the shortest path decision to obtain the scheduling link. Specifically, the traffic greater than or equal to the preset traffic threshold can be used as the elephant flow, and the value range of the preset traffic threshold is preferably but not limited to being greater than or equal to 1Gbps (gigabits per second) and less than or equal to 100Gbps. The shortest path decision is preferably but not limited to the existing Dijkstra algorithm (Dijkstra algorithm) or Bellman-Ford algorithm or shortest path tree algorithm or fixed weight algorithm. The intelligent agent is preferably but not limited to an artificial fish.

[0023] Step S3: forward the traffic to be forwarded according to the scheduled link. Store the routing policy corresponding to the scheduled link into the routing table and forward it, so as to complete the sending of the traffic to be forwarded from its source host to the destination host.

[0024] In this embodiment, preferably, the agent load balancing decision includes:

[0025] Step S21, based on the SDN network topology diagram, count the reachable links from the source host address of the traffic to be forwarded to the destination host address, represent the reachable links as node code sequences composed of the node codes of the switch nodes that they pass through in sequence, and the node code sequences of all reachable links constitute a node code sequence set. The order of the node codes from left to right in the node code sequence is consistent with the order of the switches that the data is transmitted through in the reachable link, which is the switch sequence from the source host to the destination host, and is the path switch node number of the traffic transmitted in sequence. The node code sequence set can be presented in a table, which is called a link reachability information table.

[0026] In an SDN network, each switch is regarded as a node and is assigned a unique node code, such as Figure 6 As shown in the figure, 1, 2, ... 10 represent the node codes of 10 switches respectively. The reachable link from the source host address to the destination host address of the traffic to be forwarded contains at least one switch. The node codes of these switches are arranged in a row according to the order in which the switches transmit data in the reachable link to form a node code sequence of the reachable link, as shown in Figure 6 In the figure, (2, 3, 6, 7, 9) represents a node coding sequence of a reachable link. Data traffic is transmitted in the order of 2, 3, 6, 7, and 9. Therefore, a reachable link is represented by a node coding sequence. If the network communication path between any adjacent nodes in the link is available or accessible, the link is considered to be a reachable link. If the network communication path between at least one pair of adjacent nodes in the link is unavailable or inaccessible, the link is considered to be unreachable. In a specific application environment, adjacent nodes with a traffic transmission time consumption value exceeding 1000 are considered to be unreachable.

[0027] Step S22, setting the number of agents, the state of the agent is defined as the node code sequence of the reachable link, and a node code sequence is randomly assigned to each agent from the node code sequence set as the initial state.

[0028] The number of agents can be set according to the requirements, for example, it can be set to be the same as the number of switches in the SDN network. Let the number of agents be N, where N is a positive integer. N agents can be represented as: X1, X2, X3, ..., X N .

[0029] After initializing the states of all agents, the fitness of each agent is calculated based on the bandwidth of the reachable links corresponding to the initial states of all agents and the number of elephant flows of the current SDN network load. The maximum fitness is published on the bulletin board as the optimal fitness, and the optimal fitness is associated with the reachable link corresponding to the initial state of the agent to which it belongs.

[0030] Step S23, iteratively execute the following steps until the iteration stop condition is met:

[0031] Execute for all agents in turn:

[0032] Step S231, the agent performs foraging behavior. Each agent performs foraging behavior. Since foraging behavior is random, the state of the agent may be updated after performing the foraging behavior, that is, the agent moves. The state of the agent may not be updated after performing the foraging behavior, that is, the agent does not move.

[0033] Step S232, update the fitness of the agent.

[0034] Step S233: If the fitness of the agent is greater than the optimal fitness on the billboard, the optimal fitness on the billboard is updated to the fitness of the agent, and the optimal fitness is associated with the reachable link corresponding to the state of the agent.

[0035] The iteration stop condition is condition 1 or condition 2. Condition 1 is that the number of iterations reaches the preset maximum number of iterations. Condition 2 is that the difference between the optimal fitness obtained in this iteration and the optimal fitness obtained in the previous iteration is less than or equal to the preset difference threshold.

[0036] Step S24: The reachable link associated with the best fitness on the bulletin board after the iteration stops is used as the scheduling link.

[0037] In a preferred embodiment, in order to make the fitness function of the agent algorithm adaptable to the SDN network, the fitness calculation method is improved, and the fitness calculation process of the agent is: obtaining the bandwidth evaluation value of the reachable link corresponding to the current state of all agents; obtaining the bandwidth mean deviation of the reachable link corresponding to the state of the agent; obtaining the number of elephant flows of the current SDN network load; obtaining the value of the bandwidth evaluation value of the reachable link corresponding to the current state of all agents, the value of the bandwidth mean deviation of the reachable link corresponding to the state of all agents, and the weighted sum of the number of elephant flows of the current SDN network load as the fitness of the agent. The overall bandwidth deviation of the agent, the deviation of the agent relative to the average bandwidth of the SDN network, and the number of elephant flows are added to the fitness, so that the link utilization can be improved by multiple iterations to obtain the optimal fitness, load balancing is achieved, and network throughput is improved. The bandwidth of the reachable link is preferably but not limited to being obtained through the monitorbandwith module, and the monitorbandwith module can be integrated in the SDN controller. The number of elephant flows of the current SDN network load can be detected and counted by the traffic detection module.

[0038] In this embodiment, preferably, the fitness of the i-th agent Fitness(G) is calculated according to the following formula:

[0039] Fitness(G)=α*LP(G)+β*LA(G)+γ*E;

[0040] Among them, α represents the first weight, β represents the second weight, γ represents the third weight, 0≤α≤1, 0≤β≤1, 0≤γ≤1, and α+β+γ=1; E represents the number of elephant flows in the current SDN network load; α, β and γ are all dimensionless.

[0041] LP(G) represents the bandwidth evaluation value of the reachable link corresponding to the current state of all agents:

[0042] N represents the number of agents, i and j represent agent indexes; l i represents the bandwidth of the reachable link corresponding to the state of the ith agent, l j It represents the value of the bandwidth of the reachable link corresponding to the state of the j-th agent.

[0043] LA(G) represents the value of the bandwidth mean deviation of the reachable links corresponding to the states of all agents: l average Indicates the average bandwidth of the SDN network.

[0044] In this embodiment, in the fitness (G) calculation formula, all variables participate in the calculation through their values ​​under a pre-set dimension.

[0045] In this embodiment, as the number of elephant flows in the SDN network load increases, the fitness of the agent obtained according to the above fitness calculation formula will be overall larger, and the bandwidth evaluation value of the reachable link corresponding to the current state of all agents and the bandwidth mean deviation of the reachable link corresponding to the state of the agent are very important and should occupy an important proportion. The increase in the number of elephant flows will reduce the proportion in the fitness, which will affect the load balancing effect and hinder the improvement of link utilization. Therefore, in order to further improve the link utilization and suppress the impact of the increase in the number of elephant flows on the fitness, preferably, the value of the third weight γ is inversely proportional to the number of elephant flows E in the current SDN network load, and correspondingly, the first weight α and / or the second weight β are proportional to the number of elephant flows.

[0046] In a preferred embodiment, in order to make the original agent algorithm applicable to the specific problem of SDN load balancing, an improved foraging behavior is adopted. In the tth iteration, the process of the agent performing the foraging behavior is:

[0047] Step A, select the state X of the i-th agent at the t-1th iteration i(t-1)The last node of the selected node is used as the selected node; Step B, judging whether the link corresponding to the node coding sequence obtained by exchanging the selected node with any node in front of it is reachable, if it is reachable, then executing the exchange and executing Step C, if it is not reachable, then not executing the exchange and executing Step D;

[0048] Step C, respectively calculate the fitness of the ith agent before and after node exchange; if the fitness of the ith agent after node exchange is higher than the fitness before node exchange, then the node encoding sequence after node exchange is used as the state X of the agent at the tth iteration i(t) , execute step F; if the fitness of the i-th agent after the node exchange is lower than or equal to the fitness before the node exchange, execute step E;

[0049] Step D, determine whether the selected node is the second node from the front to the back, if so, execute step E, if not, take the previous node of the selected node as the new selected node, and return to execute step B;

[0050] Step E, let X i(t) =X i(t-1) , that is, the agent does not move, and executes step F;

[0051] Step F, end.

[0052] In this embodiment, the process of the agent performing foraging behavior is expressed as: Where t represents the number of iterations, t≥1,X i(t-1) represents the state of the i-th agent at the t-1th iteration, X i(t) represents the state of the i-th agent at the t-th iteration, Indicates that X is exchanged according to the selection strategy P i(t-1) Two nodes in the middle;

[0053] The process of selecting strategy P is:

[0054] From the back to the front, start from X i(t-1) Select a node as the selection node, and perform the following steps each time a node is selected:

[0055] Step 1, determine whether the link corresponding to the new node encoding sequence obtained by exchanging the selected node with any node in front of it is reachable, if it is reachable, execute the exchange and execute step 2, if it is not reachable, do not execute the exchange and execute step 3;

[0056] Step 4: Calculate the fitness of the node coding sequence before and after node exchange respectively; if the fitness of the node coding sequence after node exchange is higher than the fitness of the node coding sequence before node exchange, then take the node coding sequence after node exchange as X i(t) , execute step 5; if the fitness of the node encoding sequence after the node exchange is lower than or equal to the fitness of the node encoding sequence before the node exchange, execute step 4;

[0057] Step 3, determine whether the selected node is the second node in the forward direction, if so, execute step 4, if not, take the previous node of the selected node as the new selected node, and return to execute step 1;

[0058] Step 4: Let X i(t-1) =X i(t) , that is, the agent does not move, and executes step 5;

[0059] Step 5, the process of selecting strategy P ends.

[0060] In a preferred embodiment, if the agent does not move after performing a foraging behavior, the foraging behavior is repeated until the agent moves or the number of foraging behaviors reaches tryNumber times, where tryNumber is greater than or equal to 1. The change of the agent state (the node code sequence and reachable link corresponding to the state change) is called the agent movement, and vice versa.

[0061] In this embodiment, in order to increase the randomness of the movement of the agent, random walking behavior is used for mutation and optimization. In order to solve the problem of large uncertainty of random walking behavior, improved walking behavior, that is, mutation evolution behavior, is used. In each iteration, a part of the agents that still do not move after executing tryNumber foraging behaviors and whose fitness difference with the optimal fitness on the current bulletin board is greater than the preset fitness difference threshold are randomly selected to perform mutation evolution behavior, and the fitness of the agent performing mutation evolution behavior is updated. If the fitness of the agent performing mutation evolution behavior is greater than the optimal fitness on the bulletin board, the optimal fitness on the bulletin board is updated to the fitness of the agent performing mutation evolution behavior, and the reachable link corresponding to the optimal fitness and the state of the agent performing mutation evolution behavior is associated.

[0062] In this embodiment, the above-mentioned mutation evolution behavior allows some agents in an agent group to randomly select a small number of agents to perform mutation evolution behavior if they cannot approach the current optimal point for a long time and the distance is far (indicates that the fitness value and the optimal fitness value differ by more than the preset fitness difference threshold), so that the moving step length becomes larger and directly enters the vicinity of the optimal position, so that the state of the agent directly changes to the state of most agents in the agent group. The fitness difference threshold can be set as needed in different environments.

[0063] In this embodiment, preferably, the process of the agent performing random walk behavior is: the agent's current node encoding sequence is exchanged with symmetrically positioned nodes from the beginning to the end to obtain a new node encoding sequence. The process of performing mutation evolution behavior is represented by: k represents the index of the agent that performs the mutation evolution behavior, 1≤k≤N, Indicates that X k(t-1) Symmetrical nodes are exchanged from beginning to end. Suppose the node encoding sequence of the agent is (2, 3, 6, 7, 9). After executing the mutation evolution behavior, the new node encoding sequence is (9, 7, 6, 3, 2).

[0064] In an application scenario of this embodiment, the execution process diagram of the intelligent agent load balancing method based on the SDN network is as follows: Figure 2 As shown, specifically including:

[0065] The first step is to build the environment and network structure and initialize the agent state, including setting the number of agents, initial state, etc.

[0066] The second step is to detect the large and small flows of the traffic to be forwarded. If it is a large flow, call the intelligent body load balancing decision to obtain the scheduling link. If it is not a large flow, call the shortest path decision to obtain the scheduling link.

[0067] The third step is to store the routing policy of the scheduling link into the routing table and forward the traffic to be forwarded.

[0068] If this application scenario is to experimentally verify the load balancing method of intelligent agents based on SDN network, it also includes: Step 4, using iperf tool to simulate the sending of real traffic. Step 5, obtaining the experimental results.

[0069] In this application scenario, the flow chart of the intelligent agent load balancing decision execution is as follows: Figure 3 As shown, including:

[0070] Step a: Initialize the number of agents and input the bandwidth information of the reachable links.

[0071] Step b: randomly select a node coding sequence from the node coding sequence set of all reachable links as the initial state of the agent, calculate the fitness of the agent, and publish the optimal fitness to the bulletin board.

[0072] In step c, the agent performs foraging behavior.

[0073] Step d, update the agent's fitness and compare it with the optimal fitness of the billboard. If it is higher than the optimal fitness, update the billboard;

[0074] Step e, determine whether the number of agents that have executed steps c and d reaches the total number of agents. If not, return the agents that have not executed steps c and d to execute steps c and d. Otherwise, determine whether the number of iterations has reached the maximum number of iterations. If not, all agents return to execute steps c and d. If the maximum number of iterations is reached, execute step f.

[0075] Step f: Take the reachable link corresponding to the optimal fitness of the bulletin board as the scheduling link.

[0076] Step g: forward the traffic to be forwarded according to the scheduled link.

[0077] In another application scenario of this embodiment, the load balancing diagram is as follows: Figure 6 As shown in the figure, the SDN network includes 10 switch nodes. There are many links from the source host to the destination host. The link utilization can be detected in real time by using tools and detection modules written in the SDN controller. For example, when the intelligent agent load balancing decision is not taken at the beginning, the link taken is the Dijkstra algorithm path (2, 3, 6, 7, 9). Now the link obtained by the intelligent agent load balancing decision is (2, 3, 7, 6, 9). As the complexity of the link increases, the load balancing strategy that the intelligent agent algorithm can select can achieve better results.

[0078] An effect verification experiment was conducted on the SDN network-based intelligent agent load balancing method provided in this embodiment.

[0079] First, experimental preparation.

[0080] Install the mininet system and use it to build a network topology diagram. Set up 6 switches and 6 hosts. The network topology diagram is as follows: Figure 5 As shown, the SDN controller selects floodlight, sets the information collection module, the traffic detection module, and the scheduling decision module.

[0081] Specifically, the mininet system version 2.2.2 is installed under the Ubuntu 20.04 operating system, Floodlight is installed and run, and the improved group intelligent load balancing algorithm is integrated into the scheduling decision module in Floodlight, while monitorbandwith is an integrated module used to detect bandwidth in real time. Also in Floodlight, the traffic detection module is used to detect the size of the traffic. Only the elephant flow calls the improved group intelligent load balancing decision and counts the number of elephant flows, while the small flow still uses the classic Dijkstra algorithm (shortest path decision), and the routing forwarding is the scheduling link given after the scheduling decision, and then the corresponding forwarding is performed.

[0082] Second, the experimental process.

[0083] Use iperf to conduct a traffic experiment to simulate real traffic. Inject TCP traffic into the built SDN to simulate the scenario when elephant traffic passes through multiple data centers. First, randomly select two switches from six switches to conduct the experiment. One is used as the host and the other is used as the switch to conduct bandwidth experiments. Send the traffic from 10M to 100G, and get the following Figure 4 The results shown in the figure are a comparison between the group intelligent load balancing algorithm (ALB) without the improved fitness function, the group intelligent load balancing algorithm with improved fitness function (FALB, i.e., the intelligent agent load balancing method based on SDN network provided by the present invention) and the original Digest algorithm. Figure 4 It can be seen from the results that the intelligent agent load balancing method based on the SDN network provided by the present invention does improve the link utilization to a certain extent, has a better effect on large flows, and improves the throughput.

[0084] The technical effect of the present invention is unquestionable. The present invention proposes an intelligent load balancing method based on SDN network for software defined network. First, it is necessary to build mininet, floodlight, sFlow and other environments, and then define the network topology of six switches and six hosts. Use the iperf tool to conduct flow experiments. In the control decision module of floodlight, when it is detected that it is a large flow, the intelligent load balancing algorithm is called. This algorithm detects the network bandwidth with the help of monitorbandwith, and then uses the improved link strategy. Finally, call routing forwarding. Experiments show that the improved group intelligent load balancing algorithm is better than the original Dijkstra algorithm.

[0085] The present invention also discloses an SDN controller. In a preferred embodiment, the SDN controller includes:

[0086] The information collection module is used to collect switch information and traffic information to be forwarded; the switch information includes the switch allowed bandwidth, real-time traffic, node code, etc. A bandwidth detection module monitorbandwith is set inside to detect link bandwidth in real time. The traffic information to be forwarded includes the size of the traffic to be forwarded, the source host address of the traffic to be forwarded, and the destination host address.

[0087] The traffic detection module is used to detect the traffic size in the SDN network and obtain the number of elephant flows.

[0088] The scheduling decision module is connected to the information collection module and the traffic detection module respectively. When there is traffic to be forwarded in the SDN network, the steps of the intelligent agent load balancing method based on the SDN network are executed to forward the traffic to be forwarded.

[0089] The present invention also discloses an SDN network system, comprising a plurality of switches and the above-mentioned SDN controller, wherein the switches serve as nodes and form an SDN network with the SDN controller.

[0090] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0091] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. Intelligent agent load balancing method based on SDN network, It is characterized in that include: Perform size detection on the traffic to be forwarded; If the traffic to be forwarded is an elephant flow, call the intelligent agent load balancing decision to obtain the scheduling link. Otherwise, call the shortest path decision to obtain the scheduling link. Forward the traffic to be forwarded according to the scheduled link; The agent load balancing decision includes: Based on the SDN network topology, count the reachable links from the source host address of the traffic to be forwarded to the destination host address, and represent the reachable links as a node code sequence composed of the node codes of the switch nodes it passes through in sequence. The node code sequences of all reachable links constitute a node code sequence set. Set the number of agents. The state of an agent is defined as the node coding sequence of the reachable link. A node coding sequence is randomly assigned to each agent from the node coding sequence set as the initial state. Iterate the following steps until the iteration stop condition is met: Execute for all agents in turn: the agent performs foraging behavior and updates the fitness of the agent; if the fitness of the agent is greater than the optimal fitness on the billboard, update the optimal fitness on the billboard to the fitness of the agent, and associate the optimal fitness with the reachable link corresponding to the state of the agent; The reachable link associated with the best fitness on the bulletin board after the iteration stops is used as the scheduling link; The fitness calculation process of the agent is: Obtain the bandwidth evaluation value of the reachable link corresponding to the current state of all intelligent agents; Obtaining a bandwidth mean deviation of a reachable link corresponding to the state of the agent; Get the number of elephant flows of the current SDN network load; Obtain the weighted sum of the bandwidth evaluation value of the reachable link corresponding to the current state of all intelligent agents, the bandwidth mean deviation value of the reachable link corresponding to the state of all intelligent agents, and the number of elephant flows of the current SDN network load as the fitness of the intelligent agent; LP(G) represents the bandwidth evaluation value of the reachable link corresponding to the current state of all agents: N represents the number of agents, i and j represent agent indexes; LA(G) represents the value of the mean bandwidth deviation of the reachable links corresponding to the states of all agents: l average Indicates the average bandwidth of the SDN network. i Represents the value of the bandwidth of the reachable link corresponding to the state of the i-th agent; In the tth iteration, the process of the agent performing foraging behavior is: Step A, select the state X of the i-th agent at the t-1th iteration i(t-1) The last node of is used as the selection node; Step B, judging whether the link corresponding to the node code sequence obtained by exchanging the selected node with any node in front of it is reachable, if it is reachable, then executing the exchange and executing step C, if it is not reachable, then not executing the exchange and executing step D; Step C, respectively calculate the fitness of the ith agent before and after node exchange; if the fitness of the ith agent after node exchange is higher than the fitness before node exchange, then the node encoding sequence after node exchange is used as the state X of the agent at the tth iteration i(t) , execute step F; if the fitness of the i-th agent after the node exchange is lower than or equal to the fitness before the node exchange, execute step E; Step D, determine whether the selected node is the second node from the front to the back, if so, execute step E, if not, take the previous node of the selected node as the new selected node, and return to execute step B; Step E, let X i(t) =X i(t-1) , that is, the agent does not move, and executes step F; Step F, end.

2. The intelligent agent load balancing method based on SDN network as claimed in claim 1, It is characterized in that The fitness of the i-th agent, Fitness(G), is calculated according to the following formula: Fitness(G)=α*LP(G)+β*LA(G)+γ*E; Among them, α represents the first weight, β represents the second weight, γ represents the third weight, 0≤α≤1, 0≤β≤1, 0≤γ≤1, and α+β+γ=1; E represents the number of elephant flows in the current SDN network load.

3. The intelligent agent load balancing method based on SDN network as claimed in claim 2, It is characterized in that The value of the third weight γ is inversely proportional to the number of elephant flows E of the current SDN network load.

4. The intelligent agent load balancing method based on SDN network as claimed in claim 1, It is characterized in that If the agent does not move after performing a foraging behavior, the foraging behavior will be repeated until the agent moves or the number of foraging behaviors reaches tryNumber times, and tryNumber is greater than or equal to 1.

5. If the intelligent agent load balancing method based on SDN network described in claim 4, It is characterized in that In each iteration, a part of the agents that perform mutation evolution behavior is randomly selected from the agents that have not moved after performing tryNumber foraging behaviors and whose fitness difference with the optimal fitness on the current billboard is greater than the preset fitness difference threshold, and the fitness of the agents that perform mutation evolution behavior is updated. If the fitness of the agents that perform mutation evolution behavior is greater than the optimal fitness on the billboard, the optimal fitness on the billboard is updated to the fitness of the agents that perform mutation evolution behavior, and the reachable link corresponding to the optimal fitness and the state of the agents that perform mutation evolution behavior is associated.

6. If the intelligent agent load balancing method based on SDN network described in claim 4, It is characterized in that The process of the agent performing mutation evolution behavior is: the agent's current node coding sequence is symmetrically exchanged from beginning to end to obtain a new node coding sequence.

7. An SDN controller, It is characterized in that include: An information collection module, used to collect switch information and traffic information to be forwarded; Traffic detection module, used to detect the traffic size in the SDN network and obtain the number of elephant flows; The scheduling decision module is connected to the information collection module and the traffic detection module respectively. When there is traffic to be forwarded in the SDN network, the steps of the intelligent body load balancing method based on the SDN network described in one of claims 1-6 are executed to forward the traffic to be forwarded.

8. An SDN network system, It is characterized in that The method comprises a plurality of switches and the SDN controller as claimed in claim 7, wherein the switches serve as nodes and form an SDN network with the SDN controller.