全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...

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

DOI: 10.3390/jsan2020288

Keywords: CoAP, REST, WSNs, 6LoWPAN, HTTP, TinyOS

Full-Text   Cite this paper   Add to My Lib

Abstract:

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.

References

[1]  Hui, J.W.; Culler, D.E. Extending IP to low power, wireless personal area networks. IEEE Internet Comput. 2008, 12, 37–45.
[2]  IEEE, Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (LR-WPANs). IEEE Standard 802.15.4-2006. Part 15.4. IEEE Computer Society, Los Alamitos, CA, USA, 2006.
[3]  RFC 6282. Compression Format for IPv6 Datagrams over IEEE 802.15.4-Based Networks. Available online: http://tools.ietf.org/html/rfc6282 (accessed on 11 March 2013).
[4]  Stirbu, V. Towards a RESTful Plug and Play Experience in the Web of Things. In Proceedings of IEEE International Conference on Semantic Computing, Santa Clara, CA, USA, 4–7 August 2008; pp. 512–517.
[5]  Luckenbach, T.; Gober, P.; Arbanowski, S. TinyREST: A Protocol for Integrating Sensor Networks into the Internet. In Proceedings of the 1st Workshop on Real-World Wireless Sensor Networks (REALWSN), Stockolm, Sweden, 20–21 June 2005.
[6]  Fielding, R.T. Architectural Styles and the Design of Network-Based Software Architectures. Ph.D. Dissertation, University of California, Irvine, CA, USA, 2000.
[7]  Gudging, M.; Hadley, M.; Mendelsohn, N.; Moreau, J.; Nielsen, H.F.; Karmarkar, A.; Lafon, Y. SOAP Version 1.2 Part 1: Messaging Framework (Second Edition). World Wide Web Consortium (W3C) Recommendation. April, 2007.
[8]  Lerche, C.; Laum, N.; Moritz, G.; Zeeb, E.; Golatowski, F.; Timmermann, D. Implementing Powerful Web Services for Highly Resource-Constrained Devices. In Proceedings of 7th IEEE International Conference on Pervasive Computing and Communications Workshops (PERCOM Workshops), Seattle, WA, USA, 21–25 March 2011; pp. 332–335.
[9]  Groba, H.; Clarke, S. Web Services on Embedded Systems: A Performance Study. In Proceedings of 8th IEEE International Conference on Pervasive Computing and Communications Workshops (PERCOM Workshops), Mannheim, Germany, 29 March—2 April 2010; pp. 726–731.
[10]  CoRE IETF Work Group. Available online: http://datatracker.ietf.org/wg/core/charter/ (accessed on 11 March 2013).
[11]  Shelby, Z.; Hartke, K.; Bormann, C.; Frank, B. Constrained Application Protocol (CoAP), draft-ietf-core-coap-13. Available online: https://datatracker.ietf.org/doc/draft-ietf-core-coap/ (accessed on 11 March 2013).
[12]  Kovatsch, M.; Mayer, S.; Ostermaier, B. Moving Application Logic from the Firmware to the Cloud: Towards the Thin Server Architecture for the Internet of Things. In Proceedings of the 6th International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing (IMIS 2012), Palermo, Italy, 4–6 July 2012.
[13]  JCoAP. Available online: http://code.google.com/p/jcoap/ (accessed on 11 March 2013).
[14]  CoAPy. Available online: http://coapy.sourceforge.net/ (accessed on 11 March 2013).
[15]  Kuladinithi, K.; Bergmann, O.; P?tsch, T.; Beckera, M.; G?rg, C. Implementation of CoAP and its Application in Transport Logistics. In Proceedings of Extending the Internet to Low power and Lossy Networks (IP+SN 2011), Chicago, IL, USA, 11 April 2011.
[16]  Kovatsch, M.; Duquennoy, S.; Dunkels, A. A Low-Power CoAP for Contiki. In Proceedings of Eighth IEEE International Conference on Mobile Ad-Hoc and Sensor Systems, Valencia, Spain, 17–22 October 2011; pp. 855–860.
[17]  Castellani, A.P.; Gheda, M.; Bui, N.; Rossi, M.; Zorzi, M. Web Services for the Internet of Things through CoAP and EXI. In Proceedings of IEEE International Conference on Communications Workshops (ICC), Kyoto, Japan, 5–9 June 2011; pp. 1–6.
[18]  Silva, R.; Sá Silva, J.; Boavida, F. Evaluating 6LoWPAN Implementations in WSNs. In Proceedings of the 9th Conference on Computer Networks, Oeiras, Portugal, 15–16 October 2009.
[19]  Yibo, C.; Hou, K.; Zhou, H.; Shi, H.; Liu, X.; Diao, X.; Ding, H.; Li, J.; De Vaulx, C. 6LoWPAN Stacks: A Survey. In Proceedings of 7th International Conference on Wireless CommunicationsNetworking and Mobile Computing (WiCOM) 2011, Wuhan, China, 23–25 September 2011; pp. 1–4.
[20]  Colitti, W.; Steenhaut, K.; De Caro, N. Integrating Wireless Sensor Networks with the Web. In Proceedings of Extending the Internet to Low power and Lossy Networks (IP+SN 2011), Chicago, IL, USA, 11 April 2011.
[21]  Duquennoy, S.; Wirstom, N.; Tsiftes, N.; Dunkels, A. Leveraging IP for Sensor Network Deployment. In Proceedings of Extending the Internet to Low power and Lossy Networks (IP+SN 2011), Chicago, IL, USA, 11 April 2011.
[22]  Colitti, W.; Steenhaut, K.; De Caro, N.; Buta, B.; Dobrota, V. Evaluation of Constrained Application Protocol for Wireless Sensor Networks. In Proceedings of 18th IEEE International Workshop of Local and Metropolitan Area Networks (LanMan), Chapel Hill, NC, USA, 13–14 October 2011.
[23]  Duquennoy, S.; Grimaud, G.; Vandewalle, J.-J. Smews: Smart and Mobile Embedded Web Server. In Proceedings of International Conference on ComplexIntelligent and Software Intensive Systems CISIS’09, Fukuoka, Japan, 16–19 March 2009; pp. 571–576.
[24]  Sugoog, S. Protocol implementations for web based control systems. Int. J. Control Autom. Syst. 2005, 3, 122–129.
[25]  Dunkels, A. Full TCP/IP for 8-Bit Architectures. In Proceedings of the 1st International Conference on Mobile SystemsApplications and Services MobiSys’03, San Francisco, CA, USA, 5–8 May 2003; pp. 85–98.
[26]  Lin, T.; Zhao, H; Wang, J.; Han, G.; Wang, J. An Embedded Web Server for Equipment. In Proceedings of 7th International Symposium on Parallel Architectures, Algorithms and Networks, Hong Kong, China, 10–12 May 2004; pp. 345–350.
[27]  Agranat, I.D. Engineering Web technologies for embedded applications. IEEE Int. Comput. 1998, 2, 40–45, doi:10.1109/4236.683798.
[28]  Klimchynski, I. Extensible embedded web server architecture for Internet-based data acquisition and control. IEEE Sens. J. 2006, 6, 804–811, doi:10.1109/JSEN.2006.874449.
[29]  Priyantha, N.B.; Kansal, A.; Goraczko, M.; Zhao, F. Tiny Web Services: Design and Implementation of Interoperable and Evolvable Sensor Networks. In Proceedings of the 6th ACM Conference on Embedded Network Sensor Systems, SenSys’08, Rayleigh, NC, USA, 4–7 November 2008; pp. 253–266.
[30]  Shelby, Z. Embedded web services. IEEE Wirel. Commun. 2010, 17, 52–57, doi:10.1109/MWC.2010.5675778.
[31]  Tolle, G. Embedded Binary HTTP (EBHTTP). Available online: http://tools.ietf.org/id/draft-tolle-core-ebhttp-00.txt (accessed on 11 March 2013).
[32]  Dawson-Haggerty, S.; Jiang, X.; Tolle, G.; Ortiz, J.; Culler, D. sMAP—a Simple Measurement and Actuation Profile for Physical Information. In Proceedings of the 8th ACM Conference on Embedded Networked Sensor Systems (SenSys’10), Zurich, Switzerland, 3–5 November 2010.
[33]  Frank, B. Chopan: Compressed HTTP over PANs. Available online: http://tools.ietf.org/html/draft-frank-6lowapp-chopan-00 (accessed on 11 March 2013).
[34]  Ludovici, A.; Calveras, A. Integration of Wireless Sensor Networks in IP-based networks through Web Services. In Proceedings of 4th Symposium of Ubiquitous Computing and Ambient Intelligence, Valencia, Spain, 7–10 September 2010.
[35]  Chander, R.P.V.; Elias, S.; Shivashankar, S.; Manoj, P. A REST based Design for Web of Things in Smart Environments. In Proceedings of 2nd IEEE International Conference on Parallel Distributed and Grid Computing (PDGC), Waknaghat, Solan, Himachal Pradesh, India, 6–8 December 2012; pp. 337–342.
[36]  Lerche, C.; Hartke, K.; Kovatsch, M. Industry Adoption of the Internet of Things: A Constrained Application Protocol Survey. In Proceedings of the 7th International Workshop on Service Oriented Architectures in Converging Networked Environments (SOCNE 2012), Kraków, Poland, 17–21 September 2012.
[37]  Harvan, M.; Schoenwaelder, J. TinyOS Motes on the Internet: IPv6 over 802.15.4 (6lowpan). Praxis der Informationsverarbeitung und Kommunikation (PIK) 2008, 31, 244–251.
[38]  Potsch, T.; Kuladinithi, K.; Becker, M.; Trenkamp, P.; Goerg, C. Performance Evaluation of CoAP Using RPL and LPL in TinyOS. In Proceedings of 5th International Conference on New Technologies, Mobility and Security (NTMS), Istanbul, Turkey, 7–10 May 2012.
[39]  Levis, P.; Madden, S.; Polastre, J.; Szewczyk, R.; Woo, A.; Gay, D.; Hill, J.; Welsh, M.; Brewer, E.; Culler, D. TinyOS: An Operating System for Sensor Networks. In Ambient Intelligence; Springer: Berlin, Germany, 2005; pp. 115–148.
[40]  Gay, D.; Levis, P.; Von Behren, R.; Welsh, M.; Brewer, E.; Culler, D. The nesC language: A holistic approach to networked embedded systems. ACM SIGPLAN Not. 2003, 38, 1–11.
[41]  Shelby, Z. CoRE Link Format. Available online: http://tools.ietf.org/html/draft-ietf-core-link-format-13 (accessed on 11 March 2013).
[42]  Hartke, K. Observing Resources in CoAP. Available online: http://tools.ietf.org/html/draft-ietf-core-observe-05 (accessed on 11 March 2013).
[43]  Levis, P. TinyOS Programming. Available online: http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf (accessed on 11 March 2013).
[44]  Blip. Available online: http://smote.cs.berkeley.edu:8000/tracenv/wiki/blip (accessed on 11 March 2013).
[45]  Crossbow Technology Inc., TelosB Datasheet. Available online: http://www.willow.co.uk/TelosB_Datasheet.pdf (accessed on 11 March 2013).
[46]  RFC6298, Computing TCP’s Retransmission Timer. Available online: http://tools.ietf.org/html/rfc6298 (accessed on 11 March 2013).
[47]  Goyal, M.; Prakash, S.; Xie, W.; Bashir, Y.; Hosseini, H.; Durresi, A. Evaluating the Impact of Signal to Noise Ratio on IEEE 802.15.4 PHY-Level Packet Loss Rate. In Proceedings of 13th International Conference on Network-Based Information Systems, Takayama, Japan, 14–16 September 2010.
[48]  Lauwens, B.; Scheers, B.; Van de Capelle, A. Performance analysis of Unslotted CSMA/CA in wireless networks. Telecommun. Syst. 2010, 44, 109–123, doi:10.1007/s11235-009-9220-7.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133