A switch-controller deployment method applied to SDN

By selecting key flows in SDN and establishing optimal controller placement and switch mapping models, the problem of control delay between switches and controllers is solved, and network performance and computing efficiency are improved.

CN115842738BActive Publication Date: 2024-09-13CHINA ACADEMY OF ELECTRONICS AND INFORMATION TECHNOLOGY OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211482722.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-24
Publication Date
2024-09-13
Estimated Expiration
2042-11-24

AI Technical Summary

Technical Problem

In software-defined networks (SDN), the control delay between switches and controllers is difficult to effectively reduce. Existing location-based solutions cannot effectively allocate switches when traffic fluctuates, resulting in network performance degradation.

Method used

By selecting key flows and establishing optimal controller placement and switch-controller mapping models, the controller locations are determined to minimize control delays. Heuristic algorithms and neural network models are used to optimize the mapping relationship between switches and controllers to meet communication delays. and processing capacity constraints.

Benefits of technology

It significantly reduces the control delay between the switch and the controller, improves network performance, is suitable for controller placement schemes under different network states, and improves computational efficiency and time complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842738B
    Figure CN115842738B
Patent Text Reader

Abstract

The present application discloses a switch-controller deployment method for SDN, which selects key flows; based on the selected key flows, establishes an optimal controller placement position and a switch-controller mapping model to determine the position of the controller, and maps the switch in the SDN to the corresponding controller to minimize the control delay between the controller and the switch; solves the optimal controller placement position and the switch-controller mapping model to obtain the switch-controller deployment result of the SDN. The method of the present application converts the problem of how to select the position of the controller in the network into the problem of solving the CPSCM by constructing an optimal controller placement and switch-controller mapping model (CPSCM). For different network states, the method of the present application can provide different controller placement solutions, which greatly reduces the control delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a switch-controller deployment method applied to SDN. Background Art

[0002] Wide Area Network (WAN) is of great significance in the real world. It connects different types of networks (such as data center networks, cellular networks, and metropolitan area networks, etc.) and provides different network applications by transmitting traffic between these networks. The emerging Software Defined Network (SDN) has significantly improved the performance of the wide area network through logical centralized control. Typically, SD-WAN (Software-Defined WAN) is large in scale and usually consists of multiple domains. Each domain contains an SDN controller to control the flows from different SDN switches flowing through its domain. SDN controllers need to be synchronized to maintain a unified global network view.

[0003] SDN's flexible traffic control comes from network programmability. When a flow passes through an SDN switch, it becomes a programmable flow and is able to change its forwarding path, which is defined as network programmability. The SDN controller adjusts the forwarding path of the flow by deploying flow entries, thereby enhancing the programmability of the network. The SDN controller has high network programmability and can frequently generate optimal routing policies and further adjust the forwarding path of the corresponding flow, so the SD-WAN has less chance of performance fluctuations under potential traffic changes.

[0004] To fully exploit the capabilities of SDN controllers, SD-WAN faces two main issues:

[0005] Where to place the controller;

[0006] How to correctly assign switches in the network to controllers.

[0007] However, the control delay between switches and controllers varies greatly, making it difficult to formulate a good solution to the above two problems. Control delay is an important issue that needs to be paid attention to in WAN operation. Control delay may bring some negative impacts to the WAN (such as routing policy updates, load balancing and energy efficiency), and even degrade network performance. Existing solutions to minimize control delay are usually coarse-grained location-based solutions, which treat each switch equally and only focus on the distance between the switch and the controller when placing the controller. In real environments, the number of flows passing through switches varies greatly during traffic fluctuations, which means that location-based solutions cannot achieve good results. Since some switches may have more opportunities to communicate with the controller, while some switches rarely need to communicate with the controller, it is inappropriate to simply treat switches in different locations as the same. Summary of the invention

