Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CSMA Protocols
Effective Throughput
CSMA vs. TDMA
IDEAL
Channel
Utilization
TDMA
CSMA
# of Contenders
MAC
Channel Utilization
Low Contention
CSMA
High
High Contention
Low
TDMA
Low
High
Z-MAC
Combine best of both
Eliminate worst of both
Possible to guarantee
High channel efficiency and fair (quality of service)
Fairness
Robust implementation
DRAND Algorithm
E
A
F
Radio
Interference
Map
A
C
0
A
D
F
B
Input Graph
B
1
2
C
3
D
DRAND
slot
assignment
1
E
F
0
B
A
E
G
D
Step I Broadcast
Request
B
A
Request
Grant
E
G
Step II Receive
Grants
B
A
Release
C
D
Step IV Broadcast
Two Hop Release
8
10
Time
Slots
A(0)
B(1)
Owner Backoffs
Non-Owner Backoffs
12
Z-MAC LCL
C 2(2)
Time
Slots
0(2) A
B 1(2)
A(0)
B(1)
Collision at C
13
Z-MAC HCL
C 2(2)
Time
Slots
0(2) A
B 1(2)
A(0)
B(1)
Slot in HCL, sleep till next time slot
15
Performance Results
DRAND and ZMAC have been implemented on both
NS2 and on Mica2 motes (Software can be
downloaded from: http://
www.csc.ncsu.edu/faculty/rhee/export/zmac/index.html)
Platform:
Motes (UC Berkeley)
8-bit CPU at 4MHz
8KB flash, 256KB RAM
916MHz radio
TinyOS event-driven
16
17
Sources
Sink
Sources
18
40 Mica2 sensor
motes in
Withers Lab.
Wall-powered
and connected
to the Internet
via Ethernet
ports.
Programs
uploaded via
the Internet, all
mote interaction
via wireless.
Links vary in
quality, some
have loss rates
up to 30-40%.
Assymetric links
also present
(14-->15).
19
Z-MAC
B-MAC
20
Z-MAC
Z-MAC
B-MAC
Low Power
B-MAC
High Power
21
Conclusion
Questions?
23
B
A
Request
Grant
Grant
Reject
D
Step I Broadcast
Request
E
G
Fail
C
D
E
G
Single-Hop
Multi-Hop (NS2)
Multi-Hop
(Testbed)
Multi-Hop (NS2)
Average
(J)
StdDev
Neighbor
Discovery
0.73
0.0018
DRAND
Local Frame
Exchange
4.88
1.33
3.105
1.39
Time
0.28
0.036
Synchronizatio
Total energy: 7.22 J 0.03% of typical battery (2500mAh, 3V
n
27
MULTI-HOP
Z-MAC
B-MAC
28
29
B-MAC
MULTI-HOP
30
Question?
31
Conclusion
E 1(5)
F 3(5)
A
C
D
2(5)
0(5)
0(2)
1(2)
Label is the assigned slot, number in parenthesis is
maximum slot number within two hops
G 4(5)
H
5(5)
33
F
forward
D
C
A
discard
forward
E
B
discard
34
35
36
37
38
Source
Sink
39
40
41
42
Q & A
Thank you for your participation
43
Agenda
Introduction
TDMA Scheduling
DRAND Performance Results
Z-MAC
44
Introduction
Diverse Applications
Low to high data rate applications
Low data rate
Periodic wakeup, sense and sleep
High data rate (102 to 105 Hz sampling rate)
In fact, many applications are high rate
Industrial monitoring, civil infrastructure, medial
monitoring, industrial process control, fabrication plants
(e.g., Intel), structural health monitoring, fluid pipelining
monitoring, and hydrology
45
46
Existing approaches
CSMA+Duty Cycle+LPL
48
S-MAC Design
listen
sleep
listen
sleep
Listen Period
Sleep/Wake schedule synchronization with neighbors
Receive packets from neighbors
Sleep Period
Turn OFF radio
Set timer to wake up later
Transmission
Send packets only during listen period of intended receiver(s)
Collision Handling
RTS/CTS/DATA/ACK
49
S-MAC Design
Schedules can differ, prefer neighboring nodes to have
same schedule
Node 1
listen
Node 2
sleep
listen
sleep
listen
sleep
listen
sleep
Schedule 1
Schedule 2
50
51
- Before transmission
take a sample of the
channel
- If the sample is below
the current noise floor,
channel is clear, send
immediately.
- If five samples are
taken, and no outlier
found => channel busy,
take a random backoff
- Noise floor updated
when channel is known to
be clear e.g. just after 52
Carrier sense
Receiver
Sender
Receive data
Long Preamble
Data Tx
53
Carrier sense
Receiver
Sender
Receive data
Long Preamble
Data Tx
54