Flow scheduling method considering link load and bandwidth fragmentation in software defined networks
By using SDN's comprehensive link load and bandwidth fragmentation flow scheduling method in the data center network, candidate paths are screened and scheduling strategies are optimized to solve the problems of link congestion and bandwidth fragmentation caused by large flows, and achieve network load balancing and Throughput increases.
Patent Information
- Application Number
- CN202211655306.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-12-21
AI Technical Summary
It is difficult for existing data center networks to effectively manage large flows in traffic scheduling, resulting in link congestion and bandwidth fragmentation. Traditional methods fail to fully consider link bottleneck bandwidth differences and network load balancing issues.
Adopt the comprehensive link load and bandwidth fragmented flow scheduling method in Software Defined Network (SDN), select candidate paths through the shortest path algorithm, establish a weight function based on the path's available bandwidth, stability and delay to select the optimal path, and select the optimal path based on the bandwidth Under limited circumstances, fragmentation cost optimization scheduling is introduced to ensure link load balancing and bandwidth utilization.
It improves network throughput and link utilization, reduces data packet loss rate, ensures network load balancing, and avoids link congestion and bandwidth fragmentation.
Smart Images

Figure CN116248578B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of network technology, and in particular relates to a flow scheduling method that integrates link load and bandwidth fragmentation in a software-defined network. Background Art
[0002] With the continuous development of emerging technology fields such as cloud computing technology and big data analysis, network application scenarios have become more diversified, and the process of network development has significantly accelerated. The initial data center network traffic was north-south, that is, transmitted between data centers and users, but due to the rapid development of distributed technology, it is now gradually changing to east-west traffic within data centers. This requires the network to carry more diverse and richer information, and the scale is also increasing. It is very likely that the distribution of business flows will be sudden and uneven. If the traffic scheduling is not reasonable, it will cause poor user experience, low efficiency of data centers, and reduced business revenue relying on data centers. Therefore, in the data center network with dense traffic and limited bandwidth, effectively managing and controlling the traffic between servers, reducing link congestion, and improving system throughput are currently a problem that needs to be solved in the data center network. The elephant flow is sensitive to bandwidth and is the main factor causing link congestion. Therefore, the traffic scheduling problem mainly focuses on reasonable scheduling of large flows.
[0003] Traditional data center networks based on distributed management solutions cannot reasonably schedule dynamic network environments, which may cause network congestion; secondly, each node performs flow control according to its own strategy, which can only ensure that a single node is optimal, but this does not mean that the global state can be optimal. Despite continuous improvements in these aspects, there are still deficiencies in scheduling flexibility and equipment management. Therefore, the new data center architecture has become a research hotspot in recent years. Due to the global view characteristics and programmability of SDN, it provides some new ideas for the problems existing in today's networks. In this context, combining SDN with data center network traffic scheduling issues has become a research hotspot. Large flows are the main factor causing link congestion, so the present invention mainly performs reasonable scheduling of large flows.
[0004] Currently, there are several problems with scheduling large flows:
[0005] (1) Most factors in path selection focus on available bandwidth and latency, but the load conditions of links in the path fluctuate greatly and cannot fully explain the load conditions of the links.
[0006] (2) Current research in flow scheduling problems often focuses on minimizing the maximum link utilization, but when the network load is high, it is very easy to cause link bandwidth fragmentation, which may cause link congestion.
[0007] The method for solving fragmentation, the present invention and CN103825838A both refer to the best adaptation algorithm, give priority to the path that meets the flow demand and has the smallest available path bandwidth, to solve the fragmentation problem, but CN103825838A does not consider if there are multiple paths that meet the above conditions, that is, it does not consider that the difference in bottleneck bandwidth of each link in the link may be large. Therefore, based on the maximum and minimum values of the available bandwidth of the link, the present invention proposes a fragmentation cost, and further seeks the optimal path through the fragmentation cost, which can better solve the fragmentation problem. Summary of the invention
[0008] The present invention aims to solve the above problems of the prior art. A flow scheduling method that integrates link load and bandwidth fragmentation in a software-defined network is proposed. The technical solution of the present invention is as follows:
[0009] A flow scheduling method for integrating link load and bandwidth fragmentation in a software defined network comprises the following steps:
[0010] Step a: The access layer switch receives the data packet and determines whether there is a matching flow table entry based on the destination address. If so, it forwards the data packet directly; otherwise, it sends the data packet to the controller via a Packet-in (the protocol name for the OpenFlow switch to send data packets to the controller) message.
[0011] Step b, the controller obtains the global network topology structure, and obtains the shortest path set of the source and destination nodes according to the topology structure through the shortest path algorithm;
[0012] Step c, counting the number of large flows on the path according to the statistical information detection module, and screening the shortest path set according to the large flow collision degree of the path to obtain a candidate set;
[0013] Step d, obtaining the network load degree according to the bandwidth usage of the network link, if it is less than the set load threshold, go to step e, otherwise go to step f;
[0014] Step e: Establish a weight function for candidate paths based on the three indicators of available bandwidth, stability, and delay, and select an optimal path for forwarding;
[0015] Step f: from the perspective of fragmentation, the ratio of the required bandwidth of the flow to the available bandwidth of the path is used as the matching degree, and the path with the largest matching degree is selected as the scheduling path. If there are multiple paths that meet the minimum matching degree, the path with the smallest fragmentation cost is selected for forwarding;
[0016] Step g: The controller sends the flow table to the switch on the path to complete the forwarding.
[0017] Furthermore, in step b, the network topology structure of the data center is perceived by the global network topology through the controller sending LLDP link layer protocol messages, and the shortest path algorithm adopts the loop-free KSP (K shortest path) algorithm, which selects the K shortest path sets with the least hops based on the number of hops as the weight.
[0018] Furthermore, the acyclic KSP (Chinese meaning) algorithm specifically includes:
[0019] Calculate the first shortest path P(1), and then calculate the other K-1 shortest paths in sequence based on this. When calculating P(i+1), all nodes on P(i) except the terminal node are regarded as deviation nodes, and the shortest path from each deviation node to the terminal node is calculated, and then concatenated with the path from the starting node to the deviation node on the previous P(i) to form a candidate path, and then the shortest deviation path is obtained.
[0020] Furthermore, the step c, counting the number of large flows on the path by the statistical information detection module, and screening the shortest path set according to the large flow collision degree of the path to obtain a candidate set, specifically includes:
[0021] The statistical information detection module obtains the network status and switch port flow information through the OpenFlow regular polling messages of the data link layer, and obtains the number of large flows in the link and the link bandwidth occupancy information;
[0022] The method for determining a large flow is as follows: based on statistical information detection, a flow whose average transmission rate exceeds 10% of the link bandwidth is set as a large flow;
[0023] The number of large flows in the path is detected and calculated based on the statistical information. The statistical detection module can obtain the number of large flows distributed by the j-th hop link of the i-th path;
[0024] The concept of large flow collision degree is proposed, and the ratio of the number of large flows in a path to the number of links in the path is used as a standard. The expression is as follows:
[0025]
[0026] In the above formula, Bcols is the large flow collision degree, BNums is i is the number of large flows in the i-th path, and j is the number of links contained in path i.
[0027] Thus, the shortest path set is screened again to obtain several paths with smaller collision degree of large flows as new candidate sets.
[0028] Furthermore, in step d, the mathematical expression of the network load NL is as follows:
[0029]
[0030] Where B i is the default capacity of the link bandwidth, i represents the i-th link, L is the total number of network links, is the bandwidth occupied by link i, and then set the network load threshold, and select different scheduling strategies for the current flow according to whether NL exceeds the threshold.
[0031] Furthermore, in step e, a weight function is established based on three factors: available bandwidth, delay, and path stability of the path. The formula is as follows:
[0032] G i =af i 1 +bf i 2 +cf i 3 #(3)
[0033] The sum of the weights is 1, and the optimal path is finally selected based on the weight value. Where a, b, and c represent the weights of the corresponding functions, respectively. Choose a function for the available bandwidth, The selection function representing path stability, The selection function represents the delay. The specific weight distribution should be adjusted according to the specific network environment.
[0034] Furthermore, from the perspective of available bandwidth, an available bandwidth selection function is established for the i-th path: The mathematical expression is as follows:
[0035]
[0036] In the formula, is the available bandwidth of the current path, is the maximum available bandwidth among the candidate paths, is the minimum available bandwidth of the candidate path;
[0037] From the perspective of path stability, the variance of the remaining available bandwidth of the link on the path is used as the criterion for judging the path stability E. The mathematical expression is as follows:
[0038]
[0039] In the above formula, C is the available bandwidth of link j in path i, the average available bandwidth of links in path i, and n is the number of links in the path. Stability selection function of path i The mathematical expression is as follows:
[0040]
[0041] Where E i is the stability of the current path, E max is the maximum path stability among the candidate paths, E min is the minimum path stability of the candidate paths;
[0042] From the perspective of delay, we can get the delay selection function of path i: The expression is as follows:
[0043]
[0044] Where D max is the maximum delay of the candidate path, D max is the maximum delay of the candidate path, D i is the delay of path i.
[0045] Furthermore, in step f, the available bandwidth of each path in the candidate path set and the required bandwidth of the flow are obtained, and after filtering out the paths that do not meet the flow requirements, the value of the matching degree is calculated. The expression is as follows:
[0046]
[0047] In the formula, is the available bandwidth of the current path, B need is the bandwidth requirement of the current stream;
[0048] After calculating the ratio, if there is only one path with the highest matching degree, then the final scheduling path is the current path. If the solution at this time is not unique, the multiple solutions at this time are used as a new set of candidate paths. The path fragmentation cost is introduced as a screening factor, and the path with the smallest fragmentation cost is selected as the scheduling path. The formula is as follows:
[0049]
[0050] Where B max is the maximum value of the available bandwidth of the link in path i, B min is the minimum available bandwidth of the links in path i.
[0051] The advantages and beneficial effects of the present invention are as follows:
[0052] The present invention discloses a flow scheduling method for integrating link load and bandwidth fragmentation in a software defined network. The network topology is obtained through an SDN controller, and the link load is obtained in real time. The shortest path set between the source and destination nodes is found for the elephant flow through the shortest K path algorithm. Since large flows will compete for the path bandwidth, resulting in unstable links, the present invention screens a candidate path set with a small collision degree of large flows; the present invention further considers the overall network load, measures the network load condition by the average load degree of each link in the network, and designs a network load threshold. For the network load condition, scheduling is performed by different methods to achieve better results. When it is less than the threshold, the candidate path is evaluated from the three indicators of the available bandwidth, stability and delay of the path, and an optimal scheduling path is selected; when it is greater than the threshold, the optimal path is found for the large flow from the matching degree and the fragmentation cost as the scheduling path. The present invention takes into account the attribute differences between links, and comprehensively considers the problems of link load balancing and bandwidth fragmentation, improves the total network throughput and link utilization, reduces the packet loss rate of data, and ensures the load balancing of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a FatTree data center topology diagram provided by a preferred embodiment of the present invention;
[0054] Figure 2 It is a flow chart of the flow scheduling method for integrating link load and bandwidth fragmentation in the software defined network described in the present invention. DETAILED DESCRIPTION
[0055] The following will describe the technical solutions in the embodiments of the present invention in detail in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention.
[0056] The technical solution of the present invention to solve the above technical problems is:
[0057] The present invention considers using the FatTree data center network structure, whose topology is shown in the attached figure. Figure 1 As shown in the figure, the architecture is divided into three layers: core layer switches, aggregation layer switches and access layer switches. There are 20 switches and 16 hosts in total, including 4 core switches. We can select any host to establish a connection with other hosts as the observation object.
[0058] Attached Figure 2 A flow chart of the scheduling method is given. It includes the following steps:
[0059] Step a: The access layer switch receives the data packet and determines whether there is a matching flow table entry based on the destination address. If so, it forwards it directly; otherwise, it sends the data packet to the controller via a Packet-in message.
[0060] Step b: The controller obtains the global network topology structure, and obtains the shortest path set of the source and destination nodes according to the topology structure through the shortest path algorithm.
[0061] Step c: Count the number of large flows on the path according to the statistical information detection module, and screen the shortest path set according to the large flow collision degree of the path to obtain a candidate set.
[0062] Step d, obtain the network load degree according to the bandwidth usage of the network link. If it is less than the set load threshold, go to step e, otherwise go to step f.
[0063] Step e: weighted scores are given to candidate paths based on available bandwidth, stability, and latency, and an optimal path is selected for forwarding.
[0064] Step f, from the perspective of fragmentation, the ratio of the required bandwidth of the flow to the available bandwidth of the path is used as the matching degree, and the path with the largest matching degree is selected as the scheduling path. If there are multiple paths that meet the maximum matching degree, the path with the smallest fragmentation cost is selected for forwarding.
[0065] Step g: The controller sends the flow table to the switch on the path to complete the forwarding.
[0066] In step b, the network topology of the data center is sensed by the global network topology through the controller sending LLDP (Link Layer Delivery Protocol) messages, and the loop-free KSP algorithm is selected in the shortest path algorithm module, and the K shortest path sets with the least hops are selected with the number of hops as the weight.
[0067] In step c, the statistical information detection module obtains network status and switch port flow information through regular polling messages of OpenFlow at the data link layer, and can obtain information such as the number of large flows in the link and link bandwidth occupancy.
[0068] The method for determining the elephant flow is as follows: based on statistical information detection, the flow with an average transmission rate exceeding 10% of the link bandwidth is set as a large flow.
[0069] The number of large flows in the path can be calculated based on the statistical information detection, and the number of large flows distributed by the j-th hop link of the i-th path can be obtained by the statistical detection module.
[0070] Since collisions between large flows may easily cause network fluctuations, the present invention proposes the concept of large flow collision degree. The ratio of the number of large flows in a path to the number of links in the path is used as a standard to screen the shortest path set again to obtain several large flow collision degrees with smaller values as new candidate sets.
[0071] Furthermore, in step d, the mathematical expression of the network load NL is as follows:
[0072]
[0073] Where B i is the default capacity of the link bandwidth, L is the total number of network links, is the bandwidth occupied by link i. Then set the network load threshold and select different scheduling strategies for the current flow according to whether NL exceeds the threshold.
[0074] Furthermore, in step e, the main goal is to achieve load balancing of the link, which is to select an optimal path for the data flow from multiple indicators. The available bandwidth and delay of the path are important factors in path evaluation. In response to the current problems, the concept of path stability is introduced to measure the load fluctuations between the links in the path. The relevant concepts are explained below and the path evaluation formula is given.
[0075] From the perspective of available bandwidth, first calculate the available bandwidth of the path. The mathematical expression is as follows:
[0076]
[0077] In the formula is the remaining available bandwidth of the jth link in path i, expressed as follows:
[0078]
[0079] In the above formula, C ij represents the total bandwidth capacity of the link, B ij The bandwidth used.
[0080] And establish the available bandwidth selection function for the i-th path through parameter normalization The mathematical expression is as follows:
[0081]
[0082] In the formula, is the available bandwidth of the current path, is the maximum available bandwidth among the candidate paths, is the minimum available bandwidth of the candidate path.
[0083] From the perspective of path stability, since the available bandwidth between links may vary greatly, on the one hand, the fluctuation is relatively large, and on the other hand, it will also cause bandwidth resource waste. Therefore, the variance of the remaining available bandwidth of the links on the path is used as the criterion for judging the path stability E. The mathematical expression is as follows:
[0084]
[0085] In the above formula, C is the available bandwidth of link j in path i, and m is the number of links in the path.
[0086] And by normalizing the path stability parameters, we can get the stability selection function of path i: The mathematical expression is as follows:
[0087]
[0088] Where E i is the stability of the current path, E max is the maximum path stability among the candidate paths, E min is the minimum path stability of the candidate paths.
[0089] From the perspective of latency, the smaller the link latency, the better the link performance. Therefore, the path latency should also be considered for the large flows to be scheduled. The mathematical expression is as follows:
[0090]
[0091] Where, the path delay D i is the sum of the delays of all links in the path, D ij is the delay of the j-th hop link in path i.
[0092] Since the smaller the delay, the better the performance, the delay selection function of path i is obtained The expression is as follows:
[0093]
[0094] Where D max is the maximum delay of the candidate path, D max is the maximum delay of the candidate path, D i is the delay of path i.
[0095] Finally, the comprehensive weight is calculated for candidate path i based on the three factors of available bandwidth, stability and delay, where the sum of the weight coefficients is 1, and the expression is as follows:
[0096] G i =af i 1 +bfi 2 +cf i 3 #(9)
[0097] After comprehensively weighting the candidate paths, the path with the highest weight is selected as the final scheduling path, and the flow table is issued to complete the traffic scheduling.
[0098] Furthermore, when the network load exceeds a threshold, bandwidth fragmentation minimization is used as the main factor in path selection to avoid link congestion.
[0099] Get the available bandwidth of each path in the candidate path set and the required bandwidth of the flow, filter out the paths that do not meet the flow requirements, and calculate the value of the matching degree. The expression is as follows:
[0100]
[0101] In the formula, is the available bandwidth of the current path, B need The bandwidth requirement of the current stream.
[0102] After calculating the ratio, if there is only one path with the highest matching degree, then the final scheduling path is the current path. If the solution at this time is not unique, the multiple solutions at this time are used as a new set of candidate paths. In order to minimize the fragmentation of the link, the path fragmentation cost is introduced as a screening factor, and the path with the smallest fragmentation cost is selected as the scheduling path. The formula is as follows:
[0103]
[0104] Where B max is the maximum value of the available bandwidth of the link in path i, B min The minimum available bandwidth of the links in path i.
[0105] Furthermore, in step e or f, the optimal path under different circumstances can be obtained, and finally the flow table is issued to complete the traffic scheduling.
[0106] The method described in the above embodiment can specifically build a mininet environment under the Ubuntu system, select Ryu as the network controller, and generate network traffic through the Iperf tool.
[0107] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0108] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0109] The above embodiments should be understood to be only used to illustrate the present invention and not to limit the protection scope of the present invention. After reading the contents of the present invention, technicians can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.
Claims
1. A flow scheduling method that integrates link load and bandwidth fragmentation in software-defined networks. It is characterized in that The following steps are involved: Step a: The access layer switch receives the data packet and determines whether there is a matching flow table entry based on the destination address. If so, it forwards the data packet directly; otherwise, it sends the data packet to the controller via a Packet-in message. The Packet-in message is the protocol name of the OpenFlow switch data packet sent to the controller. Step b, the controller obtains the global network topology structure, and obtains the shortest path set of the source and destination nodes according to the topology structure through the shortest path algorithm; Step c, counting the number of large flows on the path according to the statistical information detection module, and screening the shortest path set according to the large flow collision degree of the path to obtain a candidate set; Step d, obtaining the network load degree according to the bandwidth usage of the network link, if it is less than the set load threshold, go to step e, otherwise go to step f; Step e: Establish a weight function for candidate paths based on the three indicators of available bandwidth, stability, and delay, and select an optimal path for forwarding; Step f: from the perspective of fragmentation, the ratio of the required bandwidth of the flow to the available bandwidth of the path is used as the matching degree, and the path with the largest matching degree is selected as the scheduling path. If there are multiple paths that meet the minimum matching degree, the path with the smallest fragmentation cost is selected for forwarding; Step g: The controller sends a flow table to the switch on the path to complete the forwarding. The step c, counting the number of large flows on the path by the statistical information detection module, and screening the shortest path set according to the large flow collision degree of the path to obtain a candidate set, specifically includes: The statistical information detection module obtains the network status and switch port flow information through the OpenFlow regular polling messages of the data link layer, and obtains the number of large flows in the link and the link bandwidth occupancy information; The method for determining a large flow is as follows: based on statistical information detection, a flow whose average transmission rate exceeds 10% of the link bandwidth is set as a large flow; The number of large flows in the path is detected and calculated based on the statistical information. The statistical detection module can obtain the number of large flows distributed by the j-th hop link of the i-th path; The concept of large flow collision degree is proposed, and the ratio of the number of large flows in a path to the number of links in the path is used as a standard. The mathematical expression is as follows: In the above formula, Bcols is the large flow collision degree, BNums is i is the number of large flows in the i-th path, j is the number of links contained in path i; Thus, the shortest path set is screened again to obtain several paths with smaller collision degree of large flow as new candidate sets; From the perspective of available bandwidth, establish the available bandwidth selection function f for the i-th path i 1 , the mathematical expression is as follows: In the formula, is the available bandwidth of the current path, is the maximum available bandwidth among the candidate paths, is the minimum available bandwidth of the candidate path; From the perspective of path stability, the variance of the remaining available bandwidth of the link on the path is used as the criterion for judging the path stability E. The mathematical expression is as follows: In the above formula represents the average available bandwidth of the links in available bandwidth path i, n is the number of links in the path; the stability selection function f of path i i 2 , the mathematical expression is as follows: Where E i is the stability of the current path, E max is the maximum path stability among the candidate paths, E min is the minimum path stability of the candidate paths; From the perspective of delay, we can get the delay selection function f of path i: i 3 , the expression is as follows: Where D max is the maximum delay of the candidate path, D min is the minimum delay of the candidate path, D i is the delay of path i; In step e, a weight function is established based on three factors: available bandwidth, delay, and path stability of the path. The formula is as follows: G i =of i 1 +bf i 2 +cf i 3 #(3) The sum of the weights is 1, and finally the optimal path is selected according to the weight value, where a, b, and c represent the weights of the corresponding functions, respectively, and f i 1 Select the function for the available bandwidth, f i 2 The selection function representing the path stability, f i 3 represents the selection function of delay; the specific weight distribution should be adjusted according to the specific network environment; in step f, the available bandwidth of each path in the candidate path set and the required bandwidth of the flow are obtained, and after filtering out the paths that do not meet the flow requirements, the matching value is calculated. The expression is as follows: In the formula, is the available bandwidth of the current path, B need is the bandwidth requirement of the current stream; After calculating the ratio, if there is only one path with the highest matching degree, then the final scheduling path is the current path. If the solution at this time is not unique, the multiple solutions at this time are used as a new set of candidate paths. The path fragmentation cost is introduced as a screening factor, and the path with the smallest fragmentation cost is selected as the scheduling path. The formula is as follows: Where B max is the maximum value of the available bandwidth of the link in path i, B min is the minimum available bandwidth of the links in path i.
2. A flow scheduling method for integrating link load and bandwidth fragmentation in a software defined network according to claim 1, It is characterized in that In step b, the network topology of the data center is perceived by the controller through sending LLDP link layer protocol messages. The shortest path algorithm adopts the loop-free KSP (K shortest path) algorithm, and selects the K shortest path sets with the least hops based on the hop number as the weight.
3. A flow scheduling method for integrating link load and bandwidth fragmentation in a software defined network according to claim 2, It is characterized in that The specific idea of the K shortest path algorithm is as follows: Calculate the first shortest path P(1), and then calculate the other K-1 shortest paths in sequence based on this; when calculating P(i+1), all nodes on P(i) except the terminal node are regarded as deviation nodes, and the shortest path from each deviation node to the terminal node is calculated, and then spliced with the path from the starting node to the deviation node on the previous P(i) to form a candidate path, and then the shortest deviation path is obtained.
4. The method for flow scheduling in software defined network integrating link load and bandwidth fragmentation according to claim 1, It is characterized in that In step d, the mathematical expression of the network load NL is as follows: Where B i is the default capacity of the link bandwidth, i represents the i-th link in the network link, L is the total number of network links, is the bandwidth occupied by link i, and then set the network load threshold, and select different scheduling strategies for the current flow according to whether NL exceeds the threshold.