[0008] The embodiment of the present application provides a switch-controller deployment method applied to SDN, which comprehensively considers key flows and network programmability to distinguish the impact of different switches on control operations, thereby reducing control delays.

[0009] The present application provides a switch-controller deployment method applied to SDN, including:

[0010] Select key streams;

[0011] Based on the selected key flows, an optimal controller placement position and a switch-controller mapping model are established to determine the location of the controller, and the switches in the SDN are mapped to the corresponding controllers to minimize the control delay between the controller and the switch;

[0012] The optimal controller placement and switch-controller mapping model satisfy:

[0013]

[0014]

[0015]

[0016]

[0017]

[0018]

[0019] Where i represents the number of the switch s, j represents the number of the controller C, T represents the total number of switches distributed in T different locations in the network; H represents selecting H switches from all switches as controllers; y j is a Boolean variable. If the controller is placed at position j, then y j =1, otherwise y j =0;x ij is a Boolean variable. If switch s i Mapped to controller C j On, then x ij =1, otherwise x ij =0; Is a Boolean variable. If the stream f with number l l There are k paths, and these paths pass through switch s i ,but otherwise δ i Represents all the paths of the critical flow passing through switch s i The number of paths; D ij Representative switches i and controller C j Communication delay; A j Represents controller C j Available control resources; k0 represents the initial forwarding path of flow f;

[0020] The optimal controller placement position and the switch-controller mapping model are solved to obtain the switch-controller deployment result of the SDN.

[0021] Optionally, the key flow is selected by training a target neural network model using a preset enhancement algorithm to select network traffic.

[0022] Optionally, the optimal controller placement position and the constraints of the switch-controller mapping model are configured in the following manner:

[0023] After a controller is selected and placed, the remaining switches in the network can only be mapped to one controller, which is the controller placement constraint:

[0024]

[0025] In the network, only H controllers can be placed, that is, the number of controllers is constrained:

[0026]

[0027] A switch in the network that is not selected as a controller can only be mapped to one controller, that is, the switch-controller mapping constraint:

[0028]

[0029] The control load of the controller should not exceed the processing capacity of the controller, that is, the processing capacity constraint of the controller:

[0030]

[0031] Optionally, solving the optimal controller placement position and switch-controller mapping model includes:

[0032] Initialize the switch-controller mapping relationship set and the controller placement position set to empty sets;

[0033] The binary variable x ij and Relax and solve the optimal controller placement and switch-controller mapping model to obtain each switch s i The relaxed solution set

[0034] The relaxed solution set Sort the values ​​in descending order to obtain the second solution set

[0035] Optionally, solving the optimal controller placement position and switch-controller mapping model further includes:

[0036] The key flows of each switch are sorted in descending order according to their programmability size, and after sorting, vector I is constructed based on the number of each switch. * , wherein the programmability size is used to describe the ability of the controller to change the critical flow path at the switch;

[0037] The vector I is traversed in the following manner * The switches in:

[0038] For the vector I * Switches in i0 , based on the second solution set The switches s i0 Map to The controller with the highest probability is recorded as j0;

[0039] If the controller j0 is placed at C j0 , and switch s i0 and controller C j0 If the mapping satisfies the number of controllers and the processing capacity constraints of the controllers, the control capacity is transferred to the controller C. j0 , and update the switch-controller mapping relationship set and the controller placement location set, otherwise, repeat from Select the controller to map.

[0040] Optionally, traverse the set of unmapped switches and perform the following steps:

[0041] Testing the control delay of each deployed controller on each path passing through any unmapped switch;

[0042] A controller with the lowest control delay is selected. If the controller with the lowest control delay satisfies the controller quantity constraint and the controller processing capacity constraint, a corresponding mapping is established, and the switch-controller mapping relationship set and the controller placement position set are updated.

[0043] The embodiment of the present application further proposes a computer device, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the aforementioned switch-controller deployment method applied to SDN are implemented.

[0044] The embodiment of the present application further proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the aforementioned switch-controller deployment method applied to SDN are implemented.

