You are on page 1of 15

Design Principles for web Connectivity

•An IOT/M2M device network gateway needs connectivity to web servers.

•A Communication gateway enables web connectivity, while IOT/M2M specific


protocols and methods enable web connectivity for a connected devices network.

•A server enables IOT Devices data accumulation(storage).Application( reporting,


analysis and control),Collaboration, service and process(involving peoples and
business processes)use this data.
We need to understood for learning web connectivity and communication
between the connected devices network and the web for IOT:
• Application
• Application Programming Interface(API)
• Web Service(weather report service, traffic density reports, streetlights
monitoring and controlling service)
• Object,instance,objectmodel,class,communicationgateway,
• client,server,proxy,communication protocol, webprotocal,firewall,
• URI,URL,Datagram,REST,MIME,
• UDP,HTTP,HTML,XML,
• CoAP,LWM2M,MQTT,TCP,IP.
WEB COMMUNICATION PROTOCALS FOR
CONNECTED DEVICES
Data of connected devices routes over web in two types of
communication environments
• Constrained Restful Environment(CoRE)
– IOT devices or M2M devices Communicate between themselves in a LAN.

– A device typically sends or receives 10s of bytes.

– The data gathered after enriching and consolidating from a number of devices consists of 100s
of bytes
– A gateway communication framework enables using REST software architecture

– HTTP,TCP,IP
• Unconstrained Environment
– Web application use HTTP and Restful HTTP for web client and web server communication

– A web object consists 1000s of bytes,

– Web application and services use the IP and TCP protocols for Internet network and transport
layers.
Constrained RESTful Environment(CoRE)
Constrained Application Protocol
Lightweight Machine-to-Machine
Communication Protocol
• JSON Format
json is an open –standard format used primarily to
transfer data between a server and web applications, as an
alternative to XML.
• Tag Length Value Format
TLV format the first two bytes are used to identify the
parameter, the first and fourth bytes indicate the length of
the actual data which follows directly after these bytes.
• MIME Type
MIME-Type Files are used in web application and
services.
Initially design for mail, now it is used as internet media
type
MESSAGE COMMUNICATION PROTOCOLS
FOR CONNECTED DEVICES
• Terminology
REQUEST/ Registration Observing
RESPONSE(Client/
Server)
Publish/Subscribe Registration Push Data
Update
Resource Directory Pull Data Message Cache
Resource Discovery Polling Message Queue
• Communication Protocols
• XMPP(Extensible Message and presence protocol)
Communication Protocols
CoAP-SMS and CoAP-MQ
Data Interchange between CoAP-MQ end Points, CoAP-MQ Servers through CoAP-MQ broker and its services
MQTT PROTOCOL

Message Interchange between M2M/IOT device objects and web objects using an MQTT Broker
XMPP(Extensible Message and presence protocol)
WEB CONNECTIVITY FOR CONNECTED
DEVICES
• Communication Gateway
• HTTP Request and Response Method
• SOAP
• REST and REST full HTTP Web Applications
• Web socket
WEBSOCKET

You might also like