SlideShare una empresa de Scribd logo
1 de 23
Descargar para leer sin conexión
Web Services for the Internet of
Things
T-106.5800 Seminar on Software Techniques (3 cr)
Presentation

Markku Laine, M.Sc. (Tech.)
markku.laine@aalto.fi

                               November 3, 2011
Presentation Outline

•    Internet of Things
•    CoAP
•    CoAP protocol stack
•    Web Services for the Internet of Things
•    Conclusion




                                    2
Internet of Things




           3
What is Internet of Things?
                      (e.g., sensors)




                 (e.g., personal computers
                     and smart phones)




                      (e.g., routers
                      and servers)




                                             Source: Sensinode


                                         4
Gartner’s Hype Cycle for Emerging
Technologies, 2011




                                    Source: Gartner


                      5
Challenges: How to…

•  …connect physical environments/smart objects as part
   of the Internet?
•  …cope with trillions of smart objects?
•  …handle the problems with smart objects/small devices
   as they may have difficulties in dealing with protocols
   and technologies designed for full-powered computers?
•  …integrate devices in constrained networks with Web
   applications?




                                 6
Constrained Application Protocol (CoAP)




                      7
Google’s Hype Cycle for CoAP




                                    CoAP v.00




                               Source: Google Insights for Search


                     8
Implementations

•  libcoap (C), open source
   –  http://libcoap.sourceforge.net/
•  OpenCOAP (C), open source
   –  https://code.google.com/p/opencoap/
•  CoAPy (Python), open source, in progress
   –  http://coapy.sourceforge.net/
•  Copper (Firefox addon)
   –  https://addons.mozilla.org/en-US/firefox/addon/copper-270430/
•  Sensinode, The Contiki OS, TinyOS, etc.


                                        9
CoAP Protocol Stack




            10
Comparison of HTTP and CoAP Protocol
Stacks

       XML           Payload               EXI

      HTTP        Application (L7)         CoAP

       TCP        Transport (L4)           UDP

        IP         Network (L3)          6LoWPAN

   Ethernet MAC   Data Link (L2)     IEEE 802.15.4 MAC

   Ethernet PHY    Physical (L1)     IEEE 802.15.4 PHY



                               11
Physical & Data Link Layers (L1 & L2):
Ethernet à IEEE 802.15.4 (PHY & MAC)
•  Goal: Get rid of wires
•  Methods: Wireless
•  Solution: IEEE 802.15.4
   –  IEEE wireless standard (IEEE 802.15.4d), April 2009,
      http://standards.ieee.org/getieee802/download/
      802.15.4d-2009.pdf
   –  Specifies the physical layer and media access control for low-
      rate wireless personal networks (LR-WPANs)
   –  Low-power, low-bandwidth communication technology
   –  Basis for extensions, such as ZigBee



                                        12
Network Layer (L3):
IP à 6LoWPAN
•  Goal: Integrate Wireless Sensor Networks (WSNs) and
   smart objects with the Internet
•  Method: Optional protocol
•  Solution: IPv6 over Low-Power Wireless Personal Area
   Networks (6LoWPAN)
   –  IETF Informational (RFC 4919), August 2007,
      http://tools.ietf.org/html/rfc4919
   –  IETF Proposed Standard (RFC 4944), September 2007,
      http://tools.ietf.org/html/rfc4944
   –  Brings IP to the smallest of devices, such as sensors
   –  Encapsulation and header compression mechanisms

                                      13
Transport Layer (L4):
TCP à UDP
•  Goal: Reduce the overhead for short-lived transactions
•  Method: Optional protocol
•  Solution: User Datagram Protocol (UDP)
   –  IETF Standard (RFC 768), August 1980,
      http://tools.ietf.org/html/rfc768
   –  Fast but unreliable transport protocol
   –  Optimal for exchanging very small data units
   –  Supports multicasting
   –  Used with the IP network layer protocol




                                       14
Application Layer (L7):
HTTP à CoAP
•  Goal: Provide resource constrained devices with
   RESTful web service functionalities
•  Methods: Optional protocol
•  Solution: Constrained Application Protocol (CoAP)
   –  IETF Internet Draft, November 2011,
      https://tools.ietf.org/html/draft-ietf-core-coap-08
   –  REST-based architecture
   –  Optimized for resource constrained networks typical of IoT and
      M2M applications
   –  Takes into account the low processing power and energy
      consumption constraints of small embedded devices, such as
      sensors


                                       15
