ESS IOT-Unit-1
ESS IOT-Unit-1
Introduction to IoT
[Link] Gummadi
[Link] Professor
gummadiannapurna@[Link]
Outline
• IoT definition
• Characteristics of IoT
• Physical Design of IoT
• Logical Design of IoT
• IoT Levels & Deployment Templates
• Challenges
Unit I: Introduction to Internet of Things
• Introduction - Definition and Characteristics of IoT.
• Physical Design of IoT – IoT Protocols.
• Logical Design of IoT -IoT Communication Models,
• IoT Communication APIs.
• IoT Enabling Technologies –
• Wireless Sensor Networks,
• Cloud Computing,
• Big data analytics,
• Communication protocols,
• Embedded Systems.
• IoT Levels and Deployment Templates- Challenges of IOT.
Starting from the Internet
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.
• Example:
Smart homes, wearable health monitors, smart irrigation systems.
Why IoT?
10
History of IoT
• 1970- The actual idea of connected devices was proposed
• 1990- John Romkey created a toaster which could be turned on/off over the Internet
• 1995- Siemens introduced the first cellular module built for M2M
• 1999- The term "Internet of Things" was used by Kevin Ashton during his work at P&G
which became widely accepted
• 2004 - The term was mentioned in famous publications like the Guardian, Boston
Globe, and Scientific American
• 2005-UN's International Telecommunications Union (ITU) published its first report on
this topic.
• 2008- The Internet of Things was born
• 2011- Gartner, the market research company, include "The Internet of Things"
technology in their research
Physical Design of IoT
• Things in IoT
• IoT Protocols
12
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
• a) IoT Devices:
Examples of IoT Devices:
• Sensors: Devices that detect changes in the environment.
– Examples: Temperature sensors, gas sensors, proximity sensors.
• Actuators: Devices that perform actions in response to commands.
– Examples: Motors, solenoids, relays (used to open doors, switch valves, etc.)
• Embedded Processors: Small-scale computing systems embedded into devices to process
sensor data and control actuators.
– Examples: Arduino (good for simple sensing), Raspberry Pi (more powerful for multimedia
or networking tasks).
Core Components of IoT Devices
• Sensors / Actuators:
– Sensors collect real-world data (light, sound, temperature, etc.).
– Actuators carry out actions based on sensor input or commands from a processor.
– Example: A temperature sensor reads the temperature, and if too hot, a fan actuator is turned on.
• Power Supply:
– Provides energy to run the device.
– Can be batteries, rechargeable cells, or solar panels.
– In remote areas, solar power is widely used for sustainable IoT deployments.
Core Components of IoT Devices
• Microcontrollers / Microprocessors:
– These are the "brains" of IoT devices.
– Microcontrollers (e.g., Arduino): Compact, low-power, ideal for basic tasks.
– Microprocessors (e.g., Raspberry Pi): Higher performance, can run full operating systems,
suitable for complex processing.
– They execute the logic, control sensors, actuators, and handle communications.
• Communication Modules:
– Responsible for connecting devices to each other or to the Internet.
– Includes wireless modules like:
• WiFi modules (ESP8266, ESP32)
• Bluetooth modules (HC-05, BLE)
• Zigbee modules (XBee)
• LoRa modules for long range and low power
• Cellular modules (SIM800L for GSM/3G/4G)
Generic block diagram of an IoT Device
24
IoT Protocols…Link Layer…Ethernet
• A set of IEEE standards defining wired LAN (Local Area
Network) communication, commonly used in homes and businesses.
• Features:
– High-speed, reliable data transfer.
– Common in industrial IoT (IIoT) and smart buildings.
– Requires physical cabling (Cat5, Cat6).
• Speeds:
Ranges from 10 Mbps (old) to 10 Gbps (modern Ethernet).
• Use Case:
Industrial control systems where reliability is crucial and power is not a
constraint.
IoT Protocols…Link Layer…Ethernet
This is a collection of wired Ethernet standards for the link
layer.
Sr.N Standard Shared medium(copper 0r
o fiber)
1 802.3 Coaxial Cable…10BASE5 &
shared medium
2 802.3.i Copper Twisted pair
…..10BASE-T
3 802.3.j Fiber Optic……10BASE-F
4 [Link] Fiber…..10Gbits/s
26
IoT Protocols…Link Layer…WiFi
• IEEE standard for Wireless Local Area Networks (WLAN).
• A wireless networking standard for local area networks, enabling devices to connect to
a network without cables.
• Variants:
– 802.11a/b/g/n/ac/ax (WiFi 4, 5, 6): differ in speed, frequency band, and range.
– Typically operates on 2.4 GHz or 5 GHz bands.
• Features:
– Medium to high bandwidth.
– Medium power consumption.
– High availability in home/office environments.
• Use Case:
Smart homes (e.g., smart TVs, cameras, thermostats), WiFi-enabled sensors.
IoT Protocols…Link Layer…WiFi
[Link] Standard Operates in
1 802.11a 5 GHz band
3 4G LTE
Low
802.15.4 Wireless ~10–100m (~250kbps) Low Zigbee, Thread devices
37
IoT Protocols…Transport Layer
The Transport Layer is responsible for end-to-end communication between devices or
applications across a network.
It ensures that data is delivered:[Link] [Link] [Link] the correct order
• Message transfer capability can be set up on connections
• Connection may be either using handshakes(as in TCP) or without handshakes /
acknowledgements (As in UDP)
• It provides functions such as error control, segmentation, flow-control and congestion
control
Transport Layer Protocols:
• TCP (reliable)
• UDP (lightweight and fast)
38
TCP (Transmission Control Protocol)
• TCP is a connection-oriented, reliable transport layer protocol used
for data transmission across IP networks. It establishes a virtual
connection between sender and receiver before data transfer begins.
TCP Works (Simplified Flow):
• Connection Setup (3-way handshake)
• Data Transmission with Acknowledgments
• Error Detection and Retransmission
• Flow and Congestion Management
• Connection Termination (4-step FIN process)
TCP (Transmission Control Protocol)
• Type: Connection-oriented (uses a 3-way handshake)
• Reliability: High – guarantees delivery, order, and data
integrity
• Error Recovery: Automatic retransmission of lost packets
• Use Cases in IoT:
– Applications where data accuracy is critical
– Examples: Remote firmware updates, financial transactions, secure
IoT applications
UDP (User Datagram Protocol)
• UDP is a connectionless, lightweight transport layer protocol that
sends messages, called datagrams, without establishing a dedicated
end-to-end connection. It is designed for fast, low-
overhead transmission, making it ideal for real-time and resource-
constrained applications.
UDP Works:
• Data is packaged into datagrams and sent directly to the receiver.
• No acknowledgment or sequencing.
• No guarantee of delivery or duplication avoidance.
UDP (User Datagram Protocol)
• Type: Connectionless (no handshake)
• Reliability: Low – no guarantees for delivery or order
• Error Recovery: None – best effort delivery
• Use Cases in IoT:
– Lightweight and time-sensitive applications
– Examples: Real-time sensor data, video streaming, DNS queries, CoAP
protocol
Comparison Between TCP and UDP in IoT
• The Application Layer is the topmost layer in the network protocol stack. It
provides services and interfaces directly to the IoT applications (such as smart
homes, healthcare monitors, industrial automation systems) and facilitates
communication between devices and users.
It enables:
• Device data exchange
• Control operations
• Human-machine interfaces
• Integration with cloud platforms
IoT Protocols…Application Layer…Hyper Text Transfer Protocol
1. HTTP (HyperText Transfer Protocol): HTTP is a request–response protocol used by web browsers and servers to
communicate over the internet. It operates over TCP (Transmission Control Protocol) and is part of
the application layer in the OSI [Link] IoT, HTTP is used for communicating between IoT devices and
web/cloud services, often through RESTful APIs.
HTTP Works:
• The client (IoT device) sends a request to a server (cloud or local).
• The server processes the request and sends back a response.
• The communication uses methods like:
• GET – retrieve data
• POST – send data
• PUT – update data
• DELETE – remove data
• Pros:
• Widely supported and understood
• Can work with REST APIs
• Cons:
• Heavy for constrained devices (large headers, high overhead)
• Example: A smart irrigation controller receives commands via HTTP REST API.
45
IoT Protocols…Application Layer…CoAP
• CoAP (Constrained Application Protocol):CoAP is a lightweight web transfer protocol designed specifically
for constrained devices and low-power networks commonly found in IoT environments. It is similar to HTTP but
optimized for low-bandwidth, low-power scenarios.
• Transport: UDP
• Features:
• Lightweight and efficient
• Supports multicast, caching, and low power usage
• Pros:
• Ideal for low-power and lossy networks (LLNs)
• Works similarly to HTTP but much lighter
• Cons:
• Less mature than HTTP in some ecosystems
• Example: Soil moisture sensors in agriculture sending data using CoAP.
46
IoT Protocols…Application Layer…WebSocket
• WebSocket: It is a full-duplex, bidirectional communication protocol that runs over TCP. Unlike traditional HTTP
(which is request–response based), WebSocket allows persistent connections, enabling real-time data exchange
between a client and a server.
WebSocket Works (Simplified Flow):
• A client sends an HTTP request with a WebSocket upgrade header.
• The server responds and establishes a WebSocket session.
• Both sides can send and receive data at any time over a single connection.
• Features:
• Enables real-time, bi-directional communication
• Maintains a persistent connection between server and client
• Pros:
• Ideal for live data streaming
• Lower latency than polling-based protocols like HTTP
• Cons:
• More complex than simple REST interfaces
• Example: Real-time dashboard showing live air quality sensor data via WebSocket.
47
IoT Protocols…Application Layer…MQTT
• MQTT (Message Queuing Telemetry Transport):MQTT is a lightweight, publish-subscribe messaging protocol designed
for low-bandwidth, high-latency, or unreliable networks. It is especially useful for IoT devices that have limited processing
power and memory.
• MQTT Works:
• Devices (clients) publish messages to a topic (e.g., home/temp).
• Other devices subscribe to that topic to receive updates.
• A broker (central server like Mosquitto) manages the messages and routes them.
• Features:
– Small message footprint
– Excellent for unreliable or low-bandwidth networks
– Uses topics for publishing and subscribing
• Pros:
– Highly scalable
– Power efficient
• Cons:
– Requires an MQTT broker (like Mosquitto)
• Example: Smart home devices like door sensors publishing messages to /home/door1/status.
IoT Protocols…Application Layer…XMPP
• XMPP (Extensible Messaging and Presence Protocol):XMPP is a communication protocol based on XML for real-
time, decentralized messaging, originally designed for instant messaging. It has been extended for IoT
applications, enabling machine-to-machine (M2M) communication.
• Transport: TCP
• Features:
• Originally for chat apps, adapted for IoT
• Real-time, decentralized communication
• Pros:
• Open and extensible
• Secure messaging supported
• Cons:
• XML-based: can be verbose for constrained devices
• Example: Remote monitoring and alert messaging in connected healthcare systems.
49
IoT Protocols…Application Layer…DDS
• 5. DDS (Data Distribution Service): DDS is a middleware protocol and API standard for real-time, scalable, and
high-performance data exchange. It is based on a publish–subscribe model, and is especially used in mission-
critical IoT applications like autonomous vehicles, robotics, healthcare, and defense.
• It is defined by the OMG (Object Management Group) standard.
• Type: Real-time data-centric publish/subscribe middleware
• Transport: TCP/UDP
• Features:
• Peer-to-peer architecture (no broker needed)
• High throughput and low latency
• Pros:
• Designed for mission-critical systems
• Supports real-time and QoS policies
• Cons:
• Complex to configure
• Heavier than MQTT/CoAP
• Example: Industrial robotics systems requiring fast and reliable communication between subsystems.
50
IoT Protocols…Application Layer…AMQP
• 6. AMQP (Advanced Message Queuing Protocol): AMQP is an open-standard messaging protocol designed
for reliable, secure, and interoperable communication between systems. It is most commonly used in enterprise
messaging, financial systems, and now increasingly in IoT backends where robust message queuing is essential.
AMQP Works:
• Producer sends a message to an exchange.
• The exchange uses routing rules to send it to one or more queues.
• Consumer(s) receive messages from those queues.
• Acknowledgments ensure reliable delivery.
• Features:
• Reliable queuing, delivery guarantees
• Suited for business and cloud integration
• Pros:
• Advanced features like transaction support
• Secure and reliable
• Cons:
• Heavier footprint—not suitable for small IoT devices
• Example: Smart energy meters sending usage data to a central billing platform.
51
Logical Design of IoT
• Logical design of IoT system refers to an abstract representation
of the entities & processes without going into the low-level
specifies of the implementation.
• The logical design defines how IoT systems are structured
conceptually—how devices, data, and services interact to deliver
intelligent behavior. It focuses on software architecture, data
flow, and communication mechanisms.
• it uses
• IoT Functional Blocks
• IoT Communication Models
• IoT Communication APIs
IoT Functional Blocks
•An IoT system consist number
of functional blocks that provide
the system the capabilities for
identification, sensing, actuation,
communication and
management.
•Functional blocks are Devices,
services, communication,
security,application and
management.
IoT Functional Blocks
• Device-to-Device (D2D):
– Direct communication between devices using short-range protocols like
Bluetooth.
• Device-to-Gateway:
– Devices send data to a local gateway which forwards to the cloud.
• Device-to-Cloud:
– Devices communicate directly with cloud servers.
• Back-End Data Sharing:
– Enables data sharing with third parties or analytics services.
IoT Communication Models
• In IoT systems, devices must communicate with each other, with
servers, and with users. This communication can follow
different architectural models, depending on the requirements for
speed, reliability, and scalability.
• There are four types of communication models in IoT:
1. Request-Response
2. Publish-Subscribe
3. Push-Pull
4. Exclusive Pair
58
Request-Response communication model
• Request-Response is a communication model
in which the client sends requests to the
server and the server responds to the
requests.
Example in IoT:
A smart meter requests its configuration
settings from a cloud server and receives the
response instantly.
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 a topic from the
publisher, it sends the data to all the subscribed
consumers.
Example in IoT:
A temperature sensor publishes data
to home/room1/temp, and a display or controller
subscribed to that topic receives the data.
Protocols Used:
•MQTT
•AMQP
•DDS
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 in IoT:
A fleet of delivery drones pushes telemetry
data to a queue, and a backend analytics
service pulls the data for processing at its own
pace.
Protocols/Technologies:
AMQP
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.
Example in IoT:
A factory sensor sends readings only to its
paired controller via a secure, exclusive
channel.
Protocols Used:
•WebSocket
•Bluetooth
•TCP sockets
Comparison of Communication Model
Communicatio Example
Model n Type Use Case Protocol
Publish– Sensor-to-cloud
Subscribe Asynchronous updates MQTT, DDS
Data ingestion
Push–Pull Buffered transfer pipelines AMQP, Kafka
Real-time control
Exclusive Pair One-to-One or alerts WebSocket, TCP
IoT Communication APIs
• An IoT API (Application Programming Interface) is a software bridge that allows
different devices, services, and applications in an IoT ecosystem to communicate and
interact with each other.
Think of APIs as the rules and formats that let an IoT device:
• Send data to a cloud service
• Receive commands from a mobile app
• Interact with other devices
• APIs enable standardized communication, making IoT systems
more interoperable, scalable, and manageable.
• 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
77
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
80
IoT Level-3
83
IoT Level-4
86
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
Challenges of IoT