From IEEE 802.15.4 To IEEE 802.15.4e From IEEE 802.15.4 To IEEE 802.15.4e
From IEEE 802.15.4 To IEEE 802.15.4e From IEEE 802.15.4 To IEEE 802.15.4e
From IEEE 802.15.4 To IEEE 802.15.4e From IEEE 802.15.4 To IEEE 802.15.4e
4e
Another Step towards the
Internet of (Important) Things
Giuseppe Anastasi
Pervasive Computing & Networking Lab (PerLab)
Dept. of Information Engineering, University of Pisa
E-mail: giuseppe.anastasi@iet.unipi.it
Website: www.iet.unipi.it/~anastasi/
PerLab
Internet of Things
PerLab
IEEE 802.15.4/802.15.4e
ZigBee
Bluetooth
WirelessHART
ISA-100.11a
6LoWPAN
IPv6 over Low power WPAN
RPL
Routing Protocol for Low power
and Lossy networks
CoAP
Constrained Application Protocol
From IEEE 802.15.4 to IEEE 802.15.4e
Overview
PerLab
IEEE 802.15.4
MAC protocols
Possible enhancements
IEEE 802.15.4e
Time-Slotted Channel Hopping (TSCH) mode
Open Issues
Main features
transceiver management
channel access
PAN management
From IEEE 802.15.4 to IEEE 802.15.4e
Ed Callaway, Paul Gorday, Lance Hester, Jose A. Gutierrez, Marco Naeve, Bob Heile, Home Networking with IEEE 802.15.4:
Developing Standard for Low-Rate Wireless Personal Area Networks, IEEE Communications Magazine, August 2002.
From IEEE 802.15.4 to IEEE 802.15.4e
Channel frequencies
PerLab
Europe
USA
(20 Kbps)
(40 Kbps)
(250 Kbps)
Ed Callaway, Paul Gorday, Lance Hester, Jose A. Gutierrez, Marco Naeve, Bob Heile, Home Networking with IEEE 802.15.4:
Developing Standard for Low-Rate Wireless Personal Area Networks, IEEE Communications Magazine, August 2002.
From IEEE 802.15.4 to IEEE 802.15.4e
Non-beacon enabled
Beacon enabled
Superframe Structure
Contention based
Contention based
Contention free
Unslotted CSMA-CA
Slotted CSMA-CA
10
Active
Beacon
Beacon
GTS
CAP
GTS
Inactive
CFP
SD = aBaseSuperFrameDuration*2SO sym
BI = aBaseSuperFrameDuration*2BO sym
11
No
No
No
Yes
Yes
12
Un-slotted CSMA
NB = 0,
BE = macMinBE
Delay for
random(2BE - 1) unit
backoff periods
Perform CCA
Y
Channel idle?
N
NB = NB+1,
BE = min(BE+1, aMaxBE)
NB>
macMaxCSMABackoffs
?
Y
Failure
Success
13
Acknowledgement Mechanism
PerLab
Optional mechanism
Destination Side
ACK sent upon successful reception of a data frame
Sender side
Retransmission if ACK not (correctly) received within the
timeout
At each retransmission attempt the backoff window size
is re-initialized
Only a maximum number of retransmissions allowed
(macMaxFrameRetries)
14
MAC Unreliability
Unbounded latency
No guaranteed bandwidth
Unless GTS is used
GTS only provides a limited service (7 slots)
G. Anastasi, D. De Guglielmo, A Seghetti, From IEEE 802.15.4 to IEEE 802.15.4e: a Step towards the Internet of Things,
Chapter 10 in Advances onto the Internet of Things (S. Gaglio, G. Lo Re, Editors), pp. 135-152. January 2014. Springer
From IEEE 802.15.4 to IEEE 802.15.4e
15
G. Anastasi, M. Conti, M. Di Francesco, A Comprehensive Analysis of the MAC Unreliability Problem in IEEE 802.15.4
Wireless Sensor Networks, IEEE Transactions in Industrial Informatics, Vol. 7, N. 1, Feb 2011.
From IEEE 802.15.4 to IEEE 802.15.4e
16
Key Question
Why the 802.15.4 MAC
Unreliability Problem?
Possible Answers
PerLab
18
G. Anastasi, M. Conti, M. Di Francesco, A Comprehensive Analysis of the MAC Unreliability Problem in IEEE 802.15.4
Wireless Sensor Networks, IEEE Transactions in Industrial Informatics, Vol. 7, N. 1, Feb 2011.
From IEEE 802.15.4 to IEEE 802.15.4e
19
CSMA/CA parameters
PerLab
Parameter
2003 release
2006 release
Notes
07
macMaxFrameRetries
(aMaxFrameRetries)
macMaxCSMABackoff
05
Default: 4
05
Default: 4
Max number of
backoff stages
38
macMaxBE
5
(aMaxBE)
Maximum Backoff
Window Exp.
macMinBE
03
Default: 3
Default: 3
Default: 5
07
Default: 3
Minimum Backoff
Window Exp.
20
macMinBE
macMaxBE
macMaxCSMABackoff
macMaxFrameRetries
DPS
SPS
NPS
10
10
10
21
G. Anastasi, M. Conti, M. Di Francesco, A Comprehensive Analysis of the MAC Unreliability Problem in IEEE 802.15.4
Wireless Sensor Networks, IEEE Transactions in Industrial Informatics, Vol. 7, N. 1, Feb 2011.
From IEEE 802.15.4 to IEEE 802.15.4e
22
Avg. Latency
Energy/msg
G. Anastasi, M. Conti, M. Di Francesco, A Comprehensive Analysis of the MAC Unreliability Problem in IEEE 802.15.4
Wireless Sensor Networks, IEEE Transactions in Industrial Informatics, Vol. 7, N. 1, Feb 2011.
From IEEE 802.15.4 to IEEE 802.15.4e
23
Learned Lesson
PerLab
24
Enhancements
How to achieve the desired reliability
level (e.g., 80%) with the minimum energy
expenditure?
[1]
[2]
[3]
[4]
[1]
P. Park, P. Di Marco, P. Soldati, C. Fischione, K. H. Johansson, A Generalized Markov Chain Model for Effective
Analysis of Slotted IEEE 802.15.4, Proc. IEEE International Conference on Mobile Ad Hoc and Sensor Systems
(MASS 2009). Macao, China, October 2009
[2]
P. Park, P. Di Marco, C. Fischione, K. H. Johansson, Modeling and Optimization of the IEEE 802.15.4 Protocol for
Reliable and Timely Communications, IEEE Transactions on Parallel and Distributed Systems, 2012.
[3]
M. Di Francesco, G. Anastasi, M. Conti, S. K. Das, V. Neri, Reliability and Energy-efficiency in IEEE 802.15.4/ZigBee
Sensor Networks: An Adaptive and Cross-layer Approach, IEEE Journal on Selected Areas in Communications,
2011.
[4]
S. Brienza, D. De Guglielmo, C. Alippi, G. Anastasi, G. Anastasi, M. Roveri, A Learning-based Algorithm for Optimal
MAC Parameters Setting in IEEE 802.15.4 Wireless Sensor Networks, Proc. ACM International Symposium on
Performance Evaluation of Wireless Ad Hoc, Sensor, and Ubiquitous Networks (PE-WASUN 2013), Barcelona, Spain,
November 3-7, 2013
26
Parks Model
PerLab
Reliability (R)
Latency (D)
Energy per packet (Etot)
As functions of the 802.15.4 MAC
parameters
P. Park, P. Di Marco, P. Soldati, C. Fischione, and K. Johansson, A Generalized Markov Chain Model for Effective Analysis of Slotted
IEEE 802.15.4, Proc. IEEE International Conference on Mobile Ad hoc and Sensor Systems (MASS 2009), October 2009, pp. 130 139.
From IEEE 802.15.4 to IEEE 802.15.4e
27
Offline Algorithm
Provides the MAC
parameters set that
guarantees
(R>Rmin ) & (D<Dmax)
while minimizing
Etot
28
Offline approach
Requires to know the operating conditions of the
sensor network
unsuitable for real environments
29
Model-based Adaptation
PerLab
Online Algorithm
Estimates , , and through direct measurements
: probability to find the channel busy during the first CCA
: probability to find the channel busy during the second CCA
: probability that the node will attempt the first CCA in a generic
backoff slot
P. Park, P. Di Marco, C. Fischione, K. H. Johansson, Modeling and Optimization of the IEEE 802.15.4 Protocol for Reliable and
Timely Communications, IEEE Transactions on Parallel and Distributed Systems, 2012.
From IEEE 802.15.4 to IEEE 802.15.4e
30
31
Measurement-based Adaptation
PerLab
M. Di Francesco, G. Anastasi, M. Conti, S. K. Das, V. Neri, Reliability and Energy-efficiency in IEEE 802.15.4/ZigBee Sensor
Networks: An Adaptive and Cross-layer Approach, IEEE Journal on Selected Areas in Communications, 2011.
From IEEE 802.15.4 to IEEE 802.15.4e
32
Unreliability Measurements
Messages discarded due to exceeded # of backoffs
congestion
33
34
Limits of ADAPT
PerLab
Oscillations
ADAPT tends to oscillate between adjacent sets
Thus consuming more energy than necessary
Memory-less
ADAPT does not take advantage of a recurrent states
35
LEAP
PerLab
S. Brienza, D. De Guglielmo, C. Alippi, G. Anastasi, M. Roveri, A Learning-based Algorithm for Optimal MAC Parameters
Setting in IEEE 802.15.4 Wireless Sensor Networks, Proceedings of ACM International Symposium on Performance
Evaluation of Wireless Ad Hoc, Sensor, and Ubiquitous Networks (PE-WASUN 2013), Barcelona, Spain, November 3-7, 2013.
From IEEE 802.15.4 to IEEE 802.15.4e
36
LEAP Algorithm
PerLab
LEAP algorithm
Exploration Phase
An adaptive approach is used to set CSMA-CA parameters
Sensor node builds a Learning Table using the knowledge
learned during the Exploration phase.
Then it enters the Exploitation phase
Exploitation Phase
Sensor node checks the Learning Table to derive the optimal
setting, given the current operating conditions.
37
Performance Comparison
PerLab
PHY layer
Bit Rate
Sensor nodes
2.4 GHz
250 Kbps
from 1 to 50
10m
CS range
30m
RX range
15m
Traffic Generation
Message Size
Messages per Period
Message Loss Rate
Periodic
100 bytes
10
0-%
Coordinator always ON
38
Performance Measures
PerLab
Miss ratio
fraction of times when the packet delivery probability calculated over the current
Beacon Interval drops below the threshold required by the application
Average Latency
average time from when the packet transmission starts at the source node to
when the packet is correctly received by the sink
39
Requirements
Delivery Ratio: > 80%
Miss Ratio:
< 15%
Delivery ratio (%)
40
Latency (ms)
41
Summary
PerLab
At the cost of
Increased energy consumption
Increased latency
42
Unbounded latency
Due to contention-based CSMA/CA algorithm
No guaranteed bandwidth
Unless GTS is used
GTS only provides a limited service (7 slots)
43
Limits of 802.15.4/ZigBee
PerLab
Unbounded latency
Due to contention-based CSMA/CA algorithm
No guaranteed bandwidth
Unless GTS is used
GTS only provides a limited service (7 slots)
No built-in frequency hopping technique
Prone to failure due to interferences and multi-path
fading
44
Connectivity traces were collected by J. Ortiz and D. Culler in a UC Berkeley office space (traces are made available
at http://wsn.eecs.berkeley.edu/connectivity/). 46 IEEE802.15.4-compliant TelosB motes are deployed in a 50m by 50m
indoor environment, and are constantly listening for packets. One after the other, each mote transmits a burst of 100
packets, with a 20ms inter-packet time and a transmission power of 0dBm, on each of the 16 frequency channels which
span the 2.4-2.485GHz band.
From IEEE 802.15.4 to IEEE 802.15.4e
45
Channel Hopping
PerLab
Increased security
Against Selective Jamming attack
46
Key Question
What to do in critical
scenarios?
IEEE 802.15.4e
PerLab
48
Major Changes
PerLab
Comment:
Many ideas taken from previous industrial standards
WirelessHART and ISA 100.11.a
slotted access, shared and dedicated slots, multichannel communication, and frequency hopping.
49
50
51
52
53
Shared timeslots
devices assigned to a shared timeslot use the contentionbased access method.
54
Time-slotted access
Predictable and bounded latency
Guaranteed bandwidth
Multi-channel communication
More nodes can communicate at the same time (i.e., same slot) using
different channels (identified by different channel offsets)
increased network capacity
Channel hopping
mitigates the effects of interference and multipath fading
improves reliability
From IEEE 802.15.4 to IEEE 802.15.4e
55
Periodic Slotframe
PerLab
During a timeslot, one node typically sends a frame, and another sends back an acknowledgement if it
successfully receives that frame. If an acknowledgement is not received within the timeout period,
retransmission of the frame waits until the next assigned transmit timeslot (in any active slotframe) to that
address occurs.
56
Frequency Translation
PerLab
57
Frequency Translation
PerLab
channelOffset
ASN 1
3 4 5
6 7
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
15
1
0
slotOffset
Slotframe cycle
Channel
0 1
2 3
4 5 6
t
2
1
ch15
ch22
3
ch13
ch20
58
TSCH Link
PerLab
59
TSCH Scheduling
PerLab
Centralized Scheduling
a manager node is responsible for building and maintaining the
network schedule
Distributed Scheduling
No central entity
Each node decides autonomously
60
Centralized Scheduling
PerLab
Palattella, M. R., Accettura, N., Dohler, M., Grieco, L. A., & Boggia, G., Traffic Aware Scheduling
Algorithm for reliable low-power multi-hop IEEE 802.15. 4e networks. IEEE International Symposium
on Personal Indoor and Mobile Radio Communications (PIMRC 2012), pp. 327-332, 2012
From IEEE 802.15.4 to IEEE 802.15.4e
61
Distributed Scheduling
PerLab
62
Timeslot information
describes when to expect a frame transmission and when to send an
acknowledgment
Advertising Policy
PerLab
Some results
PerLab
Conclusions
PerLab
EB Advertisement protocol
for network formation
69
Questions