IoT Writeup
IoT Writeup
IoT Writeup
In the broadest sense, the Internet of Things (IoT) is the concept of basically connecting any
device with an on and off switch to the Internet (and/or to each other). This includes everything
from cellphones, coffee makers, washing machines, headphones, lamps, wearable devices and
almost anything else you can think of. This also applies to components of machines, for example
a jet engine of an airplane or the drill of an oil rig.
The analyst firm Gartner says that by 2020 there will be over 26 billion connected devices. The
IoT is a giant network of connected "things" (which also includes people). The relationship will
be between people-people, people-things, and things-things.
Definition:
The Internet of things 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.
Another way of looking at IoT is that, IoT is a network of connected devices with 1) unique
identifiers in the form of an IP address which 2) have embedded technologies or are equipped
with technologies that enable them to sense, gather data and communicate about the environment
in which they reside and/or themselves.
Characteristics:
There are 7 crucial IoT characteristics:
1. Connectivity. This doesn’t need too much further explanation. With everything going
on in IoT devices and hardware, with sensors and other electronics and connected
hardware and control systems there needs to be a connection between various levels.
2. Things. Anything that can be tagged or connected as such as it’s designed to be
connected. From sensors and household appliances to tagged livestock. Devices can
contain sensors or sensing materials can be attached to devices and items.
3. Data. Data is the glue of the Internet of Things, the first step towards action and
intelligence.
4. Communication. Devices get connected so they can communicate data and this data
can be analyzed. Communication can occur over short distances or over a long range
to very long range. Examples: Wi-Fi, LPWA network technologies such as LoRa or
NB-IoT.
5. Intelligence. The aspect of intelligence as in the sensing capabilities in IoT devices
and the intelligence gathered from big data analytics (also artificial intelligence).
6. Action.. The consequence of intelligence. This can be manual action, action based
upon debates regarding phenomena (for instance in smart factory decisions) and
automation, often the most important piece.
7. Ecosystem.. The place of th thee Internet of Things from a perspective of other
technologies, communities, goals and the picture in which the Internet of Things fits.
The Internet of Everything dimension, the platform dimension and the need for solid
partnerships.
Applications of IoT:
IoT architecture varies from solution to solution, based on the type of solution which we
intend to build. IoT as a technology majorly consists of four main components, over
which an architecture is framed.
1) Sensors
2) Devices
3) Gateway
4) Cloud
A better term for a sensor is a transducer. A transducer is any physical device that converts one
form of energy into another. So, in the case of a sensor, the transducer converts some physical
phenomenon into an electrical impulse that can then be interpreted to determine a reading. A
microphone is a sensor that takes vibrational energy (sound waves) and converts it to electrical
energy in a useful way for other components in the system to correlate back to the original
sound.
Another type of transducer that you will encounter in many IoT systems is an actuator. In
simple terms, an actuator operates in the reverse direction of a sensor. It takes an electrical input
and turns it into physical action. For instance, an electric motor, a hydraulic system, and a
pneumatic system are all different types of actuators. In typical IoT systems, a sensor may
collect information and route to a control center where a decision is made and a corresponding
command is sent back to an actuator in response to that sensed input.
There are many different types of sensors. Flow sensors, temperature sensors, voltage sensors,
humidity sensors, and the list goes on. In addition, there are multiple ways to measure the same
thing. For instance, airflow might be measured by using a small propeller like the one you
would see on a weather station. Alternatively, as in a vehicle measuring the air through the
engine, airflow is measured by heating a small element and measuring the rate at which the
element is cooling. Different applications call for different ways of measuring the same thing.
The data from the sensors starts in analog form. That data needs to be aggregated and converted
into digital streams for further processing downstream. Data acquisition systems (DAS) perform
these data aggregation and conversion functions. The DAS connects to the sensor network,
aggregates outputs, and performs the analog-to-digital conversion. The Internet gateway
receives the aggregated and digitized data and routes it to Stage 3 systems for further
processing. The gateway creates a bridge between the IoT sensors/actuators and the Internet.
The IoT gateway aggregates all data, translates sensor’s protocols, and pre-process the data
before sending it.
The IoT devices connect to the IoT Gateway using short-range wireless transmission modes
such as Bluetooth LE, Zigbee, Z-wave, or long-range like LTE, LTE-M, WiFi, and then it links
them to the Internet (Public Cloud) through Ethernet LAN or Fiber Optics WAN (HDLC/PPP).
How IoT Gateway works: The IoT gateway understands these transmission modes and data
(MQTT, CoAP, AMQP, DDS, Websocket) protocols and can translate them to other protocols
that the data systems need.
Once IoT data has been digitized and aggregated, it's ready to cross into the realm of IT.
However, the data may require further processing before it enters the data center. This is where
edge IT systems, which perform more analysis, come into play. Edge IT processing systems
may be located in remote offices or other edge locations, but generally these sit in the facility or
location where the sensors reside closer to the sensors, such as in a wiring closet.
IoT edge devices solve a fundamental problem associated with the centralization of cloud
architecture. While clouds are powerful for storage and processing, they create delays for IoT
devices sending data back and forth. By bringing cloud computing capabilities to local devices,
IoT edge computing can process data faster, preventing delays, security breaches and other
concerns.
Local processing supports real-time business systems and alerts, and it manages the data sent
back to the cloud. Consider an autonomous vehicle traveling down a busy road. If the car needs
to stop immediately to prevent an accident, sending data to the cloud will likely take too long.
Instead, the thousands of sensors that assess the status of every piece of equipment, need to be
able to manage the data locally and respond in fractions of a second. Similarly, a machine
failure in a manufacturing plant could result in defective products, delays in processing, or even
loss of life.
In these scenarios, an IoT edge device meets the needs of the larger IoT platform while also
bringing decision-processing local by eliminating the roundtrip time required for cloud
processing.
In addition, all edge devices offer numerous types of networking that support options for
Ethernet, wireless, and, soon, 5G—the next-generation connectivity for wireless networks.
Further, the edge devices may come in hardened and durable cases designed for harsh
environments or may appear like a small consumer electronic. Regardless of the physical casing
and the specific network options offered, the software and services supplied on the edge device
are often the most important factors in deciding what is needed to support the business.
Data that needs more in-depth processing, and where feedback doesn't have to be immediate,
gets forwarded to physical data center or cloud-based systems, where more powerful IT systems
can analyze, manage, and securely store the data. It takes longer to get results when you wait
until data reaches Stage 4, but you can execute a more in-depth analysis, as well as combine
your sensor data with data from other sources for deeper insights. Stage 4 processing may take
place on-premises, in the cloud, or in a hybrid cloud system, but the type of processing executed
in this stage remains the same, regardless of the platform.
Shown below, is an abstract representation of entities and processes without going into
the low level specifies of implementation.
Device: An IoT system comprises of devices that provide sensing, actuation, and
monitoring and control functions.
Communication: handles the communication for IoT system.
Services: for device monitoring, device control services, data
publishing services and services for device discovery.
Management: Provides various functions to govern the IoT system.
Security: Secures IoT system and priority functions such as
authentication, authorization, message and context integrity and data
security.
Application: IoT application provide an interface that the users can
use to control and monitor various aspects of IoT system.
2. IoT Communication Models:
Request-Response
Publish-Subscribe
Push-Pull
Exclusive Pair
a) Request-Response Model:
In which the client sends request to the server and the server replies to requests. Is a
stateless communication model and each request-response pair is independent of
others.
b) Publish-Subscribe Model:
Involves publishers, brokers and consumers. Publishers are source of data. Publishers
send data to the topics which are managed by the broker. Publishers are not aware of the
consumers. Consumers subscribe to the topics which are managed by the broker. When
the broker receives data for a topic from the publisher, it sends the data to all the
subscribed consumers.
c) Push-Pull Model:
In this model data producers push data to queues and consumers pull data from the
queues. Producers do not need to aware of the consumers. Queues help in decoupling the
message between the producers and consumers.
d) Exclusive Pair:
This model is bi-directional,
directional, fully duplex communication model that uses a persistent
connection between the client and server. Once connection is set up it remains open until
the client send a request
quest to close the connection. This is a stateful communication model
and server is aware of alll the open connections.
Things in IoT:
The things in IoT refers to IoT devices which have unique identities and perform remote
sensing, actuating and monitoring capabilities. IoT devices can exchange data with other
connected devices applications. It collects data from other devices and process data
either locally or remotely.
An IoT device may consist of several interfaces for communication to other devices
both wired and wireless. These includes
(i) I/O interfaces for sensors,
(ii) Interfaces for internet connectivity
(iii) Memory and storage interfaces and
(iv) Audio/video interfaces.
IoT Layers:
a) Link Layer: Protocols determine how data is physically sent over the
network‘s physical layer or medium. Local network connect to which host is
attached. Hosts on the same link exchange data packets over the link layer
using link layer protocols. Link layer determines how packets are coded and
signaled by the h/w device over the medium to which the host is attached.
b) Network/Internet Layer: Responsible for sending IP datagrams from source
n/w to destination n/w. Performs the host addressing and packet routing.
Datagrams contains source and destination address.
c) Transport Layer: Provides end-to-end message transfer capability
independent of the underlying n/w. Set up on connection with ACK as in TCP
and without ACK as in UDP. Provides functions such as error control,
segmentation, flow control and congestion control.
d) Application Layer: Defines how the applications interface with lower layer
protocols to send data over the n/w. Enables process-to-process
communication using ports.
3) Big Data Analytics: Some examples of big data generated by IoT are
Sensor data generated by IoT systems.
Machine sensor data collected from sensors established in industrial
and energy systems.
Health and fitness data generated IoT devices.
Data generated by IoT systems for location and tracking vehicles.
Data generated by retail inventory monitoring systems.
IoT Level 1 System has a single node that performs sensing and/or actuation,
stores data, performs analysis and host the application as shown in fig. Suitable
for modeling low cost and low complexity solutions where the dat dataa involved is
not big and analysis requirement are not computationally intensive.
An e.g., of IoT Level1 is Home automation.
IoT Level 2: Here, there is a single node that performs sensing and/or actuating
and local analysis as shown in fig. Data is stored in cloud and application is
usually cloud based. Level2 IoT systems are suitable for solutions where data are
involved is big, however, the primary analysis requirement is not
computationally intensive and can be done locally itself. An e,g., of Level2 IoT
system for Smart Irrigation.
IoT Level 3: system has a single node. Data is stored and analyzed in the cloud
application is cloud based
sed as shown in fig. Level3 IoT systems are suitable for
solutions where the data involved is big and analysis requirements are
computationally intensive.
An example of IoT level3 system for tracking package handling.
IoT Level 4: System has multiple nodes that perform local analysis. Data is
stored in the cloud and application is cloud based as shown in fig. Level4
contains local and cloud based observer nodes which can subscribe to and
receive information collected in the cloud from IoT devices. An example of a
Level4 IoT system for Noise Monitoring.
IoT Level 5: System has multiple end nodes and one coordinator node as shown in fig.
The end nodes that perform sensing and/or actuation. Coordinator node collects data from
the end nodes and sends to the cloud. Data is stored and analyzed in the cloud and
application is cloud based. Level5 IoT systems are suitable for solution based on wireless
sensor network, in which data involved is big and analysis requirements are
computationally intensive. An ex
example
ample of Level5 system for Forest Fire Detection.
IoT Level 6: System has multiple independent end nodes that perform sensing and/or
actuation and sensed data to the cloud. Data is stored in the cloud and application is cloud
based as shown in fig. The analytics component analyses the data and stores the result in
the cloud data base. The results are visualized with cloud based application. The
centralized controller is aware of the status of all the end nodes and sends control
commands to nodes. An exa example
mple of a Level6 IoT system for Weather Monitoring
System.
Example applications: