TinyCoAP: A Novel Constrained Application Protocol (CoAP) Implementation for Embedding RESTful Web Services in Wireless Sensor Networks Based on TinyOS

In this paper we present the design and implementation of the Constrained Application Protocol (CoAP) for TinyOS, which we refer to as TinyCoAP. CoAP seeks to apply the same application transfer paradigm and basic features of HTTP to constrained networks, while maintaining a simple design and low overhead. The design constraints of Wireless Sensor Networks (WSNs) require special attention in the design process of the CoAP implementation. We argue that better performance and minimal resource consumption can be achieved developing a native library for the operating system embedded in the network. TinyOS already includes in its distribution an implementation of CoAP called CoapBlip. However, this is based on a library not originally designed to meet the requirements of TinyOS. We demonstrate the effectiveness of our approach by a comprehensive performance evaluation. In particular, we test and evaluate TinyCoAP and CoapBlip in a real scenario, as well as solutions based on HTTP. The evaluation is performed in terms of latency, memory occupation, and energy consumption. Furthermore, we evaluate the reliability of each solution by measuring the goodput obtained in a channel affected by Rayleigh fading. We also include a study on the effects that high workloads have on a server.

[1]  Zach Shelby,et al.  CoRE Link Format , 2010 .

[2]  Adam Dunkels,et al.  A Low-Power CoAP for Contiki , 2011, 2011 IEEE Eighth International Conference on Mobile Ad-Hoc and Sensor Systems.

[3]  S. Shivashankar,et al.  A REST based design for Web of Things in smart environments , 2012, 2012 2nd IEEE International Conference on Parallel, Distributed and Grid Computing.

[4]  Ian Douglas Agranat Engineering Web Technologies for Embedded Applications , 1998, IEEE Internet Comput..

[5]  David E. Culler,et al.  The nesC language: A holistic approach to networked embedded systems , 2003, PLDI.

[6]  Gilman Tolle Embedded Binary HTTP (EBHTTP) , 2010 .

[7]  Brian Frank Chopan - Compressed HTTP Over PANs , 2009 .

[8]  K. Kuladinithi,et al.  Implementation of CoAP and its Application in Transport Logistics , 2011 .

[9]  Kris Steenhaut,et al.  Evaluation of constrained application protocol for wireless sensor networks , 2011, 2011 18th IEEE Workshop on Local & Metropolitan Area Networks (LANMAN).

[10]  Matthias Kovatsch,et al.  Industry adoption of the Internet of Things: A constrained application protocol survey , 2012, Proceedings of 2012 IEEE 17th International Conference on Emerging Technologies & Factory Automation (ETFA 2012).

[11]  I. Klimchynski Extensible embedded web server architecture for Internet-based data acquisition and control , 2006, IEEE Sensors Journal.

[12]  Antoine Van de Capelle,et al.  Performance analysis of unslotted CSMA/CA in wireless networks , 2010, Telecommun. Syst..

[13]  Dirk Timmermann,et al.  Implementing powerful Web Services for highly resource-constrained devices , 2011, 2011 IEEE International Conference on Pervasive Computing and Communications Workshops (PERCOM Workshops).

[14]  Philip Levis,et al.  TinyOS Programming: Introduction , 2009 .

[15]  Michele Zorzi,et al.  Web Services for the Internet of Things through CoAP and EXI , 2011, 2011 IEEE International Conference on Communications Workshops (ICC).

[16]  Arjan Durresi,et al.  Evaluating the Impact of Signal to Noise Ratio on IEEE 802.15.4 PHY-Level Packet Loss Rate , 2010, 2010 13th International Conference on Network-Based Information Systems.

[17]  Adam Dunkels,et al.  Leveraging IP for Sensor Network Deployment , 2011 .

[18]  T. Luckenbach,et al.  TinyREST – a Protocol for Integrating Sensor Networks into the Internet , 2005 .

[19]  Pascal Thubert,et al.  Compression Format for IPv6 Datagrams over IEEE 802.15.4-Based Networks , 2011, RFC.

[20]  Adam Dunkels,et al.  Full TCP/IP for 8-bit architectures , 2003, MobiSys '03.

[21]  Feng Zhao,et al.  Tiny web services: design and implementation of interoperable and evolvable sensor networks , 2008, SenSys '08.

[22]  Zach Shelby,et al.  Embedded web services , 2010, IEEE Wireless Communications.

[23]  Sugoog Shon Protocol Implementations for Web Based Control Systems , 2005 .

[24]  Jian-Jin Li,et al.  6LoWPAN Stacks: A Survey , 2011, 2011 7th International Conference on Wireless Communications, Networking and Mobile Computing.

[25]  Carsten Bormann,et al.  Observing Resources in CoAP , 2010 .

[26]  Jean Jacques Moreau,et al.  SOAP Version 1. 2 Part 1: Messaging Framework , 2003 .

[27]  K. Shadan,et al.  Available online: , 2012 .

[28]  David E. Culler,et al.  Extending IP to Low-Power, Wireless Personal Area Networks , 2008, IEEE Internet Computing.

[29]  Jürgen Schönwälder,et al.  TinyOS Motes on the Internet: IPv6 over 802.15.4 (6lowpan) , 2008, Prax. Inf.verarb. Kommun..

[30]  Carsten Bormann,et al.  The Constrained Application Protocol (CoAP) , 2014, RFC.

[31]  Simon Mayer,et al.  Moving Application Logic from the Firmware to the Cloud: Towards the Thin Server Architecture for the Internet of Things , 2012, 2012 Sixth International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing.

[32]  Gilles Grimaud,et al.  Smews: Smart and Mobile Embedded Web Server , 2009, 2009 International Conference on Complex, Intelligent and Software Intensive Systems.

[33]  Vlad Stirbu,et al.  Towards a RESTful Plug and Play Experience in the Web of Things , 2008, 2008 IEEE International Conference on Semantic Computing.

[34]  Hai Zhao,et al.  An embedded Web server for equipment , 2004, 7th International Symposium on Parallel Architectures, Algorithms and Networks, 2004. Proceedings..

[35]  Philip Levis,et al.  The nesC language: a holistic approach to networked embedded systems , 2003, SIGP.

[36]  Siobhán Clarke,et al.  Web services on embedded systems - a performance study , 2010, 2010 8th IEEE International Conference on Pervasive Computing and Communications Workshops (PERCOM Workshops).

[37]  李幼升,et al.  Ph , 1989 .

[38]  Thomas Pötsch,et al.  Performance Evaluation of CoAP Using RPL and LPL in TinyOS , 2012, 2012 5th International Conference on New Technologies, Mobility and Security (NTMS).

[39]  Matt Welsh,et al.  Integrating wireless sensor networks with the grid , 2004, IEEE Internet Computing.

[40]  David E. Culler,et al.  sMAP: a simple measurement and actuation profile for physical information , 2010, SenSys '10.

[41]  Roy Fielding,et al.  Architectural Styles and the Design of Network-based Software Architectures"; Doctoral dissertation , 2000 .

[42]  David E. Culler,et al.  TinyOS: An Operating System for Sensor Networks , 2005, Ambient Intelligence.