Wireless Sensor Networks
- 4. Medium Access
Christian Schindelhauer
Technische Fakultät Rechnernetze und Telematik Albert-Ludwigs-Universität Freiburg
Version 29.04.2016
Wireless Sensor Networks 4. Medium Access Christian Schindelhauer - - PowerPoint PPT Presentation
Wireless Sensor Networks 4. Medium Access Christian Schindelhauer Technische Fakultt Rechnernetze und Telematik Albert-Ludwigs-Universitt Freiburg Version 29.04.2016 1 ISO/OSI Reference model 7. Application Application Application
Technische Fakultät Rechnernetze und Telematik Albert-Ludwigs-Universität Freiburg
Version 29.04.2016
§ 7. Application
mail, terminal, remote login
§ 6. Presentation
presentation of the data (EBCDIC / ASCII)
§ 5. Session
§ 4. Transport
congestion
§ 3. Network
§ 2. Data Link
§ 1. Physical
2
Application Anwendung Presentation Präsentation Session Sitzung Transport Network Vermittlung Data link Sicherung Physical Bitübertragung Application Anwendung Presentation Präsentation Session Sitzung Transport Network Vermittlung Data link Sicherung Physical Bitübertragung Network Vermittlung Data link Sicherung Physical Bitübertragung Network Vermittlung Data link Sicherung Physical Bitübertragung
Router Router
3
4
1 2 1 2
5
0 1 2 3 4 5 6 7 Contention Slots Frames 1 1 2 6 0 1 2 3 4 5 6 7 Contention Slots 1 Frames 4
will be sent
University of Hawaii
connections
6
7
Paket ready? Transmit Wait for a round- trip time Positive ACK? Compute random back
Delay packet transmission k times
No Yes No Yes
8
§ Consider Poisson-process for generation of packets
§ For a successful transmission, no collision with another packet may happen
9
P[k transmissions] = Gk
k! e−G
§ A packet X is disturbed if
just before X
shortly after X starts
§ A packet is successfully transmitted,
interval of two packets no
are transmitted
10
Considered Message
t
2 t
11
Paket ready? Transmit Wait for a round- trip time Positive ACK? Compute random back
Delay packet transmission k times
No Yes No Yes
Wait for the next slot
12
13
considered message
waiting time until begin of slot
1 G S 1 Optimal
14
Paket ready? Transmit Wait for a round- trip time Positive ACK? Compute random back
Delay packet transmission k times
No Yes No Yes
Channel free
No Yes
15
16
sending
sending must be possible
channel that's identical to the message?
17
Paket ready? Send 1st bit Send next bit Packet ready? Collision treatment
Yes No Yes
Channel free
No No Ja
Collision?
No Yes 18
§ Algorithm: Binary Exponential Backoff
§ Algorithm
19
20
21
22
§ CSMA/CD not applicable
§ Hidden Terminal
§ Exposed Terminal
23
24
25
§ Phil Karn
§ Alternative names:
§ Aim
§ Idea
26
27
Sender RTS
Receiver
Reserved area
28
Sender CTS Receiver
Reserved area
Paket ready? Send RTS Wait for a round- trip time CTS received? Compute back off k Delay packet transmission k times
No Yes No Yes
Channel free
No Yes
Send Paket
29
§ A sends RTS
§ If A receives CTS in time
30
31
32
33
§ Bharghavan, Demers, Shenker, Zhang
SIGCOMM 1994
§ Aim
34
35
§ Participants
§ Third parties
§ Sender repeats RTS, if no ACK has been received
36
37
Paket ready? Send RTS Wait for a round-trip time CTS received? Compute back off k Delay packet transmission k times
Yes No Yes
Channel free?
No No Yes
Send Paket ACK received?
No
38
Sender RTS
Receiver
Reserved area
39
Sender CTS Receiver
Reserved area
blocked blocked no CTS blocked no CTS blocked
40
Sender Data Receiver
Reserved area
blocked blocked blocked blocked
41
Sender Ack Receiver
Reserved area
blocked blocked blocked blocked
42
error rate throughput RTS-CTS- DATA RTS-CTS- DATA-ACK 40 37 0,001 37 37 0,01 17 36 0,1 2 10
43
44
Sender RTS
Receiver is blocked
Reserved Area
45
Sender is free
no CTS blocked no CTS blocked
Receiver is blocked
46
§ Participants
§ RTS and CTS announce the transmission duration § Blocked nodes
§ Small effort decreases the number of exposed terminals
47
48
Sender RTS Receiver
Reserved area
49
Sender CTS Receiver
blocked blocked waits for DS waits for DS
Reserved area
50
Sender DS
blocked blocked
Reserved area
blocked blocked
Receiver
51
Sender Data
Reserved area
blocked blocked blocked blocked
Receiver
52
Sender Ack
Reserved area
blocked blocked blocked blocked
Receiver
§ 4 and 5-Handshake create unfair distribution
does not receive A
does not hears D § A is the first to get the channel § D sends RTS and is blocked
§ At the next transmission
next channel access
53
54
55
56
57
58
59
60
receives message ready to receive ready to receive sleep phase
receiver
wakeup channel data channel sends message alarm
sender
acks alarm wakeup channel data channel
Sparse Topology and Energy Management Protocol
61
62
63
64
65
receives message sleep phase
receiver
send message
sender
stays awake preamble ready to receive ready to receive ready to receive
66
67
and
68
Synchro- nization CTS active phase sleep phase
S-Mac
RTS active phase sleep phase Carrier Sense
69
70
B C A
S Y N C synchronizer sleep phase
A
S Y N C S Y N C S Y N C sleep phase
B
S Y N C S Y N C
a w a k e
C
a w a k e a w a k e a w a k e a w a k e a w a k e
synchronizer
71
72
A B C D
message
Synchro- nization CTS
RTS Synchro- nization
Frame 1 ACK Frame 2 ACK
Synchro- nization sleep phase
Carrier Sense sleep phase
73
74
A B C
message
CTS
RTS
message ACK
sleep phase
receive sleep phase
D
collision collision
FRTS
RTS pause CTS message puase ACK
§ FRTS solves problems that are increased by adapted sleep cycles
Sleeping i.e., Falling asleep because sender is blocked by foreign CTS
§ Simulation indicates significant energy reduction
the throughput
75
MAC Protocol for Wireless Sensor Networks, SenSys 2003
76
77
receives message sleep phase
receiver
send message
sender
stays awake preamble ready to receive ready to receive ready to receive
78
Polastre, Hill, Culler, Versatile Low Power Media Access for Wireless Sensor Networks, SenSys’04
79
Polastre, Hill, Culler, Versatile Low Power Media Access for Wireless Sensor Networks, SenSys’04
80
Polastre, Hill, Culler, Versatile Low Power Media Access for Wireless Sensor Networks, SenSys’04
81
Polastre, Hill, Culler, Versatile Low Power Media Access for Wireless Sensor Networks, SenSys’04
82
Technische Fakultät Rechnernetze und Telematik Albert-Ludwigs-Universität Freiburg