A minimum cost difference routing method and device for ensuring service quality
By constructing the cost difference routing scoring function and neural network energy function in the software-defined network, combined with the Hopfield neural network, the routing selection problem of priority service quality assurance in the software-defined network is solved, and the minimum cost difference routing and maximum cost revenue are achieved. effect.
Patent Information
- Application Number
- CN202410287370.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-13
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-03-13
AI Technical Summary
Existing technology makes it difficult to effectively select routes that meet priority service quality in software-defined networks. Especially when the network scale is large, traditional methods cannot effectively solve the QoS routing problem, resulting in difficulty in ensuring service quality.
By constructing the cost difference routing scoring function and neural network energy function, combined with the Hopfield neural network, iteratively solves the cost difference routing weight parameters, and constructs a decision variable function to determine the minimum cost difference route that meets the priority service quality.
It is possible to select a path from multiple alternative paths in a software-defined network that minimizes the cost difference routing score and provides users with priority service quality, while maximizing the cost income of the software-defined network.
Smart Images

Figure CN117978719B
Abstract
Description
Technical Field
[0001] The invention relates to a minimum cost difference routing method and device for ensuring service quality. Background Art
[0002] At present, with the rapid development of network information technology, the increasing types of network services have forced the Internet to make improvements in its architecture and protocols, thereby exacerbating the functional complexity of the network structure. Considering that traditional network protocols are too bloated and cannot meet the needs of current network services, a controllable and forwarding decoupled software-defined network architecture greatly simplifies the protocol process between routing and forwarding. It is no longer necessary to frequently send routing management messages to obtain link status information, but only to obtain it through unified management of the controller, thereby simplifying the routing protocol process in the network. Quality of service is an important technical component in network management. Through quality of service technology, network devices can distinguish traffic and then assign different behaviors to traffic, thereby providing high-quality services for services with different needs based on existing network resources. When providing high-quality QoS (Quality of Service) for streaming media services in the network, the priority of streaming media services can be increased according to user conditions, and different routing options can be formulated according to the link congestion level and the priority of the queue to seize the bandwidth of other services to support the operation of streaming media services, thereby ensuring the service quality of priority users. Summary of the invention
[0003] In order to select a path that minimizes the cost difference routing score and provides priority service quality for users, and realize the minimum cost difference routing that provides priority service quality guarantee in the software defined network, the present invention proposes a minimum cost difference routing method and device that guarantees service quality. The technical solution proposed by the present invention is as follows:
[0004] In a first aspect, the present invention provides a minimum cost difference routing method for ensuring service quality, comprising:
[0005] Receive a route request from a user with a priority level in a software defined network to establish a route from a source node to a destination node, obtain a link set between nodes on each alternative path from the source node to the destination node and a branch on each link in the link set that meets the service quality corresponding to the priority level;
[0006] The decision variables of each branch are calculated according to the pre-constructed decision variable function, and it is determined that there is a target path on each link whose decision variable corresponding to the branch is greater than or equal to the decision variable threshold and whose cost difference routing score is the smallest, and the minimum cost difference routing is established through the target path; wherein the decision variable function is constructed in the following manner:
[0007] Obtaining a cost difference routing scoring function of a path in the software defined network that satisfies the quality of service corresponding to the priority level, and constructing a corresponding neural network energy function according to the cost difference routing scoring function;
[0008] Obtaining a network dynamic equation corresponding to the cost difference routing scoring function, and determining, according to the network dynamic equation, a limiting condition that a cost difference routing weight parameter of the neural network energy function needs to satisfy when a feasible solution of the neural network energy function is asymptotically stable;
[0009] Iteratively solving the optimized value of the cost difference routing weight parameter of the neural network energy function according to the acquired historical routes corresponding to the priority level and the limiting conditions;
[0010] A decision variable function is constructed based on the cost difference routing weight parameter optimization value.
[0011] In one or some embodiments, the cost difference routing score is determined by the following formula:
[0012]
[0013] Where F is the cost difference routing score of the path that meets the service quality of priority level k in the software defined network, and m is the link set Φ between the nodes on the lth path. l The number of the link in the path, n is the set of branches on link m on path l, Θ l,m The number of the branch, x l,m,n is the decision variable of branch n on link m on path l, H l,m,n is the bandwidth of branch n on link m on path l, ρ k The priority cost is used for the path with priority level k in the software defined network, where a, b, and c are respectively l,m,n Use the quadratic, linear, and constant coefficients of the regular cost for the regular user path of the variable.
[0014] In one or some embodiments, constructing a corresponding neural network energy function according to the cost difference routing scoring function includes:
[0015] Obtain each constraint condition that a branch or path that satisfies the service quality corresponding to the priority level needs to satisfy, and construct a neural network energy function according to each constraint condition and the cost difference routing scoring function.
[0016] In one or some embodiments, constructing a neural network energy function according to each constraint and the cost difference routing scoring function includes:
[0017] According to the constraints and the cost difference routing scoring function, a neural network energy function of the following formula is constructed; wherein the constraints include: the bandwidth of the branch is greater than or equal to the bandwidth threshold of the priority level for any branch, the delay jitter of each branch is less than or equal to the delay jitter threshold of the priority level for any branch, and the end-to-end delay from the source node to the destination node is less than or equal to the end-to-end delay threshold of the priority level for the entire path;
[0018]
[0019] In the formula, E l is the neural network energy function, F is the cost difference routing score of the path that meets the service quality corresponding to priority level k in the software defined network, and m is the link set Φ between the nodes on the lth path l The number of the link in the path, n is the set of branches on link m on path l, Θ l,m The number of the branch, x l,m,n is the decision variable of branch n on link m on path l, H l,m,n is the bandwidth of branch n on link m on path l, ρ k The priority cost is used for the path with priority level k in the software defined network, where a, b, and c are respectively l,m,n The quadratic, linear, and constant coefficients of the conventional cost are used for the conventional user path of the variable, H k is the bandwidth threshold, T k is the end-to-end delay threshold, T l,m,n is the transmission delay of branch n on link m on path l, Δ k is the delay jitter threshold, ε l,m is the average transmission delay of link m on path l, A, B, C, D, G and L are the energy functions E of the neural network respectively. l The cost difference routing weight parameter in .
[0020] In one or some embodiments, the network dynamic equation is determined in the following manner:
[0021] The neural network energy function is derived with respect to the decision variables of the link branch on the path to obtain the first-order derivative of the neural network energy function with respect to the decision variables of the link branch on the path:
[0022]
[0023] According to the first-order derivative and the Hopfield neural network differential equation Determine a network dynamic equation corresponding to the cost difference routing score F;
[0024]
[0025] In the formula, is the first-order derivative, is the network dynamic equation, and t is the time variable.
[0026] In one or some embodiments, the limiting conditions that the cost difference routing weight parameters of the neural network energy function need to satisfy when the feasible solution of the neural network energy function is asymptotically stable according to the network dynamic equation include:
[0027] Determine various situations where the quality of service of users with priority levels does not meet the constraint conditions according to the network dynamic equation;
[0028] Determine in each case, when the neural network energy function E l The parameter conditions that the cost difference routing weight parameter needs to satisfy when the solution is an infeasible solution and is unstable;
[0029] Each of the parameter conditions is used as a limiting condition that the cost difference routing weight parameter of the neural network energy function must satisfy when the feasible solution of the neural network energy function is asymptotically stable.
[0030] In one or some embodiments, the iterative solution to obtain the optimized value of the cost difference routing weight parameter of the neural network energy function according to the acquired historical routes corresponding to the priority level and the limiting conditions includes:
[0031] Acquire the historical routes successfully initiated by each user with a priority level in the software defined network within a preset time period, and establish a priority service quality path sample set, a priority service quality link sample set and a priority service quality branch sample set for the paths, links and branches corresponding to the historical routes; wherein the historical routes are routes with the smallest cost difference routing score and can guarantee to provide the user with a service quality corresponding to the priority level;
[0032] Acquire threshold data in the software defined network, and determine an initial value of a cost difference routing weight parameter according to the threshold data and the limiting condition;
[0033] Set the number of iterations and cost difference routing weight parameter increments;
[0034] The number of iterations is updated to obtain the current number of iterations. According to the initial value of the cost difference routing weight parameter and the cost difference routing weight parameter increment, the cost difference routing weight parameter corresponding to the current number of iterations is determined by the following formula:
[0035]
[0036]
[0037]
[0038] D(ρ)=1+ρ·ΔD;
[0039]
[0040] In the formula, ρ is the number of iterations, a, b, c are respectively l,m,n The quadratic, linear, and constant coefficients of the conventional cost are used for the conventional user path of the variable, H k is the bandwidth threshold, T min is the minimum transmission delay, ε min is the minimum average transmission delay, A, B, C, D, G and L are the energy functions E of the neural network respectively. l The cost difference routing weight parameter in , ΔA, ΔB, ΔC, ΔD and ΔG are the cost difference routing weight parameter increments respectively;
[0041] Calculating the first-order derivatives corresponding to different paths in the priority quality of service path sample set;
[0042] Determining whether the first-order derivative is less than zero for any path in the priority quality of service path sample set;
[0043] If so, the cost difference routing weight parameter corresponding to the current iteration number is used as the cost difference routing weight parameter optimization value; if not, the iteration number is updated, and the process of determining the cost difference routing weight parameter corresponding to the current iteration number is repeated.
[0044] In one or some embodiments, the decision variables of each branch are calculated according to the pre-constructed decision variable function, and it is determined that there is a target path on each link whose decision variable corresponding to a branch is greater than or equal to the decision variable threshold and whose cost difference routing score is the smallest, and the minimum cost difference routing is established through the target path, including:
[0045] For each path consisting of the link set and the branches on each link that meet the service quality corresponding to the priority level, respectively calculate the decision variables of each branch on the path according to a pre-constructed decision variable function;
[0046] Obtain a path on each link where a decision variable corresponding to a branch is greater than or equal to a decision variable threshold, and obtain a candidate path;
[0047] A path with the smallest cost difference routing score is selected from each of the candidate paths to obtain a target path, and a minimum cost difference routing is established through the target path.
[0048] In one or some embodiments, for each path consisting of the link set and the branches on each link that meet the quality of service corresponding to the priority level, respectively calculating the decision variables of each branch on the path according to a pre-constructed decision variable function includes:
[0049] According to the number of links in the path of the link set, the link set is divided into link subsets corresponding to different numbers of links, and the branches on each link in the link set that meet the service quality corresponding to the priority level are divided into branch subsets corresponding to different numbers of links;
[0050] For each path consisting of the link subset and the branch subset corresponding to the same number of links, respectively calculate the decision variables of each branch on the path according to a pre-constructed decision variable function;
[0051] The step of obtaining a path on each link where a decision variable corresponding to a branch is greater than or equal to a decision variable threshold to obtain a candidate path includes:
[0052] For each link subset with the number of links, a path on which each link in the link subset has a branch corresponding to a decision variable greater than or equal to a decision variable threshold is obtained to obtain a candidate path.
[0053] In a second aspect, the present invention provides a minimum cost difference routing device for ensuring service quality, comprising:
[0054] A first function construction module is used to obtain a cost difference routing scoring function of a path that meets the service quality corresponding to the priority level in the software defined network, and construct a corresponding neural network energy function according to the cost difference routing scoring function;
[0055] A limiting condition determination module is used to obtain a network dynamic equation corresponding to the cost difference routing scoring function, and determine, based on the network dynamic equation, a limiting condition that a cost difference routing weight parameter of the neural network energy function needs to satisfy when a feasible solution of the neural network energy function is asymptotically stable;
[0056] A solution module, used for iteratively solving the optimized value of the cost difference route weight parameter of the neural network energy function according to the acquired historical routes corresponding to the priority level and the limiting conditions;
[0057] A second function building module, used to build a decision variable function based on the cost difference routing weight parameter optimization value;
[0058] A request receiving module, used to receive a route request from a user with a priority level in a software defined network to establish a route from a source node to a destination node, and obtain a link set between nodes on each alternative path from the source node to the destination node and a branch on each link in the link set that meets the service quality corresponding to the priority level;
[0059] The routing module is used to calculate the decision variables of each branch according to a pre-constructed decision variable function, determine that there is a target path on each link whose decision variable corresponding to a branch is greater than or equal to the decision variable threshold and whose cost difference routing score is the smallest, and establish the minimum cost difference routing through the target path.
[0060] Based on the above technical solution, the beneficial effects of the present invention compared with the prior art are as follows:
[0061] The minimum cost difference routing method for ensuring service quality provided by the present invention obtains the cost difference routing scoring function of the path that meets the service quality corresponding to the priority level in the software defined network, and constructs the corresponding neural network energy function according to the cost difference routing scoring function; obtains the network dynamic equation corresponding to the cost difference routing scoring function, and determines the limiting conditions that the cost difference routing weight parameter of the neural network energy function needs to meet when the feasible solution of the neural network energy function is asymptotically stable according to the network dynamic equation; iteratively solves the optimized value of the cost difference routing weight parameter of the neural network energy function according to the obtained historical routing and the limiting conditions; and constructs the decision variable function based on the optimized value of the cost difference routing weight parameter. When a user with a certain priority level in the software defined network issues a routing request to establish a route from a certain source node to a certain destination node, the link set between each node on each alternative path from the source node to the destination node and the branch set on each link in the link set that meets the service quality corresponding to the priority level can be obtained from the network management device, and the branch on each link that can meet the service quality corresponding to the priority level can be screened to ensure that the path can meet the priority service quality. By constructing a decision variable function to calculate the decision variables of each branch respectively, it is determined that there is a branch on each link whose corresponding decision variable is greater than or equal to the decision variable threshold, and the target path with the minimum cost difference routing score, so as to select a path from several alternative paths that can minimize the cost difference routing score and provide priority service quality to users, and establish the minimum cost difference routing through the target path. The cost difference routing score is the sum of the conventional costs of the path minus the priority cost of the path in the software-defined network. When the cost difference routing score is the minimum, the cost benefit of the software-defined network can be maximized while ensuring the priority service quality provided to users. The present invention can select a path from several alternative paths that can minimize the cost difference routing score and provide priority service quality to users, and at the same time maximize the cost benefit of the software-defined network.
[0062] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0063] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0065] Figure 1 It is a flow chart of the minimum cost difference routing method for ensuring service quality;
[0066] Figure 2 It is a network model for marking path link branches in a software defined network provided by an embodiment of the present invention;
[0067] Figure 3 is a flowchart of the steps for calculating the optimized value of the cost difference routing weight parameter of the neural network energy function in step S103;
[0068] Figure 4 It is the condition that the first-order derivative of the decision variable of the link m′ on the path l′ and the branch n′ on the priority quality of service path sample set Ω increases with different iteration times ρ provided by the neural network energy function of the embodiment of the present invention;
[0069] Figure 5 is a flowchart of the steps in step S106 for providing a path of minimum cost difference routing that satisfies the quality of service guarantee in the software defined network;
[0070] Figure 6 It is a schematic diagram of the structure of a minimum cost difference routing device for ensuring service quality;
[0071] Figure 7 It is a structural diagram of an electronic device. DETAILED DESCRIPTION
[0072] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0073] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0074] QoS can be reflected by some quantitative indicators. According to the specific type of network service, the indicator can be a single QoS indicator or a combination of multiple QoS indicators. For example, latency refers to the time required for a data packet to reach the destination node from the source node during data transmission, which mainly includes the time for electromagnetic waves to transmit in the channel, the time required for network devices to send data packets, and the time data packets wait in the cache queue. Delay jitter is used to measure the change in latency. During the transmission of data packets, different packets may pass through different routing paths, and the same path may also cause changes in latency due to different congestion states. Link bandwidth refers to the data transmission capacity that the network can provide to users. The unit of bandwidth is usually described in bits per second. It is a measure of network transmission efficiency. Packet loss rate refers to the ratio of the number of data packets lost to the total number of data packets sent during data packet transmission due to network hardware equipment or network congestion.
[0075] The inventor found in his work that since the routing selection with service quality guarantee in the software defined network is an NP (Non-deterministic Polynomial, a non-deterministic problem with polynomial complexity) complete problem, the traditional exhaustive method cannot effectively solve the QoS routing selection problem, especially when the network scale is large, it cannot meet the inventor's expectations. Artificial neural network is composed of a group of parallel operation processors interconnected by weight coefficients, which can handle quite complex problems. Through appropriate construction, the neural network can quickly find the local optimum or even the global optimum. In addition, the neural network has a parallel structure, which is easy to implement in hardware and can ensure the real-time selection of the required route. The routing problem in the computer network can be solved by the Hopfield neural network, and the parameters can be reasonably selected, and the feasible solutions are stable. The inventor made the present invention after further research and development. The purpose of the present invention is to select a path from a plurality of alternative paths that can minimize the cost difference routing score and provide the user with priority service quality when a user with a certain priority level in a software defined network issues a routing request to establish from a certain source node to a certain destination node, and at the same time, the cost benefit of the software defined network can be maximized.
[0076] Embodiment 1
[0077] The embodiment of the present invention provides a minimum cost difference routing method for ensuring service quality, referring to Figure 1 As shown, steps S101-S106 are included:
[0078] S101, obtaining a cost difference routing scoring function of a path that satisfies the quality of service corresponding to the priority level in the software defined network, and constructing a corresponding neural network energy function according to the cost difference routing scoring function;
[0079] It is defined that there may be multiple branches on the link from any node to the next hop node in the software-defined network. A path can be formed by connecting multiple links from the source node to the intermediate node to the destination node, and only one branch can be used on each link during data transmission. The network management device set in the software-defined network of the present invention can count the bandwidth status and delay status of each branch on the link between different nodes. According to the bandwidth status and delay status of each branch on the link between different nodes on the path, the cost difference routing score can be performed on the path. First, a cost difference routing score function is constructed:
[0080] The user can obtain the link set Φ between the nodes on the lth path on the λ candidate paths from the network management device. l , and the set of branches Θ on the link numbered m (referred to as link m) on the lth path (referred to as path l) that satisfy the service quality corresponding to the priority level k l,m , where 1≤l≤λ.
[0081] Assume that the priority cost of the path with priority level k in the software defined network is ρ k , the conventional cost for a path using a branch n on a link m on the above path l is Where m is the link set Φ between nodes on the lth path l The number of the link in the path, n is the set of branches on link m on path l, Θ l,m The number of the branch (can be called branch n), H l,m,n is the bandwidth of branch n on link m on path l, x l,m,n is the decision variable of branch n on link m on path l, x l,m,n The value is 1 or 0, so that the user can only use one branch on link m on path l, that is, a, b, c are respectively l,m,n Use the quadratic, linear, and constant coefficients of the regular cost for the regular user path of the variable.
[0082] Set the cost difference routing score F of path l that meets the service quality corresponding to priority level k in the software defined network, which can be set to the sum of the regular cost of using a path on a link m on path l minus the priority cost ρ of the path with priority level k in the software defined network. k Cost difference routing score Usually, a preferential package will be given when the priority level is k. It can be seen that the path usage priority fee of the path l should be less than or equal to the regular path usage fee of the same path l. It can be seen that when one of the L candidate paths is selected to minimize the cost difference routing score, it can be ensured that the cost benefit of the software defined network is maximized while providing priority service quality to users, that is:
[0083]
[0084] The above coefficients a, b, c can be set when the conventional user path in the software-defined network uses conventional fees. In actual applications, the quadratic term, linear term and constant term coefficients within a certain error range can be obtained by fitting a quadratic function when the bandwidth used is used as an independent variable and the conventional fee is used as a dependent variable. The coefficients can be set according to the network bandwidth charging mechanism in the software-defined network, or can be obtained by fitting a quadratic function based on some current bandwidth charging mechanisms.
[0085] After the cost difference routing scoring function is constructed, the software-defined network constructs a corresponding neural network energy function for the cost difference routing score of path l that meets the service quality corresponding to the priority level k. Specifically, the constraints that must be met by the branch or path that meets the service quality corresponding to the priority level are obtained, and the neural network energy function is constructed according to the constraints and the cost difference routing scoring function. In order to ensure the service quality of users with a priority level of k, a plurality of constraints for ensuring the service quality are set for the branch or path. Those skilled in the art can set the above-mentioned constraints for the branch or path according to actual needs.
[0086] In a specific embodiment, in order to ensure the service quality of users with priority level k, the above-mentioned branches or paths that meet the service quality of the priority level must meet the following restrictions:
[0087] The bandwidth of a branch used must be greater than or equal to the bandwidth threshold H for any branch at level k. k conditions, that is Where n is the branch set Θ on link m on path l l,m The number of the branch (can be called branch n), H l,m,n is the bandwidth of branch n on link m on path l, xl,m,n is the decision variable for branch n on link m on path l, and takes a value of 1 or 0, so that the user can only use one branch on link m on path l, that is, And the delay jitter of each branch must be less than or equal to the delay jitter threshold Δ for any branch at level k k conditions, that is where ε l,m is the average transmission delay of link m on path l, T l,m,n is the transmission delay of branch n on link m on path l. And the path l used must meet the requirement that the end-to-end delay from the source node to the destination node must be less than or equal to the end-to-end delay threshold T for the entire path when the level is k. k conditions, that is Parameters such as bandwidth threshold, delay jitter threshold and end-to-end delay threshold can be derived through reasoning and calculation based on relevant theoretical knowledge of computer networks, and can be set according to specific performance requirements set in the software-defined network such as bandwidth threshold, delay jitter threshold and end-to-end delay threshold.
[0088] According to the above cost difference routing scoring function and the above set constraints, the following neural network energy function E is constructed by the software defined network: l :
[0089]
[0090] Among them, A, B, C, D, G and L are the energy functions E of the neural network respectively. l The cost difference routing weight parameters in , and both are greater than or equal to zero.
[0091] S102, obtaining a network dynamic equation corresponding to the cost difference routing scoring function, and determining, according to the network dynamic equation, a limiting condition that a cost difference routing weight parameter of the neural network energy function needs to satisfy when a feasible solution of the neural network energy function is asymptotically stable;
[0092] The neural network energy function E in the above S101 l The decision variable x of the branch n on the link m on the path l is l,m,n Derivation is performed to obtain the decision variable x of the neural network energy function for the link m on the path l and the branch n l,m,n The first derivative of
[0093]
[0094] According to the first-order derivative and the Hopfield neural network differential equation Determine a network dynamic equation corresponding to the cost difference routing score F;
[0095]
[0096] In the formula, is the network dynamic equation, and t is the time variable.
[0097] After the network dynamic equation is obtained, various situations where the service quality of users with priority levels does not meet the constraints are determined according to the network dynamic equation; the present invention sets the E to be obtained in various situations where the service quality of users with priority level k does not meet the constraints. l The solution is not a feasible solution. Therefore, first determine in each case, when the neural network energy function E l The parameter conditions that the cost difference routing weight parameters need to satisfy when the solution is a non-feasible solution and is unstable; each of the parameter conditions is used as the limiting conditions that the cost difference routing weight parameters of the neural network energy function need to satisfy when the feasible solution of the neural network energy function is asymptotically stable.
[0098] S103, iteratively solving the optimized value of the cost difference routing weight parameter of the neural network energy function according to the acquired historical routes corresponding to the priority level and the limiting conditions;
[0099] The user with priority level k in the software defined network successfully initiates the route with the minimum cost difference routing score at each node and can guarantee the user to provide the priority service quality, and obtains the historical route. Based on the historical route and the determined constraints, the cost difference routing weight parameter increment is continuously iterated to solve the cost difference routing weight parameter optimization value of the neural network energy function.
[0100] S104, constructing a decision variable function based on the cost difference routing weight parameter optimization value;
[0101] After obtaining the optimized value of the cost difference routing weight parameter, the network dynamic equation is updated using the optimized value of the cost difference routing weight parameter. A decision variable function is constructed based on the decision variables of the last iteration and the updated network dynamic equation. The decision variable function is used to calculate the decision variable x of the branch n on the link m on the path l. l,m,n .
[0102] S105, receiving a route request from a user with a priority level in a software defined network to establish a route from a source node to a destination node, obtaining a link set between nodes on each candidate path from the source node to the destination node and a branch on each link in the link set that meets the service quality corresponding to the priority level;
[0103] It is defined that there may be multiple branches on the link from any node to the next hop node in the software-defined network, and a path can be formed by connecting multiple links from the source node to the intermediate node to the destination node, and only one branch can be used on each link during data transmission. The network management device set in the software-defined network can count the bandwidth status and delay status of each branch on the link between different nodes. It is set that when a user with a priority level of k in the software-defined network sends a request to establish a route from a source node to a destination node, the user can obtain the link set Φ between the nodes on the lth path on the λ alternative paths from the network management device l , and the set of branches Θ on the link numbered m (referred to as link m) on the lth path (referred to as path l) that satisfy the service quality corresponding to the priority level k l,m , where 1≤l≤λ.
[0104] In this embodiment, for the convenience of description, refer to Figure 2 A scenario of the areas involved in the links and branches from the source node to the destination node through the intermediate nodes in a software-defined network is given: Node 9 is the source node, Node 10 is the destination node, Nodes 1 to 8 are intermediate nodes, the first alternative path is Node 9 to Node 1 to Node 2 to Node 3 to Node 10, the second alternative path is Node 9 to Node 4 to Node 5 to Node 10, and the third alternative path is Node 9 to Node 6 to Node 7 to Node 8 to Node 10, where Figure 2 In the diagram, (path number, link number, branch number) is used to mark a branch on a link on a path. For example, (2, 6, 13) marks the 13th branch on the second link from node 4 to node 5 on the second path from node 9 to node 4 to node 5 to node 10.
[0105] S106. Calculate the decision variables of each branch according to the pre-constructed decision variable function, determine that there is a target path on each link whose decision variable corresponding to a branch is greater than or equal to the decision variable threshold and has the minimum cost difference routing score, and establish the minimum cost difference routing through the target path.
[0106] Through the above steps, we can get the link set Φ between the nodes on the lth path. l And the set of branches Θ on the link numbered m (referred to as link m) on the lth path (referred to as path l) that meet the service quality corresponding to the priority level k l,m After that, through the link set Φ from the source node to the intermediate node to the destination node l The connection can form a path l, and during data transmission, only the branch set Θ can be used on each link m l,mA branch in the list. For each path consisting of the link set and the branches on each link that meet the service quality corresponding to the priority level, the decision variables of each branch on the path l are calculated according to the pre-constructed decision variable function; a path on each link m where there is a decision variable corresponding to a branch n greater than or equal to the decision variable threshold is obtained to obtain a candidate path; a path with the smallest cost difference routing score is selected from each of the candidate paths to obtain a target path, and a minimum cost difference route is established through the target path. The cost difference routing score of the path can be calculated according to the cost difference routing score function constructed in the above step S101.
[0107] When calculating the decision variables of the branch, as the number of links increases from small to large, or from large to small, the decision variables of each branch on each link in the link subset corresponding to different numbers of links can be calculated in sequence, and a path on which each link in the link subset corresponding to different numbers of links has a decision variable corresponding to a branch greater than or equal to the decision variable threshold is obtained, and one or more candidate paths are obtained. If a path on which each link has a decision variable corresponding to a branch greater than or equal to the decision variable threshold cannot be found, it is determined that there is no path that satisfies the minimum cost difference routing that guarantees the quality of service in the software-defined network. After obtaining one or more candidate paths, the cost difference routing score function constructed in step S101 is used to calculate the cost difference routing score of each candidate path. The candidate path with the smallest cost difference routing score is obtained, and the target path is obtained, and the user with the priority level can establish the minimum cost difference routing through the target path.
[0108] The present invention belongs to the technical field of software defined networks, and specifically relates to constructing a corresponding neural network energy function through cost difference routing scoring to select a path that can minimize the cost difference routing score and provide priority service quality for users, thereby realizing a minimum cost difference routing method that provides priority service quality assurance in a software defined network. Specifically, the minimum cost difference routing method for ensuring service quality provided by the present invention, when a user with a certain priority level in the software defined network issues a routing request to establish a route from a certain source node to a certain destination node, a link set between each node on each alternative path from the source node to the destination node and a branch set on each link in the link set that meets the service quality corresponding to the priority level can be obtained from a network management device, and by screening the branches on each link that can meet the service quality corresponding to the priority level, it can be ensured that the path can meet the priority service quality. By constructing a decision variable function, the decision variables of each branch are calculated respectively, and it is determined that there is a decision variable corresponding to a branch on each link that is greater than or equal to the decision variable threshold, and the target path with the minimum cost difference routing score is selected from a number of alternative paths to minimize the cost difference routing score and provide priority service quality to users, and the minimum cost difference routing is established through the target path. The cost difference routing score is the sum of the regular costs of the path minus the priority cost of the path in the software-defined network. When the cost difference routing score is the minimum, the cost benefit of the software-defined network can be maximized while ensuring the priority service quality provided to the user. The present invention can select a path from a number of alternative paths that can minimize the cost difference routing score and provide priority service quality to users, and at the same time maximize the cost benefit of the software-defined network.
[0109] In an optional embodiment, it is assumed that the E is obtained in five situations where the service quality of the user with the priority level k does not meet the constraint condition. l If the solution is not feasible, there are five cases: Case 1: The path usage priority cost of the path l should be greater than the regular cost of the path using the same path l, and the specific form is Case 2: The bandwidth of the used branch is less than the bandwidth threshold H for any branch when the level is k. k , the specific form is Case 3: The path l used must satisfy the end-to-end delay from the source node to the destination node greater than the end-to-end delay threshold T for the entire path when the level is k. k , the specific form is Case 4 is that the user uses multiple branches on link m on path l, and the specific form is Case 5: The delay jitter of any branch is greater than the delay jitter threshold Δ for any branch when the level is k. k, the specific form is
[0110] Then, when the feasible solution of the neural network energy function is asymptotically stable according to the network dynamic equation as described in S102, the limiting conditions that the cost difference routing weight parameters of the neural network energy function need to satisfy include:
[0111] Assume that in case 1, for a link there exists p when there is x l,p,n =0 can exist Available Then when hour, It can be seen that the neural network energy function E l The infeasible solutions of are unstable.
[0112] Assume that in case 2, for a link there exists p when there is x l,p,n =0 can exist Available Then when hour, It can be seen that the neural network energy function E l The infeasible solutions of are unstable.
[0113] Assume that in case 3, for a link there exists p when there is x l,p,n =1 can exist Available Where T min is the minimum transmission delay of a branch in the software-defined network, then when hour, It can be seen that the neural network energy function E l The infeasible solutions of are unstable.
[0114] Assume that in case 4, for a link there exists p when there is x l,p,n =1 can exist Available Then when D>L, It can be seen that the neural network energy function E l The infeasible solutions of are unstable.
[0115] Assume that in case 5, for a link there exists p when there is x l,p,n =0 can exist Available Then when hour, where ε min is the minimum average transmission delay of the link in the software-defined network, it can be known that the neural network energy function E l The infeasible solutions of are unstable.
[0116] It can be obtained that in the above five cases, when the neural network energy function E l When the solution is not feasible and is unstable, the parameter conditions that the cost difference routing weight parameter needs to satisfy are: D>L,
[0117] Therefore, when the feasible solution of the neural network energy function is asymptotically stable, the limiting condition that the cost difference routing weight parameter of the neural network energy function needs to satisfy is: D>L,
[0118] In an optional embodiment, the above S103 is based on the historical routes corresponding to the obtained priority levels and the limiting conditions, and iteratively solves to obtain the optimized value of the cost difference routing weight parameter of the neural network energy function, specifically as follows: Figure 3 The steps shown are implemented:
[0119] S1031, obtaining historical routes successfully initiated by each user with a priority level in the software defined network within a preset time period, and establishing a priority quality of service path sample set Ω and a priority quality of service link sample set Ξ for the paths, links and branches corresponding to the historical routes. l′ and the priority service quality branch sample set Ψ l′,m′ ; Wherein, the historical route is the route with the smallest cost difference route score and can guarantee the priority service quality for the user;
[0120] Set in Figure 2 In the scenario shown, the software-defined network has 5 users with a priority level of k in the recent period. They successfully initiate the routing with the minimum cost difference routing score and can guarantee the provision of the service quality corresponding to the priority level to the users at each node. The routing with the minimum cost difference routing score and can guarantee the provision of the service quality corresponding to the priority level to the users within the preset time period is obtained, and the corresponding paths, links and branches are used to establish the priority service quality path sample set Ω and the priority service quality link sample set Ξ l′ and the priority service quality branch sample set Ψ l′,m′ , where l' is a path in the priority quality of service path sample set Ω, and m' is a path in the priority quality of service link sample set Ξ l′ Links in .
[0121] S1032, obtaining threshold data in the software defined network, and determining an initial value of a cost difference routing weight parameter according to the threshold data and the limiting condition;
[0122] Substitute the threshold data in the software defined network into the determined limiting conditions to obtain the initial value of the cost difference routing weight parameter. Figure 2 In the scenario shown in FIG. 1 , the minimum transmission delay T of the branch in the software defined network described in S102 above min Can be set to 4ms, the minimum average transmission delay of the link in the software-defined network ε min It can be set to 12ms, and the cost difference routing weight parameter L can be set to 100; From the above 5 situations, it can be seen that when the cost difference routing weight parameter meets the limiting conditions: D>L=100 and The initial values of the cost difference routing weight parameters can be set to A(0)=10, B(0)=50, C(0)=25, D(0)=100 and G(0)=1.04 respectively.
[0123] S1033, setting the number of iterations and the cost difference routing weight parameter increment;
[0124] The above-mentioned cost difference routing weight parameter increments can be set according to actual needs, such as setting the number of iterations ρ to 0, and the cost difference routing weight parameter increments ΔA=0.5, ΔB=2.5, ΔC=1.25, ΔD=5 and ΔG=0.05.
[0125] S1034, updating the number of iterations to obtain the current number of iterations, and determining the cost difference routing weight parameter corresponding to the current number of iterations according to the initial value of the cost difference routing weight parameter and the cost difference routing weight parameter increment by the following formula:
[0126]
[0127]
[0128]
[0129] D(ρ)=1+ρ·ΔD;
[0130]
[0131] In the formula, ρ is the number of iterations, a, b, c are respectively l,m,n The quadratic, linear, and constant coefficients of the conventional cost are used for the conventional user path of the variable, H k is the bandwidth threshold, T min is the minimum transmission delay, ε min is the minimum average transmission delay, A, B, C, D, G and L are the energy functions E of the neural network respectively. lThe cost difference routing weight parameter in , ΔA, ΔB, ΔC, ΔD and ΔG are the cost difference routing weight parameter increments respectively;
[0132] S1035, calculating the first-order derivatives corresponding to different paths in the priority quality of service path sample set Ω
[0133] S1036, determine whether the first-order derivative is less than zero for any path in the priority quality of service path sample set Ω; if it exists for any path l′ It can be seen that for the current x l′,m′,n′ =1 corresponds to the neural network energy function E l′ If the feasible solution is asymptotically stable, proceed to step S1037, otherwise proceed to step S1034, and use the cost difference routing weight parameter obtained in the last iteration as the initial value of the cost difference routing weight parameter, and determine the cost difference routing weight parameter corresponding to the current number of iterations according to the formula in S1034.
[0134] S1037. Output the cost difference routing weight parameters A(ρ), B(ρ), C(ρ), D(ρ) and G(ρ) corresponding to the current number of iterations as the cost difference routing weight parameter optimization values A′, B′, C′, D′ and G′.
[0135] In the above embodiment, for the priority quality of service path sample set Ω and the priority quality of service link sample set Ξ l′ and the priority service quality branch sample set Ψ l′,m′ , the first-order derivative of the decision variable of the link m′ on the path l′ and the branch n′ on the priority quality of service path sample set Ω after different iterations ρ Reference Figure 4 As shown, it can be observed that when the number of iterations ρ is 18, for any path l′ from user 1 to user 5, It can be seen that for the current x l′,m′,n′ =1 corresponds to the neural network energy function E l′ The feasible solution is asymptotically stable, then the current A(ρ)=19, B(ρ)=95, C(ρ)=47.5, D(ρ)=190 and G(ρ)=1.94 can be output as the optimized values of cost difference routing weight parameters A′, B′, C′, D′ and G′ respectively.
[0136] In an optional embodiment, the above S106, for each path consisting of the link set and the branches on each link that meet the service quality corresponding to the priority level, respectively calculates the decision variables of each branch on path l according to a pre-constructed decision variable function, specifically including:
[0137] S1061. According to the number of links in the path in the link set, divide the link set into link subsets corresponding to different numbers of links, and divide the branches on each link in the link set that meet the service quality corresponding to the priority level into branch subsets corresponding to different numbers of links;
[0138] According to the link set Φ l The number of links in path l is u, and the link set Φ l Split into link subsets corresponding to different link numbers u The branch set Θ on link m on path l that meets the service quality corresponding to priority level k is l,m Divide into branch subsets corresponding to different link numbers u
[0139] S1062, for each path consisting of the link subset and the branch subset corresponding to the same number of links, respectively calculate the decision variables of each branch on the path according to a pre-constructed decision variable function;
[0140] By connecting the source node through the intermediate nodes to the destination node The connection can form a path l, and only a subset of branches can be used on each link m during data transmission A branch in the Figure 2 As shown, node 9 is the source node, node 10 is the destination node, and nodes 1 to 8 are intermediate nodes. Figure 2 Each branch in can meet the service quality corresponding to the priority level, then, according to the link set Φ l The number of links in path l is u, and the link set Φ l Split into a link subset with 3 links and the subset of links with 4 links Taking the number of links as 3 as an example, the subset of links from the source node through the intermediate nodes to the destination node is Specifically, node 9 to node 4 to node 5 to node 10 can form a path. Only a subset of branches can be used on each link m of the path. According to the pre-built decision variable function, the decision variables x of each branch n on each path l are calculated separately. l,m,n .
[0141] The step of obtaining a path on each link m where a decision variable corresponding to a branch n is greater than or equal to a decision variable threshold in S106 above to obtain a candidate path specifically includes:
[0142] S1063. For each link subset having a certain number of links, obtain a path on which each link in the link subset has a branch corresponding to a decision variable greater than or equal to a decision variable threshold, and obtain a candidate path.
[0143] For each link subset with the number of links, determine whether there is a path l in the link subset corresponding to the number of links and a decision variable x corresponding to a branch n exists on each link m on the path. l,m,n (r) is greater than or equal to the decision variable threshold X. If so, the path is taken as a candidate path.
[0144] In an optional embodiment, if the number of links in a path is smaller, the bandwidth resources that the software-defined network needs to provide are relatively estimated to be less and the end-to-end delay is also estimated to be smaller accordingly, so the path with fewer links should be considered first to achieve the minimum cost difference routing that guarantees the quality of service in the software-defined network.
[0145] The decision variables of each branch are calculated according to the pre-built decision variable function, and it is determined that there is a target path on each link whose decision variable corresponding to the branch is greater than or equal to the decision variable threshold and the cost difference routing score is the smallest. The minimum cost difference routing is established through the target path. Specifically, Figure 5 The steps shown are implemented:
[0146] Step 1.1: According to the link set Φ l The number of links u in path l increases from small to large, and the link set Φ l Split into link subsets corresponding to different link numbers u The branch set Θ on link m on path l that meets the service quality corresponding to priority level k is l,m Divide into branch subsets corresponding to different link numbers u And set the minimum and maximum values of the number of links to u respectively. min and u max ;
[0147] Step 1.2: Set the initial value of the current link quantity identifier w to u min The time variable increment is Δt, and the maximum number of iterations is set to r max and the decision variable threshold is X;
[0148] Step 1.3: Determine the link subset corresponding to the current link quantity identifier w Is it an empty set? If it is not an empty set, execute step 1.4; if it is an empty set, execute step 1.7;
[0149] Step 1.4: Set the number of iterations r to 0, and count the link subset corresponding to the current link quantity identifier w The number of branches on link m on different paths l is τ l,m , the decision variable x of branch n on link m on path l when the iteration number r is 0 l,m,n (r=0) is set to
[0150] Step 1.5: Increase the number of iterations r by 1. If the number of iterations r>r max Then execute step 1.7. If the number of iterations r≤r max , then the decision variable x of branch n on link m on path l is calculated by the following decision variable function l,m,n :
[0151]
[0152] In the formula, t is the time variable, m is the link set Φ between the nodes on the lth path l The number of the link in the path, n is the set of branches on link m on path l, Θ l,m The number of the branch, x l,m,n is the decision variable of branch n on link m on path l, H l,m,n is the bandwidth of branch n on link m on path l, ρ k The priority cost is used for the path with priority level k in the software defined network, where a, b, and c are respectively l,m,n The quadratic, linear, and constant coefficients of the conventional cost are used for the conventional user path of the variable, H k is the bandwidth threshold, T k is the end-to-end delay threshold, T l,m,n is the transmission delay of branch n on link m on path l, Δ k is the delay jitter threshold, ε l,m is the average transmission delay of link m on path l, A, B, C, D, G and L are the energy functions E of the neural network respectively. l The cost difference routing weight parameter in , A′, B′, C′, D′ and G′ are the optimized values of cost difference routing weight parameter;
[0153] Step 1.6: Count the link subset corresponding to the current link quantity identifier w Is there a path l in which each link m on the path has a decision variable x corresponding to a branch n? l,m,n (r) is greater than or equal to the decision variable threshold X, if so, execute step 1.8, if not, execute step 1.5;
[0154] Step 1.7: Add 1 to the current link quantity identifier w. If w is less than or equal to u, max, then execute step 1.3, otherwise execute step 1.9;
[0155] Step 1.8: Record the decision variable x in step 1.6 l,m,n (r) the branch n and the link m where it is located that is greater than or equal to the decision variable threshold X, and obtain the path corresponding to the current link quantity identifier w;
[0156] Step 1.9. If there are paths corresponding to different link quantity identifiers in the record of step 1.8, compare the corresponding cost difference routing scores F, obtain the path corresponding to the minimum cost difference routing score, and obtain the target path for establishing the minimum cost difference routing; if there is no record, it is determined that there is no target path for the minimum cost difference routing that meets the service quality guarantee in the software-defined network.
[0157] In a specific embodiment, according to Figure 2 In the scenario shown in FIG. 1 , when the user with priority level k=1 sends a request to establish a route from node 9 to node 10, the link set Φ of any path on λ=3 alternative paths can be obtained. l and branch set Θ l,m , and the relevant parameters of the software defined network described in step S101 are specifically: the priority level k is 1, the bandwidth threshold H k 2Mb / s, delay jitter threshold Δ k The end-to-end delay threshold T is 5ms. k is 15ms, and the path uses the priority cost ρ k is 8, and the coefficients a, b, c of the quadratic, linear and constant terms of the regular cost used in the regular user path are 1, 2 and 2 respectively.
[0158] Reference Figure 2 As shown, node 9 is the source node, node 10 is the destination node, nodes 1 to 8 are intermediate nodes, the first alternative path is node 9 to node 1 to node 2 to node 3 to node 10, the second alternative path is node 9 to node 4 to node 5 to node 10, and the third alternative path is node 9 to node 6 to node 7 to node 8 to node 10, where Figure 2 In the diagram, (path number, link number, branch number) is used to mark a branch on a link on a path. For example, (2, 6, 13) marks the 13th branch on the second link from node 4 to node 5 on the second path from node 9 to node 4 to node 5 to node 10.
[0159] The specific steps of S106 are as follows:
[0160] Step 2.1: According to the link set Φ lThe number of links u in path l is divided into link subsets corresponding to different numbers of links u from small to large It can be seen that u is 3 or 4, and the branch set θ on the link m on the path l that meets the service quality corresponding to the priority level k is l,m Divide into branch subsets corresponding to different link numbers u And set the minimum and maximum values of the number of links to u respectively. min =3 and u max =4. If the number of links on a path is smaller, the bandwidth resources that the software-defined network needs to provide are relatively estimated to be less and the end-to-end delay is also estimated to be smaller accordingly. Therefore, the path with fewer links should be considered first to achieve the minimum cost difference routing that guarantees the quality of service in the software-defined network.
[0161] Step 2.2: Set the initial value of the link quantity identifier w to u min =3 and the time variable increment Δt=1, and set the maximum number of iterations to r max =30 and decision variable threshold X = 0.5;
[0162] Step 2.3: Determine the link subset corresponding to the current link quantity identifier w Is it an empty set? If it is not an empty set, go to step 2.4; if it is an empty set, go to step 2.7;
[0163] Step 2.4: Set the number of iterations r to 0, and count the link subset corresponding to the current link quantity identifier w The number of branches on link m on different paths l is τ l,m , the decision variable x of branch n on link m on path l when the iteration number r is 0 l,m,n (r=0) is set to
[0164] Step 2.5: Increase the number of iterations r by 1. If r>r max Then go to step 2.7. If r≤r max The decision variable x of the branch n on the link m on the path l is calculated by the network dynamic equation corresponding to F. l,m,n :
[0165]
[0166] Step 2.6: Statistics for the Is there a path l in which each link m on the path has a decision variable x corresponding to a branch n? l,m,n (r) is greater than or equal to the decision variable threshold X, then go to step 2.8, otherwise go to step 2.5;
[0167] Step 2.7: Add 1 to the link quantity identifier w. If the link quantity identifier w is less than or equal to u, max Then go to step 2.3, otherwise go to step 2.9;
[0168] Step 2.8, by recording the link m and the branch n on the path in step 2.6, thereby saving the path corresponding to the link quantity identifier w;
[0169] Step 2.9. If there are paths corresponding to different link quantity identifiers in the record of step 2.8, compare the corresponding cost difference routing scores F, and initiate the minimum cost difference routing that meets the service quality guarantee in the software-defined network through the path corresponding to the smallest cost difference routing score. If there is no record, it is determined that there is no path that meets the minimum cost difference routing that meets the service quality guarantee in the software-defined network.
[0170] In the above embodiment, according to Figure 2 In the scenario shown, the bandwidth (Mb / s) and latency (ms) of each branch on each link on the three paths in the software defined network provided by the embodiment of the present invention are shown in Table 1 below:
[0171]
[0172] Table 1
[0173] Substituting the above parameters into step 2, in step 2.8, path 1 from branch 1 to branch 6 to branch 7 to branch 9 and path 2 from branch 11 to branch 14 to branch 15 can be obtained. Then in step 2.9, by comparing the cost difference routing scores corresponding to the above paths 1 and 2, the cost difference routing score of path 1 is smaller. The above path 1 can be used as the target path of the minimum cost difference routing that meets the service quality guarantee in the software-defined network and provided to the above user with a priority level of k=1 for use, thereby initiating the minimum cost difference routing from node 9 to node 10, thereby maximizing the cost benefit of the software-defined network while providing the user with a priority service quality path.
[0174] Although the above describes the specific implementation mode of the present invention in conjunction with the drawings, it does not limit the scope of protection of the invention. Various modifications that can be made by relevant technical personnel on the basis of the present invention without creative work are still within the scope of protection of the present invention.
[0175] Embodiment 2
[0176] The embodiment of the present invention provides a minimum cost difference routing device for ensuring service quality, referring to Figure 6 As shown, including:
[0177] The first function construction module 301 is used to obtain a cost difference routing scoring function of a path that meets the service quality corresponding to the priority level in the software defined network, and construct a corresponding neural network energy function according to the cost difference routing scoring function;
[0178] A limiting condition determination module 302 is used to obtain a network dynamic equation corresponding to the cost difference routing scoring function, and determine, based on the network dynamic equation, a limiting condition that a cost difference routing weight parameter of the neural network energy function must satisfy when a feasible solution of the neural network energy function is asymptotically stable;
[0179] A solution module 303, configured to iteratively solve the optimized value of the cost difference route weight parameter of the neural network energy function according to the acquired historical routes corresponding to the priority level and the limiting conditions;
[0180] A second function construction module 304 is used to construct a decision variable function based on the cost difference routing weight parameter optimization value;
[0181] The request receiving module 305 is used to receive a route request from a user with a priority level in the software defined network to establish a route from a source node to a destination node, and obtain a link set between nodes on each alternative path from the source node to the destination node and a branch on each link in the link set that meets the service quality corresponding to the priority level;
[0182] The routing module 306 is used to calculate the decision variables of each branch according to the pre-constructed decision variable function, determine that there is a target path on each link whose decision variable corresponding to the branch is greater than or equal to the decision variable threshold and has the minimum cost difference routing score, and establish the minimum cost difference routing through the target path.
[0183] The minimum cost difference routing device for ensuring service quality provided by the embodiment of the present invention has similar implementation principles and technical effects as those of the aforementioned method embodiment, and will not be described in detail here.
[0184] Embodiment 3
[0185] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the minimum cost difference routing method for ensuring service quality in a software-defined network as described in the above method embodiment is implemented.
[0186] The computer-readable storage medium may be included in the device / apparatus described in the above embodiment; or it may exist independently without being assembled into the device / apparatus. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0187] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0188] Embodiment 4
[0189] An embodiment of the present invention provides an electronic device, referring to Figure 7 As shown, it includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112 and the memory 113 communicate with each other through the communication bus 114.
[0190] Memory 113, used for storing computer programs;
[0191] The processor 111 is used to implement the minimum cost difference routing method for ensuring service quality in a software defined network as described in the above method embodiment when executing the program stored in the memory 113.
[0192] The implementation principle and technical effect of the electronic device provided by the embodiment of the present invention are similar to those of the aforementioned method embodiment, and will not be described in detail here.
[0193] The above-mentioned memory 113 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk or a ROM. The memory 113 has a storage space for program codes for executing any method steps in the above-mentioned method. For example, the storage space for program codes may include various program codes for implementing various steps in the above method respectively. These program codes can be read from or written into one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are usually portable or fixed storage units. The storage unit may have a storage segment or storage space arranged similarly to the memory 113 in the above-mentioned electronic device. The program code can be compressed, for example, in an appropriate form. Generally, the storage unit includes a program for executing the method steps according to an embodiment of the present invention, that is, a code that can be read by, for example, a processor 111, and when these codes are run by an electronic device, the electronic device executes various steps in the method described above.
[0194] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0195] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0196] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0197] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0198] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict. The present invention is not limited to any single aspect, any single embodiment, or any combination and / or permutation of these aspects and / or embodiments. Each aspect and / or embodiment of the present invention can be used alone, or in combination with one or more other aspects and / or other embodiments.
[0199] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A minimum cost difference routing method for ensuring service quality, characterized in that: include: Receive a route request from a user with a priority level in a software defined network to establish a route from a source node to a destination node, obtain a link set between nodes on each alternative path from the source node to the destination node and a branch on each link in the link set that meets the service quality corresponding to the priority level; The decision variables of each branch are calculated according to the pre-constructed decision variable function, and it is determined that there is a target path on each link whose decision variable corresponding to the branch is greater than or equal to the decision variable threshold and whose cost difference routing score is the smallest, and the minimum cost difference routing is established through the target path; wherein the decision variable function is constructed in the following manner: Obtaining a cost difference routing score function for a path in the software defined network that satisfies the quality of service corresponding to the priority level, wherein the cost difference routing score is the sum of the conventional cost of using a branch on a link on the path minus the priority cost of using a path with a priority level k in the software defined network; Obtaining various constraints that must be satisfied by a branch or path that satisfies the quality of service corresponding to the priority level, and constructing a neural network energy function according to the various constraints and the cost difference routing scoring function; Obtain a network dynamic equation corresponding to the cost difference routing scoring function, wherein the network dynamic equation is determined in the following manner: The neural network energy function is derived with respect to the decision variables of the branch on the link on the path to obtain the first-order derivative of the neural network energy function with respect to the decision variables of the branch on the link on the path: According to the first-order derivative and the differential equation of the Hopfield neural network Determine the network dynamic equation corresponding to the cost difference routing score; where, is the first-order derivative, is the network dynamic equation, t is the time variable, E l is the neural network energy function, x l,m,n is the decision variable of branch n on link m on path l; Determine various situations in which the quality of service of users with priority levels does not meet the constraint conditions according to the network dynamic equation; determine the parameter conditions that the cost difference routing weight parameters of the neural network energy function need to satisfy when the solution of the neural network energy function is a non-feasible solution and is unstable in the various situations; use each of the parameter conditions as the limiting conditions that the cost difference routing weight parameters of the neural network energy function need to satisfy when the feasible solution of the neural network energy function is asymptotically stable; According to the acquired historical routes corresponding to the priority level and the limiting conditions, establish a priority service quality path sample set, a priority service quality link sample set and a priority service quality branch sample set for the paths, links and branches corresponding to the historical routes; obtain threshold data in the software defined network, determine the initial value of the cost difference routing weight parameter according to the threshold data and the limiting conditions, and iteratively solve the cost difference routing weight parameter optimization value of the neural network energy function according to the initial value of the cost difference routing weight parameter and the set cost difference routing weight parameter increment; A decision variable function is constructed based on the cost difference routing weight parameter optimization value.
2. The minimum cost difference routing method for ensuring service quality according to claim 1, characterized in that: The cost difference routing score is determined by the following formula: Where F is the cost difference routing score of the path that meets the service quality corresponding to priority level k in the software defined network, and m is the link set Φ between the nodes on the lth path. l The number of the link in the path, n is the set of branches on link m on path l, Θ l,m The number of the branch, x l,m,n is the decision variable of branch n on link m on path l, H l,m,n is the bandwidth of branch n on link m on path l, ρ k The priority cost is used for the path with priority level k in the software defined network, where a, b, and c are respectively l,m,n Use the quadratic, linear, and constant coefficients of the regular cost for the regular user path of the variable.
3. The minimum cost difference routing method for ensuring service quality according to claim 1, characterized in that: The step of constructing a neural network energy function according to the constraints and the cost difference routing scoring function includes: According to the constraints and the cost difference routing scoring function, a neural network energy function of the following formula is constructed; wherein the constraints include: the bandwidth of the branch is greater than or equal to the bandwidth threshold of the priority level for any branch, the delay jitter of each branch is less than or equal to the delay jitter threshold of the priority level for any branch, and the end-to-end delay from the source node to the destination node is less than or equal to the end-to-end delay threshold of the priority level for the entire path; In the formula, E l is the neural network energy function, m is the link set Φ between nodes on the lth path l The number of the link in the path, n is the set of branches on link m on path l, Θ l,m The number of the branch, x l,m,n is the decision variable of branch n on link m on path l, H l,m,n is the bandwidth of branch n on link m on path l, ρ k The priority cost is used for the path with priority level k in the software defined network, where a, b, and c are respectively l,m,n For the variable regular user path, use the quadratic, linear, and constant coefficients of the regular cost, H k is the bandwidth threshold, T k is the end-to-end delay threshold, T l,m,n is the transmission delay of branch n on link m on path l, Δ k is the delay jitter threshold, ε l,m is the average transmission delay of link m on path l, A, B, C, D, G and L are the energy functions E of the neural network respectively. l The cost difference routing weight parameter in .
4. The minimum cost difference routing method for ensuring service quality according to claim 3, characterized in that: The network dynamic equation is determined in the following way: The neural network energy function is derived with respect to the decision variables of the link branch on the path to obtain the first-order derivative of the neural network energy function with respect to the decision variables of the link branch on the path: According to the first-order derivative and the differential equation of the Hopfield neural network Determine a network dynamic equation corresponding to the cost difference routing score F; In the formula, is the first-order derivative, is the network dynamic equation, and t is the time variable.
5. The minimum cost difference routing method for ensuring service quality according to claim 4, characterized in that: According to the acquired historical routes corresponding to the priority levels and the limiting conditions, the paths, links and branches corresponding to the historical routes are used to establish a priority quality of service path sample set, a priority quality of service link sample set and a priority quality of service branch sample set; Acquiring threshold data in a software defined network, determining an initial value of a cost difference routing weight parameter according to the threshold data and the limiting condition, and iteratively solving to obtain an optimized value of the cost difference routing weight parameter of the neural network energy function according to the initial value of the cost difference routing weight parameter and a set cost difference routing weight parameter increment, including: Acquire the historical routes successfully initiated by each user with a priority level in the software defined network within a preset time period, and establish a priority service quality path sample set, a priority service quality link sample set and a priority service quality branch sample set for the paths, links and branches corresponding to the historical routes; wherein the historical routes are routes with the smallest cost difference routing score and can guarantee to provide the user with a service quality corresponding to the priority level; Acquire threshold data in the software defined network, and determine an initial value of a cost difference routing weight parameter according to the threshold data and the limiting condition; Set the number of iterations and cost difference routing weight parameter increments; The number of iterations is updated to obtain the current number of iterations. According to the initial value of the cost difference routing weight parameter and the cost difference routing weight parameter increment, the cost difference routing weight parameter corresponding to the current number of iterations is determined by the following formula: D(ρ)=1+ρ·ΔD; In the formula, ρ is the number of iterations, a, b, c are respectively l,m,n For the variable regular user path, use the quadratic, linear, and constant coefficients of the regular cost, H k is the bandwidth threshold, T min is the minimum transmission delay, ε min is the minimum average transmission delay, A, B, C, D, G and L are the energy functions E of the neural network respectively. l The cost difference routing weight parameter in , ΔA, ΔB, ΔC, ΔD and ΔG are the cost difference routing weight parameter increments respectively; Calculating the first-order derivatives corresponding to different paths in the priority quality of service path sample set according to the cost difference routing weight parameter; Determining whether the first-order derivative is less than zero for any path in the priority quality of service path sample set; If so, the cost difference routing weight parameter corresponding to the current iteration number is used as the cost difference routing weight parameter optimization value; if not, the iteration number is updated, and the process of determining the cost difference routing weight parameter corresponding to the current iteration number is repeated.
6. The minimum cost difference routing method for ensuring service quality according to claim 1, characterized in that: The decision variables of each branch are calculated according to the pre-constructed decision variable function, and it is determined that there is a target path on each link whose decision variable corresponding to a branch is greater than or equal to the decision variable threshold and whose cost difference routing score is the smallest, and the minimum cost difference routing is established through the target path, including: For each path consisting of the link set and the branches on each link that meet the service quality corresponding to the priority level, respectively calculate the decision variables of each branch on the path according to a pre-constructed decision variable function; Obtain a path on each link where a decision variable corresponding to a branch is greater than or equal to a decision variable threshold, and obtain a candidate path; A path with the smallest cost difference routing score is selected from each of the candidate paths to obtain a target path, and a minimum cost difference routing is established through the target path.
7. The minimum cost difference routing method for ensuring service quality according to claim 6, characterized in that: The step of calculating the decision variables of each branch on the path according to a pre-constructed decision variable function for each path consisting of the link set and the branches on each link that meet the service quality corresponding to the priority level includes: According to the number of links in the path of the link set, the link set is divided into link subsets corresponding to different numbers of links, and the branches on each link in the link set that meet the service quality corresponding to the priority level are divided into branch subsets corresponding to different numbers of links; For each path consisting of the link subset and the branch subset corresponding to the same number of links, respectively calculate the decision variables of each branch on the path according to a pre-constructed decision variable function; The step of obtaining a path on each link where a decision variable corresponding to a branch is greater than or equal to a decision variable threshold to obtain a candidate path includes: For each link subset with the number of links, a path on which each link in the link subset has a branch corresponding to a decision variable greater than or equal to a decision variable threshold is obtained to obtain a candidate path.
8. A minimum cost difference routing device for ensuring service quality, characterized in that: include: The first function construction module is used to obtain a cost difference routing scoring function for a path that meets the service quality corresponding to the priority level in the software defined network, where the cost difference routing score is the sum of the conventional cost of using a path of a branch on a link on the path minus the priority cost of using a path with a priority level k in the software defined network; obtain each constraint condition that a branch or path that meets the service quality corresponding to the priority level needs to meet, and construct a neural network energy function according to each constraint condition and the cost difference routing scoring function; The limiting condition determination module is used to obtain the network dynamic equation corresponding to the cost difference routing scoring function, and the network dynamic equation is determined by: taking the derivative of the neural network energy function with respect to the decision variables of the branch on the link on the path, and obtaining the first-order derivative of the neural network energy function with respect to the decision variables of the branch on the link on the path: according to the first-order derivative and the differential equation of the Hopfield neural network Determine the network dynamic equation corresponding to the cost difference routing score; where, is the first-order derivative, is the network dynamic equation, t is the time variable, E l is the neural network energy function, x l,m,n is the decision variable of the branch n on the link m on the path l; according to the network dynamic equation, various situations in which the service quality of users with priority levels does not meet the constraint conditions are determined; in the various situations, when the solution of the neural network energy function is a non-feasible solution and is unstable, the parameter conditions that the cost difference routing weight parameters of the neural network energy function need to satisfy are determined; each of the parameter conditions is used as the limiting condition that the cost difference routing weight parameters of the neural network energy function need to satisfy when the feasible solution of the neural network energy function is asymptotically stable; A solution module, configured to establish a priority quality of service path sample set, a priority quality of service link sample set and a priority quality of service branch sample set for the paths, links and branches corresponding to the historical routes according to the acquired historical routes corresponding to the priority levels and the limiting conditions; Acquire threshold data in the software defined network, determine an initial value of a cost difference routing weight parameter according to the threshold data and the limiting condition, and iteratively solve to obtain an optimized value of the cost difference routing weight parameter of the neural network energy function according to the initial value of the cost difference routing weight parameter and a set cost difference routing weight parameter increment; A second function building module, used to build a decision variable function based on the cost difference routing weight parameter optimization value; A request receiving module, used to receive a route request from a user with a priority level in a software defined network to establish a route from a source node to a destination node, and obtain a link set between nodes on each alternative path from the source node to the destination node and a branch on each link in the link set that meets the service quality corresponding to the priority level; The routing module is used to calculate the decision variables of each branch according to a pre-constructed decision variable function, determine that there is a target path on each link whose decision variable corresponding to a branch is greater than or equal to the decision variable threshold and whose cost difference routing score is the smallest, and establish the minimum cost difference routing through the target path.
