Professional Documents
Culture Documents
Lecture (9-10)
Chandra Prakash
Assistant Professor
LPU
1
Mobile Ad Hoc Networks (MANET)
Host movement frequent
Topology change frequent
B
A A
B
2
The Routing Problem
S´ D´
S
The routing problem is to find a route from S to D when some or all of the
nodes are mobile.
The MAC protocol is concerned with per-link communications, not end-
to-end. While Routing Protocol deal with end-to-end communication.
3
Ad-hoc Routing Protocol
A standard, that controls how nodes decide which way
to route packets between computing devices in a mobile ad hoc
network .
In ad-hoc networks, nodes are not familiar with the topology of their
networks; instead, they have to discover it.
The basic idea is that a new node may announce its presence and should
listen for announcements broadcast by its neighbours.
Each node learns about nodes nearby and how to reach them, and may
announce that it, too, can reach them.
4
MAC Vs Routing Protocols
5
Traditional routing algorithm
In Wired network
1. Static :
2. Dynamic
a) Distance Vector
b) Link State
Distance Vector (DV)
Each node maintains a table giving the distance from itself to all possible
destination.
Periodically broadcasts update packets to each of the neighbors.
Bellman-Ford algorithm
Finding the shortest path to determine the correct next hop of its neighbors.
When presented a packet for forwarding to some destination, each router
simply forwards the packet to the correct next hop router.
Problem: route looping & count to infinity
6
Traditional routing algorithm
Example of DV: 0
0 2 3
1 2 2 2
… … … 4
7 5
Distributed Bellman-Ford Algorithm
Suppose node 1 wants to
2 send a message to node 4.
1 4
8
Problems with Distributed Bellman-
Ford Algorithm
All routing decisions are taken in a completely distributed
fashion. Each node uses its local information for
routing messages.
9
Traditional routing algorithm
Link State (LS)
Each node maintains a view of the network topology with a cost
for each link.
Each node periodically broadcasts the cost of its outing links to
all other nodes.
Using a shortest-path algorithm to choose its next hop for each
destination.
10
Traditional routing algorithm(4/4)
Example of LS:
•At node 5, based on the link state packet, 0 {1}
topology table is constructed:
0 1 2 3 4 5 {0,2,3} 1
0 1 1 0 0 0 0 {1,4}
1 1 1 1 1 0 0 3
2 0 1 1 0 1 1
3 0 1 0 1 1 0
{1,4,5} 2
4 0 0 1 1 1 1
5 0 0 1 0 1 1 4
{2,3,5}
•Dijkstra’s Algorithm can then be used
for the shortest path 5
{2,4}
11
Problems of traditional routing algorithms
Dynamic of the topology
frequent changes of connections, connection quality, participants
Limited performance of mobile systems
periodic updates of routing tables need energy without contributing
to the transmission of user data, sleep modes difficult to realize
limited bandwidth of the system is reduced even more due to the
exchange of routing information
Asymmetric links
connection in wireless network may be not symmetric
12
Limitation of Wireless Network
13
Goal of Routing Protocol
1. Minimal control overhead:
Control messaging consumes bandwidth, processing resources and battery
power to both transmit and receive a message.
Should not send more than the minimum no of control message they
need for operation.
While transmitting is roughly twice as power consuming as
receiving. Thus need to reduce control messaging
2. Minimal processing overhead
Algo that are computationally complex require more processing
cycles, thus consume more resources.
Protocol should be lightweight and use a minimum of
processing resources from the mobile devices
14
Goal of Routing Protocol
3. Multihop routing capability
Transmission range of mobile node is limited.
Routing protocol must be able to discover Multihop routes between
source and destination so that communication between those node is
possible who are not in direct transmission range of each other.
4.Dynamic topology maintenance
Once route is established , link may be break due to movement of
nodes.
A viable routing path must be maintained even while the
intermediate nodes, or even the source or destination nodes are
moving.
If link breaks, it must be handled quickly with a minimum of
15 associated overhead.
Goal of Routing Protocol
5. Loop prevention
When a routing loop exits , data and control packets may traverse
the path multiple times until either the path or fixed and the loop is
eliminated or until he time to live (TTL) of the packet reaches zero.
As bandwidth is scarce and packet processing and forwarding is
expensive, routing loops are extremely wasteful of resources.
Loops should be avoided all the times
16
Formation of Loops
18
Ad Hoc Routing Protocol
Routing protocols category :
(a) Table-driven,
(b) Source-initiated on-demand-driven.
19
Routing Protocols
Table Driven / Proactive protocols
Traditional distributed shortest-path protocols
Maintain routes between every host pair at all times
Based on periodic updates; High routing overhead
Example: DSDV (destination sequenced distance vector)
Hybrid protocols
Adaptive; Combination of proactive and reactive
Example : ZRP (zone routing protocol)
20
Table Driven / Proactive protocols
Proactive protocols are based on periodic exchange of control
messages and maintaining routing tables.
Derived from traditional distance vector and link state protocol used in
wireline internet.
Each node maintains complete information about the network
topology locally.
This information is collected through proactive exchange of partial routing
tables stored at each node. Since each node knows the complete
topology, a node can immediately find the best route to a
destination.
Limitation :
Generates large volume of control messages and this may take up a
large part of the available bandwidth.
The control messages may consume almost the entire bandwidth with a large
21
number of nodes and increased mobility.
Table Driven / Proactive protocols
Maintains fresh lists of destinations & their routes by
periodically distributing routing tables throughout the network
Attempts to maintain consistent, up-to-date routing information from each
node to every other node in the network.
Require each node to maintain one or more tables to store
routing information.
They respond to changes in network topology by propagating route updates
throughout the network to maintain a consistent network view.
These Protocols are differ in the number of necessary routing-related
tables and the methods require to broadcast the changes in
network structure.
Some examples of proactive protocols are :
Destination Sequenced Distance Vector (DSDV)
WRP
CGSR
22
Table-Driven Routing Protocols
Destination-Sequenced Distance-Vector Routing (DSDV)
C. E. Perkins and P. Bhagwat, “Highly Dynamic Destination-Sequenced Distance-Vector
Routing (DSDV) for Mobile Computer,” Comp. Commun. Rev., Oct. 1994, pp. 234-244.
23
1. Destination Sequenced Distance Vector
(DSDV)
C. E. Perkins and P. Bhagwat,“Highly Dynamic Destination-Sequenced Distance-
Vector Routing (DSDV) for Mobile Computer,” Comp. Commun. Rev., Oct. 1994, pp.
234-244.
24
Destination Sequenced Distance Vector
DSDV(Cont…)
A sequence numbering system is used to allow mobile hosts to
distinguish stale routes from new ones.
The route labeled with the most recent sequence number (in
increasing order) is always used.
In the event that two updates have the same sequence number, the
route with the smaller hop count is used.
27
DSDV (Cont…)
When X receives information from Y about a route to Z
Let destination sequence number for Z at X be S(X), S(Y) is sent
from Y
X Y Z
If S(X) > S(Y), then X ignores the routing information received from Y
If S(X) = S(Y), and cost of going through Y is smaller than the route known
to X, then X sets Y as the next hop to Z
If S(X) < S(Y), then X sets Y as the next hop to Z, and S(X) is updated to
equal S(Y)
28
DSDV (Cont…)
Number of Sequence
Destination Next Hop Install Time
Hops Number
A A 0 A 46 001000
B B 1 B 36 001200
C B 2 C 28 001500
29
DSDV
30
DSDV
31
DSDV Overview
Advantages
Much less delay involved in the route setup process.
Incremental updates with sequence no tag makes existing wired network
protocol adaptable to ad-hoc network.
Disadvantage
Generates a lot of control traffic in the network, rendering an inefficient
utilization of network resources.
Small network with high mobility or a large network with low mobility can
completely chock the available bandwidth.
In order to obtain information about a particular destination node., a node has
to wait for a table update message initiated by the destination node,
32
2. Wireless Routing Protocol (WRP)
S. Murthy and J. J. Garcia-Luna-Aceves, “An Efficient Routing Protocol
for Wireless Networks,” ACM Mobile Networks and App. J., Special
Issue on Routing in Mobile Communication Networks, Oct. 1996, pp.
183-197.
When a mobile receives a HELLO message from a new node, that new node
information is added to the mobile's routing table, and the mobile sends the
new node a copy of its routing table information.
(0, J)
J 10
(10,
(2, K) I)
B 5
1X 10
1
I
(10,
(2, B)
K)
K 1
36 (1,
(11,
(,K)
K)
B)
37
WRP Overview
Advantages
Same as that of DSDV,
It has faster convergence and involves fewer table updates.
Disadvantage
WRP requires large memory storage and resources in maintaining its tables.
Complexity of maintenance of multiple tables demands a larger memory and greater
processing power from nodes in the ad hoc wireless network.
At high mobility, the control overhead involved in updating table entries is almost the
same as that of DSDV
Not suitable for highly dynamic and also for a very large ad hoc wireless network.
The protocol is not suitable for large mobile ad hoc networks as it suffers from limited
scalability.
38
3. Cluster Switch Gateway Routing
(CSGR)
C.-C. Chiang, “Routing in Clustered Multihop, Mobile Wireless Networks with Fading Channel,” Proc.
IEEE SICON ’97, Apr. 1997, pp. 197-211.
Cluster Head
Process control packets on behalf on their member nodes, thus form a routing
backbone within the network
allows some form of control and coordination among a group of ad hoc hosts
Clustering provides a framework for code separation (among clusters),
channel access, routing, and bandwidth allocation.
39 Different cluster Heads could operate on different spreading codes on a CDA system.
Cluster Switch Gateway Routing
(CSGR)
To elect a cluster head, a distributed cluster head selection algorithm is used.
When a cluster head moves away, another new cluster head must be selected.
Problem occur If a cluster head is changing frequently and nodes will be spending a lot
of time converging to a cluster head instead of forwarding data toward their intended
destinations.
To avoid invoking cluster head reselection every time the cluster membership
changes, a least cluster change (LCC) algorithm is introduced.
Using the LCC algorithm, cluster heads only change
when two cluster heads come into contact
when a node moves out of the range of all other cluster heads.
Tie is broken either using the lowest ID or highest connectivity algorithms.
A token based scheduling is used within a cluster for sharing the bandwidth
among the members of the cluster.
40
Cluster Switch Gateway Routing
(CSGR)
CSGR uses Destination Sequenced Distance Vector (DSDV) as the underlying
routing scheme.
It modifies DSDV by using a hierarchical cluster-head-to-gateway routing approach to
route traffic from source to destination.
Routing is performed over clusterheads and not individual nodes.
Gateway nodes
Nodes that are within communication range of two or more cluster heads.
Gateway nodes serve as bridge nodes between two or more clusters.
Expected to be able to listen to multiple spreading codes that are currently
operation in the cluster in which the node exits as a member.
Performance is influenced by token scheduling and
41
code scheduling that are handled at CH and
Cluster Switch Gateway Routing
(CSGR)
CSGR assumes that all communication passes through Cluster-Head
A packet sent by a node is first routed to its cluster head, and then the
packet is routed from a cluster head to a gateway to another
cluster head, and so on until the cluster head of the destination node
is reached.
The packet is then
transmitted to the
destination.
42
Cluster Switch Gateway Routing
(CSGR)
Each node keep two table
Cluster member table
It stores the destination cluster head for each mobile node in the network.
Being broadcasted by each node periodically using DSDV manner.
Nodes receiving this update will refresh their cluster member tables.
Routing table
Being used to determine the next hop in order to reach the destination.
The node then checks its routing table to determine the next hop node to use
reach the cluster head.
43
CGSR
Example:
Routing from node 1 to node 8
Node
5
Cluster head
4
1 3 6 Gateway
8
2 7
44
CGSR (Cont’d)
6
12
5
11
10
4 7
1
9
8 Gateway Node
3
Cluster Head
Internal Node
(5 hops)
(3 hops)
46
Comparisons of the characteristics of
table-driven routing protocol
Table driven DSDV WRP CGSR
47