IoT Unit 3
IoT Unit 3
Unit -3
Topics to be covered
Design Principles for Web Connectivity: Web Communication Protocols for
connected devices, Message Communication Protocols for connected devices,
SOAP, REST, HTTP Restful and Web Sockets. Internet Connectivity Principles:
Internet Connectivity, Internet based communication, IP addressing in IOT, Media
Access control.
----------------------------------------------------------------------------------------------------------------------------
---
Web Communication Protocols for connected devices-The protocols are used for
communication between machines or between a machine and server. Due to
constraints in processing capabilities and the low power requirements of IoT devices
(which are generally meant to be deployed in environments with constant battery
power) with limited bandwidth capabilities, a need was felt for dedicated standards
and protocols especially designed for IoT. Since those who manufacture IoT devices
and those who create the IoT platforms are different, this required industry standards
and protocols that were not high on power consumption, bandwidth usage, or
processing power and could be adopted easily by all IoT players— hardware
manufacturers, software developers or cloud solutions/service providers.
Dial-up Connection-Dial-up connection uses telephone line to connect PC to the
internet. It requires a modem to setup dial-up connection. This modem works as an
interface between PC and the telephone line. There is also a communication program
that instructs the modem to make a call to specific number provided by an ISP.
Dial-up connection uses either of the following protocols:
· Serial Line Internet Protocol (SLIP)
· Point to Point Protocol (PPP)
The following diagram shows the accessing internet using modem:
· Asymmetric DSL (ADSL)
· Symmetric DSL (SDSL)
· High bit-rate DSL (HDSL)
· Rate adaptive DSL (RDSL)
· Very high bit-rate DSL (VDSL)
· ISDN DSL (IDSL)
All of the above mentioned technologies differ in their upload and download speed, bit
transfer rate and level of service.
The following diagram shows that how we can connect to internet using DSL technology:
· Email-The original Internet communication tool, email is still an essential tool
every business should have. In spite of this, with the rise of messaging through
social networking sites and instant messages, email is not quite as important as it
used to be.
· Social Networking-Social networking is all about forming groups, sharing online
content and exchanging information. In addition to being a major part of social life in
the modern world, social networking is an invaluable tool for Internet marketing since
it provides a user-friendly and highly accessible platform upon which to exchange
information on products and services. For example, if someone likes an article on
your business blog or website, he may decide to share it with his friends over
Facebook or Twitter.
· Forums-Forums, like email, have also been around since the dawn of the Internet.
Forums provide a place to exchange messages and participate in conversations. The
main differences from instant messaging are that forums are generally public and the
communications are not in real time. Forums and their regular posters and readers
form communities that can be valuable to your business.
IP addressing in IOT- We can connect Internet of Thing or device to the Internet.
How we connect depends ultimately on what we actually want to do with the device.
Shown below is a typical home network. This would normally consist of a router /
firewall that connect to your ISP (Internet Service Provider). The connection to your
ISP could by via ADSL or Ethernet using a fiber service for example.
When a client connects to the IoT device it passes through the switch and out to the
device it is connected to. No routing is required here.
Option 2) Device connects to a local / remote server-For this scenario the IoT
device initiates a connection to a local or remote server. This could be using a http
REST POST or configured as MQTT client. It could also be a custom connection
method as long as it initiates the connection to the remote service.
Because the device is creating the connection it allows us to use DHCP and a
dynamically assigned IP address.
Fig 3.5 Client-Server Communication
In the diagram above two of the devices send a HTTP REST Post to a server in the
cloud. If the remote server accepts the connection and data it will generally respond
with a 200 OK. The client will then close the connection until the next post is sent.
Option 3) Access the Device from the Internet with Static Public IP Address
The world is running out of IPV4 IP addresses. This means ISP's are pretty strict on
giving out static IP addresses. It's much easier for them to use a dynamic pool of IP
addresses to assign to their clients.
Generally home internet services are not available with a static IP address. However
you might be able to pay extra for this functionality. Some business accounts are
available with a static IP address. The most common reason for wanting a static ip is
for hosting a email server.