A method and system for allocating virtual resources in smart grid slices based on SDN
By using the simulated annealing-particle swarm algorithm in the smart grid system to allocate resources in the SDN network virtualization architecture, the problems of poor adaptability and feature resolution in traditional methods are solved, and the resource allocation in the smart grid system is realized. Efficient management and service quality improvement.
Patent Information
- Application Number
- CN202110595001.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2041-05-28
AI Technical Summary
Traditional network slicing virtual resource allocation methods have problems with insufficient feature resolution and poor adaptability in smart grid systems. They cannot effectively manage massive data transmission and dynamic resource allocation, which limits the expansion and stability of smart grid systems.
The simulated annealing-particle swarm algorithm is used to allocate virtual resources for smart grid system network slices in the SDN-based network virtualization architecture. The particle swarm algorithm and simulated annealing algorithm are used to find the global optimal solution, optimize network resource mapping and allocation, and improve resource utilization. rate and service quality.
It achieves flexible changes and efficient management of network resources in smart grid systems, improves service quality and system stability, adapts to new business needs, and simplifies network management and dynamic resource allocation for infrastructure providers.
Smart Images

Figure CN113204913B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technologies, and in particular to a method and system for allocating virtual resources for smart grid slices based on SDN. Background Art
[0002] With the development of smart grid technology, the resource load carried by the smart grid system is increasing. It is necessary to build a resource optimization allocation model for the smart grid system, adopt adaptive resource scheduling and retrieval methods to allocate resources in the smart grid system, and improve the output reliability and stability of the smart grid system.
[0003] Traditional network slice virtual resource allocation methods include a network utility maximization virtual resource allocation algorithm based on network slices. It uses spectrum resources as a revenue carrier by adopting a commercial model and performs differentiated pricing for different slice networks. At the same time, computing resources and backhaul links are used as overheads, and the differentiated requirements of slice networks for computing resources and spectrum resources are considered. A distributed iterative algorithm is designed through Lagrangian dual decomposition to solve the utility model. The advantage of this algorithm is that network resources gain benefits, but the disadvantage is that the feature resolution ability is not strong. Another method is a performance-aware network slice deployment method. When deploying network slice instances, a two-stage deployment method of virtual node mapping and virtual link mapping is adopted. In the virtual node deployment stage, the performance impact factor of VNF is first defined from the perspective of resource supply and demand, and then the sum of the performance impact factors of all VNFs in the network slice instance on the deployable physical server is calculated. In the virtual link deployment stage, the shortest path algorithm is used to calculate the link mapping result. This method effectively reduces the impact of other network slice instances on its own service performance, but the disadvantage is that the adaptability of virtual resource allocation is poor.
[0004] The traditional network virtualization architecture uses FlowVisor, which implements network virtualization by adding a virtualization layer between the hardware abstraction layer and the control layer. Although this method is simple and easy to deploy, the SP (service provider in Internet applications) interacts with the underlying switches through its own policies and controllers, which requires the SP to understand the allocation of underlying resources. At the same time, due to the transparency of the virtualization layer, the SP cannot quickly program the software to achieve dynamic resource configuration. All these make the FlowVisor solution only suitable for the construction of small networks, and cannot achieve the full deployment of large networks in smart grid systems. Summary of the invention
[0005] The purpose of the present invention is to propose a method for allocating virtual resources for smart grid slices based on SDN, which adopts the simulated annealing-particle swarm method to allocate virtual resources for network slices of smart grid system and find the optimal solution. It introduces SDN (software defined network) technology, which can accommodate massive smart grid data transmission and can be flexibly changed according to demand, so as to adapt to the needs of new business and ensure the quality of service.
[0006] The purpose of the present invention is to propose a smart grid slice virtual resource allocation system based on SDN, introduce the SDN virtual network architecture, which is conducive to the separation of the control platform and the data platform, thereby making it more convenient to manage network slice resources.
[0007] To achieve this object, the present invention adopts the following technical solutions:
[0008] A method for allocating virtual resources for smart grid slices based on SDN, comprising the following steps:
[0009] Step 1: Build a network virtualization architecture based on SDN;
[0010] Step 2: Optimize the allocation of virtual resources in the network slice of the smart grid system based on the constructed network virtualization architecture;
[0011] The network virtualization architecture includes mapping the underlying physical network of InP by the SP virtual network, and then taking the throughput of the entire network as the optimization target, debugging the optimization target by the simulated annealing-particle swarm method, and obtaining the best VNF mapping solution, that is, using the simulated annealing-particle swarm method to allocate the virtual resources of the smart grid system network slices and find the optimal solution.
[0012] Furthermore, the simulated annealing-particle swarm method is used to allocate virtual resources of network slices of the smart grid system and find the optimal solution, which includes the following steps:
[0013] Definition of simulated annealing-particle swarm algorithm: The particle swarm algorithm is used to find the optimal value of the entire network of the smart grid system through iteration, and the search for the optimal value is completed in this network space; starting from the initial temperature, the simulated annealing algorithm gradually stabilizes as the temperature continues to drop, and the solution of the simulated annealing algorithm is obtained. The stable solution may be a local optimal solution. When a local optimal solution is found, the simulated annealing algorithm will jump out of this local optimal solution with a certain probability to find the global optimal solution of the objective function;
[0014] The simulated annealing-particle swarm algorithm is used for optimizing virtual resource allocation of network slices: first, a basic particle initialization method, a basic particle fitness evaluation function and a basic particle update optimization method are designed; then, the above algorithms and functions are executed, and then the optimization is carried out through the two processes of hybridization operation and mutation operation. The two processes are repeated until the final result is satisfactory.
[0015] Furthermore, the method of searching for the optimal value of the entire network of the smart grid system network by iteratively using the particle swarm algorithm and completing the search for the optimal value in this network space is as follows:
[0016] Assume that a D-dimensional space is the target area of this search. The space contains N particles. The i-th particle in the space is x i , where the position of each particle represents a potential solution, and x i After the objective function is introduced, the fitness value of the value can be calculated, and the value of x can be measured according to the size of the fitness value. i Advantages; i represents the flight speed of particle i; p i represents the best search position corresponding to particle i; p g is the optimal position of the final search of the entire particle swarm. The specific model formula is:
[0017] v i ←v i +c1r1(p i -x i )+c2r2(p g -x i )
[0018] x i ←x i +v i ,
[0019] Where i = 1, 2, 3, .., N; learning factors c1 and c2 are non-negative numbers; r1 and r2 are random numbers between 0 and 1;
[0020] The corresponding stopping condition in the above iterative process is that the final value or final position of the search can meet the minimum adaptation threshold.
[0021] Furthermore, in the simulated annealing algorithm, it is assumed that T k Represents the initial temperature, and obtains a random initial solution x0. The steps are as follows:
[0022] ① A new feasible solution will be generated in the field of x, which is recorded as x′;
[0023] ② Calculate the objective function f(x′) of x′ i ) and the objective function f(x) of x;
[0024] ③According to min{1,exp(-△f / T k )}>random[0,1] to obtain the final equilibrium state x′, where random[0,1] is a random number in the interval [0,1];
[0025] ④Perform annealing operation: T k+1 =CT k ,k←k+1, where C∈(0,1);
[0026] ⑤If T k If the convergence condition is finally met, the annealing process ends; if the corresponding condition is not met, continue to execute the above steps.
[0027] Furthermore, the method for initializing the elementary particles is:
[0028] Assume that a smart grid functional module is f x , then the total set of such modules is F = {f1,f2,f3,...,f n}, i.e. a traffic type;
[0029] The delay requirement of the flow is D∈(d1,d h ) expression, d1 and d h represents the corresponding demand threshold in terms of delay; the bandwidth requirement of the traffic is B∈(b1,b h ), where b1 and b h represents the corresponding demand threshold in terms of bandwidth; the traffic matrix V represents the traffic distribution between the source node and the destination node;
[0030] According to the above traffic usage, two base network slices are obtained using the open shortest path algorithm, which are initialized to obtain basic particles.
[0031] Furthermore, the performance parameters in the network slice are normalized: Where: v norm is the normalized value of the performance parameter; v is the performance parameter; μ represents the average value of the performance parameter; σ is the variance corresponding to the performance parameter;
[0032] The fitness evaluation function of the designed elementary particles is: F(α, β, D, B) = -αe D +βe B , where D is the delay value after normalization; B is the bandwidth value; α represents the proportion of low-latency slices in the total number; β is the proportion of high-bandwidth slices in the total number of slices.
[0033] Furthermore, the elementary particle update optimization method is:
[0034] ① Subgraph hybridization
[0035] For each evolutionary process, the hybridization operation needs to use the corresponding probability. The corresponding particles should be placed in the group, and the particles are randomly allowed to complete hybridization. The offspring replaces the parent generation. This method can optimize the population while maintaining the same population size. The operation process is as follows:
[0036]
[0037] Among them, f child (x) and f parentk (x) represents the position of the offspring and the parent; p represents a random number, generally between 0 and 1; the speed of the offspring particles is obtained by the following formula:
[0038]
[0039] Where v represents the velocity vector; f childk (v) and f parentk (v) represents the corresponding speed of the offspring and parent generations respectively;
[0040] ②Subgraph mutation
[0041] For each evolution, the mutation operation needs to be selected according to the mutation probability. After the mutation is completed, the new result must replace the original result, that is: f(x)=x×(1+g(σ)), where g(σ) is the Gaussian kernel function and σ is the kernel parameter.
[0042] Further, the steps of executing the algorithm and function include:
[0043] ① Normalizing the relevant parameters corresponding to different network slices to obtain initial parameters, wherein the relevant parameters include crossover parameters, mutation probability parameters, and learning factor parameters;
[0044] ② Using the open shortest path algorithm to obtain two base network slices, the two base network slices are a low-latency slice and a high-bandwidth slice, and a hybrid pool is obtained, which is initialized to obtain basic particles, and the operation of the basic particles is completed based on the basic particle fitness evaluation function;
[0045] ③ According to formula (1) and crossover probability P e Complete population selection and generate a new population; select x from the offspring j and x k Individuals, and combined with formula (1) to obtain new individuals, calculate f(x j ), f(x k ),f(x j ′) and f(x k ′);
[0046] Define the initial temperature T, at min{1,exp(-(f(x j ′)-f(x j )) / T)}>random, x j ′At this time, it is identified as a new individual. If min{1,exp(-(f(x k ′)-f(x k )) / T)>random, identify x k ' is a new individual;
[0047] ④ The population obtained after crossover should be combined with the mutation probability P m To complete the further selection of subpopulations, the specific process is: j For the new individual, we can get the new individual x according to f(x)=x×(1+g(σ)) j ′, complete f(x j ) and f(x j ′) is further calculated in min{1,exp(-(f(x j ′)-f(x j )) / T)}>random, called x j ' is a new individual;
[0048] ⑤ Test the termination condition. If the set number of times is reached, the process ends and the optimal solution G is finally obtained. gb ;
[0049] ⑥ If this process does not reach the optimal solution, change the annealing temperature in step ③ and process through step ③ again until the global optimal solution is reached.
[0050] A SDN-based smart grid slice virtual resource allocation system includes a smart grid control platform and an underlying network supporting SDN technology. The smart grid control platform calls the above-mentioned SDN-based smart grid slice virtual resource allocation method to perform network virtual resource allocation.
[0051] The beneficial effects of the embodiments of the present invention are:
[0052] SDN network virtualization uses a unified shared controller platform, namely the smart grid control platform. SPs use applications to fully control their own virtual networks. The smart grid control platform runs a large number of applications, each of which corresponds to its own address space, virtual topology and event processor. InP (infrastructure provider) only needs to provide capabilities to SP without requiring SP to understand its internal network mapping, which facilitates InP (infrastructure provider) to control its own network and quickly realizes remapping to complete dynamic resource allocation, while ensuring security in the smart grid system.
[0053] The simulated annealing-particle swarm method is used to allocate virtual resources of network slices of the smart grid system and find the optimal solution, which has strong feature resolution capabilities. The SDN (software defined network) technology has been introduced to accommodate massive smart grid data transmission, and at the same time, it can be flexibly changed according to demand, thereby adapting to the needs of new businesses and ensuring the quality of service.
[0054] The distribution system of the present invention introduces the SDN virtual network architecture, which is conducive to the separation of the control platform and the data platform, thereby making it more convenient to manage network slice resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is an architecture diagram of a SDN-based smart grid slice virtual resource allocation system according to an embodiment of the present invention;
[0056] Figure 2 This is a diagram of the SDN network architecture. DETAILED DESCRIPTION
[0057] 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.
[0058] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "transverse", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships 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. In addition, features defined as "first" or "second" may explicitly or implicitly include one or more of the features, and are used to distinguish and describe features, without distinction of order or importance.
[0059] In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0060] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0061] Combine the following Figure 1 to Figure 2 , describing the SDN-based smart grid slice virtual resource allocation method and system according to an embodiment of the present invention.
[0062] A method for allocating virtual resources for smart grid slices based on SDN in an embodiment of the present invention includes the following steps:
[0063] Step 1: Build a network virtualization architecture based on SDN;
[0064] Step 2: Optimize the allocation of virtual resources in the network slice of the smart grid system based on the constructed network virtualization architecture;
[0065] The network virtualization architecture includes mapping the underlying physical network of InP by the SP virtual network, and then taking the throughput of the entire network as the optimization target, debugging the optimization target by the simulated annealing-particle swarm method, and obtaining the best VNF mapping solution, that is, using the simulated annealing-particle swarm method to allocate the virtual resources of the smart grid system network slices and find the optimal solution.
[0066] The embodiment of the present invention uses SDN to change the way traditional networks control data flows. SDN separates the control plane of a device from the device and puts it into a unified external server, which centrally manages all devices on the forwarding path through unified instructions. This centralized controller knows all the necessary information, and this controller can provide an open API to be controlled by upper-layer applications through programming, thereby improving the efficiency of slice resource allocation.
[0067] The SDN architecture can be divided into three layers: application plane, control plane, and data plane. The application plane interacts with the control plane through the northbound interface. The upper-layer applications interact through the northbound interface. The upper-layer applications send network control commands to the controller through the northbound interface, and the controller provides the underlying network information to the upper-layer applications through the northbound interface. The control plane interacts with the data plane through the southbound interface. The controller collects the underlying network information through the southbound interface and sends the flow table to the SDN switch in the data plane.
[0068] The control plane in the SDN network architecture is equal to the InP total event processor of the smart grid control platform. The application plane in the SDN network architecture is equal to the SP virtual network application of the smart grid control platform. The data plane in the SDN network architecture is equal to the InP resource allocation of the smart grid control platform.
[0069] Virtualization is implemented on the SDN controller, and the management and resource allocation of the virtual network are implemented as the basic services of NOS (network operating system), so as to meet the requirements of dynamically adjusting the virtualization configuration and realize better SDN network virtualization.
[0070] Further, step 1: building a network virtualization architecture based on SDN;
[0071] Step 2: Optimize the allocation of virtual resources in the network slice of the smart grid system based on the constructed network virtualization architecture;
[0072] The network virtualization architecture includes mapping the underlying physical network of InP by the SP virtual network, and then taking the throughput of the entire network as the optimization target, debugging the optimization target by the simulated annealing-particle swarm method, and obtaining the best VNF mapping solution, that is, using the simulated annealing-particle swarm method to allocate the virtual resources of the smart grid system network slices and find the optimal solution.
[0073] The simulated annealing-particle swarm method is used to allocate virtual resources of network slices in smart grid systems and find the optimal solution, which includes the following steps:
[0074] Definition of simulated annealing-particle swarm algorithm: The particle swarm algorithm is used to find the optimal value of the entire network of the smart grid system through iteration, and the search for the optimal value is completed in this network space; starting from the initial temperature, the simulated annealing algorithm gradually stabilizes as the temperature continues to drop, and the solution of the simulated annealing algorithm is obtained. The stable solution may be a local optimal solution. When a local optimal solution is found, the simulated annealing algorithm will jump out of this local optimal solution with a certain probability to find the global optimal solution of the objective function;
[0075] The simulated annealing-particle swarm algorithm is used for optimizing virtual resource allocation of network slices: first, a basic particle initialization method, a basic particle fitness evaluation function and a basic particle update optimization method are designed; then, the above algorithms and functions are executed, and then the optimization is carried out through the two processes of hybridization operation and mutation operation. The two processes are repeated until the final result is satisfactory.
[0076] The particle swarm algorithm has a global optimization function. It searches for the optimal value of the entire network in an iterative manner, generates a random solution in the initial state, and completes the search for the optimal value in this space. Specifically, the method of using the particle swarm algorithm to iteratively search for the optimal value of the entire network of the smart grid system network and complete the search for the optimal value in this network space is:
[0077] Assume that a D-dimensional space is the target area of this search. The space contains N particles. The i-th particle in the space is x i , where the position of each particle represents a potential solution, and x i After the objective function is introduced, the fitness value of the value can be calculated, and the value of x can be measured according to the size of the fitness value. i Advantages; i represents the flight speed of particle i; p i represents the best search position corresponding to particle i; p g is the optimal position of the final search of the entire particle swarm. The specific model formula is:
[0078] v i ←v i +c1r1(p i -x i )+c2r2(p g -x i )
[0079] x i ←x i +v i ,
[0080] Where i = 1, 2, 3, .., N; learning factors c1 and c2 are non-negative numbers; r1 and r2 are random numbers between 0 and 1;
[0081] The corresponding stopping condition in the above iterative process is that the final value or final position of the search can meet the minimum adaptation threshold.
[0082] Simulated annealing simulates the cooling process of metal through calculation formulas. The simulated annealing algorithm starts from a relatively high temperature, namely the initial temperature. As the temperature continues to drop, the solution of the algorithm gradually stabilizes, but this stable solution may be a local optimal solution. At this time, the simulated annealing algorithm will jump out of this local optimal solution with a certain probability to find the global optimal solution of the objective function. r is the current probability of accepting a worse solution; 1 represents the probability of accepting a better point. When the initial temperature is high and the temperature decreases slowly during the entire simulation process, the global optimal value with a probability of 1 can be obtained.
[0083] Specifically, in the simulated annealing algorithm, it is assumed that T kRepresents the initial temperature, and obtains a random initial solution x0. The steps are as follows:
[0084] ① A new feasible solution will be generated in the field of x, which is recorded as x′;
[0085] ② Calculate the objective function f(x′) of x′ i ) and the objective function f(x) of x;
[0086] ③According to min{1,exp(-△f / T k )}>random[0,1] to obtain the final equilibrium state x′, where random[0,1] is a random number in the interval [0,1];
[0087] ④Perform annealing operation: T k+1 =CT k ,k←k+1, where C∈(0,1);
[0088] ⑤If T k If the convergence condition is finally met, the annealing process ends; if the corresponding condition is not met, continue to execute the above steps.
[0089] The method of the embodiment of the present invention first defines a set of flows. For the case where the flow requirements of the smart grid functional modules are the same or similar, specifically, the method for initializing the elementary particles is:
[0090] Assume that a smart grid functional module is f x , then the total set of such modules is F = {f1,f2,f3,...,f n}, i.e. a traffic type;
[0091] The delay requirement of the flow is D∈(d1,d h ) expression, d1 and d h represents the corresponding demand threshold in terms of delay; the bandwidth requirement of the traffic is B∈(b1,b h ), where b1 and b h represents the corresponding demand threshold in terms of bandwidth; the traffic matrix V represents the traffic distribution between the source node and the destination node;
[0092] According to the above traffic usage, two base network slices are obtained using the open shortest path algorithm, which are initialized to obtain basic particles.
[0093] The basic particles are the initially formed populations. Each population has a potential solution, which represents the corresponding optional routing strategy. The number of nodes in this network topology is represented by N.
[0094] The main scenarios of smart grid systems are divided into various conditions such as wide area coverage, large capacity, low power consumption, and low latency. The key indicators for evaluation are speed, traffic density, latency, bandwidth, and other aspects. In combination with a series of indicators, the embodiment of the present invention mainly uses latency and bandwidth as the main indicators for performance evaluation. The performance differences in network slicing are mainly expressed by related parameters. The parameters themselves have a certain range of values, and it is difficult to conduct quantitative analysis on them. The embodiment of the present invention normalizes different parameters. Specifically, the function for normalizing the performance parameters in network slicing is: Where: v norm is the normalized value of the performance parameter; v is the performance parameter; μ represents the average value of the performance parameter; σ is the variance corresponding to the performance parameter;
[0095] The fitness of a particle corresponds to the fitness of a slice, and the fitness evaluation function of the basic particle is designed as: F(α,β,D,B)=-αe D +βe B , where D is the delay value after normalization; B is the bandwidth value; α represents the proportion of low-latency slices in the total number; β is the proportion of high-bandwidth slices in the total number of slices.
[0096] In the method of the embodiment of the present invention, the new individuals also need to undergo hybridization and mutation operations, and finally these individuals are annealed, so that the entire population can be further optimized to obtain a global optimal solution. Specifically, the elementary particle (population) update optimization method is:
[0097] ① Subgraph hybridization
[0098] For each evolutionary process, the hybridization operation needs to use the corresponding probability. The corresponding particles should be placed in the group, and the particles are randomly allowed to complete hybridization. The offspring replaces the parent generation. This method can optimize the population while maintaining the same population size. The operation process is as follows:
[0099]
[0100] Among them, f child (x) and f parentk (x) represents the position of the offspring and the parent; p represents a random number, generally between 0 and 1; the speed of the offspring particles is obtained by the following formula:
[0101]
[0102] Where v represents the velocity vector; f childk (v) and f parentk (v) represents the corresponding speed of the offspring and parent generations respectively;
[0103] ②Subgraph mutation
[0104] For each evolution, the mutation operation needs to be selected according to the mutation probability. After the mutation is completed, the new result must replace the original result, that is: f(x)=x×(1+g(σ)), where g(σ) is the Gaussian kernel function and σ is the kernel parameter.
[0105] Further, the steps of executing the algorithm and function include:
[0106] ① Normalizing the relevant parameters corresponding to different network slices to obtain initial parameters, wherein the relevant parameters include crossover parameters, mutation probability parameters, and learning factor parameters;
[0107] ② Using the open shortest path algorithm to obtain two base network slices, the two base network slices are a low-latency slice and a high-bandwidth slice, and a hybrid pool is obtained, which is initialized to obtain basic particles, and the operation of the basic particles is completed based on the basic particle fitness evaluation function;
[0108] ③ According to formula (1) and crossover probability P e Complete population selection and generate a new population; select x from the offspring j and x k Individuals, and combined with formula (1) to obtain new individuals, calculate f(x j ), f(x k ),f(x j ′) and f(x k ′);
[0109] Define the initial temperature T, at min{1,exp(-(f(x j ′)-f(x j )) / T)}>random, x j ′At this time, it is identified as a new individual. If min{1,exp(-(f(x k ′)-f(x k )) / T)>random, identify x k ' is a new individual;
[0110] ④ The population obtained after crossover should be combined with the mutation probability P m To complete the further selection of subpopulations, the specific process is: j For the new individual, we can get the new individual x according to f(x)=x×(1+g(σ)) j ′, complete f(x j ) and f(x j ′) is further calculated in min{1,exp(-(f(x j ′)-f(x j)) / T)}>random, called x j ' is a new individual;
[0111] ⑤ Test the termination condition. If the set number of times is reached, the process ends and the optimal solution G is finally obtained. gb ;
[0112] ⑥ If this process does not reach the optimal solution, change the annealing temperature in step ③ and process through step ③ again until the global optimal solution is reached.
[0113] The embodiment of the present invention studies the customized solution of 5G smart grid network slicing, and optimizes the algorithm in a multi-objective manner such as bandwidth, latency and reliability to achieve the purpose of reducing network energy consumption and improving resource utilization. The main feature of this method is that it introduces hybridization and mutation methods, improves the traditional basic algorithm, and further optimizes the local part of the network. It can also use simulated annealing to seek the optimal value locally, so that the search performance of the entire system is further improved.
[0114] Correspondingly, an embodiment of the present invention also provides an SDN-based smart grid slice virtual resource allocation system, including a smart grid control platform and an underlying network supporting SDN technology, wherein the smart grid control platform calls the above-mentioned SDN-based smart grid slice virtual resource allocation method to perform network virtual resource allocation.
[0115] The SDN architecture can be divided into three layers: application plane, control plane, and data plane. The application plane interacts with the control plane through the northbound interface. The upper-layer applications interact through the northbound interface. The upper-layer applications send network control commands to the controller through the northbound interface, and the controller provides the underlying network information to the upper-layer applications through the northbound interface. The control plane interacts with the data plane through the southbound interface. The controller collects the underlying network information through the southbound interface and sends the flow table to the SDN switch in the data plane.
[0116] The control plane in the SDN network architecture is equal to the InP total event processor of the smart grid control platform. The application plane in the SDN network architecture is equal to the SP virtual network application of the smart grid control platform. The data plane in the SDN network architecture is equal to the InP resource allocation of the smart grid control platform.
[0117] Other structures and operations of a SDN-based smart grid slice virtual resource allocation method and system according to an embodiment of the present invention are well known to ordinary technicians in the field and will not be described in detail here.
[0118] In the description of this specification, the description with reference to the terms "embodiment", "example", etc. 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 can be combined in any one or more embodiments or examples in a suitable manner.
[0119] 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. A method for allocating virtual resources in a smart grid slice based on SDN, characterized in that: The following steps are involved: Step 1: Build a network virtualization architecture based on SDN; Step 2: Optimize the allocation of virtual resources in the network slice of the smart grid system based on the constructed network virtualization architecture; The network virtualization architecture includes the SP virtual network mapping the underlying physical network of the InP, and then taking the throughput of the entire network as the optimization target, the optimization target is debugged by the simulated annealing-particle swarm method, and the best VNF mapping solution is obtained, that is, the simulated annealing-particle swarm method is used to allocate the virtual resources of the network slice of the smart grid system and find the optimal solution; The simulated annealing-particle swarm method is used to allocate virtual resources of network slices in smart grid systems and find the optimal solution, which includes the following steps: Definition of simulated annealing-particle swarm algorithm: The particle swarm algorithm is used to find the optimal value of the entire network of the smart grid system through iteration, and the search for the optimal value is completed in this network space; starting from the initial temperature, the simulated annealing algorithm gradually stabilizes as the temperature continues to drop, and the solution of the simulated annealing algorithm is obtained. The stable solution may be a local optimal solution. When a local optimal solution is found, the simulated annealing algorithm will jump out of this local optimal solution with a certain probability to find the global optimal solution of the objective function; The simulated annealing-particle swarm algorithm is used for optimizing virtual resource allocation of network slices: first, a basic particle initialization method, a basic particle fitness evaluation function, and a basic particle update optimization method are designed; then, the above algorithms and functions are executed, and then the optimization is carried out through the two processes of hybridization operation and mutation operation. The two processes are repeated and the final result is satisfactory. Wherein, the method of initializing the elementary particles is: Assume that a smart grid functional module is f x , then the total set of such modules is F = {f1,f2,f3,...,f n }, i.e. a traffic type; The delay requirement of the flow is D∈(d1,d h ) expression, d1 and d h Indicates the corresponding demand threshold B∈(b1,b h ) value; the bandwidth requirement of the traffic is, where b1 and b h represents the corresponding demand threshold in terms of bandwidth; the traffic matrix V represents the traffic distribution between the source node and the destination node; According to the above traffic usage, two base network slices are obtained using the open shortest path algorithm, which are initialized to obtain basic particles; The basic particle update optimization method is: ① Subgraph hybridization For each evolutionary process, the hybridization operation needs to use the corresponding probability. The corresponding particles should be placed in the group, and the particles are randomly allowed to complete hybridization. The offspring replaces the parent generation. This method can optimize the population while maintaining the same population size. The operation process is as follows: Among them, f child (x) and f parentk (x) represents the position of the offspring and the parent; p represents a random number, generally between 0 and 1; the speed of the offspring particles is obtained by the following formula: Where v represents the velocity vector; f childk (v) and f parentk (v) represents the corresponding speed of the offspring and parent generations respectively; ②Subgraph mutation For each evolution, the mutation operation needs to be selected according to the mutation probability. After the mutation is completed, the new result must replace the original result, that is: f(x)=x×(1+g(σ)), where g(σ) is the Gaussian kernel function and σ is the kernel parameter.
2. The method for allocating virtual resources for smart grid slices based on SDN according to claim 1, characterized in that: The method of using the particle swarm algorithm to iteratively find the optimal value of the entire network of the smart grid system network and complete the search for the optimal value in this network space is: Assume that a D-dimensional space is the target area of this search. The space contains N particles. The i-th particle in the space is x i , where the position of each particle represents a potential solution, and x i After the objective function is introduced, the fitness value of the value can be calculated, and the value of x can be measured according to the size of the fitness value. i Advantages; i represents the flight speed of particle i; p i represents the best search position corresponding to particle i; p g is the optimal position of the final search of the entire particle swarm. The specific model formula is: v i ←v i +c1r1(p i -x i )+c2r2(p g -x i ) x i ←x i +v i , Where i = 1, 2, 3, .., N; learning factors c1 and c2 are non-negative numbers; r1 and r2 are random numbers between 0 and 1; The corresponding stopping condition in the above iterative process is that the final value or final position of the search can meet the minimum adaptation threshold.
3. The method for allocating virtual resources for smart grid slices based on SDN according to claim 2 is characterized in that: The simulated annealing algorithm assumes that T k Represents the initial temperature, and obtains a random initial solution x0. The steps are as follows: ① A new feasible solution will be generated in the field of x, which is recorded as x′; ② Calculate the objective function f(x i The difference Δf between the objective function f(x) of x and the objective function f(x) of x; ③According to min{1,exp(-Δf / T k )}>random[0,1] to obtain the final equilibrium state x′, where random[0,1] is a random number in the interval [0,1]; ④Perform annealing operation: T k+1 =CT k ,k←k+1, where C∈(0,1); ⑤If T k Finally, the convergence condition is met and the annealing process ends; If the corresponding conditions are not met, continue to perform the above steps.
4. The method for allocating virtual resources for smart grid slices based on SDN according to claim 3 is characterized in that: Normalize the performance parameters in the network slice: Where: v norm is the normalized value of the performance parameter; v is the performance parameter; μ represents the average value of the performance parameter; σ is the variance corresponding to the performance parameter; The fitness evaluation function of the designed elementary particles is: F(α, β, D, B) = -αe D +βe B , where D is the delay value after normalization; B is the bandwidth value; α represents the proportion of low-latency slices in the total number; β is the proportion of high-bandwidth slices in the total number of slices.
5. The SDN-based smart grid slice virtual resource allocation method according to claim 4 is characterized in that: The steps to execute algorithms and functions include: ① Normalizing the relevant parameters corresponding to different network slices to obtain initial parameters, wherein the relevant parameters include crossover parameters, mutation probability parameters, and learning factor parameters; ② Using the open shortest path algorithm to obtain two base network slices, the two base network slices are a low-latency slice and a high-bandwidth slice, and a hybrid pool is obtained, which is initialized to obtain basic particles, and the operation of the basic particles is completed based on the basic particle fitness evaluation function; ③ According to formula (1) and crossover probability P e Complete population selection and generate a new population; select x from the offspring j and x k Individuals, and combined with formula (1) to obtain new individuals, calculate f(x j ), f(x k ),f(x j ′) and f(x k ′); Define the initial temperature T, at min{1,exp(-(f(x j ′)-f(x j )) / T)}>random, x j ′At this time, it is identified as a new individual. If min{1,exp(-(f(x k ′)-f(x k )) / T)>random, identify x k ' is a new individual; ④ The population obtained after crossover should be combined with the mutation probability P m To complete the further selection of subpopulations, the specific process is: j For the new individual, we can get the new individual x according to f(x)=x×(1+g(σ)) j ′, complete f(x j ) and f(x j ′) is further calculated in min{1,exp(-(f(x j ′)-f(x j )) / T)}>random, called x j ' is a new individual; ⑤ Test the termination condition. If the set number of times is reached, the process ends and the optimal solution G is finally obtained. gb ; ⑥ If the optimal solution is not found in this process, the annealing temperature in step ③ is changed and the process is repeated through step ③ again until the global optimal solution is reached.
6. A SDN-based smart grid slice virtual resource allocation system, characterized in that: It includes a smart grid control platform and an underlying network supporting SDN technology, and the smart grid control platform calls the SDN-based smart grid slice virtual resource allocation method described in any one of claims 1-5 to perform network virtual resource allocation.
Citation Information
Patent Citations
Network section optimization method in wireless access network
CN109379754A
