






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Dalam Pendidikan Dan Latihan Teknikal Dan Vokasional (CiE-TVET 2013) Nombor Prosiding 057
Nurul Najwa Md Yusof Electrical Engineering Department, Politeknik Merlimau E-mail: [email protected]
Maizun Binti Jamil Electrical Engineering Department, Politeknik Merlimau E-mail: [email protected]
Sabah Ramadhan Mohammed FKEKK, Universiti Teknikal Malaysia Melaka [email protected]
Abstract This paper present the powerful tool of Bellman Ford and Dijkstra Algorithms in solving most multiple constrained routing problems that occur in the computer network as well as comparison between both algorithms. We evaluate the performance of these routing algorithms in term of attenuation and throughput. These algorithms were written and simulated using Microsoft Visual Studio C++ 2008 Express Edition. Our results show that, using the shortest widest path algorithm for routing guaranteed traffic can result in relatively low throughput for best effort traffic. It is also shown that although these algorithms are polynomial, they have much higher computational complexity than the Bellman Ford algorithms used in today’s Internet. We propose approximation algorithms that have a running time within a constant factor of that of the Bellman Ford algorithm without sacrificing network throughput. Overall, the approximation algorithms that select the shortest delay path results in consistently high network throughput. Keywords: Bellman-Ford, Dijkstra.
1.0 Introduction
Bellman-Ford and Dijkstra Algorithms are both algorithms that have been widely used in computer and communication network routing. These algorithms are prepared to find the shortest path in a network. The value of “shortest path” can vary according to the needs of the network. There may be a length or cost problem that is needed to be solved[4].
Dalam Pendidikan Dan Latihan Teknikal Dan Vokasional (CiE-TVET 2013) Nombor Prosiding 057
Fig. 1, network of 9 nodes Bellman-Ford Algorithm
From the perspective of finding the results, these two algorithms satisfy the same expectations. However, there are some differences which occur during the deciding procedure of vertexes that will be determined for finding the shortest path.
If there are negative values in the pre-defined paths of a specific network, Dijkstra’s algorithm is not useful to find the suitable shortest path. However, Bellman-Ford algorithm can handle negative weights/lengths and continue to complete the process unless there is a complete negative weighted cycle which is reachable from the source vertex in the network.
The vertexes in Dijkstra’s algorithm contains the whole information of a network. There is no such thing that every vertex only cares about itself and its neighbors. On the other hand, Bellman-Ford algorithm’s nodes contain only the information that are related to.
Fig. 2, Network of 9 nodes Dijkstra Algorithm[4]
This information allows that node just to know about which neighbor nodes can it connect and the node that the relation come from, mutually. Dijkstra’s algorithm is faster than Bellman-Ford’s algorithm however the second algorithm can be more useful to solve some problems, such as negative weights of paths.
Dalam Pendidikan Dan Latihan Teknikal Dan Vokasional (CiE-TVET 2013) Nombor Prosiding 057
To create a least cost tree with this algorithm, each node needs to have a complete map of network that means it needs to know the state of each link. The collection of states for all links is called the link state database (LSDB). Each node needs to have a duplicate of it to be able to create the least cost tree. The LSDB can be represented as a two dimensional matrix (Table II) in which the value of each cell defines the cost of the link.
TABLE II LINK STATE DATABASE Node 1 2 3 4 5 6 7 8 9 1 0 6 5 inf inf inf inf inf inf 2 4 0 6 2 7 inf inf inf inf 3 5 3 0 inf 8 6 inf inf inf 4 inf 8 inf 0 1 inf 7 6 inf 5 inf 5 6 1 0 5 4 inf inf 6 inf inf 2 inf 8 0 9 inf 6 7 inf inf inf 9 7 6 0 4 7 8 inf inf inf 1 inf inf 9 0 8 9 inf inf inf inf inf 3 1 2 0
3.0 Dijkstra Algorithm A Dijkstra-based dynamic programming technique to optimize the capacity of paths end-to-end distance is presented to determine shortest route in the network. The Dijkstra algorithm uses the following steps[1]: i. The node chooses itself as the root of the tree, creating a tree with a single node, and sets the total cost of each node based on the information in the LSDB. ii. The node selects one node, among all nodes not in the tree, which is closest to the root, and adds this to the tree. After this node is added to the tree, the cost of all other nodes not in the tree needs to be updated because the paths may have been changed. iii. The node repeats step (ii) until all nodes are added to the tree.
Dalam Pendidikan Dan Latihan Teknikal Dan Vokasional (CiE-TVET 2013) Nombor Prosiding 057
TABLE III DIJKSTRA ALGORITHM[1]
Dijkstras algorithm () { // initialization Tree={Root} For (n=1 to N) //N=9 the number of node { If(n is the Root) Dis[n]=0 // Dis[n]=shortest distance from Root to node n Else if (n = neighbor) Dis[n]=k[Root][n] //k[m][n]=cost between nods m and n Else Dis[n]=infinity } Infinity While { Find a node w, with dis[E] minimum among all nodes Tree=Tree+[E] //add e to tree // Update distances for all neighbors of E For (every node m, which is a neighbor of E and out tree { Dis[m]=min{ Dis[m],(Dis[E]+s[E][m]) } //equation } } until (all nodes included in the tree) } // end of algorithm
The distance of a node (n) from a node (s) is the length of a short path between (s) and (n) dijkstras algorithm computes the distance of all the nodes from a given start node assumptions: i. The graph is connected. ii. The edges are undirected. iii. The edge weights are nonnegative.
We build a “cloud” of nodes, beginning with (s) and eventually covering all the nodes we store with each node (n) having an edge d(n) representing the sub graph consisting of the cloud and its adjacent nodes at each step. First step, we add to the cloud the node (u) outside the cloud with the smallest distance edge, d(u). Then, we update the edges of the nodes adjacent to (u).
4.0 Simulation and Results Both Bellman-Ford and Dijkstra algorithm were written using Microsoft Visual Studio C++ 2008 Express Edition. The Dijkstra algorithm is very similar with the Bellman Ford algorithm however, there is a different in Dijkstra algorithm where it can only work with non-negative cost. For Bellman Ford algorithm the algorithm will check the edge of the cost. If there is a negative cost, false condition will appear and it will be looped
.............................................................. Repeat
Below are the results for Dijkstra Algorithm simulation, we can see clearly the determination distance between any two node.
Dijkstra Algorithm NODE to NODE Edge Update Distance Traffic Load
Dalam Pendidikan Dan Latihan Teknikal Dan Vokasional (CiE-TVET 2013) Nombor Prosiding 057
top two graphs with the bottom two results) that the call blocking rate is higher when the delay bound is tighter and when the traffic is more burst. This is to be expected: more bandwidth has to be reserved to limit the queuing delay. When the load is light, all algorithms except for the minimum bandwidth path algorithm converge quickly and result in a zero call blocking rate. Overall, the widest shortest path algorithm performs better than the other three algorithms and the minimum bandwidth path algorithm performs the worst. The reason is that the widest shortest path algorithm selects paths with as few hops as possible to conserve resources. At the same time, it does load balancing by selecting the widest path among all paths with the same hop count. On the other hand, the minimum bandwidth path algorithm, which also tries to conserve resources, does not take into account the current load of the path being selected, and may pick a loaded path, thus blocking future arrivals.
It is interesting to see that the shortest widest path performs reasonably well and has a performance similar to the widest shortest path when the delay bounds. This suggests that the load is an important factor when selecting a path. The performance for the shortest delay path is interesting. When the load is light, its performance converges to that of widest shortest path. When the load is heavy, its performance moves close to that of minimum bandwidth path. This can be explained using Equation (1). When the load is heavy, the r is small, which means that n in the equation weights much less than r in determining the final end to end delay. This results in selecting a path with higher r but with more hops.
The widest shortest path continues to perform well, although when the load is very light, the shortest delay path sometimes outperform the widest shortest path. This suggests that using a path with the minimum hop count may make it hard to avoid some congested links. It also indicates the importance of selecting an unloaded path rather than a minimum hop path when the load is relative light. The minimum bandwidth path still performs badly as was the case for even traffic loads. The shortest widest path keeps performing inconsistently. In summary, for evenly distributed loads, the widest shortest path algorithm outperforms the other three algorithms because it tries to minimize resource use.
For unevenly distributed loads, balancing load becomes also important. The shortest delay path algorithm outperforms the other algorithms when the load is light. However, when the load is heavy, on serving resources becomes more important, and the widest shortest path again outperforms the others. The minimum bandwidth path algorithm performs poorly because it may select heavily loaded paths, while the performance of the shortest widest path algorithm is very sensitive to both topology and load distribution. The result on the widest shortest path is different from what we observed for best effort traffic, where the shortest distance path
Dalam Pendidikan Dan Latihan Teknikal Dan Vokasional (CiE-TVET 2013) Nombor Prosiding 057
algorithm has a clear performance edge over the other algorithms. This difference is caused by the different sharing policies of the two traffic classes. Heavily loaded links become automatically ineligible for guaranteed sessions, causing any dynamic algorithm to route around them. But these links remain eligible for best effort traffic so the algorithm has to explicitly avoid them.
5.0 Conclusion In this paper, we present a solution to the problem of finding shortest paths with high capacity while bounding the end-to-end distance and hop count to desired values for small networks. The proposed Dijkstra algorithm provides an alternative and more suitable approach to genetic algorithm with weighted sum technique while considering multiple constraints appeared in a shortest-path Bellman-Ford based dynamic programming method. Performances measures comprising path capacity, end-to-end distance and hop count are considered simultaneously. We use Microsoft Visual C++ 2008 Express Edition program to write and simulate our program. Simulation results show that the Dijkstra algorithm features high performances compared to Bellman Ford algorithm.
References
[1] Behrouz A. Forouzan, “TCP/IP Protocol Suite”, Third Edition, Mc Graw Hill, 2007. [2] Behrouz A. Forouzan, “Data Communications and Networking”, Second Edition, Mc Graw Hill, 2005. [3] Sabreen M. Shukr, Nuha A. S. ALwan, Ibraheem K. Ibraheem, “The Multi-Constrained Dynamic Programming Problem in View of Routing Strategies in Wireless Mesh Networks,” International Journal of Information and Communication Technology Research. ,Volume 2 No. 6, June 2012, pp. 471- [4] Elyas Eray Küçükçay. (2011). Differences and Similiraties between Djikstra and Bellmann-Ford Algorithm. [Online] Available: http://www.iekucukcay.com/?p=65 (December 1, 2012).