Virtual network embedding method based on infeasible solution guiding genetic algorithm optimization
By introducing infeasible solution guidance and penalty constraint optimization in the genetic algorithm, combined with repair and tailoring algorithms, the problem of neglecting infeasible solutions and long search time in virtual network embedding is solved, achieving efficient virtual network embedding and improving network requests. acceptance rate and revenue.
Patent Information
- Application Number
- CN202410611159.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-23
AI Technical Summary
Existing virtual network embedding methods based on genetic algorithms ignore infeasible solutions during the solution search process, limiting the scope and depth of exploration, resulting in possible convergence to sub-optimal solutions in large-scale networks, and the lack of effective pruning mechanisms leading to search Time extension.
Using a genetic algorithm based on the guidance of infeasible solutions, by introducing a penalty constraint optimization method combined with optimization objectives and constraints, a fitness function is designed to evaluate the fitness values of feasible and infeasible solutions, and a repair algorithm is proposed to repair the infeasible solution so that it It becomes a deployable solution, and at the same time, a tailoring algorithm is introduced to optimize the physical network and reduce the link search space.
Effective use of infeasible solutions improves the ability of virtual network embedding, maximizes revenue-to-price ratio, and at the same time increases the acceptance rate of virtual network requests, satisfies user needs and increases the revenue of Internet service providers.
Smart Images

