Indian Institute of Technology Ropar: Internet of Things (Iot) Notes MD Rizwan Ahmad
Indian Institute of Technology Ropar: Internet of Things (Iot) Notes MD Rizwan Ahmad
Ropar
MD RIZWAN AHMAD
Introduction
What is IoT?
The Internet of Things is the network of the devices with sensors, software,
processing abilities that are able to connect with each other and exchange
data over the internet to enable new use cases and business models.
1. Application Layer
1
2. Service and Application Support Layer
• Ensures the data communication between the devices and the sys-
tems.
• Handles data routing, communications and routing.
4. Device Layer
2
Why IoT is getting famous now?
• Improved VLSI Technology
• Data Analytics
• Fast Connectivity
Characteristics of IoT
1. Dynamic and Self-Adapting.
2. Self Configuring.
4. Unique Identity.
• Collect data from other devices and process the data locally.
• Perform some tasks locally and other tasks withing the IoT infrastruc-
ture based on the temporal and space constraints.
3
An IoT devices can have several interfaces for connections to other devices
both wired and wireless.
• Audio/Video interfaces.
Protocols
The IoT is divided in the four layer architecture. Each layer is respnosible for
the specific tasks. Each layer has its own protocol which helps in connection,
management, sharing of the data with other devices or over the internet.
4
Figure 4: IoT protocols
• Client sends the request to the server and the server responds with the
response.
• Examples:
5
– A mobile app requesting real-time data from a smart home secu-
rity camera.
– An IoT sensor sending periodic updates to a cloud platform and
receiving configuration changes in response.
Publish-Subscribe Model
Publish-Subscribe Model is the communication models that require the Pub-
lisher, Broker and the Consumers.
• Publishers are the source of the data. They send the data to the
topics which are managed by the Brokers. Publishers are not aware of
the Consumers.
• When the Broker receives the data from the publisher then it sends the
data to all of the subscribers.
• Examples :
6
Figure 6: Publish Subscribe Model
• Queues act as an buffer where the consumers get the data and pub-
lishers sends the data. It also helps in the situation when there is a
mismatch in speed of the producing and the consuming of the data.
7
Exclusive Pair Communication Model
• Exclusive Pair Communication model is the bi-directional communica-
tion model that uses the persistent connection between the client and
the server.
• Once the connection is established it will remain open until the client
send the request to close the connection.
• Client and Server can send the data to each other after the connection
is setup.
• Example:
8
REST based Communication API’s
• Represtentational State Transfer(REST) is a set of architectural princi-
ples that is used to design the web servers and web api that focusses on
the system’s resources and how resource are addressed and transferred.
9
WebSocket based Communication API’s
• WebSocket APIs allow bi-directional, full duplex communication be-
tween clients and servers.
10
• Web Service : Web services serve as a link between the IoT device,
application, database and analysis components. Web service can be
either implemented using HTTP and REST principles (REST service)
or using WebSocket protocol (WebSocket service).
Level Of IoT
IoT Level 1
• A level-1 IoT device has a single node device that performs sensing,
saves the data, performs actuation and hosts the application. These all
are done locally.
• It is suitable for those applications which are not complex, does not
generate a lot of data and doesnot require special analysis components.
• Example:
11
Figure 11: IoT Level 1
IoT level-2
• In IoT level 2, there is a single node/device that performs the sens-
ing/actuation and local analysis.
• Data is stored in cloud and the application is also the cloud based.
• This is suitable for those devices that produces a lot of data however
data analysis is not that computationally extensive and can be done
locally itself.
• Example:
12
Figure 12: IoT level 2
IoT level-3
• IoT level 3 has a single node/device that performs sensing/actuation
and sends the data into the cloud.
• Example :
13
Figure 13: IoT level 3
IoT Level 4
• It contains multiple nodes that performs analysis and store data on the
cloud. Application is cloud based.
• It contains the local and cloud based observer nodes that can subscribe
and receive information from the cloud stored by the IoT devices.
14
Figure 14: IoT level 4
IoT Level 5
• It contains multiple end nodes and one co-ordination node.
• Data is stored and analyzed on the cloud and also the application is
also cloud based.
• This is suitable for the solutions based on the wireless sensors in which
data produced is very large and the analysis requirement is computa-
tionally is very extensive.
15
Figure 15: IoT level 5
IoT level 6
• It has several independent end nodes that performs sensing/actuation
and send data on the cloud.
• Data is stored in the cloud and the application is also the cloud based.
• The analytics component analyzes the data and store the result in the
cloud.
• The controller node is aware of the status of the other nodes and sends
the control command to the nodes.
16
Figure 16: IoT level 6
17