Computer Science and Engineering
p-ISSN: 2163-1484 e-ISSN: 2163-1492
2013; 3(1): 1-7
doi:10.5923/j.computer.20130301.01
Tzvetalin S. Vassilev, Brian Eades
Department of Computer Science and Mathematics, Nipissing University, North Bay, Ontario, P1B 8L7, Canada
Correspondence to: Tzvetalin S. Vassilev, Department of Computer Science and Mathematics, Nipissing University, North Bay, Ontario, P1B 8L7, Canada.
| Email: | ![]() |
Copyright © 2012 Scientific & Academic Publishing. All Rights Reserved.
Wireless networks present many challenges to standard routing algorithms. Ultimately, what we want from a routing algorithm is for it to be optimal in terms of robustness, scalability, power, and time; however, it will be shown that guaranteed delivery generally comes at the expense of any one of these desirables. This paper will exhibit a progression from routing in static networks to routing in unit distance wireless networks in order to illuminate the reality of the balance between what we want from wireless ad hoc routing algorithms and what we can expect from them. Much of the analysis presented will be on Dijkstra’s algorithm, the Bellman-Ford algorithm, Compass Routing, Face Routing, as well as localized methods to extract planar subgraphs.
Keywords: Wireless Routing, Unit Distance Wireless Networks, Dijkstra’s algorithm, Bellman-Ford algorithm, Compass Routing, Face Routing
Cite this paper: Tzvetalin S. Vassilev, Brian Eades, Wireless Routing in Ad-Hoc Networks, Computer Science and Engineering, Vol. 3 No. 1, 2013, pp. 1-7. doi: 10.5923/j.computer.20130301.01.
to all possible destinations
on a directed graph
with non-negative edge weights
. Its implementation in networking is known as a link-state algorithm[2, 3]. Let
denote the number of nodes in the graph. Let
be the total weight of the shortest path from the source
to destination
. Let
be the cost of routing from
to
(i.e., the sum of all edge weights along the path from
to
. Finally, let
contain the vertices in
whose shortest paths have been determined.Algorithm
Input: a graph
(represented by an adjacency list), non-negative edge weights
, and source
.Output: weight of shortest path from source
to all destinations
.







The structure of the above algorithm comes from[2], while a more detailed analysis of its functionality and correctness is outlined in[3]. Lines 6 through 9 are known as relaxing an edge. A total of
edges are relaxed, each requiring
computations, which results in an overall complexity of
. The implementation of a binary heap for the priority queue improves the relaxation computation to
and thus the overall complexity to
.Regardless, the implementation of link-state protocols generally requires global state information from the graph. That is, the topology and link-costs are known to every node, which culminates in one exhaustive routing table that is maintained between all nodes. Hence a small change in the topology of the system can propagate into large errors in the routing table. Even with the available global state information, routing loops can still occur; for instance when two nodes
and
attempt to route through each other to get to a destination
. An example of this event will be provided in the next section, as the directed distance vector routing protocol is also sensitive to changes in topology. Thus the use of Dijkstra’s algorithm in wireless ad hoc networks is ill suited due to its static nature, time-complexity, and the overhead requirements it imposes on a network by requiring global state information.
Input: a graph
(represented by an adjacency list), edge weights
, and source
.Output: weight of shortest path from source
to all destinations
.




7. while (there exists a link cost change or updated distance vector to some adjacent
)9. do: for all
,



Figure 1 illustrates how the Bellman-Ford algorithm produces the shortest path in the given graph with A as the source. Figure 2 exemplifies the distributive and asynchronous nature of the algorithm where each node maintains its own routing table and sends updated distance vectors to neighbouring nodes.Note that the purpose of lines 14 to 16 is to check for negative weight cycles within the graph. This may be unnecessary if all edge weights are non-negative, but depending on what the routing costs are representing, negative weights may be unavoidable. For instance, they might signify the load carried or removed from a packet as it travels from a source to a destination. It is simply one of many preventative measures against routing loops. Unfortunately, the Bellman-Ford algorithm can converge very slowly, and despite its ability to accept changes in topology it is prone to routing loops. An example of how a link-cost change can result in a routing loop is shown in Figure 3.[2]![]() | Figure 3. Example of how a link-cost change can result in a routing loop |
. When A receives the updated distance vector from B, it will now believe that a direct path from B to C does not exist and will therefore route to C directly (as it would have all along if global state information was available).While localized information certainly decreases the overhead costs of routing protocols, it enables errors to propagate from node to node. Despite the existence of preventative measures such as adding poisoned reverse, Dijkstra's algorithm and the Bellman-Ford algorithm are neither robust nor computationally efficient enough to handle the dynamic nature of wireless ad hoc networks. In order to formulate routing protocols that are appropriate for these purposes, desirable structures will be analysed next.
be a set of
points in the Euclidean plane. The unit distance wireless graph of
contains all
points, and edges
such that the distance between
and
is within 1 unit
[4]. An example of a
on a set of 6 points is illustrated in Figure 4.The reasoning behind using
to model wireless networks stems from the concept of broadcast ranges. That is, wireless devices are limited in their ability to communicate with other devices in accordance to their broadcast range. In the
, all broadcast ranges are assumed to be uniform, hence
can send a packet directly to
if and only if
is contained within the circle of radius 1 centered at
.Finally, it is entirely reasonable to assume that a wireless device has knowledge of its co-ordinates due to the wide use of Global Positioning Systems.
points in the Euclidean plane
. The Gabriel circle
of two points
is defined as the circle that passes through both points and has the segment
as a diameter, with the condition that no other point
from
lies within
.![]() | Figure 4. of a set of 6 points: . Each circle has a radius of 1 unit |
,
, consists of all
points and edges
such that
exists[5]. Figure 5 demonstrates the construction of the Gabriel graph on 3 points.![]() | Figure 5. Gabriel Graph of a set of 3 points: ![]() |
such that the Gabriel graph
is non-planar. Then there exists at least one edge intersection between two edges
and
. Since
is a Gabriel edge it follows that neither
nor
lies inside
. Then regardless of the position of
or
outside of
, the circle
will contain at least one of the points
or
. But then
cannot be a Gabriel edge, which contradicts the supposition. Therefore, the Gabriel graph on a set of points
is always planar. Figure 6 illustrates the proof of the Gabriel graph’s planarity.Finally, given a connected
on a set of points
, the intersection of
and
results in a connected planar subgraph
[5].To prove the connectedness of
, suppose that
is connected and
is disconnected.Then there exists points
such that they are adjacent in
but not adjacent in
. This necessitates the existence of a third point
such that
lies within the Gabriel circle
. But then
and
. Hence there are edges
and
resulting in a path from
to
in
(which contradicts the above supposition). Therefore if
is connected, then
is connected as well[5].It follows that a connected planar subgraph can be extracted from any connected
by having each node in the graph check for the existence of Gabriel circles between itself and its neighbours. Thus, there exists a localized method to extract planar subgraphs which can be accomplished for each point
in
time, where
is the number of neighbouring nodes to
[5]. ![]() | Figure 6. Planarity of the Gabriel graph on a set of 4 points: ![]() |
, we must define the convex hull. The convex hull of a set of points
is the smallest enclosing polygon
comprising of all points
with the condition that every line
is completely contained within
[6].The Delaunay graph
partitions the convex hull into disjoint triangles with the condition that the circumcircle of each triangle does not contain any other point in
.
is uniquely defined if no 4 points are co-circular[5].
is dual to the Voronoi diagram which divides the plane into
disjoint regions. Each region is defined by a point
such that anything within the region is closer to
than any other point
. The Voronoi diagram can be computed in
time; therefore, due to its duality,
can be calculated in the same time[6].It has been suggested in[5] to force a wireless network to contain the Delaunay graph by either increasing the transmission rates of the wireless devices or by deploying more radio stations.
on a set of points
in the Euclidean plane, suppose that a point
intends to send a packet to a destination
(Note if
is non-planar, then compute
). The forwarding packet must maintain the location of its: current position
, destination
, and all nodes
adjacent to
.Algorithm
Input: the location of a packet’s: current position
, destination
, and adjacent nodes
.Output: arrival of packet at its destination1. Forward packet to neighbour
such that the slope of
is closest to
amongst all
2. if
3. then report arrival of packet at destination, break4. else
Figure 7 illustrates how this recursive algorithm would proceed on a graph of 8 nodes. Nevertheless, Compass routing is known to work on Delaunay graphs that are uniquely defined, but is still prone to routing loops in graphs with low convexity, and can even fail in convex graphs[5].![]() | Figure 7. Forwarding of a packet from to its destination using Compass routing in the given graph of 8 nodes |
where
and
are the neighbours of
that minimize the clockwise and counter-clockwise angle between all
and
. The packet could theoretically take a very long time to arrive at its destination but in practice, randomized compass routing performs well[5].
on a set of points
, wherein some edges are considered to appear twice (namely the edge shared between two traversed faces). In addition to a distance
(initially set to 0), a packet must maintain the locations of: its origin
, an intermediate point
, the destination
, and the previous two nodes visited
and
. This last requirement helps prevent the occurrence of routing loops[4].
Input: distance
(initially set to 0), and the locations of: its origin
, a point
(initially set to
), the destination
, and the previous two nodes visited
and
(initially set to null)Output: arrival of packet to its destination
1. determine the face
, incident to
that is intersected by the line
2. begin the traversal of
, updating
and
after each edge traversal3. if packet arrives at
4. then report arrival of packet at destination 6. else upon intersecting the line
, calculate the distance
from u to this intersection point 

9. upon arriving back at
traverse
until
has been reached
Refer to Figure 8 for a simulation of face routing on the given graph of 17 nodes.Out of all the algorithms presented, face routing is by far the most robust as it is known to work on all planar networks. Due to the constant amount of memory of the packet, the algorithm handles changes in topology very well. For instance if one of the nodes along the path from
to
stops transmitting its signal, the packet and its forwarding method is unaffected unless the packet resides at the failed node in question. If this is the case then the packet of will not reach its destination since only one copy of the packet is forwarded from node to node. Aside from this scenario, a packet is also subject to routing loops if a node along the path from
to
continually fails and recovers during a face traversal; but this is a highly degenerate case. Finally, each of the edges of a given face is traversed at most twice[4].
as an alternative to the greedy approach. The relative neighbourhood graph
is another nice geometric structure that can be derived in the same amount of time and is equally useful in the formation of localized routing algorithms[2, 6].