Payload:
XML à EXI
•  Goal: Reduce the overhead of XML
•  Methods: Compression and encoding
•  Solution: Efficient XML Interchange (EXI)
   –  W3C Recommendation (EXI Format 1.0), March 2011,
      http://www.w3.org/TR/exi/
   –  Very compact representation of the XML Information Set
   –  Optimizes the performance and utilization of computational
      resources
   –  Extremely efficient schema-informed mode




                                       16
Web Services for the Internet of Things




                      17
About Web Services

•  Today’s Web Services are not suitable to be used with
   the Internet of Things
   –  TCP, HTTP, XML (SOAP)
•  What is needed is
   –    RESTful architecture for good Web integration
   –    Native push model with subscribe and notify
   –    UDP-based transport with multicast support
   –    Overhead suitable for constrained networks
   –    Complexity suitable for constrained nodes
   –    Build-in Web discovery and security
•  CoAP comes to the rescue!

                                         18
CoAP and Web Services




                         Source: Sensinode


                    19
Conclusion




       20
Conclusion

•  Traditional Web protocols and technologies are not
   suitable for the Internet of Things
•  The HTTP protocol stack needs to be optimized from the
   bottom to the top
•  CoAP is the key technology in accessing constrained
   environments/nodes from Web applications




                                21
References

•  Colitti, W., Steenhaut, K., and De Caro, N. Integrating
   Wireless Sensor Networks with the Web. 2011.
•  Shelby, Z. Embedded Web Services. In Journal of IEEE
   Wireless Communications, 17(6):52-57, 2010.
•  Castellani, A. et al. Web Services for the Internet of
   Things through CoAP and EXI. In Communications
   Workshops (ICC). IEEE, 2011, 1-6.
•  Castellani, A. et al. Best Practices for HTTP-CoAP
   Mapping Implementation. IETF Internet Draft, 2011.


                                 22
Thank You!




             Questions? Comments?
              markku.laine@aalto.fi




                           23

Más contenido relacionado

La actualidad más candente

Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
sumitjain2013
 

La actualidad más candente (20)

Network ppt
Network pptNetwork ppt
Network ppt
 
Mobile computing unit 5
Mobile computing  unit 5Mobile computing  unit 5
Mobile computing unit 5
 
operating system lecture notes
operating system lecture notesoperating system lecture notes
operating system lecture notes
 
Network operating systems
Network operating systems Network operating systems
Network operating systems
 
Load balancing
Load balancingLoad balancing
Load balancing
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
 
Local Area Network – Wired LAN
Local Area Network – Wired LANLocal Area Network – Wired LAN
Local Area Network – Wired LAN
 
States, state graphs and transition testing
States, state graphs and transition testingStates, state graphs and transition testing
States, state graphs and transition testing
 
Kernel (OS)
Kernel (OS)Kernel (OS)
Kernel (OS)
 
Chapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologiesChapter 5 IoT Design methodologies
Chapter 5 IoT Design methodologies
 
Coda file system
Coda file systemCoda file system
Coda file system
 
Fault tolerance in distributed systems
Fault tolerance in distributed systemsFault tolerance in distributed systems
Fault tolerance in distributed systems
 
Evolution of os
Evolution of osEvolution of os
Evolution of os
 
Congestion control
Congestion controlCongestion control
Congestion control
 
key distribution in network security
key distribution in network securitykey distribution in network security
key distribution in network security
 
Basics of computer networks
Basics of computer networksBasics of computer networks
Basics of computer networks
 
Kernel I/O subsystem
Kernel I/O subsystemKernel I/O subsystem
Kernel I/O subsystem
 
Introduction to Distributed System
Introduction to Distributed SystemIntroduction to Distributed System
Introduction to Distributed System
 
Advance Networking Course Details PPT
Advance Networking Course Details PPTAdvance Networking Course Details PPT
Advance Networking Course Details PPT
 
Types of Networks,Network Design Issues,Design Tools
Types of Networks,Network Design Issues,Design ToolsTypes of Networks,Network Design Issues,Design Tools
Types of Networks,Network Design Issues,Design Tools
 

Destacado

Webservices testing using SoapUI
Webservices testing using SoapUIWebservices testing using SoapUI
Webservices testing using SoapUI
Testing World
 
Национальная Программа "Лучшие социальные проекты России"
Национальная Программа "Лучшие социальные проекты России"Национальная Программа "Лучшие социальные проекты России"
Национальная Программа "Лучшие социальные проекты России"
AlexandraObydenova
 