Figure CN118540222A
Abstract
Description
Technical Field
[0001] The invention relates to the field of virtual network embedding, in particular to a virtual network embedding method based on infeasible solution-guided genetic algorithm optimization. Background Art
[0002] In order to address the challenges faced by traditional network architectures in meeting the growing user demands, network virtualization (NV) has emerged as a promising paradigm. NV refers to the virtualization of the underlying infrastructure into a flexible underlying network, where service requests are orchestrated into dynamic virtual network requests (VNRs). Compared with traditional architectures, NV allows multiple VNRs to be shared concurrently within the same physical network, greatly improving the flexibility of resource management and the efficiency of service provision. The resource allocation task of selecting appropriate underlying nodes and links within the physical network to host each virtual node and link of the virtual network (VNs) while ensuring resource availability constraints and quality of service (QoS) requirements is called the Virtual Network Embedding (VNE) problem. VNE solution is somewhat complex due to the extensive solution search space and the various constraints that the VN mapping process must comply with.
[0003] Many methods have been proposed to address this critical problem. These methods are generally divided into three categories: exact algorithms, learning-based methods, and heuristic algorithms. Exact algorithms aim to find the optimal solution, but are generally not applicable to large-scale networks due to computational requirements. Learning methods develop VNE solving strategies with limited training data sets and build solutions in an end-to-end paradigm, but face challenges in generalization and adaptability, especially in real-time, online environments. Recently, heuristic algorithms have become the preferred method for solving VNE problems due to their efficient search and ability to adapt to dynamic environments. In this category, two subtypes are commonly used: construction heuristics and metaheuristics. Construction heuristics gradually build solutions by mapping nodes and links one by one. Although efficient, they usually produce suboptimal results due to their limited exploration of the solution space. In contrast, metaheuristics use adaptive search mechanisms to iteratively and strategically navigate the solution space, resulting in higher quality solutions. As a result, metaheuristics have gained widespread acceptance in real network systems. In the lineage of metaheuristic methods, genetic algorithms (GAs) are prominent methods for solving VNE problems, mainly due to their significant parallelism and extensive search capabilities. However, existing GA-based methods often discard infeasible solutions during the solution search process and only incorporate feasible solutions into the population iteration. This narrow focus ignores the insights that infeasible solutions may provide. It limits the scope and depth of exploration and hinders the discovery of more optimal solutions. Another important challenge is that these methods tend to indiscriminately explore the vast solution space. Lacking an effective pruning mechanism, GA-based methods usually spend a lot of time and effort in areas of the solution space that may produce valid results. This lack of effective pruning not only prolongs the search time, but also leads to potential convergence to suboptimal solutions. Therefore, it becomes a challenge to design a VNE embedding algorithm that can effectively utilize infeasible solutions and is efficient. Summary of the invention
[0004] The purpose of the present invention is to provide a virtual network embedding method based on infeasible solution-guided genetic algorithm optimization, comprising the following steps:
[0005] 1) Obtain the currently deployed physical network and the arriving virtual network request VNR;
[0006] 2) Determine whether the virtual network has reached its life cycle t l , if yes, go to step 11), otherwise go to step 3);
[0007] 3) Set the initial population parameters, initialize the population, and initialize the optimal solution;
[0008] 4) Determine whether the number of iterations I has been reached, if so, proceed to step 10), otherwise, proceed to step 5);
[0009] 5) Calculate the fitness of each chromosome in the population;
[0010] 6) Perform selection, crossover and mutation operations on each chromosome of the population to obtain a node embedding scheme;
[0011] 7) According to the obtained node embedding scheme, simulate the embedding operation of the corresponding virtual nodes and physical nodes for each chromosome to determine whether the constraints (1)(3)(4)(5) are violated. If so, proceed to step 11), otherwise proceed to step 8);
[0012] 8) Use the K shortest path method to find a suitable physical link set for the virtual link, and check whether the links in the link set violate the constraints (2) and (6). If all links are not violated, select the shortest path as an embedded link and go to step 9); if there is a link violation, select the path with the smallest constraint violation as an embedded link, and record the constraint violation value and go to step 9); if there is no embeddable path, go to step 11);
[0013] 9) Calculate the resource consumption, revenue information, and node occupancy after embedding, and select the optimal embedding solution in the population based on the optimization goal, and proceed to step 4);
[0014] 10) Perform real node and link deployment according to the optimal embedding solution. After successful deployment, return to step 1) and wait for the next request;
[0015] 11) Deployment failed, return to step 1).
[0016] Furthermore, the physical network is denoted as G S =(N S , L S );N S is the node set of the physical network; L S is the link set of the physical network;
[0017] Among them, the physical network node has the attribute CPU (n S ), n S ∈N S Indicates the amount of CPU resources that a physical node can provide; a physical network link has the attribute BW(l S ), l S ∈L S Indicates the bandwidth resources that a physical link can provide;
[0018] The virtual network is denoted as G V =(N V , L V );N Vis the node set of the virtual network; L V is the link set of the virtual network;
[0019] Among them, the virtual network node has the attribute CPU (n V ), n V ∈N v Indicates the amount of CPU resources requested by the virtual node; the virtual network link has the attribute BW(l v ), l V ∈L V Indicates the bandwidth resources requested by the virtual link.
[0020] Furthermore, the criterion for successful virtual network deployment is that the virtual network finds a suitable deployment solution within its life cycle.
[0021] Furthermore, the initial population parameters include the number of chromosomes N P , number of population iterations I, K value of the shortest path, and crossover rate τ.
[0022] Further, the steps for population initialization are:
[0023] For each chromosome in the population, the virtual network nodes are mapped to the chromosome and encoded accordingly;
[0024] Each dimension of the encoding vector on the chromosome corresponds to a node in the virtual network, and the value on each dimension represents the corresponding physical node index to which the virtual node is mapped;
[0025] The corresponding relationship between virtual network nodes and physical network nodes is expressed as where i=1,2,…,|N V |; j = 1, 2, ..., | N S |;|N V | is the number of virtual network nodes, |N S | is the number of physical network nodes; Respectively represent the corresponding virtual network nodes and physical network nodes;
[0026] The weights of physical nodes are ranked by the descending first fit algorithm, and the virtual nodes and physical nodes are matched using a random selection method. An initial solution is generated for each chromosome, and the first chromosome in the population is initialized as the optimal solution.
[0027] Furthermore, the steps of calculating the fitness of each chromosome in the population include:
[0028] a1) A chromosome solution is abstracted into a variable s, and the parameter ψ(s) is used to measure the degree to which a chromosome solution violates the constraint conditions;
[0029] Among them, the constraints of a chromosome solution are as follows:
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036] In the formula, is a binary variable; CPU A (n S ), BW A (l S ) are the remaining available CPU resources and remaining available bandwidth resources; CPU(n V )、BW(l V ) are CPU resources and bandwidth resources required for virtual nodes and virtual links deployed on the physical network;
[0037] a2) Calculate the ψ(s) of the chromosome solution according to the degree of violation of the constraint conditions; if the parameter ψ(s)≤0, the chromosome solution is a feasible solution, otherwise, the chromosome solution is an infeasible solution;
[0038] When the chromosome solution is a feasible solution, the corresponding fitness function Rev(s) and Cost(s) are revenue and cost;
[0039] When the chromosome solution is an infeasible solution, the corresponding fitness function Intermediate Parameters ψ(s) represents the degree to which the current solution deviates from the constraints; is the ψ value of the solution with the most serious constraint violation among all previous solutions; ε is the regularization term; f min is the minimum fitness value in the current generation.
[0040] Further, the step of performing a selection operation on each chromosome of the population includes:
[0041] b1) Based on fitness, define the selection rate f c Represents the fitness value of each chromosome, N P is the number of chromosomes; when the chromosome solution is a feasible solution, f c =f(s); when the chromosome solution is an infeasible solution, fc =f′(s);
[0042] b2) Based on the selection rate, the ternary tournament algorithm is used to select a corresponding number of individuals with high fitness values from the population to form a new population;
[0043] b3) Repeat step b2) until the new population size reaches the original population size.
[0044] Furthermore, the steps of performing a crossover operation on each chromosome of the population include:
[0045] c1) Perform random crossover. If the randomly generated number is less than the crossover probability, the two chromosomes are used as individuals to be crossed. For the individuals to be crossed, the genes on the chromosomes are exchanged using the single-point crossover method, that is, the indexes on the two chromosomes are selected and the values on the indexes are exchanged to form a new population.
[0046] c2) Determine whether the chromosome solution in the population after crossover is an infeasible solution; when the number of non-repeated genes Diff-gene on the chromosome solution is less than the number of VNR nodes, the chromosome solution is an infeasible solution;
[0047] c3) Repair infeasible solutions, the steps include:
[0048] c3.1) Iterate and identify genes with duplicate indexes on chromosomes;
[0049] c3.2) Sort the feasible physical nodes by comparing the remaining resource capacity of the nodes in the current physical network, and reselect the candidate physical nodes of the duplicate gene;
[0050] c3.3) Update the gene value on the chromosome and add the chromosome solution S to After iterating over all infeasible solutions, the algorithm returns a new solution set Form a new population.
[0051] Furthermore, the steps of performing mutation operations on each chromosome of the population include:
[0052] d1) Define adaptive mutation rate |N V |、N P is the number of virtual network nodes and the number of chromosomes;
[0053] d2) Individuals are mutated according to the mutation rate, and mutation operations are performed to obtain a chromosome solution of the population. These chromosome solutions constitute a set of node embedding solutions.
[0054] Further, the step of performing a simulation embedding operation of corresponding virtual nodes and physical nodes on each chromosome includes:
[0055] e1) simulates the virtual node embedding operation and determines whether the constraints (1)(3)(4)(5) are violated during the embedding process. If yes, re-acquires the current deployed physical network and the arriving virtual network request VNR. Otherwise, proceeds to step e2);
[0056] e2) performing a simulated link embedding operation, the steps comprising:
[0057] e2.1) Use the adaptive pruning method to prune the original physical network and delete the parts that do not meet the virtual link l v The requested resource is severely unavailable on the physical link l S , and obtain the simplified physical network G S- =(N S ,L S- );L S- is a subset of physical links without severely unavailable physical links;
[0058] The deletion ratio is Right now:
[0059]
[0060] In the formula, BW(l S ) max is the maximum bandwidth of all physical links in the current physical network. λ∈[0,1] is the lower bound hyperparameter of the pruning rate;
[0061] e2.2) After obtaining the simplified physical network, use the K shortest path method to find a suitable physical link for the virtual link.
[0062] The technical effect of the present invention is unquestionable, and the present invention solves the problem of virtual network embedding. The present invention makes full use of infeasible solutions to guide and improve the ability of genetic algorithms to solve virtual network embedding problems. By introducing a penalty-based constrained optimization method to combine the optimization goal and the constraint conditions, a fitness function that can well evaluate the fitness values of feasible solutions and infeasible solutions is proposed; in order to be able to better utilize infeasible solutions, a repair algorithm is proposed to repair them so that they can become a deployment solution that can be used directly; in addition, a pruning algorithm is introduced to optimize the physical network, and severely unavailable links are well excluded in the link embedding part, reducing the link search space and improving the embedding efficiency. The present invention can achieve a higher VNR acceptance rate while maximizing the cost-effectiveness of the benefit, better meet the needs of users and bring higher benefits to Internet Service Providers (ISPs). BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1Overall algorithm flow chart for virtual network embedding. DETAILED DESCRIPTION
[0064] The present invention is further described below in conjunction with the embodiments, but it should not be understood that the above subject matter of the present invention is limited to the following embodiments. Without departing from the above technical ideas of the present invention, various substitutions and changes are made according to the common technical knowledge and customary means in the art, which should all be included in the protection scope of the present invention.
[0065] Embodiment 1:
[0066] See also Figure 1 , a virtual network embedding method based on infeasible solution guided genetic algorithm optimization, including the following steps:
[0067] 1) Obtain the currently deployed physical network and the arriving virtual network request VNR (i.e., network service request, such as communication service request, e-commerce request, online transaction request, network management request, network security request, etc.);
[0068] 2) Determine whether the virtual network has reached its life cycle t l , if yes, go to step 11), otherwise go to step 3);
[0069] 3) Set the initial population parameters, initialize the population, and initialize the optimal solution;
[0070] 4) Determine whether the number of iterations I has been reached, if so, proceed to step 10), otherwise, proceed to step 5);
[0071] 5) Calculate the fitness of each chromosome in the population;
[0072] 6) Perform selection, crossover and mutation operations on each chromosome of the population to obtain a node embedding scheme;
[0073] 7) According to the obtained node embedding scheme, simulate the embedding operation of the corresponding virtual nodes and physical nodes for each chromosome to determine whether the constraints (1)(3)(4)(5) are violated. If so, proceed to step 11), otherwise proceed to step 8);
[0074] 8) Use the K shortest path method to find a suitable physical link set for the virtual link, and check whether the links in the link set violate the constraints (2) and (6). If all links are not violated, select the shortest path as an embedded link and go to step 9); if there is a link violation, select the path with the smallest constraint violation as an embedded link, and record the constraint violation value and go to step 9); if there is no embeddable path, go to step 11);
[0075] 9) Calculate the resource consumption, revenue information, and node occupancy after embedding, and select the optimal embedding solution in the population based on the optimization goal, and proceed to step 4);
[0076] 10) Perform real node and link deployment according to the optimal embedding solution. After successful deployment, return to step 1) and wait for the next request;
[0077] 11) Deployment failed, return to step 1).
[0078] The physical network is denoted as G S =(N S ,L S );N S is the node set of the physical network; L S is the link set of the physical network;
[0079] Among them, the physical network node has the attribute CPU (n S ), n S ∈N S Indicates the amount of CPU resources that a physical node can provide; a physical network link has the attribute BW(l S ), l s ∈L S Indicates the bandwidth resources that a physical link can provide;
[0080] The virtual network is denoted as G v =(N V ,L V );N V is the node set of the virtual network; L V is the link set of the virtual network;
[0081] Among them, the virtual network node has the attribute CPU (n V ), n V ∈N V Indicates the amount of CPU resources requested by the virtual node; the virtual network link has the attribute BW(l V ), l V ∈L V Indicates the bandwidth resources requested by the virtual link.
[0082] The criterion for successful virtual network deployment is that the virtual network finds a suitable deployment solution within its life cycle.
[0083] The initial population parameters include the number of chromosomes N P , number of population iterations I, K value of the shortest path, and crossover rate τ.
[0084] The steps to initialize the population are:
[0085] For each chromosome in the population, the virtual network nodes are mapped to the chromosome and encoded accordingly;
[0086] Each dimension of the encoding vector on the chromosome corresponds to a node in the virtual network, and the value on each dimension represents the corresponding physical node index to which the virtual node is mapped;
[0087] The corresponding relationship between virtual network nodes and physical network nodes is expressed as where i=1,2,…,|N V |; j = 1, 2, ..., | N S |;|N V | is the number of virtual network nodes, |N S | is the number of physical network nodes; Respectively represent the corresponding virtual network nodes and physical network nodes;
[0088] The weights of physical nodes are ranked by the descending first fit algorithm, and the virtual nodes and physical nodes are matched using a random selection method. An initial solution is generated for each chromosome, and the first chromosome in the population is initialized as the optimal solution.
[0089] The steps to calculate the fitness of each chromosome in the population include:
[0090] a1) A chromosome solution is abstracted into a variable s, and the parameter ψ(s) is used to measure the degree to which a chromosome solution violates the constraint conditions;
[0091] Among them, the constraints of a chromosome solution are as follows:
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098] In the formula, is a binary variable; CPU A (n S ), BW A (l S ) are the remaining available CPU resources and remaining available bandwidth resources; CPU(n V )、BW(l V) are the CPU resources and bandwidth resources required for the virtual nodes and virtual links deployed on the physical network; C1-C6 represent the constraint condition numbers.
[0099] a2) Calculate the ψ(s) of the chromosome solution according to the degree of violation of the constraint conditions; if the parameter ψ(s)≤0, the chromosome solution is a feasible solution, otherwise, the chromosome solution is an infeasible solution;
[0100] When the chromosome solution is a feasible solution, the corresponding fitness function Rev(s) and Cost(s) are revenue and cost;
[0101] When the chromosome solution is an infeasible solution, the corresponding fitness function Intermediate Parameters ψ(s) represents the degree to which the current solution deviates from the constraints; is the ψ value of the solution with the most serious constraint violation among all previous solutions; ε is the regularization term; f min is the minimum fitness value in the current generation.
[0102] The steps of performing selection operations on each chromosome of the population include:
[0103] b1) Based on fitness, define the selection rate f c Represents the fitness value of each chromosome, N P is the number of chromosomes; when the chromosome solution is a feasible solution, f c =f(s); when the chromosome solution is an infeasible solution, f c =f′(s);
[0104] b2) Based on the selection rate, the ternary tournament algorithm is used to select a corresponding number of individuals with high fitness values from the population to form a new population;
[0105] b3) Repeat step b2) until the new population size reaches the original population size.
[0106] The steps of performing crossover operation on each chromosome of the population include:
[0107] c1) Perform random crossover. If the randomly generated number is less than the crossover probability, the two chromosomes are used as individuals to be crossed. For the individuals to be crossed, the genes on the chromosomes are exchanged using the single-point crossover method, that is, the indexes on the two chromosomes are selected and the values on the indexes are exchanged to form a new population.
[0108] c2) Determine whether the chromosome solution in the population after crossover is an infeasible solution; when the number of non-repeated genes Diff-gene on the chromosome solution is less than the number of VNR nodes, the chromosome solution is an infeasible solution;
[0109] c3) Repair infeasible solutions, the steps include:
[0110] c3.1) Iterate and identify genes with duplicate indexes on chromosomes;
[0111] c3.2) Sort the feasible physical nodes by comparing the remaining resource capacity of the nodes in the current physical network, and reselect the candidate physical nodes of the duplicate gene;
[0112] c3.3) Update the gene value on the chromosome and add the chromosome solution S to After iterating over all infeasible solutions, the algorithm returns a new solution set Form a new population.
[0113] The steps of performing mutation operations on each chromosome of the population include:
[0114] d1) Define adaptive mutation rate |N V |、N P is the number of virtual network nodes and the number of chromosomes;
[0115] d2) Individuals are mutated according to the mutation rate, and mutation operations are performed to obtain a chromosome solution of the population. These chromosome solutions constitute a set of node embedding solutions.
[0116] The steps of simulating embedding operations of corresponding virtual nodes and physical nodes for each chromosome include:
[0117] e1) simulates the virtual node embedding operation and determines whether the constraints (1)(3)(4)(5) are violated during the embedding process. If yes, re-acquires the current deployed physical network and the arriving virtual network request VNR. Otherwise, proceeds to step e2);
[0118] e2) performing a simulated link embedding operation, the steps comprising:
[0119] e2.1) Use the adaptive pruning method to prune the original physical network and delete the parts that do not meet the virtual link l V The requested resource is severely unavailable on the physical link l S , and obtain the simplified physical network G S- =(N S ,L S- );L S- is a subset of physical links without severely unavailable physical links;
[0120] The deletion ratio is Right now:
[0121]
[0122] In the formula, BW(l S ) max is the maximum bandwidth of all physical links in the current physical network. λ∈[0,1] is the lower bound hyperparameter of the pruning rate;
[0123] e2.2) After obtaining the simplified physical network, use the K shortest path method to find a suitable physical link for the virtual link.
[0124] Embodiment 2:
[0125] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization includes the following steps:
[0126] 1) Obtain the currently deployed physical network and the arriving virtual network request VNR;
[0127] 2) Determine whether the virtual network has reached its life cycle t l , if yes, go to step 11), otherwise go to step 3);
[0128] 3) Set the initial population parameters, initialize the population, and initialize the optimal solution;
[0129] 4) Determine whether the number of iterations I has been reached, if so, proceed to step 10), otherwise, proceed to step 5);
[0130] 5) Calculate the fitness of each chromosome in the population;
[0131] 6) Perform selection, crossover and mutation operations on each chromosome of the population to obtain a node embedding scheme;
[0132] 7) According to the obtained node embedding scheme, simulate the embedding operation of the corresponding virtual nodes and physical nodes for each chromosome to determine whether the constraints (1)(3)(4)(5) are violated. If so, proceed to step 11), otherwise proceed to step 8);
[0133] 8) Use the K shortest path method to find a suitable physical link set for the virtual link, and check whether the links in the link set violate the constraints (2) and (6). If all links are not violated, select the shortest path as an embedded link and go to step 9); if there is a link violation, select the path with the smallest constraint violation as an embedded link, and record the constraint violation value and go to step 9); if there is no embeddable path, go to step 11);
[0134] 9) Calculate the resource consumption, revenue information, and node occupancy after embedding, and select the optimal embedding solution in the population based on the optimization goal, and proceed to step 4);
[0135] 10) Perform real node and link deployment according to the optimal embedding solution. After successful deployment, return to step 1) and wait for the next request;
[0136] 11) Deployment failed, return to step 1).
[0137] Embodiment 3:
[0138] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as embodiment 2. Furthermore, the physical network is denoted as G S =(N S , L S );N S is the node set of the physical network; L S is the link set of the physical network;
[0139] Among them, the physical network node has the attribute CPU (n S ), n S ∈N S Indicates the amount of CPU resources that a physical node can provide; a physical network link has the attribute BW(l S ), l S ∈L S Indicates the bandwidth resources that a physical link can provide;
[0140] The virtual network is denoted as G V =(N V , L V );N V is the node set of the virtual network; L V is the link set of the virtual network;
[0141] Among them, the virtual network node has the attribute CPU (n V ), n V ∈N V Indicates the amount of CPU resources requested by the virtual node; the virtual network link has the attribute BW(l V ), l V ∈L V Indicates the bandwidth resources requested by the virtual link.
[0142] Embodiment 4:
[0143] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of Examples 2-3. Furthermore, the criterion for successful virtual network deployment is that the virtual network finds a suitable deployment solution within its life cycle.
[0144] Embodiment 5:
[0145] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of embodiments 2-4, and further, the initial population parameters include the number of chromosomes n P , number of population iterations I, K value of the shortest path, and crossover rate τ.
[0146] Embodiment 6:
[0147] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of Embodiments 2-5. Further, the step of initializing the population is as follows:
[0148] For each chromosome in the population, the virtual network nodes are mapped to the chromosome and encoded accordingly;
[0149] Each dimension of the encoding vector on the chromosome corresponds to a node in the virtual network, and the value on each dimension represents the corresponding physical node index to which the virtual node is mapped;
[0150] The corresponding relationship between virtual network nodes and physical network nodes is expressed as where i=1,2,…,|N V |; j = 1, 2, ..., | N S |;|N V | is the number of virtual network nodes, |N S | is the number of physical network nodes;
[0151] The weights of physical nodes are ranked by the descending first fit algorithm, and the virtual nodes and physical nodes are matched using a random selection method. An initial solution is generated for each chromosome, and the first chromosome in the population is initialized as the optimal solution.
[0152] Embodiment 7:
[0153] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of Embodiments 2-6. Further, the step of calculating the fitness of each chromosome in the population includes:
[0154] a1) A chromosome solution is abstracted into a variable s, and the parameter ψ(s) is used to measure the degree to which a chromosome solution violates the constraint conditions;
[0155] Among them, the constraints of a chromosome solution are as follows:
[0156]
[0157]
[0158]
[0159]
[0160]
[0161]
[0162] In the formula, is a binary variable; CPU A (n S ), BW A (l S ) are the remaining available CPU resources and remaining available bandwidth resources; CPU(n V )、BW(l V ) are CPU resources and bandwidth resources required for virtual nodes and virtual links deployed on the physical network;
[0163] a2) Calculate the ψ(s) of the chromosome solution according to the degree of violation of the constraint conditions; if the parameter ψ(s)≤0, the chromosome solution is a feasible solution, otherwise, the chromosome solution is an infeasible solution;
[0164] When the chromosome solution is a feasible solution, the corresponding fitness function Rev(s) and Cost(s) are revenue and cost;
[0165] When the chromosome solution is an infeasible solution, the corresponding fitness function Intermediate Parameters ψ(s) represents the degree to which the current solution deviates from the constraints; is the ψ value of the solution with the most serious constraint violation among all previous solutions; ε is the regularization term; f min is the minimum fitness value in the current generation.
[0166] Embodiment 8:
[0167] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of Embodiments 2-7. Further, the step of performing a selection operation on each chromosome of the population includes:
[0168] b1) Based on fitness, define the selection rate f c Represents the fitness value of each chromosome, N P is the number of chromosomes; when the chromosome solution is a feasible solution, f c =f(s); when the chromosome solution is an infeasible solution, f c =f′(s);
[0169] b2) Based on the selection rate, the ternary tournament algorithm is used to select a corresponding number of individuals with high fitness values from the population to form a new population;
[0170] b3) Repeat step b2) until the new population size reaches the original population size.
[0171] Embodiment 9:
[0172] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of Embodiments 2-8. Further, the step of performing a crossover operation on each chromosome of the population includes:
[0173] c1) Perform random crossover. If the randomly generated number is less than the crossover probability, the two chromosomes are used as individuals to be crossed. For the individuals to be crossed, the genes on the chromosomes are exchanged using the single-point crossover method, that is, the indexes on the two chromosomes are selected and the values on the indexes are exchanged to form a new population.
[0174] c2) Determine whether the chromosome solution in the population after crossover is an infeasible solution; when the number of non-repeated genes Diff-gene on the chromosome solution is less than the number of VNR nodes, the chromosome solution is an infeasible solution;
[0175] c3) Repair infeasible solutions, the steps include:
[0176] c3.1) Iterate and identify genes with duplicate indexes on chromosomes;
[0177] c3.2) Sort the feasible physical nodes by comparing the remaining resource capacity of the nodes in the current physical network, and reselect the candidate physical nodes of the duplicate gene;
[0178] c3.3) Update the gene value on the chromosome and add the chromosome solution S to After iterating over all infeasible solutions, the algorithm returns a new solution set Form a new population.
[0179] Embodiment 10:
[0180] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of Embodiments 2-9. Further, the step of performing mutation operation on each chromosome of the population includes:
[0181] d1) Define adaptive mutation rate |N V |、N P is the number of virtual network nodes and the number of chromosomes;
[0182] d2) Individuals are mutated according to the mutation rate, and mutation operations are performed to obtain a chromosome solution of the population. These chromosome solutions constitute a set of node embedding solutions.
[0183] Embodiment 11:
[0184] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization has the same technical content as any one of Embodiments 2-10. Further, the step of performing a simulation embedding operation of corresponding virtual nodes and physical nodes on each chromosome includes:
[0185] e1) simulates the virtual node embedding operation and determines whether the constraints (1)(3)(4)(5) are violated during the embedding process. If yes, re-acquires the current deployed physical network and the arriving virtual network request VNR. Otherwise, proceeds to step e2);
[0186] e2) performing a simulated link embedding operation, the steps comprising:
[0187] e2.1) Use the adaptive pruning method to prune the original physical network and delete the parts that do not meet the virtual link l V The requested resource is severely unavailable on the physical link l S , and obtain the simplified physical network G S- =(N S ,L S- );L S- is a subset of physical links without severely unavailable physical links;
[0188] The deletion ratio is Right now:
[0189]
[0190] In the formula, BW(l S ) max is the maximum bandwidth of all physical links in the current physical network. λ∈[0,1] is the lower bound hyperparameter of the pruning rate;
[0191] e2.2) After obtaining the simplified physical network, use the K shortest path method to find a suitable physical link for the virtual link.
[0192] Embodiment 12:
[0193] The virtual network embedding method based on infeasible solution-guided genetic algorithm optimization includes the following steps:
[0194] 1) Get the currently deployed physical network and the arriving virtual network request VNR as input. Physical network G S =(N S , L S ), N S is a set of nodes in the physical network, where the node has the attribute CPU (n S ), n S ∈N S, indicating the amount of CPU resources that a physical node can provide; L S is the link set of the physical network, with the attribute BW(l S ), l S ∈L S , which represents the bandwidth resources that the physical link can provide. The virtual network G in VNR V =(N V , L V ), N V is a set of nodes in the virtual network, where the node has the attribute CPU (n V ), n V ∈N V , indicating the amount of CPU resources requested by the virtual node; L V is the link set of the virtual network, with the attribute BW(l V ), l V ∈L V , represents the bandwidth resource requested by the virtual link. Each virtual network has an arrival time t a and life cycle t l ,Once a virtual network does not find a suitable deployment solution during its life cycle, the ,deployment of the virtual network fails.
[0195] 2) Determine whether the virtual network has reached its life cycle, if so, proceed to step 15), otherwise proceed to step 3).
[0196] 3) Initially set the number of chromosomes N in the population P , the basic parameters such as the number of population iterations I, the K value of the K shortest path, and the crossover rate τ.
[0197] 4) Initialize the population. For each chromosome in the population, map the virtual network node to the chromosome and encode it accordingly. Each dimension of the encoding vector on the chromosome corresponds to a node in the virtual network, and the value on each dimension represents the corresponding physical node index mapped to the virtual node. The corresponding relationship between the virtual network node and the physical network node can be expressed as where i = 1, 2, ..., |N V |; j = 1, 2, ..., | N S |. |N V | is the number of virtual network nodes, |N S | is the number of physical network nodes. The weights of physical nodes are ranked by descending first fit algorithm (FFD), virtual nodes and physical nodes are matched by random selection, and an initial solution is generated for each chromosome. The first chromosome in the population is initialized as the optimal solution.
[0198] 5) Determine whether the number of iterations I has been reached, if so, proceed to step 14), otherwise proceed to step 6).
[0199] 6) Calculate the fitness of each chromosome. A penalty-based optimization solution method is introduced to combine the constraints and optimization objectives.
[0200] 6.1) A chromosome solution is abstracted as a variable s, and the parameter ψ(s) is used to measure the degree to which a chromosome solution violates the constraints. In this problem, the constraints that a solution needs to satisfy are as follows:
[0201] C1:
[0202] C2:
[0203] C3:
[0204] C4:
[0205] C5:
[0206] C6:
[0207] C1 and C2 stipulate that when a node or link is successfully embedded, the binary variable and The corresponding value is 1, otherwise it is 0. C3 stipulates that a node in the virtual network is mapped to only one node in the physical network, while C4 means that a node in the physical network can only host one node from the same virtual network. C5 and C6 indicate that the resources required for virtual nodes and virtual links deployed on the physical network cannot exceed the resources of the underlying node n. S and physical link l S The remaining available CPU resources provided A (n S ) and bandwidth resources BW A (l S ). The ratio of the benefit and cost obtained by VNE is taken as the optimization target, that is, the benefit-to-price ratio RC_ratio, which is defined as
[0208] 6.2) Calculate the ψ(s) value of the solution according to the degree of violation of the constraint. If ψ(s)≤0, it is considered a feasible solution, and the fitness evaluation proceeds to step 6.3); if ψ(s)>0, it is considered an infeasible solution. The higher the ψ(s) value, the more serious the violation of the constraint is, and the fitness evaluation proceeds to step 6.4).
[0209] 6.3) For feasible solutions, since they comply with all constraints, no penalty term is added. Individuals with higher objective function values will be retained in the population. Therefore, the fitness function for feasible solutions is
[0210] 6.4) For infeasible solutions, consider the degree of constraint violation. Introduce parameter ρ, defined as follows Where ψ(s) represents the degree to which the current solution deviates from the constraints. is defined as the ψ value of the solution with the most severe constraint violation among all previous solutions. If there is no solution violating the constraint in the previous population, The parameter ρ is derived from the historical experience of the previous population, quantified by the degree of constraint violation, and varies according to the historical proportion of infeasible solutions in the previous population. Therefore, the fitness function of infeasible solutions is formulated based on ρ, which is defined as To avoid division by zero, a small regularization term ε is introduced. If the proportion of infeasible solutions increases, ρ will increase compared to the previous generation. This leads to a decrease in the probability of selecting an infeasible solution. Conversely, if the proportion of infeasible solutions decreases, ρ decreases, reducing the intensity of the penalty for infeasible solutions. In order to stabilize the range of fitness values, a normalization factor f is introduced min , represents the worst fitness value in the current generation. The fitness of the infeasible solution is evaluated by this fitness function.
[0211] 7) Perform selection operation.
[0212] 7.1) The selection rate in the selection process is defined as is adaptively determined according to the number of chromosomes and their fitness values calculated by the proposed penalty-aware fitness function (see 6)), where f c Represents the fitness value of each chromosome, N P is the number of chromosomes.
[0213] 7.2) According to the obtained selection rate, use the ternary tournament algorithm to select a corresponding number of individuals with high fitness values from the population to form a new population, and repeat this operation until the new population size reaches the original population size.
[0214] 8) Based on the population selected in step 7), a crossover operation is performed.
[0215] 8.1) During the crossover process, if the randomly generated number is less than the crossover probability, two chromosomes are selected as individuals to be crossed. For these two individuals, the genes on the chromosomes are exchanged using the single-point crossover method. Specifically, the indexes on the two chromosomes are selected, and the values on the indexes, that is, the indexes of the physical nodes, are exchanged to form a new population.
[0216] 8.2) Determine whether the individual in the population after crossover is an infeasible solution. The defined constraints stipulate that each physical node can only accommodate one node of the same virtual network. This means that the gene values on each chromosome should remain different. Each chromosome solution is evaluated by comparing the number of unique genes in the chromosome solution and the number of nodes of VNR. The number of non-repeated genes on the chromosome is defined as "Diff-gene". If Diff-gene is less than the number of nodes of VNR, it means that there are repeated genes, thereby identifying the chromosome solution as an infeasible solution, otherwise it is a feasible solution.
[0217] 8.3) Repair infeasible solutions. Add the determined infeasible solutions to a list for processing. For each infeasible solution in the list, iterate and identify the genes with duplicate indexes on the chromosome. Then, sort the feasible physical nodes by comparing the remaining resource capacity of the nodes in the current physical network, and reselect the candidate physical nodes for the duplicate genes. Then update the gene values on the chromosome and add the chromosome solution S to After iterating over all infeasible solutions, the algorithm returns this new solution set. Form a new population.
[0218] 9) Perform mutation operation.
[0219] 9.1) A novel adaptive mutation rate is defined. The probability of mutation is determined by the number of virtual network nodes |N V | and the number of chromosomes N P Perform adaptive adjustment. Specifically, the mutation rate is defined as shown in the following formula:
[0220] 9.2) According to the mutation rate, individuals for mutation are selected and individuals in the population are updated. The mutation operation will cause changes in specific genes on the chromosome, which corresponds to the reselection of candidate physical nodes for specific virtual network nodes.
[0221] 10) After the above operations, a chromosome solution of the population will be obtained, which constitutes a set of node embedding solutions.
[0222] 11) According to the obtained node embedding scheme, simulate the virtual node embedding operation to determine whether the constraints (1)(3)(4)(5) are violated during the embedding process. If so, proceed to step 15); otherwise, proceed to step 12).
[0223] 12) Perform a simulated link embedding operation.
[0224] 12.1) First, the original physical network is pruned using the adaptive pruning method. Specifically, a certain proportion of virtual links that do not meet the requirements are deleted. VThe requested resource is severely unavailable on the physical link l S Among them, use To describe this ratio, it is an adaptive parameter that controls the pruning rate. The specific calculation method is as follows:
[0225]
[0226] BW(l S ) max is the maximum bandwidth of all physical links in the current physical network. λ∈[0,1] is the lower bound hyperparameter of the pruning rate. In this way, a simplified physical network can be obtained, defined as G S- =(N S ,L s- ), where L s- A subset of physical links that have no severely unavailable physical links.
[0227] 12.2) After obtaining a simplified physical network, use the K shortest path method on the network to find a suitable physical link for the virtual link, and check whether the constraints (2) and (6) are violated. If all links are not violated, select the shortest path as an embedded link and go to step 13); if there is a link violation, select the path with the smallest constraint violation as an embedded link, and record the constraint violation value and go to step 13). If there is no embeddable path, go to step 15).
[0228] 13) After embedding, relevant information such as resource consumption, revenue information, node occupancy rate, etc. can be obtained, and the optimal embedding scheme can be selected based on this information and the optimization goal, and then return to step 5).
[0229] 14) Perform real node and link deployment according to the optimal embedding solution, and return to step 1) if successful.
[0230] 15) Deployment failed, return to step 1).
Claims
1. Virtual network embedding method based on infeasible solution-guided genetic algorithm optimization, It is characterized in that The following steps are involved: 1) Get the currently deployed physical network and the arriving virtual network request VNR. 2) Determine whether the virtual network has reached its life cycle t l , if yes, go to step 11), otherwise go to step 3); 3) Set the initial population parameters, initialize the population, and initialize the optimal solution; 4) Determine whether the number of iterations I has been reached, if so, proceed to step 10), otherwise, proceed to step 5); 5) Calculate the fitness of each chromosome in the population; 6) Perform selection, crossover and mutation operations on each chromosome of the population to obtain a node embedding scheme; 7) According to the obtained node embedding scheme, simulate the embedding operation of the corresponding virtual nodes and physical nodes for each chromosome to determine whether the constraints (1)(3)(4)(5) are violated. If so, proceed to step 11), otherwise proceed to step 8); 8) Use the K shortest path method to find a suitable physical link set for the virtual link, and check whether the links in the link set violate the constraints (2) and (6). If all links are not violated, select the shortest path as an embedded link and go to step 9); if there is a link violation, select the path with the smallest constraint violation as an embedded link, and record the constraint violation value and go to step 9); if there is no embeddable path, go to step 11); 9) Calculate the resource consumption, revenue information, and node occupancy after embedding, and select the optimal embedding solution in the population based on the optimization goal, and proceed to step 4); 10) Perform real node and link deployment according to the optimal embedding solution. After successful deployment, return to step 1) and wait for the next request; 11) Deployment failed, return to step 1).
2. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The physical network is denoted as G S =(N S , L S );N S is the node set of the physical network; L S is the link set of the physical network; Among them, the physical network node has the attribute CPU (n S ), n S ∈N S Indicates the amount of CPU resources that a physical node can provide; a physical network link has the attribute BW(l S ), l S ∈L S Indicates the bandwidth resources that a physical link can provide; The virtual network is denoted as G V =(N V , L V );N V is the node set of the virtual network; L V is the link set of the virtual network; Among them, the virtual network node has the attribute CPU (n V ), n V ∈N V Indicates the amount of CPU resources requested by the virtual node; the virtual network link has the attribute BW(l V ), l V ∈L V Indicates the bandwidth resources requested by the virtual link.
3. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The criterion for successful virtual network deployment is that the virtual network finds a suitable deployment solution within its life cycle.
4. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The initial population parameters include the number of chromosomes N P , number of population iterations I, K value of the shortest path, and crossover rate τ.
5. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The steps to initialize the population are: For each chromosome in the population, the virtual network nodes are mapped to the chromosome and encoded accordingly; Each dimension of the encoding vector on the chromosome corresponds to a node in the virtual network, and the value on each dimension represents the corresponding physical node index to which the virtual node is mapped; The corresponding relationship between virtual network nodes and physical network nodes is expressed as where i = 1, 2, ..., |N V |; j = 1, 2, ..., | N S |;|N V | is the number of virtual network nodes, |N S | is the number of physical network nodes; Respectively represent the corresponding virtual network nodes and physical network nodes; The weights of physical nodes are ranked by the descending first fit algorithm, and the virtual nodes and physical nodes are matched using a random selection method. An initial solution is generated for each chromosome, and the first chromosome in the population is initialized as the optimal solution.
6. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The steps to calculate the fitness of each chromosome in the population include: 1) A chromosome solution is abstracted into a variable s, and the parameter ψ(s) is used to measure the degree to which a chromosome solution violates the constraint conditions; Among them, the constraints of a chromosome solution are as follows: In the formula, is a binary variable; CPU A (n S ), BW A (l S ) are the remaining available CPU resources and remaining available bandwidth resources; CPU(n V )、BW(l V ) are CPU resources and bandwidth resources required for virtual nodes and virtual links deployed on the physical network; 2) Calculate the ψ(s) of the chromosome solution according to the degree of violation of the constraint conditions; if the parameter ψ(s)≤0, the chromosome solution is a feasible solution, otherwise, the chromosome solution is an infeasible solution; When the chromosome solution is a feasible solution, the corresponding fitness function Rev(s) and Cost(s) are revenue and cost; When the chromosome solution is an infeasible solution, the corresponding fitness function Intermediate Parameters ψ(s) represents the degree to which the current solution deviates from the constraints; is the ψ value of the solution with the most serious constraint violation among all previous solutions; ε is the regularization term; f min is the minimum fitness value in the current generation.
7. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The steps of performing selection operations on each chromosome of the population include: 1) Based on fitness, define the selection rate f c Represents the fitness value of each chromosome, N P is the number of chromosomes; when the chromosome solution is a feasible solution, f c =f(s); when the chromosome solution is an infeasible solution, f c =f′(s); 2) Based on the selection rate, the ternary tournament algorithm is used to select a corresponding number of individuals with high fitness values from the population to form a new population; 3) Repeat step 2) until the new population size reaches the original population size.
8. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The steps of performing crossover operation on each chromosome of the population include: 1) Perform random crossover. If the randomly generated number is less than the crossover probability, the two chromosomes are used as individuals to be crossed. For the individuals to be crossed, the genes on the chromosomes are exchanged using the single-point crossover method, that is, the indexes on the two chromosomes are selected and the values on the indexes are exchanged to form a new population. 2) Determine whether the chromosome solution in the population after crossover is an infeasible solution; when the number of non-repeated genes Diff-gene on the chromosome solution is less than the number of VNR nodes, the chromosome solution is an infeasible solution; 3) Repair the infeasible solution, the steps include: 3.1) Iterate and identify genes with duplicate indexes on chromosomes; 3.2) Compare the remaining resource capacity of the nodes in the current physical network, sort the feasible physical nodes, and reselect the candidate physical nodes of the duplicate genes; 3.3) Update the gene value on the chromosome and add the chromosome solution S to After iterating over all infeasible solutions, the algorithm returns a new solution set Form a new population.
9. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The steps of performing mutation operations on each chromosome of the population include: 1) Define adaptive mutation rate |N V |、N P are the number of virtual network nodes and the number of chromosomes, respectively; 2) Perform mutation operations on the selected individuals according to the mutation rate to obtain a chromosome solution of the population. These chromosome solutions constitute a set of node embedding solutions.
10. The virtual network embedding method based on infeasible solution guided genetic algorithm optimization according to claim 1, It is characterized in that The steps of simulating embedding operations of corresponding virtual nodes and physical nodes for each chromosome include: 1) Perform a simulated virtual node embedding operation to determine whether the embedding process violates the constraints (1)(3)(4)(5). If so, re-acquire the current deployed physical network and the arriving virtual network request VNR. Otherwise, proceed to step 2); 2) Performing a simulated link embedding operation, the steps include: 2.1) Use the adaptive pruning method to prune the original physical network and delete the parts that do not meet the virtual link l V The requested resource is severely unavailable on the physical link l S , and obtain the simplified physical network G S- =(N S , L S- );L S- is a subset of physical links without severely unavailable physical links; The deletion ratio is Right now: In the formula, BW(l S ) max is the maximum bandwidth of all physical links in the current physical network. λ∈[0,1] is the lower bound hyperparameter of the pruning rate; 2.2) After obtaining the simplified physical network, the K shortest path method is used to find a suitable physical link for the virtual link.
Citation Information
Cited By
Service resource allocation method for multi-dimensional heterogeneous environment of intelligent computing fusion network
CN120050199A
A service resource allocation method for a multi-dimensional heterogeneous environment of a wisdom algorithm fusion network
CN120050199B
