IOT Unit 1
IOT Unit 1
Introduction to IoT
Annapurna Gummadi
Assts Professor
[email protected]
Outline
• IoT definition
• Characteristics of IoT
• Physical Design of IoT
• Logical Design of IoT
• IoT Enabling Technologies
• IoT Levels & Deployment Templates
Unit I: Introduction to Internet of Things
IOT
Internet Things
Definition of IoT
•A dynamic global network 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 the information network, often communicate data associated with
users and their environments.
8
History of IoT
•Things in IoT
•IoT Protocols
10
Physical Design of IoT:Things in IoT
• 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), or
• Collect data from other devices and process the data locally or
• Send the data to centralized servers or cloud-based application back-ends for
processing the data, or
• Perform some tasks locally and other tasks within the IoT infrastructure,
based on temporal and space constraints
Generic block diagram of an IoT Device
14
Application Layer protocol
In this layer, protocols define how the data can be sent over the network with the lower layer
protocols using the application interface. these protocols including HTTP, WebSocket, XMPP, MQTT,
DDS, and AMQP protocols.
Transport Layer
This layer is used to control the flow of data segments and handle the error control. also, these
layer protocols provide end-to-end message transfer capability independent of the underlying
network.
Network Layer
This layer is used to send datagrams from the source network to the destination network. we use
IPv4 and IPv6 protocols as a host identification that transfers data in packets.
Link Layer
Link-layer protocols are used to send data over the network's physical layer. it also determines how
the packets are coded and signaled by the devices.
IoT Protocols
• Link Layer
• 802.3 – Ethernet
• 802.11 – WiFi
• 802.16 – WiMax
• 802.15.4 – LR-WPAN
• 2G/3G/4G
• Network/Internet Layer
• IPv4
• IPv6
• 6LoWPAN low-power devices that have limited processing
capabilities.
• Transport Layer
• TCP(Transmission Control Protocol)
• UDP(User Datagram Protocol)
• Application Layer
• HTTP(HyperText Transfer Protocol)
• CoAP(Constrained Application Protocol)
• WebSocket
• MQTT(Message Queuing Telemetry Transport)
• DDS (Data Distribution Service)
• AMQP(Advanced Message Queuing Protocol)
• XMPP(Extensible Messaging and Presence Protocol )
Link Layer Protocols
In this protocols determine how the data is physically sent over the
networks physical layer or medium.
Ex: Copper Wire, Coaxial Cable, radio wire
Scope of link layer is the local n/w connection to which host is attached.
Hosts on the same link can exchange data packets over the link layer
using link layer protocols
Link layer determines how the packets are coded and signalled by the
H/w device over the medium to which host is attached.
17
Link Layer Protocols
802.3 – Ethernet
802.11 – WiFi
802.16 – WiMax
802.15.4 - LR WPAN
2G/3G/4G – Mobile Communication
18
IoT Protocols…Link Layer…Ethernet
This is a collection of wired Ethernet standards for the link
layer.
Sr.No Standard Shared medium(copper 0r fiber)
1 802.3 Shared
Coaxial Cable…10BASE5 & shared medium
Medium
2 802.3.i Copper Twisted pair …..10BASE-T
carries
3 802.3.j Fiber Optic……10BASE-F communicat
ion for all
4 802.3.ae Fiber…..10Gbits/s
the devices
on the n/w.
Data Rates are provided from 10Gbit/s to 40Gb/s and higher
19
IoT Protocols…Link Layer…WiFi
Sr.No Standard Operates in
1 802.11a 5 GHz band
21
IoT Protocols…Link Layer…LR-WPAN
22
IoT Protocols…Link Layer…2G/3G/4G –Mobile
Communication
Sr.No Standard Operates in
1 2G GSM-CDMA
3 4G LTE
24
6LoWPAN
• (IPV6 over Low power Wireless Personal Area Network)
• Used for devices with limited processing capacity
• Operates in 2.4 Ghz
• Data Rates of 250Kb/s
• Works with 802.15.4 Link layer protocol
25
IoT Protocols…Transport Layer
27
IoT Protocols…Application Layer…CoAP
28
IoT Protocols…Application Layer…WebSocket
30
IoT Protocols…Application Layer…DDS
31
IoT Protocols…Application Layer…AMQP
32
Logical Design of IoT
Example
When we search a query on a browser
then the browser submits an HTTP
request to the server and then the server
returns a response to the browser(client).
Publish-Subscribe communication model
• Publish-Subscribe is a
communication model that
involves publishers, brokers and
consumers.
• Publishers are the source of data.
Publishers send the 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 Example
a topic from the publisher, it On the website many times we subscribed to their newsletters
sends the data to all the
subscribed consumers. using our email address. these email addresses managed by
some third-party services and when a new article published on
the website it directly sends to the broker and then the broker
send these new data or post to all the subscribers.
Push-Pull communication model
• Push-Pull is a communication
model in which the data
producers push the data to
queues and the consumers
pull the data from the queues.
Producers do not need to be
aware of the consumers.
• Queues help in decoupling the
messaging between the producers
and consumers.
• Queues also act as a buffer which
helps in situations when there is
a mismatch between the rate at
which the producers push data
and the rate rate at which the
consumers pull data. Example
When we visit a website we saw a number of posts that
published in a queue and according to our requirements, we
click on a post and start reading it.
Exclusive Pair communication model
• Exclusive Pair is a
bidirectional, fully duplex
communication model that
uses a persistent connection
between the client and
server.
• Once the connection is
setup it remains open until
the client sends a request
to close the connection.
• Client and server can send
messages to each other after
connection setup.
IoT Communication APIs
41
REST-based Communication APIs
Cloud Computing
Embedded Systems
44
WSN(Wireless Sensor Network)
WSN consist of following:
•Distributed Devices with sensors used to monitor the environmental and
physical conditions
•Consists of several end-nodes acting as routers or coordinators
•Coordinators collects data from all nodes / acts as gateway that connects
WSN to internet
•Routers route the data packets from end nodes to coordinators.
Example of WSNs in IoT & Protocols used
Example
•Weather monitoring system
•Indoor air quality monitoring system
•Soil moisture monitoring system
•Surveillance system
•Health monitoring system
46
Cloud Computing
Examples –
•Bank transactions
•Data generated by IoT systems for location and tracking of vehicles
•E-commerce and in Big-Basket
•Health and fitness data generated by IoT system such as a fitness bands
Communications Protocols
51
Embedded Systems
Examples –
•Digital camera
•DVD player, music player
•Industrial robots
•Wireless Routers etc.
IoT Levels & Deployment Templates
An IoT system comprises of the following components:
•Device
•Resource
•Controller Service
•Database
•Web Service
•Analysis Component
•Application
IoT Levels & Deployment Templates
• Database: Database can be either local or in the cloud and stores the
data generated by the IoT device.
• Level-1 IoT systems are suitable for modeling low- cost and low-
complexity solutions where the data involved is not big and the
analysis requirements are not computationally intensive.
IoT Level-1
IoT Level-1
59
IoT – Level 1 Example …Home Automation System
60
IoT Level-2
• A 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.
• Level-2 IoT systems are suitable for solutions where the data involved
is big, however, the primary analysis requirement is not
computationally intensive and can be done locally itself.
IoT Level-2
IoT – Level 2 Example …Smart Irrigation
63
IoT Level-3
66
IoT Level-4
69
IoT Level-5
• A 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 end nodes and sends to the cloud.
• Data is stored and analyzed in the cloud and application is cloud-based.
• Level-5 IoT systems are suitable for solutions based on wireless sensor networks, in
which the data involved is big and the analysis requirements are computationally
intensive.
IoT Level-5
IoT Level-6
• A level-6 IoT system has multiple independent end nodes that perform
sensing and/or actuation and send data to the cloud.
• Data is stored in the cloud and application is cloud-based.
• The analytics component analyzes the data and stores 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
sends control commands to the nodes.
IoT Level-6