




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Outubro de 2008
ii
iii
First of all I would like to express my gratitude to my supervisor, Mário Alves, for his outstanding supervision, counsel, advice, support, inspiration, patience, and for always being available during the course of this work. I would also like to thank my co-supervisor, Anis Koubâa, for his interest in my work and guidance throught the development process of this Thesis.
I want to thank all the people in the CISTER/IPP-HURRAY! Research Unit, at the School of Engineering of the Polytechnic Institute of Porto for their support and enthusiasm that makes working in IPP-HURRAY! very stimulating and challenging. It is impressive how so few can do so much.
A special thanks goes also to Petr Jurcik, an exceptional researcher, and to the guys I shared the Hands-on lab with for so long - André Cunha, Bruno Brito, Emmanuel Lomba, and Ricardo Gomes - for their support and for the great moments we spent together.
I would also like to thank my parents for the support they provided me through my entire life and to my friends for their encouragement.
Last but not least, a very special thanks to Rute, without whose love, encouragement and support, I would not have finished this Thesis.
v
Recent advancements in information and communication technologies are paving the way for new paradigms in embedded computing systems. This, allied with an increasing eagerness for monitoring and controlling everything, everywhere, is pushing forward the design of new Wireless Sensor Network (WSN) infrastructures that will tightly interact with the physical environment, in a ubiquitous and pervasive fashion. Such cyber-physical systems require a rethinking of the usual computing and networking concepts, and given that the computing entities closely interact with their environment, timeliness is of increasing importance. This Thesis addresses the use of standard protocols, particularly IEEE 802.15.4 and ZigBee, combined with commercial technologies as a baseline to enable WSN infrastructures capable of supporting the Quality of Service (QoS) requirements (specially timeliness and system lifetime) that future large-scale networked embedded systems will impose. With this purpose, in this Thesis we start by evaluating the network performance of the IEEE 802.15.4 Slotted CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) mechanism for different parameter settings, both through simulation and through an experimental testbed. In order to improve the performance of these networks (e.g. throughput, energy- efficiency, message delay) against the hidden-terminal problem, a mechanism to mitigate it was implemented and experimentally validated. The effectiveness of this mechanism was also demonstrated in a real application scenario, featuring a target tracking application. A methodology for modelling cluster-tree WSNs and computing the worst-case end- to-end delays, buffering and bandwidth requirements was tested and validated experimentally. This work is of paramount importance to understand the behaviour of WSNs under worst-case conditions and also to make the appropriate network settings. Our experimental work enabled us to identify a number of technological constrains, namely related to hardware/software and to the Open-ZB implementation in TinyOS. In this line, a new implementation effort was triggered to port the Open-ZB IEEE 802.15.4/ZigBee protocol stack to the ERIKA real-time operating system. This implementation was validated experimentally and its behaviour compared with the TinyOS–based implementation.
Keywords: Wireless Sensor Networks; Cluster-Tree WSN; Real-Time Communications; Quality of Service; IEEE 802.15.4; ZigBee; TinyOS; ERIKA.
vi
viii
ix
Acknowledgements ............................................................................................................ iii Abstract ............................................................................................................................... v Resumo ............................................................................................................................. vii Table of Contents .............................................................................................................. ix List of Figures ................................................................................................................... xi List of Tables .................................................................................................................... xv List of Acronyms ............................................................................................................ xvii Chapter 1 - Overview ...................................................................................................... 19 1.1 Introduction .............................................................................................................. 19 1.2 Research Context ..................................................................................................... 21
1.3 Research Objectives ................................................................................................. 21 1.4 Research Contributions ............................................................................................ 21
1.5 Structure of this Thesis ............................................................................................. 22
Chapter 2 - Overview of IEEE 802.15.4 and ZigBee .................................................... 23 2.1 General Aspects ....................................................................................................... 23 2.2 ZigBee Network Layer ............................................................................................. 27
2.3 IEEE 802.15.4 Protocol Standard ............................................................................ 33
Chapter 3 - Technological Platforms and Tools ........................................................... 45 3.1 Mote Platforms – The MICAz and TelosB .............................................................. 45 3.2 The FLEX Board ...................................................................................................... 47
3.3 Programming Interfaces ........................................................................................... 47 3.4 IEEE 802.15.4/ZigBee Protocol Analysers .............................................................. 48
3.5 TinyOS and ERIKA Operating Systems .................................................................. 51 3.6 Open-ZB Toolset...................................................................................................... 54
Chapter 4 - On the Performance Evaluation of the IEEE 802.15.4 Slotted CSMA/CA Mechanism ................................................................................................... 61 4.1 Introduction .............................................................................................................. 61 4.2 Experimental and Simulation Testbeds .................................................................... 62
4.3 Performance Analysis .............................................................................................. 64 4.4 Concluding remarks ................................................................................................. 68
Chapter 5 - On a Hidden-Node Avoidance Mechanism .............................................. 69 5.1 Introduction .............................................................................................................. 69
5.2 The H-NAMe mechanism ........................................................................................ 71
xi
xiv
xvii
AODV Ad hoc On Demand Distance Vector APL Application Layer APS Application Support Sublayer BE Backoff Exponent BI Beacon Interval BO Beacon Order CAP Contention Access Period CCA Clear Channel Assessment CFP Contention Free Period CID Cluster Identifier CLH Cluster Head COTS Commercial-off-the-shelf CSMA/CA Carrier Sense Multiple Access/Collision Avoidance CW Contention Window (length) DSSS Direct Sequence Spread Spectrum ED Energy Detection FCS Frame Check Sequence FFD Full Function Device GTS Guaranteed Time Slot IFS Interframe Spacing LAN Local Area Network LIFS Long Interframe Spacing LQI link quality indication LR-WPAN Low Rate-Wireless Personal Area Network MAC Medium Access Control NB Number of Backoff (periods) NWK ZigBee Network layer NWK Network Layer OSI Open Systems Interconnection PAN Personal Area Network PHY Physical Layer PD-SAP PHY data service access point PLME Physical Layer Management Entity PLME-SAP Physical Layer Management Entity-Service Access Point QPSK Quadrature Phase Shift Keying RF Radio Frequency RFD Reduced Function Device RSSI Received Signal Strength Indication RX Receive or Receiver SAP Service Access Point SD Superframe Duration SFD Start-of-Frame Delimiter SIFS Short Interframe Spacing
xviii
SO Superframe Order TDBS Time Division Beacon Scheduling TRX Transceiver TX Transmit or Transmitter WLAN Wireless Local Area Network WPAN Wireless Personal Area Network WSN Wireless Sensor Network ZC ZigBee Coordinator ZDO ZigBee Device Objects ZED ZigBee End Device ZG ZigBee Gateway ZR ZigBee Router