SS & Iot (Unit-2)
SS & Iot (Unit-2)
loT comprises things that have unique identities and are connected to internet. By 2020 there will
be atotal of 50 billion devices /things connected to internet. IoT is not limited to just connecting
things to the internet but also allow things tocommunicate and exchange data.
Definition:
A dynamic global n/w infrastructure with self configuring capabilities based on standard and
interoperable communication protocols where physical and virtual -things have identities,
physical attributes and virtual personalities and use intelligent interfaces, and are seamlessly
integrated into information n/w, often communicate data associated with users and their
environments.
Characteristics:
1) 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 sensedenvironment.
Eg: the surveillance system is adapting itself based on context and changing conditions.
2) Self Configuring: allowing a large number of devices to work together to provide certain
functionality.
3) Inter Operable Communication Protocols: support a number of interoperable
communication protocols ans can communicate with other devices and also with
infrastructure.
4) Unique Identity: Each IoT device has a unique identity and a unique identiffer([P
address).
5) Integrated into Information Network: that allow them to communicate and exchange
data with other devices and systems.
Applications of IoT:
1) Home
2) Cities
3) Environment
4) Energy
5) Retail
6) Logistics
7) Agriculture
8) Industry
9) Health &LifeStyle
atat
L6gfesios
ss
artyhes
Capiters
Wearsle
lertris
Aitoobles
Systen
Prieters
tuistrsat
eafrhcare
eanc
sensing,
remote
devices which have unique identities and perform
The things in IoT refers to
IoT with other connected
IoT devices can exchange dat
actuating and monitoring
capabilities. either locally or
data from other devices and process data
devices applications. It collects
other devices both wired
remotely.
consist of several interfaces for communication to
AnIoT device may internet connectivity
includes (i) I/O interfaces for sensors, (ii) Interfaces for
and wireless. These audio/videointerfaces.
interfaces and (iv)
(111) memory and storage
IoTProtocols:
determine how data is physically
sent over the network's
a) Link Layer : Protocols Hosts on the
medium. Local network connect to which host is attached.
physical layer or protocols. Link layer
the link layer using link layer
same link exchange data packets over signaled by the h/w device over the medium to
determines how packets are coded
and
which the host isattached.
A p p l i c a t i o nL a a y e r
Websockets
AMO
CoAP
DDS
HTTP
XMPP
MOTT
Transport Layer
UDP
TCP
N e t w o r k Layer
6LOWPAN
IPV6
IPv4
Link Layer
2G/3G/LTE
802.16-WiMax
802.3 - Ethernet Cellular
802.154 LR-WPAN
802.11 - WiFi
Protocols: layer.
of wired Ethernet standards for the link
" 802.3-Ethernet: IEEE802.3 is collection twisted pair connection; 802.3j uses
Eg: 802.3 uses co-axial cable: 802.3i uses copper
fiber optic connection: 802.3ae uses Ethernet overfiber.
LAN(WLAN) communication
802.11-WiFi: IEEE802.11 is acollection of wireless
standards including extensive description of link layer. Eg: 802.1la
operates in 5GHz
2.4/5GHz
band, 802.11b and 802.11g operates in 2,4GHz band, 802.11n operates in
band, 802.11ac operates in 5GHz band, 802.11ad operates in 60Ghzband.
802.16 - WiMax: IEEE802.16 is a collection of wireless broadband standards including
exclusive description of link layer. WiMax provide data rates from 1.5 Mb/s to 1 Gb/s.
802.15.4-LR-WPAN: IEEE802.15.4 is a collection of standards for low rate wireless
personal area network(LR-WPAN). Basis for high level communication protocols such as
ZigBee. Provides data rate from 40kb/s to250kb/s.
2G/3G/4G-Mobile Communication: Data rates from 9.6kb/s(2G) to up to100Mb/s(4G).
Protocols:
" Py4: Internet Protocol version4 is used to identify the devices on a n/w using a
hierarchical addressing scheme. 32 bit address. Allows total of 2**32addresses.
IPv6: Internet Protocol version6 uses 128 bit address scheme and allows 2**128
addresses.
. 6LOWPAN:(|v6overl.owpowerVirelesPersonalAreaNetworkjoperatesin
24 GHz requency range and data transfer 250
Transport Layer: Provides end-to-end kb/s. capability independent of the
message transfer
underlying niw, Set up on connection with ACK as in TCP and without ACK as in UDP.
Povides functions such as eror control, segmentation, flow controll and congestion control.
Protocols:
. TCP: Transmission Control Protocol used by web browsers(along with HTTP and
protocol. IP
HTTPS) email(along with SMTP, Connection oriented and stateless
Protocol deals with sending packets,FTP).
protocols in
TCP ensures reliable transmission of
order. Avoids n'w congestion and congestioncollapse.
protocol. Useful in time sensitve
Cor User Datagram Protocol is connectionless Transaction oriented and stateless
ppicatOns, very small data units to exchange.
protocol. Does not provide guaranteeddelivery.
protocolS to
D) ApplicationLayer: Defines how the anplications interface with lower layer
send data over the n'w. Enables process-to-process communication usingports.
Protocols:
forms foundation of www. Follow request
HTTP: Hyper Text Transfer Protocol that
response nmodel Statelessprotocol.
COAP: Constrained Application Protocol for machine-to-machine(M2M) applications
client
environment and constrained n/w. Uses
with constrained devices, constrained
server architecture.
single socketconnection.
WebSocket: allows full duplex communication over a
light weight messaging protocol based
MQTT: Message Queue Telemetry Transport isarchitecture. Well suited for constrained
on publish-subseribe model, Uses client server
environment.
Protocol for real tìme communication and
XMPP: Extensible Message and Presence server-server
streaming XML data between network
entities. Support client-server and
communication. device-to-device
centric middleware standards for
DDS: Data Distribution Service is data
publish-subscribemodel.
ormachine-to-machine communication. Uses
application layer protocol for
AMQP: Advanced Message Queuing Protocol is open publish-subscribemodel.
business messaging. Supports both point-to-point and
LOGICAL DESIGN of IoT
identification,
IoT Functional Blocks: Provide the system the capabilities for
sensing, actuation, communication andmanagement.
Application
Services
Security
Management
Communication
Device
2) Cities:
space easier and convenient for drivers.
a) Smart Parking: make the search for parking
the no. of empty parking slots
Smart parking are powered by loT systems that detect backends.
and send information over internet to smart application
help in savingenergy.
b) Smart Lighting: for roads, parks and buildings can information
provide on driving condition,
c) Smart Roads: Equipped with sensors can conditions, traffic condition
travel time estimating and alert in case of poor driving
andaccidents.
sensors to monitor the vibration
d) Structural Health Monitoring: uses a network of
levels in the structures such as bridges and buildings.
aggregated in cloud
e) Surveillance: The video feeds from surveillance cameras can be
based scalable storagesolution.
and water
loT systems for fire detection, gas lese
0 Emergency Response: their effects on the
detection can help in generating alerts and
minimizing criti
infrastructures.
3) Environment:
Weather Monitoring: Systems collect data
from a no. of sensorsattached and send
in
ends. The data collected
ne data to cloud based applications and storage back
Cloud can then be analyzed and visualized by cloud basedapplications.
0) Air Pollution Monitoring: System can monitor emission of harmful gases(CO2, CO,
NO, NO2 etc.) by factories and automobiles using gaseous and meteorological
Sensors. The collected data can be analvzed to make informed decisions on pollutions
controlapproaches.
9 Noise Pollution Monitoring: Due to growing urban development, noise levels n
cities have increased and even become alarmingly high in some Cites. 101 a
holse pollution monitoring systems use a no. of noise monitoring systems that are
deployed at different places in a city. The data on noise levels from the station is
collected on servers or in the cloud. The collected data is then aggregated to geneTate
noise maps.
d) Forest Fire Detection: Forest fire can cause damage to
and human life. Early detection of forest fire can help in natural resources, proPoy
e) River Flood Detection: River floods can cause damage minimizingdamage.
to natural and human
resources and human life. Early warnings of floods can be given by monitoring the
water level and flow rate. IoT based river flood monitoring system
sensor nodes that monitor the water level and flow uses a no. 0f
ratesensors.
4) Energy:
a) Smart Grids: is a data communication network
integrated with
that collects and analyze data captured in near-real-time about the electrical grids
power transmission,
distribution and consumption. Smart grid technology provides predictive information
and recommendations to utilities, their suppliers, and their customers on how best to
manage power. By using loT based sensing and measurement technologies, the health
of equipment and integrity of the grid can beevaluated.
b) Renewable Energy Systems: IoT based systems integrated with the transformers
at
the point of interconnection measure the electrical variables and how much power is
fed into the grid. For wind energy systems, closed-loop controls can be used to
regulate the voltage at point of interconnection which coordinate wind turbine outputs
and provides powersupport.
c) Prognostics: In systens such as power grids, real-time information is collected using
specialized electrical sensors called Phasor Measurment Units(PMUs) at the
substations. The information received from PMUs must be monitored in real-time for
estimating the state of the system and for predictingfailures.
5) Retail:
a) Inventory Management: loT systems enable remote monitoring of inventory using
data collected by RFIDreaders.
b) Smart Payments: Solutions such as contact-less payments powered by technologes
such as Near Field Communication(NFC) and Bluetooth.
c) SmartVending Machines: Sensors in a smart vending machines monitors its
predictivemaintenance.
operations and send the data to cloud which can be used for
6) Logistics:
backed by cloud can provide first
a) Route generation & scheduling: JoT based system be scaled upto serve a large
Tesponse to the route generation queries
and can
transportationnetwork.
vehicles inreal-time.
b) Fleet Tracking: Use GPS to track locations ofmonitoring
IoT based shipment systems use sensors Such as
C) Shipment Monitoring: where it can bp
conditions and send data to cloud,
temp, humidity, to monitor the
analyzed to detect foodspoilage. devices for collecting data
Remote Vehicle Diagnostics: Systenms use on-board IoT
d) RPMetc..) and status of various
vehicle subsystems.
operaions(speed,
on Vehicle
7) Agriculture:
moisture amount insoil.
a) Smart Irrigation: to detemine
improveproductivity.
b) Green House Control: to
8) Industry:
a) Machine diagnosis andprognosis
b) Indoor Air QualityMonitoring
9) Health and LifeStyle:
a) Health & FitnessMonitoring
b) WearableElectronics
54 Domain Specifie loTs
2.1 Introductlon
including (but not
etof Things (loT) applications span a wide range of domainsindutry, sgriculture
0 homes, cities, environment, energysystems, retail, logistics,applications for each
and health. This chapter provides an overview of various types of oT
is guided through detailed implementations
of these domains. In the later chapters the resder
of several of these applications.
system.
and extract the intrusion subject and generate study on an intrusion detection
messaging for alerts, In chapter-9 we provide a case
2.2.4 Smoke/Gas Detectors an early
to detectsmoke that is typically
buildings
Smoke detectors are installed in homes anddetection, ionization or air sampling techniques to
signals to a fire alarm
sign of fire. Smoke detectors use opticaldetectors can be in the form of monoxide
detect smoke. Alerts raised1by smokepresence of harnful gases such as carbon
System. Gas detectors can
detect the
smokelgas detector [22]
can raise alerts in
smat
(CO, iquid petroleum
gas (LPG), etc. A an SMS or email to the
user or the
where the problem is, send or battery-low,
human voice describing
provide visual feedback on its status (healthy,
and gives visual
local fire safety department system that detects gas leakage and smoke and
ofa
etc.). In [26), the design
level indication, is described.
2.3 Cities
2.3.1 Smart Parking consuming and
rush hours in crowded cities can be time
Finding a parking space
during additional traffic
blindly searching for parking spaces create
frustrating. Furthermore, drivers convenient for
make the search for parking space easier and
congestion. Smart parking of empty parking
are powered by IoT systems that detect the mumber
drivers, Smartparking Internet to smart parking application back-ends.
over the
slots and send the information drivers from smart-phones, tablets and in-car
accessed by th¹
These applications can be sensors are used for each parking slot, to
detect
parking,
navigation systemns. In smart information is aggregated by a
local controller
occupied. This
whether the slot isempty or al. describe latest
the database. In [29), Polycarpou et,
and then sent over the Internet to parking reservation and dynamic pricing schemes.
monitoring,
trends in parking availability
ERON RBahga &Madisettl, © 2015
57
2.3 Cities
system basedon
wireless sensor
Design and implementation of Ta prototypesmart parking automated guidance, and
herwork technology with features like remote parking monitoring, provide a case study
parking reservation mechanism is describedin (30]. In chapter-9 we
on a smart parking
system.bles
Structuri eafth ontori Suvellance
Emertency Services
Lankage detton)
IFin, Gas Lask, Wter
Sart Lghng8
Soart Parkin
infrastructure monitorine
the critical infrastructure. loT systems for critical sensos, Using
their effects on collected from large number of
and sharing of information audio, video feeds
enable aggregation multi-modal information such as sensor data,
cloud-based architectures, generated by
analyzed in near real-time to detect adyerse events. Response to alerts
can be evacuations
alerts sent to the public, re-routing of traffic, response
such systems can be in the form ofAttwood
of the affected areas, etc. In [361 et, al, describe critical infrastructure
emergency services is
frimework for smart cities. A Traffic Management System for
traffic lights, changing
described in [37]. The system adapts by dynamícally adjusting applying cssential
eted ariving policies, recommending behavior change to drivers, and
security controls. Such systems can reduce the latency of emergency services for venicies
such as ambulances and police cars while minimizing disruption of regular trafic.
2.4 Environment
2.4.1 Weather Monitoring
lo1-based weather monitoring systemns can collect data from a number of sensor atached
(such as temperature, humidity, pressure, etc.) and send the data to
and storage back-ends. The data collected in the cloud can then becloud-based
analyzed
applications
by cloud-based applications. Weather alerts can be sent to and visualized
the subscribed users from such
applications. AirPi [38]
is a weather and air quality monitoring kit capable of
uploading information about temperature, humidity, recording and
air
carbon monoxide, nitrogen diOxide and smoke level to the pressure, light levels, UV levels,
weather monitoring system is described that is integrated Internet. In (39], apervasive
variables like humidity, temperature and air quality during with buses to measure weather
the bus path. In [40], a weather
monitoring system based on wireless sensor
acase study on a weather monitoring system.networks is described. In chapter-9 we provide
Weather Mentorlng
egiA Polution Montorine Nolse Poltnketoriee
environment
C ioure 2.3: Applications of IoT for
bmebek C
E
Pollution Monitoring
2.4.3 Nolse cities have increased and
even become
development, noise levels in humans ue to
Due to growing urban pollution can cause health hazards for
alarmingly high in some
cities. Noise
monitoring can help in generating noise maps
stress. Noise pollution urban planning and
making
sleep disruption and the policy makers in noise
cities, Urban noise maps can help areas, schools and parks, IoT based
for
to control noise levels near residential monitoring stations that are deployed at
policies of noise servers
monitoring systems use a number from the stations is collected on
pollution noise levels noise maps. In (43],
a
places in a city. The data on aggregated to generate
different serious
The collecteddata is then that the city suffered from
cloud. revealed
or in the
study for a city is presented which application is described that allows the
noise mapping design of smart phone where all generated
[44], the server
noise pollution. In measure noise levels and send to a
central
continuously
users to © 2015
Bahga &Madisetti,
ttosiq
61
map.
28 Ensray noise
visualization
meaningfl
Imappedto
a
nfeisation is aggregated and
There can be
life.
and human and
244 Forest Fire Detectlon
eruptions
resources, property volcanic
natural negligence,
damage. loT
Frest fires ean cause damage to ightening,
human minimizing the
different
different causes of forest fires including forest fires can helpin deployed at
sperks from rock falls, Early detection of number of monitoring nodeson ambient
conditions
detection of
forest
locations in a forest. Each monitoring node early
system for estimates
humidity, light levels, etc. Asy forest fire and
inchuding temperature, of a potential detection
system
ires is described in [45] that provides early warning In [46], a forest fire detection
the scale and intensity of the fire if it materializes. system uses multi-criteria
data
based on wireless sensor networks in presented. The(ANN). The ANN fuses sensing infrared
which is implemented by the artificial neural network temperature,
humidity,
2.5 Energy
go
2.5.1 Smart Gridsab aacas ôsytla electrical grid that collects
communications network integrated with the and
Smart Grid is a data about power transmission, distribution,
near-real-time
and analyzes data captured in provides predictive information and recommendations
technology Smart
consumption. Smart Grid customers on how best to manage power.
suppliers, and their
to utilities, their
Hands-On Approach
Internet of Things A
62
Domain Specile loTs
s
t 0Bahga &Madisetti, ©2015
63
2.5 Energy
Sart Grld
2.6 Retail
2.6.1 Inventory Management
recent years with
Inventory management for retail has become increasingly important in theadditional storage
result in
he growing competition. While over-stocking of products canlead to loss of revenue. lo
under-stocking can
Cpenses and risk (in case of perishables),
help in inventory management
Systems using Radio Frequency Identification (RFID) tags can to the products allow them
tags attached
and maintaining the right inventory levels. RFIDlevels can be determined accurately and
tobe tracked in real-time so that the inventorv Tracking can be done using RPID
low on stock can be replenished.
products which are
the warehouse. loT systems enable remote
readers attached to the retail store shelves or in
inventory using the data collected by the RFID readers. In (53], an RFID
monitoring of materials is described.
data-based inventory management
system for time-sensitive
Smart Payment
k
d s n Figure 2.5: Applications of loT for retail
2.7 Logistics
2.7.1 Route Generation &Scheduling
sources which
Modern transportation systems are driven by data collected from multiple
collecting large amount of
is processed to provide new services to the stakeholders, By
27 Logistics
Fleet Tracking
Shipment Monitoring
is described. The system monitors the vibration pattens of acontainer and its contents
to reveal information related to its operating environment and integrity during transport,
handling and storage.
2.7.4 Remote Vehicle Diagnostics
Remote vehicle diagnostic systems can detect faults in the vehicles or warn of impending
faults. These diagnostic systems use on-board loT devices for collecting data on vehicle
operation (such as speed, engine RPM, coolent temperature, fault code number) and status of
various vehicle sub-systems. Such data can be captured by integratingon-board diagnostic
systems with loT devices using protocols such as CAN bus. Modern commercial vehicles
support on-board diagnostic (OBD) standards such as OBD-IL OBD systems provide
real-time data on the status of vehicle sub-systems and diagnostic trouble codes which
allow rapidBy identifying the faults in the vehicle. loT based vehicle diagnosticsystems can
generate
send the vehicle data to centralized servers or the cloud where it can be analyzed to
diagnostics and early
alerts and suggest remedial actions. In (60], a real-time online vehicle
on-board vehicle diagnostics
fault estimation system is described. The system makes use of