Web Connectivity Principles in IoT (1)
Web Connectivity Principles in IoT (1)
on
Web Connectivity Principles in IoT
by
KUMMARI MALLIKARJUNA
22R91A04D4
Data from connected devices route over the web in two types of communication
environments as given below:
Unconstrained environment web applications use HTTP and RESTful
HTTP for web object communication between the client and the server. A
web object consists of 1000s of bytes. Data routes over the IP networks
for Internet connectivity. The web applications and web services use
TCP/IP protocols for network and transport layers.
Constrained RESTful Environment (CoRE) devices application-support
layer use CoAP. The data is generally 10s of bytes at the client end. The
data gathered from numerous devices consists of 100s of bytes which,
after enriching and consolidation at the gateway, is communicated to the
web using the Internet. A constraint is data Routing Over Low power and
Lossy network (ROLL).
REST system uses GET, POST, PUT, DELETE for retrieving web pages. REST
is an alternative to Simple Object Access Protocol (SOAP) and Web Services
Description Language (WSDL).
REST characteristics are data transfers which use the stateless, client-server,
cacheable. The resources themselves are conceptually separate from the
representations that are returned to the client.
For example, the server may send data as HTML, XML, or as JSON from the
database which can have another internal representation.
When all interactions used in the applications conform fully to the REST
constraints, it is called RESTful. REST architectural style can be used for HTTP
access by GET, POST, PUT and DELETE methods for the resources and for
building web services.