Angular 2 Crash Course with TypeScript
Angular 2 Crash Course with TypeScriptAngular 2 Crash Course with TypeScript
Angular 2 Crash Course with TypeScript
ayman diab
 
China banking industry market research and prospect forecast report
China banking industry market research and prospect forecast reportChina banking industry market research and prospect forecast report
China banking industry market research and prospect forecast report
Qianzhan Intelligence
 
Ostern in griechenland von panagiotis sagali und raphael zarko
Ostern in griechenland von panagiotis sagali und raphael zarkoOstern in griechenland von panagiotis sagali und raphael zarko
Ostern in griechenland von panagiotis sagali und raphael zarko
Eine kleine Deutschkiste
 
China dredging engineering industry development prospect and investment strat...
China dredging engineering industry development prospect and investment strat...China dredging engineering industry development prospect and investment strat...
China dredging engineering industry development prospect and investment strat...
Qianzhan Intelligence
 
อุปกรณ์สำรองข้อมูล
อุปกรณ์สำรองข้อมูลอุปกรณ์สำรองข้อมูล
อุปกรณ์สำรองข้อมูล
Yoshikuni Yuusuke
 
Project_Completion_12_December_2012
Project_Completion_12_December_2012Project_Completion_12_December_2012
Project_Completion_12_December_2012
Enric Vinyes
 

Destacado (17)

Towards Future Internet: Web 3.0, Internet of Services & Internet of Things
Towards Future Internet: Web 3.0, Internet of Services & Internet of ThingsTowards Future Internet: Web 3.0, Internet of Services & Internet of Things
Towards Future Internet: Web 3.0, Internet of Services & Internet of Things
 
Introducción a Internet de las Cosas
Introducción a Internet de las CosasIntroducción a Internet de las Cosas
Introducción a Internet de las Cosas
 
Web services - A Practical Approach
Web services - A Practical ApproachWeb services - A Practical Approach
Web services - A Practical Approach
 
Webservices testing using SoapUI
Webservices testing using SoapUIWebservices testing using SoapUI
Webservices testing using SoapUI
 
China engineering consultation industry development prospects and investment ...
China engineering consultation industry development prospects and investment ...China engineering consultation industry development prospects and investment ...
China engineering consultation industry development prospects and investment ...
 
Национальная Программа "Лучшие социальные проекты России"
Национальная Программа "Лучшие социальные проекты России"Национальная Программа "Лучшие социальные проекты России"
Национальная Программа "Лучшие социальные проекты России"
 
Angular 2 Crash Course with TypeScript
Angular 2 Crash Course with TypeScriptAngular 2 Crash Course with TypeScript
Angular 2 Crash Course with TypeScript
 
China banking industry market research and prospect forecast report
China banking industry market research and prospect forecast reportChina banking industry market research and prospect forecast report
China banking industry market research and prospect forecast report
 
China cardiovascular system drugs industry market demand forecast and investm...
China cardiovascular system drugs industry market demand forecast and investm...China cardiovascular system drugs industry market demand forecast and investm...
China cardiovascular system drugs industry market demand forecast and investm...
 
IoTest project: Semantic interoperability
IoTest project: Semantic interoperabilityIoTest project: Semantic interoperability
IoTest project: Semantic interoperability
 
Ostern in griechenland von panagiotis sagali und raphael zarko
Ostern in griechenland von panagiotis sagali und raphael zarkoOstern in griechenland von panagiotis sagali und raphael zarko
Ostern in griechenland von panagiotis sagali und raphael zarko
 
China dredging engineering industry development prospect and investment strat...
China dredging engineering industry development prospect and investment strat...China dredging engineering industry development prospect and investment strat...
China dredging engineering industry development prospect and investment strat...
 
Hagan Lawrence Resume
Hagan Lawrence ResumeHagan Lawrence Resume
Hagan Lawrence Resume
 
China pharmaceutical excipients industry indepth research and investment stra...
China pharmaceutical excipients industry indepth research and investment stra...China pharmaceutical excipients industry indepth research and investment stra...
China pharmaceutical excipients industry indepth research and investment stra...
 
IJAZAH S1
IJAZAH S1IJAZAH S1
IJAZAH S1
 
อุปกรณ์สำรองข้อมูล
อุปกรณ์สำรองข้อมูลอุปกรณ์สำรองข้อมูล
อุปกรณ์สำรองข้อมูล
 
