Professional Documents
Culture Documents
4-Ad Hoc Networks-Routing II-Lecture4
4-Ad Hoc Networks-Routing II-Lecture4
Dr Ljiljana Simić
iNETS, RWTH Aachen University
SS2016
Important
Note:
These
course
notes
may
contain
some
copyrighted
material.
The
copyright
of
this
material
covers
its
use
in
class
and
for
educa7onal
purposes,
but
you
are
not
allowed
to
distribute
this
course
material
freely.
Under
the
code
of
appropriate
use,
please
refrain
from
uploading
the
provided
source
files
or
documents
to
any
publicly
accessible
system
outside
RWTH
Aachen
University
without
prior
permission.
1
which way
do I go?
RERR
[J-‐D]
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
§ J
sends
a
route
error
to
S
along
route
J-‐F-‐E-‐S
when
its
aAempt
to
forward
the
data
packet
S
(with
route
SEFJD)
on
J-‐D
fails
§ nodes
hearing
RERR
update
their
route
cache
to
remove
link
J-‐D
2
DSR: Advantages
§ routes
maintained
only
between
nodes
who
need
to
communicate
(on-‐demand
reac,ve
rou,ng)
§ reduces
overhead
of
route
maintenance
§ single
route
discovery
may
yield
many
routes
to
the
des7na7on,
due
to
intermediate
nodes
replying
from
local
caches
DSR: Disadvantages
§ packet
header
size
grows
with
route
length
due
to
source
rou7ng
§ flood
of
route
requests
may
potenLally
reach
all
nodes
in
the
network
§ care
must
be
taken
to
avoid
collisions
between
route
requests
propagated
by
neighbouring
nodes
§ inser7on
of
random
delays
before
forwarding
RREQ
§ increased
conten7on
if
too
many
route
replies
come
back
due
to
nodes
replying
using
their
local
cache
§ RREP
storm
problem
§ may
be
eased
by
preven7ng
a
node
from
sending
RREP
if
it
hears
another
RREP
with
a
shorter
route
3
DSR: Disadvantages
§ intermediate
node
may
send
RREP
using
a
stale
cached
route,
thus
polluLng
other
caches
§ problem
can
be
eased
if
some
mechanism
to
purge
(potenLally)
invalid
cached
routes
is
incorporated
§ for
some
proposals
for
cache
invalida7on,
see
Y.
Hu
and
D.
Johnson,
“Caching
Strategies
in
On-‐Demand
Rou7ng
Protocols
for
Wireless
Ad
Hoc
Networks,”
in
Proc.
MobiCom,
2000
§ sta7c
7meouts
§ adap7ve
7meouts
based
on
link
stability
[Perkins
and
Royer,
“Ad
hoc
on-‐demand
distance
vector
rou7ng,”
in
Proc.
IEEE
Wmcsa,
‘99.]
[hAp://www.ie\.org/rfc/rfc3561.txt]
or
[hAp://tools.ie\.org/pdf/rfc3561.pdf]
§ AODV
aAempts
to
improve
on
DSR
by
maintaining
rouLng
tables
at
the
nodes,
so
that
data
packets
do
not
have
to
contain
routes
4
AODV
§ Route
Requests
(RREQ)
forwarded
in
a
manner
similar
to
DSR
§ when
the
intended
des7na7on
receives
a
RREQ,
it
replies
by
sending
a
Route
Reply
(RREP)
§ RREP travels along reverse path set up by RREQ forwarding
Z
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
5
AODV: route requests
Y
Broadcast
transmission
[hop_count=0]
Z
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
[hop_count=1]
Z
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
6
AODV: reverse path set-up
Y
Z
S
[hop_count=2]
E
F
B
C
M
L
J
A
G
H
D
K
I
N
§ node
C
receives
RREQ
from
G
and
H,
but
does
not
forward
it
again,
because
node
C
has
already
forwarded
RREQ
once
Z
S
E
[hop_count=3]
F
B
C
M
L
J
A
G
H
D
K
I
N
7
AODV: reverse path set-up
Y
Z
S
E
[hop_count=4]
F
B
C
M
L
J
A
G
H
D
K
I
N
[hop_count=4]
[hop_count=3]
Z
[hop_count=2]
S
E
[hop_count=1]
F
B
C
M
L
J
[hop_count=0]
A
G
H
D
K
I
N
8
AODV: forward path set-up
Y
Z
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
§ forward
links
(ROUTING
TABLE
ENTRIES
USED
TO
FORWARD
DATA)
are
set
up
when
RREP
travels
along
reverse
path
represents
links
on
the
forward
path
9
AODV: route reply
§ intermediate
node
(not
the
des7na7on)
may
also
send
a
Route
Reply
(RREP)
provided
that
it
knows
a
more
recent
path
than
one
previously
known
to
sender
S
§ likelihood
that
an
intermediate
node
will
send
a
RREP
when
using
AODV
not
as
high
as
in
DSR
§ new
RREQ
by
node
S
for
a
desLnaLon
is
assigned
last
valid
desLnaLon
sequence
number
§ intermediate
node
which
knows
a
route,
but
with
a
smaller
sequence
number
(i.e.
older),
cannot
send
RREP
10
AODV: RREQ & DestSeqNum
Y
[hop_count=1]
DestSeqNum=3
Z
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
[hop_count=2]
Z
S
DestSeqNum=3
E
F
B
C
M
L
J
A
G
H
D
K
I
N
§ node
C
receives
RREQ
from
G
and
H,
but
does
not
forward
it
again,
because
node
C
has
already
forwarded
RREQ
once
11
AODV: RREQ & DestSeqNum
Y
Z
S
E
[hop_count=3]
DestSeqNum=3
F
B
C
M
L
J
A
G
H
D
K
I
N
Z
S
E
[hop_count=4]
DestSeqNum=3
F
B
C
M
L
J
A
G
H
D
K
I
N
12
AODV: RREQ & DestSeqNum
Y
Z
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
[hop_count=4]
DestSeqNum=3
represents
links
on
path
taken
by
RREP
Z
S
E
F
B
C
M
L
J
A
G
H
D
K
I
N
[hop_count=4]
DestSeqNum=3
§ all
intermediate
nodes
receiving
RREP
update
their
route
tables
with
latest
des7na7on
sequence
number
&
also
update
rou7ng
informa7on
if
it
leads
to
a
shorter
path
13
AODV: RREP & DestSeqNum
RREQ,
@F
stored
rouLng
table
entry
for
D:
DestSeqNum=3
next
hop
J,
hop_count=2,
DestSeqNum=2
(<DestSeqNum
in
RREQ
from
S)
S
E
èF
fw’s
RREQ
only
F
B
C
M
L
J
A
G
D’s
own
H
D
current
K
SeqNum=5
I
@G
stored
rouLng
table
entry
for
D:
next
hop
K,
hop_count=2,
DestSeqNum=4
(>DestSeqNum
in
RREQ
from
S)
èG
sends
back
RREP
14
AODV: RREP & DestSeqNum
RREQ,
@F
stored
rouLng
table
entry
for
D:
DestSeqNum=3
next
hop
J,
hop_count=2,
DestSeqNum=2
(<DestSeqNum
in
RREQ
from
S)
S
E
èF
fw’s
RREQ
only
F
B
C
M
L
J
A
G
RREQ
from
S
fw’d
by
J,
sends
back
RREP
to
S
via
J,
H
D
with
DestSeqNum=5
K
I
@G
stored
rouLng
table
entry
for
D:
next
hop
K,
hop_count=2,
DestSeqNum=4
(>DestSeqNum
in
RREQ
from
S)
èG
sends
back
RREP
AODV: timeouts
15
AODV: link failure reporting
§ neighbour
of
node
X
is
considered
acLve
for
a
rouLng
table
entry
if
within
ac6ve_route_6meout
interval
the
neighbour
sent
a
packet
which
was
forwarded
using
that
entry
§ when
the
next
hop
link
in
a
rouLng
table
entry
breaks,
all
acLve
neighbours
are
informed
§ link
failures
are
propagated
by
means
of
Route
Error
messages,
which
also
update
desLnaLon
sequence
numbers
§ when
node
S
receives
the
RERR,
it
iniLates
a
new
route
discovery
for
D
using
des7na7on
sequence
number
N
16
AODV: link failure detection
§ neighbouring
nodes
periodically
exchange
hello
messages
§ absence of hello message used as indica7on of link failure
§ alterna7vely,
failure
to
receive
several
MAC-‐level
ACKs
may
be
used
as
indica7on
of
link
failure
E
§ C
detects
broken
link,
increments
des7na7on
sequence
number
for
D,
invalidates
known
route
to
D,
and
propagates
RERR
§ assume
RERR
sent
by
C
is
lost
(A
doesn’t
know
about
failure
of
link
C-‐D)
§ now
C
performs
a
route
discovery
for
D
§ node
A
receives
the
RREQ
(say,
via
path
C-‐E-‐A)
§ without
sequence
numbers,
node
A
would
reply
since
it
knows
a
route
to
D
via
node
B
&
this
would
result
in
a
loop
(e.g.
C-‐E-‐A-‐B-‐C
)
§ BUT
A
will
not
reply
to
the
RREQ
(&
C
will
not
use
the
route
loop),
because
the
DestSeqNum
for
route
to
D
stored
at
A
is
lower
than
that
in
C’s
RREQ
17
AODV: Maintining DestSeqNum & Routing Table Entries
AODV optimization:#
expanding ring search
§ RREQ
are
ini7ally
sent
with
small
TTL
(7me
to
live)
field,
to
limit
their
propaga7on
§ DSR
also
includes
a
similar
op7miza7on
18
AODV: summary
§ nodes
maintain
rou7ng
tables,
but
containing
entries
only
for
routes
that
are
in
ac7ve
use
(cf.
DSDV)
§ at
most
one
next-‐hop
per
des7na7on
maintained
at
each
node
§ DSR
may
maintain
several
routes
for
a
single
des7na7on
§ unused routes expire even if topology does not change
AODV: Advantages
§ does
not
use
source
rou7ng,
but
maintains
rou7ng
tables
at
each
node
à
lower
packet
header
O/H
§ des7na7on
sequence
numbers
used
to
find
the
latest
route
to
des7na7on
19
AODV: Disadvantages
§ mul7ple
RREP
in
response
to
single
RREQ
can
lead
to
heavy
control
O/H
20
Flooding of control packets
§ how
to
reduce
the
scope
of
the
route
request
flood
?
§ LAR
§ query
localiza7on
§ how
to
reduce
redundant
broadcasts
?
§ broadcast
storm
problem
§ exploits
locaLon
info
to
limit
scope
of
route
request
flood
§ loca7on
informa7on
may
be
obtained
using
GPS
§ route
requests
limited
to
a
Request
Zone
that
contains
the
Expected
Zone
and
loca7on
of
the
sender
node
21
LAR: Expected Zone
X
=
last
known
loca7on
of
node
D,
at
7me
t0
Y
=
loca7on
of
node
D
at
current
7me
t1,
unknown
to
node
S
r X
Y
Expected Zone
Request Zone
r X
B
Y
A
S Expected Zone
22
LAR
§ only
nodes
within
Request
Zone
forward
route
requests
§ e.g.
node
A
does
not
forward
RREQ,
but
node
B
does
§ each
node
must
know
its
physical
locaLon
to
determine
whether
it
is
within
the
request
zone
§ if
route
discovery
using
a
given
request
zone
fails
to
find
a
route,
sender
iniLates
another
route
discovery
(aper
a
7meout)
using
a
larger
request
zone
§ larger
request
zone
may
be
the
en7re
network
B
Request
Zone
adapted
by
B
S
Request
Zone
defined
by
sender
S
23
LAR variations: Implicit Request Zone
§ in
the
previous
scheme,
a
route
request
explicitly
specified
a
request
zone
§ mo7va7on
is
to
aAempt
to
bring
the
route
request
physically
closer
to
the
des7na7on
node
aper
each
forwarding
LAR
§ basic
proposal
assumes
that,
iniLally,
loca7on
informa7on
for
node
X
becomes
known
to
Y
only
during
a
route
discovery
§ this
loca7on
informa7on
is
used
for
a
future
route
discovery
§ each
route
discovery
yields
more
updated
informa7on
which
is
used
for
the
next
discovery
VariaLons
24
LAR: Advantages
LAR: Disadvantages
25
26