Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
for
Telematics Services
February 6, 2013
Military operations
Scientific explorations
..
Key Technical Issues
Energy-constrained nodes
Routing
Routingprotocols
protocolsdesigned
designedforforthe
theInternet
Internet
were
weredesigned
designedfor
forrelatively
relativelystable
stablenetworks
networks
and
andcannot
cannothandle
handlethe
thedynamic
dynamicchanges
changesininad-hoc
ad-hocnetworks
networks
Desirable Characteristics of Ad-Hoc Routing
Distributed operations
Loop free
Scalable
Energy conservative
Rapid convergence
Hierarchical IP addresses
Key Characteristics
Distributed algorithm
Each node exchanges routing information with its directly attached
neighbors and makes its own routing decisions
Iterative
Routing information exchange continues until no new information is
exchanged between the neighborhood.
Asynchronous
Do not require all nodes to operate in lock step with each other
Bellman-Ford Routing Algorithm
How It Works
Each router maintains a distance table, which is a one-
dimensional array, hence the term distance vector
Distance table maintains the distance and the shortest
path to each node in the network.
How It Works
Every node updates its distance table with cost and next
hops learned from its neighbors
How It Works
Shortest distance from Z1 to Y: D(Z1,Y)
Cost of direct link
C(X,Z)
X Z1 Y
Z2 Y
A B C X
Converged
Stable X 3 B X 2 C
Condition
A B C X
Routing update
X 3 B X 4 A
X 5 B X 4 A
X 5 B X 6 A
Bellman-Ford Algorithm
On-Demand Routing
Reactive routing that discovers a route only when needed
Probabilistic/Opportunistic Routing
Take advantage of the randomness of the network to route packets
to further increase scalability
Location-Added Routing
Use location of the destination to route the traffic
Pre-Computed Ad-Hoc Routing
Each node maintains routing tables to store up-to-date and
consistent routes to each destination
Flat routing
Requires each node to maintain a routing table containing all other
nodes in the network
Hierarchical routing
Organizes nodes into a hierarchy of clusters
Sample Pre-Computed Routing Protocols
Flat table-driven routing protocols
Dynamic Destination-Sequenced Distance-Vector Routing Protocol
(DSDV)
Wireless Routing Protocol (WRP)
Global State Routing (GSR)
Fisheye State Routing (FSR)
Route with the highest (i.e. most recent) sequence number is used.
If two routes have an identical sequence number, the route with the
best metric (i.e. shortest route) is used
Dynamic Destination-Sequenced Distance-
Vector Routing Protocol (DSDV)
Route used by X for destination Y (sequence #=1)
X A B Y
Route Update (Y, Hop count to distance = 2, Seq. #=1)
X A Y
Destination
X A B Y
A X B Y
A B C X
Converged
Stable X 3 B X 2 C
Condition
A B C X
Routing update B knows from the
successor info it has
X 3 B C and the predecessor in
the route update
that the route
in this update
Destination Next Hop Is not valid
Distance Predecessor
Wireless Routing Protocol (WAP) (5 / 7)
Link Cost Table and Message Retransmission List
Next Hop Table: Contains the next hop toward each destination
Issues addressed
Update messages in GSR can be large and hence can waste a considerable
amount of network bandwidth.
Solution in FSR
Each update message does not contain information about all nodes. Instead,
it exchanges information about closer nodes more frequently than it does
about farther nodes thus reducing the update message size.
So each node gets accurate information about neighbors and the detail and
accuracy of information decreases as the distance from node increases.
Packets can be routed correctly because the route information becomes
more and more accurate as the packet moves closer to the destination.
Hierarchical State Routing (HSR)
Network is divided into clusters of nodes
A node at each level floods to its lower level the information that it
obtains so the lower level has a hierarchical topology information.
Cluster
Head Cluster
Head
X.2.2
Physical Physical Link
Nodes X.2.3
X.2.1
Cluster
Cluster
Head
Gateways
Zone-based Hierarchical Link State Routing
Protocol (ZHLS) (1 / 2)
The network is divided into non-overlapping zones
Packet routing
A packet is routed first based on the Zone ID to the destination zone.
The, within the destination zone, the packet is routed based on the
destinations Node ID
On-Demand Ad-Hoc Routing Protocols
(1)
Source 1 4 7 Destination
(1, 4)
(1)
3 6 (1, 3, 6)
(1, 3) Intermediate node caches
source route in the packet
Route Reply 2 5
Source 1 4 7 Destination
(1, 3, 6, 7)
(1, 3, 6, 7)
3 6
(1, 3, 6, 7)
Dynamic Source Routing
Route Maintenance
Each node along a route is responsible for detecting failure
of the part of the route that goes through it
Source deletes any route in its cache that uses the broken
link
Destination Destination
Hop Count Next Hop Lifetime
IP Address Sequence Number
AODV Route Discovery Illustration
2 5
Route Discovery
Source 1 4 7 Destination
3 6
Route Reply 2 5
Source 1 4 7 Destination
3 6 Route establishment
AODV: Use of Destination Sequence Number
Destination Sequence
Number = 1
Source 1 For route to Y
Destination
X A B Y
Source 2
Destination Sequence
Q Number = 2
For route to Y Destination
A Y
Destination Sequence
Number = 2
Source 1
For route to Y Destination
Route Request
(Dest. Seq. # =1)
X A Y
Node A will use new route to Y
to respond to this Route Request
AODV
Route Maintenance
A route may break when any node along the route moves
away
Cluster head responds to the Hello message with its own Hello
message
If the undecided node times out, then it makes itself the cluster-head
if it has bi-directional link to some neighbor; otherwise it remains in
undecided state and repeats the procedure again.