Module 1 IOT
Module 1 IOT
Introduction
• The Internet of Things (IoT) describes the network of physical
objects—“things”—that are embedded with sensors, software, and
other technologies for the purpose of connecting and exchanging
data with other devices and systems over the internet.
Definition:
• Dynamic & Self Adapting: IoT devices and systems may have the capability to
dynamically adapt with the changing contexts and take actions based on their
operating conditions, user‘s context or sensed environment.
• Eg: the surveillance system is adapting itself based on context and changing conditions.
• Self Configuring: allowing a large number of devices to work together to provide
certain functionality.
• Inter Operable Communication Protocols: support a number of interoperable
communication protocols and can communicate with other devices and also with
infrastructure.
• Unique Identity: Each IoT device has a unique identity and a unique identifier(IP
address).
• Integrated into Information Network: that allow them to communicate and
exchange data with other devices and systems.
FIVE LAYER ARCHITECTURE
Perception Layer :
• This is the first layer of IoT architecture.
• In the perception layer, number of sensors and actuators are used to
gather useful information like temperature, moisture content,
intruder detection, sounds, etc.
• The main function of this layer is to get information from
surroundings and to pass data to another layer so that some actions
can be done based on that information.
Network Layer :
• As the name suggests, it is the connecting layer between perception and
middleware layer.
• It gets data from perception layer and passes data to middleware layer
using networking technologies like 3G, 4G, UTMS, WiFI, infrared, etc.
• This is also called communication layer because it is responsible for
communication between perception and middleware layer.
• All the transfer of data done securely keeping the obtained data
confidential.
• The network layer is responsible for connecting devices in IoT system,
enabling flow of data between devices and cloud.
Middleware Layer :
• Middleware Layer has some advanced features like storage,
computation, processing, action taking capabilities.
• It stores all data-set and based on the device address and name.
• It gives appropriate data to that device.
• It can also take decisions based on calculations done on data-set
obtained from sensors.
• It is responsible for processing and storing data generated by IoT
devices.
Application Layer :
• The application layer is responsible for providing user interface and
applications that enable end-users to interact with IoT system.
• The application layer manages all application process based on
information obtained from middleware layer.
• This application involves sending emails, activating alarm, security
system, turn on or off a device, smartwatch, smart agriculture, etc.
• The “Things” in IoT usually refers to IoT devices which have unique
identities and can perform remote sensing, Actuating and monitoring
capabilities.
• IoT devices can
• Exchange data with other connected devices and applications (directly or
indirectly),
• Collect data from other devices and process the data locally
• Send the data to Centralized servers or cloud based applications back ends
for processing the data
• Send the data from some task locally and other task within the IoT
infrastructure, based on temporal and space constraints (ie : Memory,
processing calibrators, communication latencies and speed and deadlines).
Things of IoT
• Link Layer protocols determine how the data is physically sent over
the networks physical layer or medium(example copper wire,
electrical cable, or radio wave).
• The Scope of the Link Layer is the Local Network connections to
which host is attached.
• Link layer determines how the packets are coded and signaled by the
hardware device over the medium to which the host is attached.
802.3 Ethernet:
• 802.3 is a collections of wired Ethernet standards for the link layer.
• For example
• 802.3 10BASE5 Ethernet that uses coaxial cable as a shared medium
• 802.3.i is standard for 10 BASET Ethernet over copper twisted pair
connection.
• Standards provide data rates from 10 Mb/s to 40 gigabits per second and the
higher.
• The shared medium in Ethernet can be a coaxial cable , twisted pair wire or
and Optical fiber.
• Shared medium carries the communication for all the devices on the network.
802.11- WI-FI:
IPv6:
• It is the newest versions of internet protocol and successor to IPv4.
• IPv6 uses 128 bit address schemes
6LoWPAN:
• IPv6 over low power wireless personal area networks brings IP protocol to the low
power device which have limited processing capability it operate in the 2.4 GHz
frequency range and provide the data transfer rate off to 50 kb/s.
Transport layer :
• The Transport layer protocols provides end-to-end message transfer
capability independent of the underlying network.
• The message transfer capability can be set up on connections, either
using handshake or without handshake acknowledgements.
• Provides functions such as error control , segmentation, flow control
and congestion control.
TCP
• The transmission control protocol is a protocol that defines how to
establish and maintain a network that can exchange data in a proper
manner using the internet protocol.
UDP
• UDP is used to send messages (referred to as datagrams) between
hosts on an IP network.
• Unlike TCP, it does not require prior communication to establish
channels or data paths.
• UDP operates with a simple connectionless model, minimizing
protocol overhead
Application Layer protocol
• In this layer, protocols define how application interfaces with the
lower layers to send data over the network.
• These protocols include HTTP, WebSocket, XMPP, MQTT, DDS,
and AMQP protocols.
HTTP
• Hypertext transfer protocol is a protocol that presents an
application layer for transmitting media documents. it is used to
communicate between web browsers and servers. it makes a
request to a server and then waits till it receives a response and
in between the request server does not keep any data between
the two requests.
WebSocket
• This protocol enables two-way communication between a client
and a host that can be run on an untrusted code in a controlled
environment. This protocol is commonly used by web browsers.
MQTT
• It is a machine-to-machine connectivity protocol that was
designed as a publish/subscribe messaging transport. and it is
used for remote locations where a small code footprint is
required.
Basic
elements of
IoT
• Things. A “thing” is an object equipped with sensors that gather data that will
be transferred over a network and actuators that allow things to act (for
example, to switch on or off the light, to open or close a door, to increase or
decrease engine rotation speed and more). This concept includes fridges,
street lamps, buildings, vehicles, production machinery, rehabilitation
equipment and everything else imaginable. Sensors are not in all cases
physically attached to the things: sensors may need to monitor, for example,
what happens in the closest environment to a thing.
• Gateways. Data goes from things to the cloud and vice versa through the gateways.
A gateway provides connectivity between things and the cloud part of the IoT
solution, enables data preprocessing and filtering before moving it to the cloud (to
reduce the volume of data for detailed processing and storing) and transmits
control commands going from the cloud to things. Things then execute commands
using their actuators.
• Cloud gateway facilitates data compression and secure data transmission between
field gateways and cloud IoT servers. It also ensures compatibility with various
protocols and communicates with field gateways using different protocols
depending on what protocol is supported by gateways.
• Streaming data processor ensures effective transition of input data to a data lake and
control applications. No data can be occasionally lost or corrupted.
• Data lake. A data lake is used for storing the data generated by connected devices in its
natural format. Big data comes in "batches" or in “streams”. When the data is needed for
meaningful insights it’s extracted from a data lake and loaded to a big data warehouse.
• Big data warehouse. Filtered and preprocessed data needed for meaningful insights is
extracted from a data lake to a big data warehouse. A big data warehouse contains only
cleaned, structured, and matched data (compared to a data lake which contains all sorts of
data generated by sensors). Also, data warehouse stores context information about things
and sensors (for example, where sensors are installed) and the commands control
applications send to things.
• Data analytics. Data analysts can use data from the big data warehouse to find trends and gain
actionable insights. When analyzed (and in many cases – visualized in schemes, diagrams,
infographics) big data show, for example, the performance of devices, help identify inefficiencies
and work out the ways to improve an IoT system (make it more reliable, more customer-oriented).
Also, the correlations and patterns found manually can further contribute to creating algorithms for
control applications.
• Machine learning and the models ML generates. With machine learning, there is an opportunity to
create more precise and more efficient models for control applications. Models are regularly
updated (for example, once a week or once a month) based on the historical data accumulated in a
big data warehouse. When the applicability and efficiency of new models are tested and approved
by data analysts, new models are used by control applications.
• Control applications send automatic commands and alerts to actuators
Logical design of IoT
• Level One IoT system has a single node / device that performs sensing
and/or actuation, stores data, performs analysis and the host the
application.
• Level 1 IoT systems are suitable for modeling low cost and low
complexity solutions where the data involving is not big and the analysis
requirements are not computationally intensive.
EXAMPLE
• Let us now consider done example of Level 1 IoT system for home automation.
• This system consists of the single node that allows controlling the lights and appliances
in your home remotely .
• The device used in this system interface with their lights and appliances using electronic
relay switches.
• The status information of each light or appliance is maintained in a local database.
• REST service deployed locally Allow retrieving and updating the state of the each light or
appliances in the status database.
• The controller service continuously monitor the state of each light or appliance and
triggers the relay switches accordingly.
• The applications which is deployed locally has a user interface for controlling the lights or
appliances.
• Since the device is connected to the internet, the application can be accessed remotely
as well.
IoT LEVEL 2
• Level 2 IoT system has a single node that performs sensing and/or
actuation and local analysis.
• Data is stored in the cloud and application is usually cloud based
systems are suitable for solutions where the data in world is big.
• The primary analysis requirement is not computationally intensive
and can be done local itself.
EXAMPLE
• Construct an example of Level 2 IoT system for smart irrigation.
• The system consists of the single node that monitor the soil moisture level and
control irrigation system.
• The device used in this system collect soil moisture data from sensor.
• The controller service continuously monitor the moisture level.
• If the moisture level drops below a threshold, the irrigation system is turned on.
• For controlling the irrigation system actuators such as solenoid valve can be used.
• Rest Web Services is used for storing and retrieving data which is stored in the
cloud database.
• A cloud based application is used for visualizing the moisture level over a period
of time, which can help in making decisions about irrigation schedules.
IOT LEVEL 3
• Level 3 system has a single node .
• Data is stored and analyzed in the cloud and application is cloud-
based.
• Level 3 IoT system suitable for solutions where the data involved is big
and analysis requirements computationally intensive.
EXAMPLE
• Let us considered example of Level 3 IoT system tracking package handling.
• The system consists of a single node that monitors the vibration level for
package being shipped.
• The device in the system uses accelerometer and gyroscope sensor for
monitoring vibration levels.
• The controller service send sensor data to the cloud in real time using a
website service.
• The data is stored in the cloud and also visualized using a cloud based
application.
• The analysis component in the cloud can trigger alert, if the vibration level
become greater than threshold.
• The benefit of using websocket service instead of the REST service in this
example is that, the sensor data can be sent in real-time to the cloud.
• Cloud based application can subscribe to the sensor data feeds for you in
the real-time data.
IoT level 4
• A level 4 IoT system has multiple nodes that perform local analysis.
• Data is stored in the cloud and application is cloud based, level 4
contains local and cloud based observer nodes which can subscribe
to and receive information collected in the cloud from IoT devices.
• Observer nodes can process information and use it for various
applications, however observer nodes do not perform any control
function.
• Level 4 IoT systems are suitable for solutions where multiple nodes
are required, the data involved is big and the analysis requirements
are computationally intensive.
EXAMPLE
• Let us consider an example of level four IoT system for noise
monitoring.
• The system consists of multiple nodes placed in different locations
for monitoring noise level in an area.
• In this example with sound sensor.
• Nodes are independent of each other each node runs in one
controller service that sends the data to the cloud.
• The data is stored in a cloud database the analysis of the data
collected from a number of nodes is done in the cloud.
IoT Level 5:
• IoT system has multiple end nodes and one coordinator node
• The end nodes that perform sensing and / or actuation.
• Coordinator node collects data from the entry and send to the cloud.
• Data is stored and analyzed in the cloud and applications is cloud
based.
EXAMPLE
• Level 5 IoT system are suitable for forest fire detection.
• The system consists of multiple nodes placed in different locations for
monitoring temperature, humidity and carbon dioxide levels in a forest.
• The end nodes in this example are equipped with various sensors such as
temperature humidity and to CO2.
• The coordinator node collects the data from the end nodes and act as a
gateway that provides internet connectivity to the IoT system.
• The coordinator device sends the collected data to the cloud .
• The data is stored in the cloud database.
• The analysis of the data is done in the computing cloud to aggregate the
data and make prediction.
IOT LEVEL 6
• IoT Level 6 system has multiple Independent end nodes that perform
sensing and / or actuations and send data to the cloud.
• Data is stored in the cloud and applications is cloud based .
• The analytics component analyze the data and store the results in the
cloud database.
• The results are visualized with the cloud based application.
• The centralized controller is aware of the status of all the end nodes
and send control commands to the nodes.
EXAMPLE
• Let us consider an example of the level 6 IoT system for weather
monitoring.
• The system consists of multiple nodes placed in different location for
monitoring temperature, humidity and pressure in an area.
• The end nodes are equipped with various sensors such as temperature
,pressure and humidity.
• The end nodes send the data to the cloud in real time using a websocket
service .
• The data is stored in a cloud database.
• The analysis of the data is done in the cloud to aggregate the data and
make predictions.
• A cloud based applications is used for visualizing the data.