Project_Completion_12_December_2012
Project_Completion_12_December_2012Project_Completion_12_December_2012
Project_Completion_12_December_2012
 

Similar a Web Services for the Internet of Things

Internet-Of-Things-For-Smart-Cities
Internet-Of-Things-For-Smart-CitiesInternet-Of-Things-For-Smart-Cities
Internet-Of-Things-For-Smart-Cities
Sitakanta Mishra
 
Mphasis Digital POV - Emerging Open Standard Protocol stack for IoT
Mphasis Digital POV - Emerging Open Standard Protocol stack for IoTMphasis Digital POV - Emerging Open Standard Protocol stack for IoT
Mphasis Digital POV - Emerging Open Standard Protocol stack for IoT
Aniruddha Chakrabarti
 
ch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computingch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computing
ssuser06ea42
 
The Modern Telco Network: Defining The Telco Cloud
The Modern Telco Network: Defining The Telco CloudThe Modern Telco Network: Defining The Telco Cloud
The Modern Telco Network: Defining The Telco Cloud
Marco Rodrigues
 

Similar a Web Services for the Internet of Things (20)

From leading IoT Protocols to Python Dashboarding_final
From leading IoT Protocols to Python Dashboarding_finalFrom leading IoT Protocols to Python Dashboarding_final
From leading IoT Protocols to Python Dashboarding_final
 
1. RINA motivation - TF Workshop
1. RINA motivation - TF Workshop1. RINA motivation - TF Workshop
1. RINA motivation - TF Workshop
 
Internet-Of-Things-For-Smart-Cities
Internet-Of-Things-For-Smart-CitiesInternet-Of-Things-For-Smart-Cities
Internet-Of-Things-For-Smart-Cities
 
L6 6 lowpan
L6 6 lowpanL6 6 lowpan
L6 6 lowpan
 
IPv6 and IoT
IPv6 and IoTIPv6 and IoT
IPv6 and IoT
 
Web API Management meets the Internet of Things
Web API Management meets the Internet of ThingsWeb API Management meets the Internet of Things
Web API Management meets the Internet of Things
 
SDN and metrics from the SDOs
SDN and metrics from the SDOsSDN and metrics from the SDOs
SDN and metrics from the SDOs
 
Colt's SDN/NFV Vision
Colt's SDN/NFV VisionColt's SDN/NFV Vision
Colt's SDN/NFV Vision
 
Colt SDN Strategy - FIBRE Workshop 5 Nov 2013 Barcelona
Colt SDN Strategy - FIBRE Workshop 5 Nov 2013 BarcelonaColt SDN Strategy - FIBRE Workshop 5 Nov 2013 Barcelona
Colt SDN Strategy - FIBRE Workshop 5 Nov 2013 Barcelona
 
Mphasis Digital POV - Emerging Open Standard Protocol stack for IoT
Mphasis Digital POV - Emerging Open Standard Protocol stack for IoTMphasis Digital POV - Emerging Open Standard Protocol stack for IoT
Mphasis Digital POV - Emerging Open Standard Protocol stack for IoT
 
Dc ch02 : protocol architecture
Dc ch02 : protocol architectureDc ch02 : protocol architecture
Dc ch02 : protocol architecture
 
Rpl2018
Rpl2018Rpl2018
Rpl2018
 
ch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computingch5-Fog Networks and Cloud Computing
ch5-Fog Networks and Cloud Computing
 
Networking - TCP/IP stack introduction and IPv6
Networking - TCP/IP stack introduction and IPv6Networking - TCP/IP stack introduction and IPv6
Networking - TCP/IP stack introduction and IPv6
 
Internet Engineering Task Force
Internet Engineering Task ForceInternet Engineering Task Force
Internet Engineering Task Force
 
Io t standard_bis_arpanpal
Io t standard_bis_arpanpalIo t standard_bis_arpanpal
Io t standard_bis_arpanpal
 
The Modern Telco Network: Defining The Telco Cloud
The Modern Telco Network: Defining The Telco CloudThe Modern Telco Network: Defining The Telco Cloud
The Modern Telco Network: Defining The Telco Cloud
 
NetSim Webinar on IOT
NetSim Webinar on IOTNetSim Webinar on IOT
NetSim Webinar on IOT
 
Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network Intel IPSO/6LoWPAN solution for general wireless sensor network
Intel IPSO/6LoWPAN solution for general wireless sensor network
 
