The present invention is directed to path selection in networks. In particular, the present invention involves selecting a path that meets user defined criteria, through the use of a method that employs a Lagrange relaxation variable.
Modern telecommunication networks carry different types of traffic having different Quality of Service (QoS) requirements. QoS requirements can be defined using various parameters for a desired communication path. These parameters include bandwidth, delay, jitter and loss probability, among others. The ability to fulfill QoS requirements depends on the actual path selected in the network for carrying the traffic. Path selection therefore has to consider application dependent QoS requirements associated with the traffic. Without an efficient QoS routing algorithm to select the path that meets the specified QoS requirements, networks may fail to find a path and reject a request for a connection, even though there might be an appropriate path available to successfully establish the connection. In addition to the use of QoS requirements in path selection, the selection of a path with a minimum cost, which is also referred to as “administrative weight,” is desirable, for example, to minimize the overall load on the network of the new path.
A link represents the physical connection between two nodes, with no other node between the two nodes. A path is a set of individual links that moves a signal from its origin, S, to its destination, T (otherwise shown as “S-T”). For example, path p (S-A-Y-T), path q (S-B-Z-T) and path r (S-C-X-T) are composed of different sets of links, yet still represent the path S-T. Each link and node has specifications which describe the ability to pass data through the node or link, and what effect there might be upon the data. For example, there are delays (e.g., queuing and propagation delays), costs (e.g., hop count, monetary cost, or some measure of a link's capacity), and data error rates associated with each node and link. Thus, the goal is to create a set of nodes and links that meets or exceeds the QoS requirements for that path.
As an example of a typical communications network configuration, suppose, in
It will be recognized that although the number of variations of links and nodes which can establish a path are potentially unlimited, in practice, the goal is to minimize signal degradation and maximize correct transmission of data. Thus, the need to optimize links between nodes and ultimately, the path S-T.
The parameters that are used to satisfy QoS requirements can be either cumulative or non-cumulative. Non-cumulative parameters are those that do not add together or “accumulate” by the addition of subsequent nodes and links. However, it might be the case that the quality of the overall path is limited by the link or node with the worst non-cumulative parameters. Examples of non-cumulative parameters are bandwidth and access rights. The non-cumulative parameters can be easily handled by simply ignoring the links that do not fulfill the QoS requirements during the path selection process. Cumulative parameters can be either additive (e.g., delay, jitter and administrative weight) or multiplicative (e.g., loss probability). The simultaneous presence of more than one cumulative parameter is difficult to handle.
The problem of finding a path which fulfills two simultaneous cumulative parameters or finding a minimum cost path which satisfies only one cumulative parameter is designated “NP-Hard.” “NP” means “Non-deterministic Polynomial.” See, for example, the book “Combinatorial Optimization” by W. J. Cook, W. H. Cunningham, W. R. Pulleyblank, and A. Schrijver (John Wiley & Sons, 1998) for more details, the contents of which are incorporated herein by reference.
There are two classes of methods used to solve NP-Hard problems. Methods of the first class, referred to as “Optimal-Solution” methods, guarantee an optimal solution, but are complex and relatively slow. The second class is referred to as “Approximation” methods, and use a heuristic (trial and error) or approximation technique to solve the NP-Hard problem. Approximation methods usually run fast, but they do not result in the optimal solution. They do, however, provide a solution that is near-optimal. Approximation methods usually do not guarantee the quality of their results and hence they need to be thoroughly tested. Additionally, the solution for both classes of methods cannot be expressed as a polynomial.
For both classes of methods, it is highly desirable to increase the theoretical guarantees on the running time of the method and the quality of the result of the method. With respect to Optimal Solution methods, one example is a “Breadth-First Search” method. This method determines the delay of all initial links, and then, building on that link, considers subsequent links, again, using only the one with the minimal delay. For example, referring again to
There are several well known methods of the Approximation class of methods. One example is “Fallback Routing” which tries to find an appropriate path which meets all the QoS requirements. It tries one path after another, until a suitable path has been found, or no path is found that satisfies all the QoS requirements. This method is very simple, fast and always gives an appropriate solution if it exists. There is no guarantee, though, of finding the optimal path and no guarantee of the quality of the path found.
Both classes of well known methods, Approximation and Optimal-Solution, have significant drawbacks. Optimal-Solution methods provide an optimal solution, but are complex to use and relatively slow. Approximation methods run much quicker, but provide medium quality results and some types do provide a guarantee of the quality of the result. However, the better the guarantee of result, the slower the Approximation method runs. Additionally, it has been shown that for NP-Hard problems, no algorithm exists that determines a solution, the running time of which, can be expressed in polynomial form.
Thus, there has been demonstrated a genuine need for a method which is simple and easy to use, runs relatively quickly, and presents high quality optimal solutions for the problem of selecting a path in a telecommunications network that meets specified QoS requirements. The method of the present invention fulfills the long-felt need of choosing effective paths in modern telecommunication networks.
The invention is a method of determining a path in a communications system that minimizes a cost function and satisfies an additional constraint, these constraints referred to as QoS requirements, thereby providing a solution to the QoS routing problem. The method determines the path in a manner that is both efficient in time, and effective in quality of result.
It is an object of the invention to provide a method that finds an optimal path in terms of minimal cost, the running time of which can be predicted.
It is an object of the invention to provide a method that finds an optimal path in terms of minimal cost, the running time of which can be predicted and is shown to be a polynomial expression.
It is an object of the invention to provide a method that finds an optimal path in terms of minimal cost, that provides guarantees for each solution.
It is another object of the invention to provide a method that determines an optimal path, out of many paths, which minimizes cost and satisfies a delay constraint.
It is another object of the invention to provide a method that determines an optimal path, out of many paths, which minimizes cost and satisfies a delay constraint, in an efficient and economical manner.
It is another object of the invention to provide a method that determines an optimal path, out of many paths, which minimizes cost and satisfies a delay constraint, the running time of which can be predicted.
It is another object of the invention to provide a method that determines an optimal path, out of many paths, which minimizes cost and satisfies a delay constraint, the running time of which can be predicted and expressed in a polynomial format.
It is another object of the invention to provide a method that determines an optimal path, out of many paths, which minimizes cost and satisfies a delay constraint, and provides guarantees for each solution.
It is still another object of the invention to provide a method that determines an optimal path that minimizes cost and satisfies multiple constraints.
It is still another object of the invention to provide a method that determines an optimal path that minimizes cost and satisfies multiple constraints, in an efficient and economical manner.
It is still another object of the invention to provide a method that determines an optimal path that minimizes cost and satisfies multiple constraints, the running time of which can be predicted.
It is still another object of the invention to provide a method that determines an optimal path that minimizes cost and satisfies multiple constraints, the running time of which can be predicted and expressed in a polynomial format.
It is still another object of the invention to provide a method that determines an optimal path that minimizes cost and satisfies multiple constraints, and provides guarantees for each solution.
In accordance with one embodiment of the invention, the above identified and other objectives are achieved by determining a first path which has a first path cost and a first path delay, the first path cost being a minimum cost, determining a second path which has a second path cost and a second path delay, the second path being a minimum delay, calculating a Lagrange relaxation variable, determining a third path that minimizes a first modified cost function, calculating a second modified cost function for the first path, and determining the minimum cost and minimum delay path according to the first and second modified cost function.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as other features and advantages thereof will be best understood by reference to the detailed description of the specific embodiments which follows, when read in conjunction with the accompanying drawings.
The preferred embodiment of the invention solves the problem of determining an optimal path, in terms of one or more constraints, in a communications system, in a minimal amount of time. The present invention combines the well known Dijkstra algorithm (described below) with use of the Lagrange relaxation technique. Conceptually, any communication system can be thought as a collection of nodes and links. A collection of nodes is a “set” of nodes, and a collection of links is a “set” of links. A cost function can be written which describes cost as a function of the set of links. Recall that “cost” is simply any criteria that specifies a QoS for a link or node. There are constraint functions d1, d2 . . . dk that describe the different constraints on costs that might be placed on a path in the network. The constraint functions d1, d2 . . . dk have maximum constraints or limits D1, D2 . . . Dk. The task, therefore, is to find a path p from s to t (S-T) such that dl(p)≦Di, (i.e. the constraint value of interest for path p is less than the maximum allowable value for that constraint) for all i=1 . . . k and the cost of path p is minimal with respect to the cost function c among the paths satisfying the constraints.
For purposes of illustration, path p, from S-T, might be the path consisting of the following links: S-A, A-X and X-T. Likewise, path q, from S-T, could consist of the following links: S-A, A-Y and Y-T. D is the maximum allowable delay, and d(p) is the delay associated with path p (assuming a path “x” exists), and c(p) is the cost associated with path p. The constraints dl describe the different constraints on paths (i.e., bandwidth, jitter, time-shift, etc.) that might be placed in the network.
In one embodiment of the invention, there are only two constraints, cost and delay, to be minimized. The cost can be quantified in terms of any types of QoS parameters, including, but not limited to, number of hops, an additive monetary cost, or preference given by the administrator. The delay constraint is relaxed using the well-known Lagrange relaxation method. In the Lagrange relaxation method, the constraint is eliminated but it is built in the object function. That is, we eliminate looking directly to solve the problem of minimizing for the constraint in the paths, but, instead, indirectly solve for the constraint, by inserting the Lagrange variable (which represents the desired constraint) into the cost (“object”) function, described above. In this way, what is originally very difficult to do directly, becomes much easier to perform indirectly.
In performing the Lagrange relaxation method, a variable λ≧0 is introduced and for a fixed λ, we are looking for an S-T path Pλ which approaches the following minimum:
L(λ)=min{c(P)+λ·d(P)−λ·D};
which can also be written as:
L(λ)=min{cλ(P)}−λ·D}
It is easy to find such path because λ·D, i.e., the relaxed maximum delay constraint for any path, does not depend on the path P, so the task is to find a minimum cost path with respect to the modified cost function:
cλ(x)=c(x)+λ·d(x)
where x is a path from S-T (and is different then P).
It can be proved that L(λ) is a lower bound of the original problem for any λ≧0. So, the best lower bound can be obtained by maximizing the function L(λ). The term lower bound means the theoretical best solution. Let:
L*=max{L(λ): λ≧0}
and suppose λ* maximizes the function L(λ) [i.e. L(λ*)=L*]. Then, it can also be shown that there is a path P* which minimizes the cost function cλ and satisfies the delay constraint. Moreover, it can be seen that this path is the best that can be found by minimizing combined cost functions.
The method presented below maximizes the function L(λ) and finds the desired path P*. This method, the preferred embodiment of the invention, is very efficient in practice and its running time, i.e. number of steps, can be estimated in a polynomial expression.
Initially, a path p between nodes S and T which has a minimal cost and a path q between nodes S and T which has a minimal delay are determined (step 301) through use of the Dijkstra algorithm. The Dijkstra algorithm is a very well known algorithm for finding a shortest path in a weighted directed graph. A directed graph is simply a set of nodes and links, as in
λ*=0 and P*=p
where λ* is the λ that maximizes the function L(λ) and P* is the solution, i.e. the path that satisfies the delay constraints and minimizes the cost.
If, however, the delay of path p is greater than the maximum delay constraint (“No” path out of decision step 302), then it is determined whether the delay of path q, i.e., the minimal delay path, is greater than the maximum delay constraint D (step 304). If the delay of path q is greater than the maximum delay constraint D (“Yes” path out of decision step 304), then it is determined that there is no acceptable path between nodes s and t (step 305).
If it is determined that the delay of path q is less than the maximum delay constraint D (“No” path out of decision step 304), then the Lagrange relaxation variable λ, which is equal to the difference in cost between paths p and q, divided by the difference in delay between paths q and p, is calculated (step 306):
Next a path r is selected which minimizes the modified cost function cλ (r) (step 307). The path r is found through use of the Dijkstra algorithm. The modified cost function is defined as:
cλ(r)=c(r)+λ·d(r)
where:
The modified cost function cλ(p) for path p is then calculated (step 308). It is then determined whether the modified cost function for path r, cλ(r), is equal to the modified cost function for path p, cλ(p), (step 309). If the modified cost function for path r is equal to the modified cost function for path p (“Yes” path out of decision step 309), then it is determined that the value for the Lagrange relaxation variable λ is a value which maximizes the function L(λ) (the value of λ determined in step 306) and that path q is a path which minimizes the modified cost function cλ (step 310). The method then has accomplished its goal of finding an appropriate path which is path q, as path p fails the delay requirement and path q fulfills it.
If, however, it is determined that the modified cost function for path r is not equal to the cost function for path p (“No” path out of decision step 309), then it is determined whether the delay of path r, d(r), is greater than or equal to the maximum delay constraint D (step 311). If the delay of path r is less than the maximum delay constraint (“No” path out of decision step 311), then path q is replaced by path r (step 312), and the method reverts back to step 306. In step 306, a new λ value is calculated, with the new path q (the path r just determined), and steps 307–309 again occur, with the new λ value.
If, however, the delay of path r is greater than or equal to the maximum delay constraint D (“Yes” path out of decision step 311), then path p is replaced by path r (step 313) and the method reverts back to step 306. In step 306, a new λ value is calculated, with the new path p (the path r just determined), and steps 307–309 again occur, with the new λ value.
The Dijkstra algorithm is used in step 301 (to determine two S-T paths: p, minimal cost, and q, minimal delay) and in step 307 (to determine an S-T path r which minimizes the modified cost function cλ(r)). Each time the Dijkstra algorithm is employed, it is for a single nonnegative cost or lengthcostcost function only, i.e. the Dijkstra algorithm can find a shortest path for one cost function only.
Since there are only a finite number of different paths in the network the present invention will determine an optimal Lagrange relaxation variable λ in a finite number of steps. The optimal Lagrange relaxation variable, λopt, is that smallest λ for which the delay constraint of its associated “r” path is at most the maximum allowable delay constraint, D. The running time of the method of
g(x)=O(f(x))
if there exists a constant c, c>0, such that:
g(x)≦c·f(x),
for all x.
With this notation, the number of iterations (i.e. the number of executions of the main loop of the algorithm, steps 306 to 313 of
O(m·log3 m)
where m equals the number of links in the directed graph (or communication system). The only real time consuming parts of the main loop (and so in the entire algorithm) are the “calls” to use the Dijkstra algorithm (once in each iteration, plus twice during the initialization of “p” and “q”). Since the running time of the Dijkstra algorithm is expressed as:
O(m·log m)
the entire running time is expressed as:
O((m·log3 m+2)(m·log m)=O(m2·log4 m).
It has been recognized that there are two situations in which an optimal Lagrange relaxation variable λ does not produce an optimal path. These situations are illustrated in
Referring to
Referring now to
L(λ)=cλ(r)−λ·D.
In
Since all of the paths illustrated in
Referring to
Table II illustrates the calculations to determine L(λ), as was done in
However,
To address the situation illustrated in
In this embodiment of the invention, the method is made more efficient when a path is found from a node to many other nodes. This is important, because, in implementation practical routing methods provide QoS work in routers and their task is not only to find an appropriate path to a certain other node, but they have to find paths to a bulk of destinations. The most resource consuming part of the method described with respect to
Therefore, in this alternate embodiment of the invention, whenever the Dijkstra algorithm is used with the modified cost function cλ, the entire output of the algorithm is stored. This does not consume excessive amounts of memory because the resultant paths form a tree. For improved efficiency, the costs and the delay of these paths are also stored. The data can be stored in either a binary search tree or in a balanced search tree in order to access it easily.
When the Lagrange relaxation variables λ were calculated previously, a path r was determined which minimized the modified cost function cλ, and which is known as cλ(r). Each path r, has a delay, d(r), and cost, c(r), associated with it. The first step in an improvement for selecting a path in a communications system (step 701) is to determine whether there exists a previously calculated path r having a delay greater than or equal to the maximum allowable delay D:
d(r)≧D
If there is such a path, or paths, then in step 702 (“Yes” decision of step 701), the r path associated with the largest Lagrange relaxation variable λ is chosen, and is designated P(λ1). The Lagrange relaxation variable λ associated with that r path is known as λ1. If there are no such paths, i.e. all the previously determined r paths have a delay d(r) less than the maximum allowable delay D (“No” decision of step 701), then in step 703 path p is selected as path P(λ1).
Similarly, in step 704, the delay of the r paths is checked to determine whether there exists a previously calculated path r having a delay greater than the maximum allowable delay D:
d(r)<D
If there is such a path, or paths, then in step 705 (“Yes” decision of step 704), the r path associated with the smallest Lagrange relaxation variable λ is chosen, and is designated P(λ2). The Lagrange relaxation variable λ associated with that r path is known as λ2. If there are no such paths, i.e. all the previously determined r paths have a delay greater than or equal to the maximum allowable delay D (“No” decision of step 704), then in step 706 path q is selected as P(λ2).
Following these steps, the method of
In an additional embodiment of the invention, an improved stop condition is implemented. An important feature of the method is that the path q always satisfies the delay constraint and it is replaced only when another path satisfies the same delay constraint and the cost of the new path is better than the previous one.
As discussed above path p is a least cost path between nodes S and T, and path q is a path between nodes S and T which has minimal delay. If it determined that the cost of path q is within a certain percentage of the cost of path p, significant processing resources can be saved by simply selecting path q for carrying the traffic. This can be referred to as a “stop” condition, and can be performed between steps 304 and 306 of
In this embodiment of the invention, the method described above can be extended to the case of multiple constraints. Additional constraints can be packet loss, phase shift, jitter, etc. In this case the method cannot guarantee that the resulted path fulfills all requirements but it attempts to reach a good compromise. It is immaterial the classification of the constraints, since a multiplicative constraint can be transformed to an additive constraint by using a logarithm approach (i.e., log(a·b)=log a+log b).
In this general case a new variable λl, is introduced for each constraint di. In this case, “d” does not just signify delay, it denotes a different type of constraint. For example, d1 could be delay, d2 could be packet loss, d3 could be phase shift, etc. The modified cost function cλ(x) (for some path x) is defined as:
and L(λ) is a lower bound of the optimal solution for all λ, defined as:
where λ:=(λ1, λ2, . . . λk), and k is the number of constraints. Since the value L(λ) is a lower bound of the optimal solution for all λ, the goal is to find a vector λ* which maximizes the function L(λ) in the same manner as when there was one constraint. In addition we want to find a cλ minimal S-T path.
Initially, a number of paths are labeled p0, p1, p2 . . . pk (which is one greater than the number of constraints) and stored (step 801). The path p0 is a least cost (c-minimal) path, and pi are dl minimal paths for all i=1 . . . k. For example, if the four constraints are cost, delay, jitter and bandwidth, then path p1 is the minimum delay path, p2 is the minimum jitter path, and p3 is the maximum bandwidth path.
Next, in step 802, the solution λ for the set linear equations is determined:
cλ(p0)=cλ(pi); ∀i=1 . . . k
Once all the λ values have been determined, a path r is calculated (step 803) that minimizes a multi-term equation for the modified cost function, cλ(r), which is defined as follows:
cλ(r)=c(r)+λ1d1(r)+λ2d2(r)+λ3d3(r) . . . +λidi(r)
Having calculated a path r that minimizes the modified cost function for a path r, the modified cost function is determined for the path p0 (step 804). Then it is determined whether cλ(p0)=cλ(r) (step 805). If the modified cost function for path p0 is equal to the modified cost path for path r (“Yes” path out of decision step 805), then the value of λ has been determined which maximizes the cost function L(λ). Then λ*=λ and P*=pi where path pi is chosen for which the maximal exceeding of the constraints is minimized (step 806). This is because any or all pi determined can exceed one or more constraints.
If, however, cλ(p0)≠cλ(r) (“No” path out of decision step 805), then path pi is replaced with path r, (i.e. the equation from step 802 now becomes cλ(p0)=cλ(r)), for all i (step 807). Each time pi is replaced with r (for each different i), a new set of λ's is calculated (step 807). The path pi is chosen which, when path r was substituted for it, maximizes the values of:
As an example, suppose there are three additional constraints, besides cost c: delay d1, jitter d2 and phase shift d3.
We then need four paths (k+1 paths); p0, p1, p2 and p3. The equations to find the solution for the modified cost function and λ are as follows:
cλ(p0)=c(p0)+λ1d1(p0)+λ2d2(p0)+λ3d3(p0) (a)
cλ(p1)=c(p1)+λ1d1(p1)+λ2d2(p1)+λ3d3(p1) (b)
cλ(p2)=c(p2)+λ1d1(p2)+λ2d2(p2)+λ3d3(p2) (c)
cλ(p3)=c(p3)+λ1d1(p3)+λ2d2(p3)+λ3d3(p3) (d)
The following are the equations to solve:
c(p0)+λ1d1(p0)+λ2d2(p0)+λ3d3(p0)=c(p1)+λ1d1(p1)+λ2d2(p1)+λ3d3(p1) 1.
c(p0)+λ1d1(p0)+λ2d2(p0)+λ3d3(p0)=c(p2)+λ1d1(p2)+λ2d2(p2)+λ3d3(p2) 2.
c(p0)+λ1d1(p0)+λ2d2(p0)+λ3d3(p0)=c(p3)+λ1d1(p3)+λ2d2(p3)+λ3d3(p3) 3.
Then, λ1 λ2 and λ3 are calculated.
An improved stop condition can be implemented for the method of
For example, it can be determined to stop the search for a path that satisfies the above described conditions when the two modified cost functions differ by less than 1%. It is understood that the value of 1% is for illustrative purposes only, and that other values can be used, dependent upon the circumstances.
Now that exemplary embodiments of the present invention have been described, a simulation of the present invention versus other path finding techniques will be described in connection with
From
As also illustrated in
As illustrated in TABLE IV, the unmodified present invention had an average iteration number of 7.94, while the present invention with a 40% stop condition the number of iterations decreased to 4.34.
The embodiments described above are merely given as examples and it should be understood that the invention is not limited thereto. It is of course possible to embody the invention in specific forms other than those described without departing from the spirit of the invention. Further modifications and improvements which retain the basic underlying principles disclosed and claimed herein, are within the spirit and scope of this invention.
The present application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional application No. 60/216,037 filed Jul. 3, 2000, the entire contents of which are herein expressly incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
6411946 | Chaudhuri | Jun 2002 | B1 |
20020097716 | Kumaran et al. | Jul 2002 | A1 |
Number | Date | Country | |
---|---|---|---|
20020045453 A1 | Apr 2002 | US |
Number | Date | Country | |
---|---|---|---|
60216037 | Jul 2000 | US |