Professional Documents
Culture Documents
7-Ad Hoc Networks-MAC I-Lecture7
7-Ad Hoc Networks-MAC I-Lecture7
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
– Medium Access Control (MAC)#
for Ad Hoc Networks [I]
#
§ MAC
protocol
design
has
been
an
ac7ve
area
of
research
for
many
years
[Chandra
et
al.
“Wireless
medium
access
control
protocols,”
in
IEEE
Communica0ons
Surveys,
2000.]
2
MAC: A simple classification
Wireless
MAC
Centralized Distributed
Guaranteed
Random
or
access
controlled
access
§ fair
§ when
only
one
node
wants
to
send
it
gets
data
rate
R,
when
N
nodes
want
to
transmit
they
get
R/N
§ but,
remember
that
also
this
might
be
unfair
or
unacceptable:
fairness
is
some7mes
a
complicated
issue
to
define/measure
§ simple
3
CSMA: problems in wireless?
[Bharghavan
et
al.,
“MACAW:
a
media
access
protocol
for
wireless
LAN’s,”
in
Proc.
ACM
SIGCOMM,
1994.]
4
CSMA: problems in wireless?
[Bharghavan
et
al.,
“MACAW:
a
media
access
protocol
for
wireless
LAN’s,”
in
Proc.
ACM
SIGCOMM,
1994.]
5
CSMA: problems in wireless?
[Bharghavan
et
al.,
“MACAW:
a
media
access
protocol
for
wireless
LAN’s,”
in
Proc.
ACM
SIGCOMM,
1994.]
6
CSMA: problems in wireless?
[Bharghavan
et
al.,
“MACAW:
a
media
access
protocol
for
wireless
LAN’s,”
in
Proc.
ACM
SIGCOMM,
1994.]
7
CSMA: problems in wireless?
[Bharghavan
et
al.,
“MACAW:
a
media
access
protocol
for
wireless
LAN’s,”
in
Proc.
ACM
SIGCOMM,
1994.]
8
CSMA: problems in wireless?
[Bharghavan
et
al.,
“MACAW:
a
media
access
protocol
for
wireless
LAN’s,”
in
Proc.
ACM
SIGCOMM,
1994.]
A B C
9
Hidden terminal problem
A
is
hidden
from
C
A B C
D A B C
10
Exposed terminal problem
B
senses
“channel
busy”
when
A
transmi\ng
to
D
but
B
(àC)
would
NOT
interfere
with
A’s
transmission
at
RX
(D)
D A B C
11
Solution for hidden terminal problem:#
MACA (Multiple Access Collision Avoidance)
§ [Karn,
“MACA
–
a
new
channel
access
method
for
packet
radio,”
in
Proc.
ARRL/
CRRL
Amateur
Radio
9th
Computer
Networking
Conference
,
1990.]
§ when
node
A
wants
to
send
a
packet
to
node
B,
node
A
first
sends
a
Request-‐to-‐Send
(RTS)
to
B
§ on
receiving
RTS,
if
it
is
able
to
receive
the
packet,
node
B
responds
by
sending
Clear-‐to-‐Send
(CTS)
to
A
§ when
a
node
(such
as
C)
overhears
a
CTS,
it
keeps
quiet
for
the
duraRon
of
the
transfer
§ transfer
dura7on
is
included
in
both
RTS
and
CTS
A B C
RTS/CTS
RTS
D
A
B
C
12
RTS/CTS
CTS
D
A
B
C
RTS/CTS
DATA
D
A
B
C
13
Wireless communication reliability
§ if
node
A
fails
to
receive
an
ACK,
it
will
retransmit
the
packet
A B C
14
IEEE 802.11 wireless MAC
§ distributed
and
centralized
MAC
components
§ any
node
receiving
the
RTS
cannot
transmit
for
the
dura7on
of
the
transfer
§ to
prevent
collision
with
ACK
when
it
arrives
at
the
sender
§ when
B
is
sending
data
to
C,
node
A
will
keep
quiet
A B C
15
Collision avoidance
§ with
half-‐duplex
radios,
collision
detec7on
is
not
possible
IEEE 802.11
RTS = Request-‐to-‐Send
RTS
A
B
C
D
E
F
16
IEEE 802.11
RTS = Request-‐to-‐Send
RTS
A
B
C
D
E
F
NAV
=
10
IEEE 802.11
CTS = Clear-‐to-‐Send
CTS
A
B
C
D
E
F
17
IEEE 802.11
CTS = Clear-‐to-‐Send
CTS
A
B
C
D
E
F
NAV
=
8
IEEE 802.11
§ DATA
packet
follows
CTS
§ successful
data
recep7on
acknowledged
using
ACK
DATA
A
B
C
D
E
F
18
IEEE 802.11
§ DATA
packet
follows
CTS
§ successful
data
recep7on
acknowledged
using
ACK
ACK
A
B
C
D
E
F
IEEE 802.11
reserved area
DATA
A
B
C
D
E
F
ACK
19
note on RTS/CTS effectiveness
DATA
A
B
C
D
E
F
transmission
range
DATA
A
B
C
D
E
F
transmission
range
interference
range
20
IEEE 802.11: CSMA/CA
§ physical
carrier
sense,
and
§ virtual
carrier
sense
using
Network
AllocaRon
Vector
(NAV)
§ NAV
is
updated
based
on
overheard
RTS/CTS/DATA/ACK
packets,
each
of
which
specify
dura7on
of
a
pending
transmission
§ count
down
the
backoff
interval
when
medium
is
idle
§ count-‐down
is
suspended
if
medium
becomes
busy
21
IEEE 802.11: DCF example
B1
=
25
B1
=
5
wait
data
data
wait
B2
=
20
B2
=
15
B2
=
10
Backoff interval
§ 7me
spent
coun7ng
down
backoff
intervals
is
a
part
of
MAC
overhead
§ choosing
a
large
cw
leads
to
large
backoff
intervals
and
can
result
in
larger
overhead
§ choosing
a
small
cw
leads
to
a
larger
number
of
collisions
(when
two
nodes
count
down
to
0
simultaneously)
22
Binary Exponential Backoff in DCF
§ when
a
node
fails
to
receive
CTS
in
response
to
its
RTS,
it
increases
the
conten7on
window
§ cw
is
doubled
(up
to
an
upper
bound)
23
Alternative contention resolution
mechanism
§ HIPERLAN
standard
(“failed”
European
counterpart
to
IEEE
802.11)
§ elimina7on
yield
non-‐preemp7ve
mul7ple
access
(EY-‐NPMA)
Receive-initiated mechanism
§ [Talucci,
Gerla
and
Frama,
“MACA-‐BI
(MACA
By
Invita7on)-‐a
receiver
oriented
access
protocol
for
wireless
mul7hop
networks,”
in
Proc.
IEEE
PIMRC
1997]
§ [Garcia,
Tzamaloukas,
“Reversing
the
collision-‐avoidance
handshake
in
wireless
networks,”
in
Proc.
MobiCom,
1999]
24
Another MACAW proposal: RRTS
§ when
node
A
sends
an
RTS
to
B,
while
node
C
is
receiving
from
D:
node
B
cannot
reply
with
a
CTS,
since
B
knows
that
D
is
sending
to
C
§ when
transfer
from
C
to
D
is
complete,
node
B
can
send
a
Request-‐for-‐RTS
(RRTS)
to
node
A
§ node
A
may
then
immediately
send
RTS
to
node
B
A
B
C
D
RTS
DATA
A
B
C
D
RTS
DATA
25
Fairness
A
B
two
flows
C D
Fairness
§ assume
that
ini7ally,
A
and
B
both
choose
a
backoff
interval
in
range
[0,31],
but
their
RTSs
collide
A
B
two
flows
C D
26
Fairness Issue
§ unfairness
occurs
when
one
node
has
backed
off
much
more
than
some
other
node
A
B
two
flows
C D
A
B
two
flows
C D
27
MACAW solution for fairness
§ when
a
node
transmits
a
packet,
it
appends
the
cw
value
§ all
nodes
hearing
that
cw
value
use
it
for
their
future
transmission
aaempts
§ cw
is
an
indicaRon
of
the
level
of
congesRon
in
the
vicinity
of
a
specific
receiver
node
àMACAW
proposes
maintaining
cw
independently
for
each
receiver
(i.e.
per
flow
not
per
node)
28
Distributed Fair Scheduling (DFS)
[Vaidya,
Bahl
and
Gupta,
“Distributed
Fair
Scheduling
in
a
wireless
LAN,”
in
Proc.
MobiCom,
2000]
§ fully
distributed
algorithm
for
achieving
weighted
fair
queueing
DFS
B1
=
15
B1
=
10
B1
=
5
wait
wait
collision
!
data
data
B2
=
5
B2
=
5
B2
=
5
29
DFS: impact of collisions
DFS
B1
=
10
B1
=
10
B1
=
5
wait
wait
wait
data
collision resoluRon
30
DFS
§ DFS
uses
randomiza7on
to
reduce
collisions
§ alleviates
nega7ve
impact
of
synchronizaRon
§ DFS
also
uses
a
shiged
conten7on
window
for
choosing
ini7al
backoff
interval
§ reduces
priority
inversion
(which
leads
to
short-‐term
unfairness)
802.11
0
31
DFS
0
31
61
DFS
§ due
to
large
cw,
DFS
can
poten7ally
yield
lower
throughput
than
IEEE
802.11
§ trade-‐off
between
fairness
and
throughput
§ in
mul7-‐hop
network,
proper7es
of
DFS
s7ll
need
to
be
characterized
§ fairness
in
mul7-‐hop
case
affected
by
hidden
terminals
§ may
need
use
of
a
copying
technique,
analogous
to
window
copying
in
MACAW,
to
share
some
protocol
state
informa0on
31
Fairness in multi-hop networks
32