Ppt 11 - netopeer
Ppt   11 - netopeerPpt   11 - netopeer
Ppt 11 - netopeer
 

Más de Markku Laine

Responsive and Personalized Web Layouts with Integer Programming
Responsive and Personalized Web Layouts with Integer ProgrammingResponsive and Personalized Web Layouts with Integer Programming
Responsive and Personalized Web Layouts with Integer Programming
Markku Laine
 
Layout as a Service (LaaS): A Service Platform for Self-Optimizing Web Layouts
Layout as a Service (LaaS): A Service Platform for Self-Optimizing Web LayoutsLayout as a Service (LaaS): A Service Platform for Self-Optimizing Web Layouts
Layout as a Service (LaaS): A Service Platform for Self-Optimizing Web Layouts
Markku Laine
 

Más de Markku Laine (10)

Responsive and Personalized Web Layouts with Integer Programming
Responsive and Personalized Web Layouts with Integer ProgrammingResponsive and Personalized Web Layouts with Integer Programming
Responsive and Personalized Web Layouts with Integer Programming
 
Layout as a Service (LaaS): A Service Platform for Self-Optimizing Web Layouts
Layout as a Service (LaaS): A Service Platform for Self-Optimizing Web LayoutsLayout as a Service (LaaS): A Service Platform for Self-Optimizing Web Layouts
Layout as a Service (LaaS): A Service Platform for Self-Optimizing Web Layouts
 
Monitoring the Spreading of Infectious Diseases in Finland
Monitoring the Spreading of Infectious Diseases in FinlandMonitoring the Spreading of Infectious Diseases in Finland
Monitoring the Spreading of Infectious Diseases in Finland
 
XFormsDB: An XForms-Based Framework for Simplifying Web Application Development
XFormsDB: An XForms-Based Framework for Simplifying Web Application DevelopmentXFormsDB: An XForms-Based Framework for Simplifying Web Application Development
XFormsDB: An XForms-Based Framework for Simplifying Web Application Development
 
XIDE: Expanding End-User Web Development
XIDE: Expanding End-User Web DevelopmentXIDE: Expanding End-User Web Development
XIDE: Expanding End-User Web Development
 
Connecting XForms to Databases: An Extension to the XForms Markup Language
Connecting XForms to Databases: An Extension to the XForms Markup LanguageConnecting XForms to Databases: An Extension to the XForms Markup Language
Connecting XForms to Databases: An Extension to the XForms Markup Language
 
Editable Documents on the Web
Editable Documents on the WebEditable Documents on the Web
Editable Documents on the Web
 
Local Storage for Web Applications
Local Storage for Web ApplicationsLocal Storage for Web Applications
Local Storage for Web Applications
 
Performance Evaluation of XMPP on the Web
Performance Evaluation of XMPP on the WebPerformance Evaluation of XMPP on the Web
Performance Evaluation of XMPP on the Web
 
Extending XForms with Server-Side Functionality
Extending XForms with Server-Side FunctionalityExtending XForms with Server-Side Functionality
Extending XForms with Server-Side Functionality
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 

