IOT Unit 1
IOT Unit 1
1
1
Internet of Things CSE/ VIISem
UNIT-I
Introduction to IoT
Vision of Computer Science Department
To become renowned Centre of Excellence in Computer Science and Engineering and
make competent engineers and professionals with high ethical values prepared for
lifelong learning.
Mission of Computer Science Department
M1 - To impart outcome based education for emerging technologies in the field of
computer science and engineering.
M2 - To provide opportunities for interaction between academia and industry.
M3 - To provide platform for lifelo learning by accepting the change in technologiesM4
- To develop aptitude of fulfilling social responsibilities.
COURSE OUTCOMES (CO)
CO1: Understand the revolution of internet in field of cloud, wireless network,
embedded system and mobile devices.
CO2: Apply IOT design concepts in various dimensions implementing software
and hardware.
CO3: Analyze various M2M and IOT architectures.
CO4: Design and develop various applications in IOT.
MAPPING OF CO & PO
Subject Code L/T/P CO P P P P P P PO PO P P P P P P
O O O O O O 7 8 O O O O S S
1 2 3 4 5 6 9 1 1 1 O O
0 1 2 1 2
Understand the revolution of internet in field
of cloud, wireless network, embedded system
L and mobile devices.
H H M M M M - -- M M M H H H
• T3 :- “Getting Started with Raspberry Pi, Matt Richardson & Shawn Wallace,
O’Reilly (SPD), 2014, ISBN: 9789350239759”.
WHAT IS IOT??
• Internet Of Things is Fully Networked and Connected Devices
sending analytics data back to cloud or data center.
• The definition of Internet of things is that it is the network in which
every object or thing is provided unique identifier and data is
transferred through a network without any verbal communication.
• Scope of IoT is not just limited to just connecting things to the
internet, but it allows these things to communicate and exchange
data, process them as well as control them while executing
applications.
Internet of Things CSE/ VII
Sem
IOT
Internet of Things CSE/ VII
Sem
• These devices, often called "connected" or "smart" devices, can sometimes talk
to other related devices, a process called machine-to-machine (M2M)
communication, and act on the information they get from one another.
• Humans can interact with the gadgets to set them up, give them instructions or
access the data, but the devices do most of the work on their own without
human intervention.
Internet of Things CSE/ VII
Sem
HOW IOT WORKS??
Internet of Things CSE/ VII
Sem
IOT LIFECYCLE
Internet of Things CSE/ VII
Sem
Internet of Things CSE/ VII
Sem
CHARACTERISTICS OF IOT
• Dynamic Global network & Self-Adapting : Adapt the changes
w.r.t changing contexts
• Self Configuring : Eg. Fetching latest s/w updates without manual
intervention.
• Interoperable Communication Protocols : Communicate
through various protocols
• Unique Identity : Such as Unique IP Address or a URI
• Integrated into Information Network : This allows to
communicate and exchange data with other devices to perform
certain analysis.
Internet of Things CSE/ VII
Sem
WHAT INTERNET OF THINGS DO?
Internet of Things CSE/ VII
Sem
Internet of Things CSE/ VII
HOW MANY IOT DEVICES ARE THERE TODAY? Sem
• In the year 2017 there were 8.4 billion IoT connected devices in the
whole worldwide.
THINGS IN IOT
• Refers to IoT devices which have unique identities that can perform
sensing, actuating and monitoring capabilities.
• IoT devices can exchange data with other connected devices or collect
data from other devices and process the data either locally or send the
data to centralized servers or cloud – based application back-ends for
processing the data.
Internet of Things CSE/ VII
GENERIC BLOCK DIAGRAM OF AN IOT Sem
DEVICE
• An IoT device may consist of
several interfaces for
connections to other devices,
both wired and wireless.
• I/O interfaces for sensors
• Interfaces for internet
connectivity
• Memory and storage interfaces
• Audio/video interfaces
Internet of Things CSE/ VII
Sem
FUTURE WITH IOT
• Internet of Things Wearable devices is the future. You can control your car with a smart watch like
automatically parking it and for closing or to open the doors.
• Your wearable device may also detect the dangers around you. We already have devices that track our
activity and exercise habits.
• In the near future, we may also be able to easily track our calorie intake and eating habits automatically. So
everything is going to be easy except that making everything easy is tough.
• Here are some examples of IoT wearable devices that are already available in the market.
• IOT
Protocols
• Things in
IOT
Internet of Things CSE/ VII
IOT PROTOCOLS Sem
• 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
• Transport Layer
• TCP
• UDP
• Application Layer
• HTTP
• CoAP
• WebSocket
• MQTT
• XMPP
• DDS
• AMQP
Internet of Things CSE/ VII
4 802.3.ae Fiber…..10Gbits/s
WPAN
• Collection of standards for low-rate wireless personal area
networks
MOBILE COMMUNICATION
Sr.No Standard Operates in
1 2G GSM-CDMA
3 4G LTE
LAYER
• Responsible for sending of IP datagrams from source to destination
network
• IPV4
• Used to identify the devices on a network using hierarchical addressing scheme
• Uses 32-bit address scheme
• IPV6
• Uses 128-bit address scheme
• 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
Internet of Things CSE/ VII
IOT PROTOCOLS…TRANSPORT Sem
LAYER
PROTOCOLS…TCP
• Transmission Control Protocol
• Connection Oriented
• Ensures Reliable transmission
• Provides Error Detection Capability to ensure no duplicacy of packets and retransmit
lost packets
• Flow Control capability to ensure the sending data rate is not too high for the receiver
process
• Congestion control capability helps in avoiding congestion which leads to degradation
of n/w performance
Internet of Things CSE/ VII
Sem
IOT
PROTOCOLS…UDP
IOT PROTOCOLS…APPLICATION
Sem
LAYER…COAP
• Constrained Application Protocol
• Used for Machine to machine (M2M) applications meant for constrained
devices and n/w’s
• Web transfer protocol for IoT and uses request-response
model
• Uses client –server architecture
• Supports methods such as GET,POST, PUT and DELETE
Internet of Things CSE/ VII
IOT PROTOCOLS…APPLICATION Sem
LAYER…WEBSOCKET
• Allows full-duplex communication over single socket
• Based on TCP
• Client can be a browser, IoT device or mobile application
IoT Protocols…Application
Layer…MQTT
• Message Queue Telemetry Transport , light-weight messaging protocol
• Based on publish-subscribe model
• Well suited for constrained environments where devices have limited processing, low
memory and n/w bandwith requirement
Internet of Things CSE/ VII
• Request–Response is a
communication model in which
the client sends requests to the
server and the server responds to
the requests.
• 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
a topic from the publisher, it sends
the data to all the subscribed
consumers.
Internet of Things CSE/ VII
• 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 at which the
consumers pull data.
Internet of Things CSE/ VII
• Exclusive Pair is a
bidirectional, fully duplex
communication model that
uses a persistent connection
between the client and the
server.
• Once the connection is set
up 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.
Internet of Things CSE/ VII
• Client – Server
Client Server
• Stateless
• Cacheable Request
• Layered System
• Uniform Interface Response
• Code on demand
Request
Response
Internet of Things CSE/ VII
COMMUNICATION APIS
Comparison Based on REST Websocket
State Stateless Stateful
Directional Unidirectional Bidirectional
Req-Res/Full Duplex Follow Request Response Model Exclusive Pair Model
TCP Connections Each HTTP request involves setting Involves a single TCP
up a new TCP Connection Connection for all requests
Header Overhead Each request carries HTTP Headers, Does not involve overhead of
hence not suitable for real-time headers.
Scalability Both horizontal and vertical are Only Vertical is easier
easier
Internet of Things CSE/ VII
• Cloud Computing
• Embedded Systems
Internet of Things CSE/ VII
Sem
WSN
CLOUD COMPUTING
Sem
• Structured
• Unstructured
• SemiStructured
• All of above
Internet of Things CSE/ VII
Sem
BIG DATA ANALYTICS
Velocity Refers to speed at which data is processed
• Batch
• Real-time
• STreams
Internet of Things CSE/ VII
Sem
BIG DATA ANALYTICS
Volume refers to the amount of data
• Terabyte
• Records
• Transactions
• Files
• Tables
Internet of Things CSE/ VII
• Database: Database can be either local or in the cloud and stores the data
generated by the IoT device.
• Web Service: Web services serve as a link between the IoT device,
application, database and analysis components. Web service can be
implemented using HTTP and REST principles (REST service) or using the
WebSocket protocol (WebSocket service).
• Analysis Component: This is responsible for analyzing the IoT data and
generating results in a form that is easy for the user to understand.
• Application: IoT applications provide an interface that the users can use to
control and monitor various aspects of the IoT system. Applications also
allow users to view the system status and the processed data.
Internet of Things CSE/ VII