Professional Documents
Culture Documents
Dynamic Source Routing (DSR) Protocol: CS: 647 Advanced Topics in Wireless Networks
Dynamic Source Routing (DSR) Protocol: CS: 647 Advanced Topics in Wireless Networks
Protocol
CS: 647
Advanced Topics in Wireless Networks
Drs. Baruch Awerbuch & Amitabh Mishra
Department of Computer Science
Johns Hopkins
5-1
Reading
Chapter 5 Ad Hoc Networking, Perkins,
5-2
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-3
Reactive or On Demand
Developed at CMU in 1996
Route discovery cycle used for route finding on
Demand
Maintenance of active routes
No periodic activity of any kind Hello Messages
in AODV
Utilizes source routing (entire route is part of the
header)
Use of caches to store routes
Supports unidirectional links -> Asymmetric routes
are supported
5-4
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-6
5-7
A
C
5-8
A
C
5-10
5-11
A
RRE
Q:S,
B
RREQ: S, A
C
5-13
RREQ: S, A, C
C
5-14
RREQ: S, A, C
C
5-16
A
C
RREP: D
4. Node C receives RREQ, has no route to D
A
C
RREP: D
D
5-18
RREP: D, C
A
C
RREP: D
D
5-19
RREP: D, C
RREP: D
5-20
5-21
E
F
G
H
K
I
D
N
Broadcast transmission
[S]
S
Z
E
F
G
H
K
I
D
N
5-23
[S,E]
F
[S,C]
G
K
D
N
E
F
[S,E,F]
G
H
I
[S,C,G] K
D
N
E
[S,E,F,J]
G
H
K
I
D
[S,C,G,K]
5-26
[S,E,F,J,M]
G
H
5-29
G
H
K
I
D
N
E
F
G
H
K
I
D
N
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
5-33
any means
[E,F,J,D] to node D
packets
5-34
[E,F,J,D]
[F,J,D],[F,E,S]
[J,F,E,S]
[C,S]
[G,C,S]
N
Z
[E,F,J,D]
[F,J,D],[F,E,S]
[G,C,S]
[C,S]
[J,F,E,S]
H
I
[K,G,C,S] K
D
RREP
RREQ
5-37
[E,F,J,D]
[F,J,D],[F,E,S]
[G,C,S]
[C,S]
[J,F,E,S]
H
I
[K,G,C,S] K
RREP
RREQ
Z
Route Reply (RREP) from node K limits flooding of RREQ.
5-38
B
C
Route: A-B-C-F
Cache: C-D-E
F
Example: A needs a route to E
A route reply that is generated from the route cache must
B
C
Route: A-B-C-F
Cache: C-D-E
5-40
B
C
F
E
Route: A-B-C-F
Cache: C-D-E
5-41
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-42
E
F
G
H
K
I
D
N
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-44
D
C
E
A
F
B
5-45
D
C
E
A
F
B
same time using their route caches -> because they all
received the RREQ at the same time
5-46
D
C
E
A
F
B
Also each node may reply with a different route length, e.g. 1 hop
(G) , 2 hops (B-G) , and 3 (C-B-G)
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-48
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-51
forward a data packet because the nexthop link is broken, it generates RERR
Sends RERR upstream
Searches its own cache to find an alternate
route from itself to destination to forward this
packet
If route is found, the node modifies the route
as per the route cache and forwards to the
next hop node
5-52
C Generates RERR
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-55
B,C,D
B,C,D
B,C,D
become unnecessary
The vertical arrow shows the one hop destination e.g. B, C,
D, with arrow on B means B is the destination
If C overhears that A is forwarding a packet to B that is
destined to C, then
C sends a Gratuitous message (Its RREP message) to
original sender A.
The RREP informs A to route packets as A-C-D instead of AB-C-D
5-56
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Preventing Route Reply Storms
Route Request hop limits
Packet Salvaging
Automatic Route Shortening
Increased spreading of Route Error messages
Summary
5-57
5-58
C-D is broken
A removes the link from its own route cache
A - initiates a new route discovery (assuming it does not
have another route to E) and piggybacks a copy of RERR
message on RREQ
This ensures that every node becomes aware of this link
being broken and they update their route cache
This also ensures nodes do not get replies with old routing
information
5-59
Outline
Introduction
Route Discovery
Route Cache
Route Maintenance
Summary
5-60
performance
5-63
need to communicate
discovery overhead
5-64
5-65
AODV Vs DSR
5-67
5-68
Summary
In this lecture we discussed the Dynamic Source
Routing Protocol (DSR)
We discussed
Route Discovery
Source Routing (Accumulation of routes in the packet
header)
Role of route cache in speeding up the route discovery and
reducing the propagation of RREQs/RREPs
Route Maintenance
Route cache and the role it plays in route maintenance e.g.
how to prevent route reply storms, packet salvaging etc.
5-69