Design Principles for Web Connectivity A communication gateway

Design Principles for Web Connectivity A communication gateway enables web connectivity. 1. Application or App 16. Broker 2. API 17. Proxy 3. Web Services 18. Communication Protocol 4. Object 19. Web protocol 5. Object model 20. Firewall 6. Class 21. Header 7. Communication Gateway 22. State 8. Client 23. Resource 9. Server 24. Resource Structure 10. Web Object 25. Path 11. URI 26. UDP 12. URL 27. Hypertext 13. Datagram 28. Hyperlink 14. REST 29. HTML 15. MIME 30. XML 16. Browser 32. Framework

Web Communication Protocols for Connected Devices Two types of communication environments: i. Constrained RESTful Environment (Co. RE) ii. Unconstrained Environment HTTP RESTful HTTP

LAN Connectivity, Web connectivity in Constrained & Unconstrained RESTful environments

Constrained Application Protocol(Co. AP)

Constrained Application Protocol(Co. AP) Co. AP Client web Connectivity HTTP-Co. AP Proxy Co. AP-HTTP Proxy Secured use of a Key for Client Authentication Pre-Shared Key(PSK) Private Key Random Pair-wise Keys(RPK) Public Key X. 509 - CA & PKI

Lightweight M 2 M Communication Protocol (LWM 2 M)

Web Communication Protocols for Connected Devices JSON Format Tag Length value Format MIME Type

Message Communication Protocols for connected Devices Terminology 1. Request/Response 2. Publish/Subscribe (pubsub) 3. Resource Directory 4. Resource Discovery 5. Registration/Registration Update 6. Pull Data 7. Polling or Observing 8. Push Data 9. Message Cache 10. Message Queue 11. Information/Query

Message Communication Protocols for connected Devices Communication Protocols 1. Co. AP-SMS & Co. AP-MQ 2. MQTT Protocol

Co. AP-SMS

Co. AP-MQ

MQTT Protocol ‘Paho’ project of Eclipse. MQTT v 3. 1. 1 OASIS standard MQTT-SN

MQTT

XMPP (Extensible Messaging & Presence Protocol)

Web Connectivity for Connected-Devices Network using Gateway, SOAP, REST, HTTP RESTFUL & Websockets Communication Gateway HTTP Request & Response Method SOAP (Simple Object Access Protocol) REST & RESTful HTTP web Applications Web. Socket

SOAP

Web Socket
- Slides: 17