[0045] The embodiment of the present application constructs an optimal controller placement and switch-controller mapping model (CPSCM) to convert the problem of how to select the location of the controller in the network into the problem of solving the CPSCM. For different network states, the method of the present application can provide different controller placement solutions, greatly reducing control delays.

[0046] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0048] Figure 1 This is an example of a controller deployment process in a software defined network according to an embodiment of the present application;

[0049] Figure 2 This is an example of the programmability of controller deployment and switch-controller mapping according to an embodiment of the present application. DETAILED DESCRIPTION

[0050] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0051] The present application provides a switch-controller deployment method applied to SDN, including:

[0052] The key flows and network programmability are considered comprehensively to distinguish the impact of different switches on control operations. Figure 1 As shown, it consists of two modules: key flow selection and programmability explorer (PE). When initializing the network, this embodiment generates a set of paths for each flow. The key flow selection module obtains flow information by analyzing the historical traffic matrix and using the reinforcement learning method to select key flows.

[0053] Assume that the network has L flows, which form a set F = {f 1 ,f 2 ,...,f l ,...,f L}, in set F, the flow in the range [1,M] is defined as the key flow, and the flow in the range [M+1,L] is defined as the regular flow; for any flow f in set F l , whose path set contains K paths, which can be expressed as For the entire flow set F, its path set can be expressed as P = {P1, P2, ..., P l ,...,P L Typically, a software-defined wide area network is composed of H controllers located at H locations, each controller controls a switch domain, and the controllers are synchronized to maintain consistency of network information. This embodiment is used to solve the problem of how to place the controller in the network so that the control delay between the switch and the controller is minimized.

[0054] Specifically, in this example, based on the selected key flows, an optimal controller placement position and a switch-controller mapping model are established to determine the location of the controller, and the switches in the SDN are mapped to the corresponding controllers to minimize the control delay between the controller and the switch. The optimal controller placement position and the switch-controller mapping model satisfy:

[0055]

[0056]

[0057]

[0058]

[0059]

[0060]

[0061] Where i represents the number of the switch s, j represents the number of the controller C, T represents the total number of switches distributed in T different locations in the network; H represents selecting H switches from all switches as controllers; y j is a Boolean variable. If the controller is placed at position j, then y j =1, otherwise y j =0;x ij is a Boolean variable. If switch s i Mapped to controller C j On, then x ij =1, otherwise x ij =0; Is a Boolean variable. If the stream f with number l l There are k paths, and these paths pass through switch s i ,but otherwise δ i Represents all the paths of the critical flow passing through switch s i The number of paths; D ij Representative switches i and controller C j Communication delay; A j Represents controller C j Available control resources; k0 represents the initial forwarding path of flow f.

[0062] The optimal controller placement position and the switch-controller mapping model are solved to obtain the switch-controller deployment result of the SDN.

[0063] The embodiment of the present application constructs an optimal controller placement and switch-controller mapping model (CPSCM) to convert the problem of how to select the location of the controller in the network into the problem of solving the CPSCM. For different network states, the method of the present application can provide different controller placement solutions, greatly reducing control delays.

[0064] In some embodiments, the key flow is selected by training the target neural network model with a preset enhancement algorithm to select network traffic. In this example, the key flow refers to the flow that plays a decisive role in network performance (such as the flow on the most congested link), which generally has a higher traffic load and is more likely to cause network congestion. In order to make the selected flow more representative, the key flow selection model represents the selection decision as a neural network. Neural networks provide an efficient and scalable way to combine traffic matrices at different times into one decision, and train the neural network using a custom enhancement algorithm. After the training is completed, the optimal key flow selection model is used to select key flows from the real-time traffic matrix.

[0065] In some embodiments, the optimal controller placement and switch-controller mapping model constraints are configured in the following manner:

[0066] After a controller is selected and placed, the remaining switches in the network can only be mapped to one controller, which is the controller placement constraint:

[0067]

[0068] In the network, only H controllers can be placed, that is, the number of controllers is constrained:

[0069]

[0070] A switch in the network that is not selected as a controller can only be mapped to one controller, that is, the switch-controller mapping constraint:

[0071]

[0072] The control load of a controller is equivalent to the total overhead of the associated flows in the domain it controls. In this example, the control processing capacity of the controller is measured by the number of flows that the controller can normally control without introducing additional delays (such as queuing delays). The control load of the controller should not exceed the processing capacity of the controller, that is, the processing capacity constraint of the controller:

[0073]

[0074] In the prior art, the typical solution of integer programming is to use an integer program optimization solver to obtain the optimal solution to the above CPSCM problem. However, for larger networks (with a large number of switches and flows), the solution space is relatively large, and it takes longer to calculate feasible solutions, wasting more computing resources. The heuristic algorithm of PE is proposed in this application to solve this problem, thereby improving performance and time complexity. The basic idea of ​​PE is to place a controller first, and then establish a switch-controller mapping for the controller until all controllers are placed and switches are mapped. In some embodiments, solving the optimal controller placement position and switch-controller mapping model includes:

[0075] Initialize the switch-controller mapping relationship set and the controller placement position set to empty sets;

[0076] The binary variable x ij and Relax and solve the optimal controller placement and switch-controller mapping model to obtain each switch s i The relaxed solution set

[0077] The relaxed solution set Sort the values ​​in descending order to obtain the second solution set

[0078] In some embodiments, solving the optimal controller placement position and the switch-controller mapping model further includes: first testing switches with more path traversals, sorting the switches in descending order according to the programmability size of the key flows of the switches, and constructing a vector I based on the numbers of the switches after sorting. * .

[0079] The programmability dimension is used to describe the ability of the controller to change the critical flow path at the switch. Figure 2 The definition of network programmability is explained. For process f: s21→s24, there are three paths at s21 (s21→s23→s22, s21→s20→s22, s21→s24→s22), so its network programmability is three at s21. On switch s21, the controller can determine that the next forwarding path of process f is s23, s20 or s24, thereby adjusting the forwarding path of the process and realizing network programmability.

[0080] The vector I is traversed in the following manner * The switches in:

[0081] You can traverse test I in sequence * The switches in the vector I* Switches in i0 , based on the second solution set The switches s i0 Map to The controller with the highest probability is recorded as j0.

[0082] If the controller j0 is placed at C j0 , and switch s i0 and controller C j0 The mapping of satisfies the constraints of the number of controllers and the processing capacity of the controllers. This placement and mapping method is feasible, so the control capacity is transferred to controller C. j0 , and update the switch-controller mapping relationship set and the controller placement location set, otherwise, repeat from Select a controller from the list to map. If the mapping is successful, update the corresponding collection and * The other switches in the test are tested in turn.

[0083] In some embodiments, the set of switches that are not mapped is traversed, and the following steps are performed:

[0084] Testing the control delay of each deployed controller on each path passing through any unmapped switch;

[0085] A controller with the lowest control delay is selected. If the controller with the lowest control delay satisfies the controller quantity constraint and the controller processing capacity constraint, a corresponding mapping is established, and the switch-controller mapping relationship set and the controller placement position set are updated.

[0086] This application converts the problem of how to select the location of the controller in the network into the problem of solving the CPSCM by constructing an optimal controller placement and switch-controller mapping model (CPSCM), and designs a heuristic solution PE to complete the solution of the CPSCM model. The established model and its solution process adopt a fine-grained placement solution, and can provide different controller placement solutions for different network states, greatly reducing control delays. Under a variety of network topologies and real traffic matrices, the method of this application can effectively reduce network delays, reduce solution time, and greatly improve network performance.

[0087] The embodiment of the present application further proposes a computer device, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the aforementioned switch-controller deployment method applied to SDN are implemented.

[0088] The embodiment of the present application further proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the aforementioned switch-controller deployment method applied to SDN are implemented.

[0089] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0090] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0092] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A switch-controller deployment method for SDN, It is characterized in that include: Select key streams; Based on the selected key flows, an optimal controller placement position and a switch-controller mapping model are established to determine the location of the controller, and the switches in the SDN are mapped to the corresponding controllers to minimize the control delay between the controller and the switch; The optimal controller placement and switch-controller mapping model satisfy: Where i represents the number of the switch s, j represents the number of the controller C, T represents the total number of switches distributed in T different locations in the network; H represents selecting H switches from all switches as controllers; y j is a Boolean variable. If the controller is placed at position j, then y j =1, otherwise y j =0;x ij is a Boolean variable. If switch s i Mapped to controller C j On, then x ij =1, otherwise x ij =0; Is a Boolean variable. If the stream f with number l l There are k paths, and these paths pass through switch s i ,but otherwise δ i Represents all the paths of the critical flow passing through switch s i The number of paths; D ij Representative switches i and controller C j Communication delay; A j Represents controller C j Available control resources; k 0 represents the initial forwarding path of flow f; The optimal controller placement position and switch-controller mapping model are solved to obtain the switch-controller deployment result of SDN.