Web Services for the Internet of Things

  • 1. Web Services for the Internet of Things T-106.5800 Seminar on Software Techniques (3 cr) Presentation Markku Laine, M.Sc. (Tech.) markku.laine@aalto.fi November 3, 2011
  • 2. Presentation Outline •  Internet of Things •  CoAP •  CoAP protocol stack •  Web Services for the Internet of Things •  Conclusion 2
  • 4. What is Internet of Things? (e.g., sensors) (e.g., personal computers and smart phones) (e.g., routers and servers) Source: Sensinode 4
  • 5. Gartner’s Hype Cycle for Emerging Technologies, 2011 Source: Gartner 5
  • 6. Challenges: How to… •  …connect physical environments/smart objects as part of the Internet? •  …cope with trillions of smart objects? •  …handle the problems with smart objects/small devices as they may have difficulties in dealing with protocols and technologies designed for full-powered computers? •  …integrate devices in constrained networks with Web applications? 6
  • 8. Google’s Hype Cycle for CoAP CoAP v.00 Source: Google Insights for Search 8
  • 9. Implementations •  libcoap (C), open source –  http://libcoap.sourceforge.net/ •  OpenCOAP (C), open source –  https://code.google.com/p/opencoap/ •  CoAPy (Python), open source, in progress –  http://coapy.sourceforge.net/ •  Copper (Firefox addon) –  https://addons.mozilla.org/en-US/firefox/addon/copper-270430/ •  Sensinode, The Contiki OS, TinyOS, etc. 9
  • 11. Comparison of HTTP and CoAP Protocol Stacks XML Payload EXI HTTP Application (L7) CoAP TCP Transport (L4) UDP IP Network (L3) 6LoWPAN Ethernet MAC Data Link (L2) IEEE 802.15.4 MAC Ethernet PHY Physical (L1) IEEE 802.15.4 PHY 11
  • 12. Physical & Data Link Layers (L1 & L2): Ethernet à IEEE 802.15.4 (PHY & MAC) •  Goal: Get rid of wires •  Methods: Wireless •  Solution: IEEE 802.15.4 –  IEEE wireless standard (IEEE 802.15.4d), April 2009, http://standards.ieee.org/getieee802/download/ 802.15.4d-2009.pdf –  Specifies the physical layer and media access control for low- rate wireless personal networks (LR-WPANs) –  Low-power, low-bandwidth communication technology –  Basis for extensions, such as ZigBee 12
  • 13. Network Layer (L3): IP à 6LoWPAN •  Goal: Integrate Wireless Sensor Networks (WSNs) and smart objects with the Internet •  Method: Optional protocol •  Solution: IPv6 over Low-Power Wireless Personal Area Networks (6LoWPAN) –  IETF Informational (RFC 4919), August 2007, http://tools.ietf.org/html/rfc4919 –  IETF Proposed Standard (RFC 4944), September 2007, http://tools.ietf.org/html/rfc4944 –  Brings IP to the smallest of devices, such as sensors –  Encapsulation and header compression mechanisms 13
  • 14. Transport Layer (L4): TCP à UDP •  Goal: Reduce the overhead for short-lived transactions •  Method: Optional protocol •  Solution: User Datagram Protocol (UDP) –  IETF Standard (RFC 768), August 1980, http://tools.ietf.org/html/rfc768 –  Fast but unreliable transport protocol –  Optimal for exchanging very small data units –  Supports multicasting –  Used with the IP network layer protocol 14
  • 15. Application Layer (L7): HTTP à CoAP •  Goal: Provide resource constrained devices with RESTful web service functionalities •  Methods: Optional protocol •  Solution: Constrained Application Protocol (CoAP) –  IETF Internet Draft, November 2011, https://tools.ietf.org/html/draft-ietf-core-coap-08 –  REST-based architecture –  Optimized for resource constrained networks typical of IoT and M2M applications –  Takes into account the low processing power and energy consumption constraints of small embedded devices, such as sensors 15
  • 16. Payload: XML à EXI •  Goal: Reduce the overhead of XML •  Methods: Compression and encoding •  Solution: Efficient XML Interchange (EXI) –  W3C Recommendation (EXI Format 1.0), March 2011, http://www.w3.org/TR/exi/ –  Very compact representation of the XML Information Set –  Optimizes the performance and utilization of computational resources –  Extremely efficient schema-informed mode 16
  • 17. Web Services for the Internet of Things 17
  • 18. About Web Services •  Today’s Web Services are not suitable to be used with the Internet of Things –  TCP, HTTP, XML (SOAP) •  What is needed is –  RESTful architecture for good Web integration –  Native push model with subscribe and notify –  UDP-based transport with multicast support –  Overhead suitable for constrained networks –  Complexity suitable for constrained nodes –  Build-in Web discovery and security •  CoAP comes to the rescue! 18
  • 19. CoAP and Web Services Source: Sensinode 19
  • 21. Conclusion •  Traditional Web protocols and technologies are not suitable for the Internet of Things •  The HTTP protocol stack needs to be optimized from the bottom to the top •  CoAP is the key technology in accessing constrained environments/nodes from Web applications 21
  • 22. References •  Colitti, W., Steenhaut, K., and De Caro, N. Integrating Wireless Sensor Networks with the Web. 2011. •  Shelby, Z. Embedded Web Services. In Journal of IEEE Wireless Communications, 17(6):52-57, 2010. •  Castellani, A. et al. Web Services for the Internet of Things through CoAP and EXI. In Communications Workshops (ICC). IEEE, 2011, 1-6. •  Castellani, A. et al. Best Practices for HTTP-CoAP Mapping Implementation. IETF Internet Draft, 2011. 22
  • 23. Thank You! Questions? Comments? markku.laine@aalto.fi 23