2. The switch-controller deployment method for SDN according to claim 1, It is characterized in that The key flow is selected by training the target neural network model using a preset enhancement algorithm to select network traffic.

3. The switch-controller deployment method for SDN according to claim 1, It is characterized in that The optimal controller placement and switch-controller mapping model constraints are configured as follows: After a controller is selected and placed, the remaining switches in the network can only be mapped to one controller, which is the controller placement constraint: In the network, only H controllers can be placed, that is, the number of controllers is constrained: A switch in the network that is not selected as a controller can only be mapped to one controller, that is, the switch-controller mapping constraint: The control load of the controller should not exceed the processing capacity of the controller, that is, the processing capacity constraint of the controller:

4. The switch-controller deployment method for SDN according to claim 3, It is characterized in that Solving the optimal controller placement and switch-controller mapping model includes: Initialize the switch-controller mapping relationship set and the controller placement position set to empty sets; The binary variable x ij and Relax and solve the optimal controller placement and switch-controller mapping model to obtain each switch s i The relaxed solution set The relaxed solution set Sort the values ​​in descending order to obtain the second solution set 5. The switch-controller deployment method for SDN according to claim 4, It is characterized in that Solving the optimal controller placement position and switch-controller mapping model also includes: The key flows of each switch are sorted in descending order according to their programmability size, and after sorting, vector I is constructed based on the number of each switch. * , wherein the programmability size is used to describe the ability of the controller to change the critical flow path at the switch; The vector I is traversed in the following manner * The switches in: For the vector I * Switches in i0 , based on the second solution set The switches i0 Map to The controller with the highest probability is recorded as j 0 ; If the controller j 0 Placed in C j0 , and switch s i0 and controller C j0 If the mapping satisfies the number of controllers and the processing capacity constraints of the controllers, the control capacity is transferred to the controller C. j0 , and update the switch-controller mapping relationship set and the controller placement location set, otherwise, repeat from Select the controller to map.

6. The switch-controller deployment method for SDN according to claim 5, It is characterized in that Traverse the set of unmapped switches and perform the following steps: Testing the control delay of each deployed controller on each path passing through any unmapped switch; A controller with the lowest control delay is selected. If the controller with the lowest control delay satisfies the controller quantity constraint and the controller processing capacity constraint, a corresponding mapping is established, and the switch-controller mapping relationship set and the controller placement position set are updated.

7. A computer device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the switch-controller deployment method applied to SDN are implemented as claimed in any one of claims 1 to 6.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the switch-controller deployment method applied to SDN are implemented as claimed in any one of claims 1 to 6.