Skip to main content
Internet of Things(IOT)
Basics of Networking and Communication
Protocols, Sensor Networks, Introduction to
IoT Security and Privacy Fundamentals.
UNIT – I
Introduction to IoT and Sensor Networks
Introduction to Internet of Things (IoT), Characteristics and
Applications of IoT, IoT Architecture and Reference Models
(IETF, ITU-T)
Physical Design of IoT: Devices, Gateways, and Data Centers
Functional Blocks of IoT: Sensing, Actuation, Communication,
Enabling Technologies: RFID, Wireless Sensor Networks,
Nanotechnology
Basics of Networking and Communication Protocols: MQTT,
CoAP, ZigBee, HTTP Sensor Networks: Types, Topologies, and
Protocols Introduction to IoT Security and Privacy
Fundamentals.
Basics of Networking and Communication Protocols: MQTT,
CoAP, ZigBee, HTTP
Communication protocols define the rules that allow IoT
devices to exchange data reliably and efficiently. Different
protocols are designed for different purposes, such as low
power consumption, high speed, or web communication.
Networking Basics in IoT
IoT networking enables communication between sensors,
devices, gateways, cloud servers, and user applications.
Basic IoT Communication Model
+--------------+ +--------------+ +-------------+ +---------------+
| Sensors & | --> | Gateway / | --> | Cloud / | --> | User |
| Actuators | | Router | | Server | | Application|
+--------------+ +--------------+ +------------+ +---------------+
Types of Communication
Device-to-Device (D2D):
– Devices communicate directly.
– Example: Bluetooth between a phone and a smartwatch.
Device-to-Cloud (D2C):
– Devices send data directly to the cloud.
– Example: Smart thermostat sending temperature data.
Device-to-Gateway (D2G):
– Devices communicate through a gateway.
– Example: ZigBee sensors connected to a home gateway.
Back-End Data Sharing:
– Cloud services share IoT data with other applications.
– Example: Smart city traffic data shared with navigation apps.
1. MQTT (Message Queuing Telemetry Transport)
MQTT is a lightweight messaging protocol designed for low-
bandwidth and low-power IoT devices. It follows the
Publish/Subscribe communication model.
MQTT Architecture
+------------------+
| MQTT Broker |
+------------------+
/ | 
/ | 
Publisher Publisher Subscriber
(Sensor) (Camera) (Mobile App)
Working
Publisher sends data to a topic.
Broker receives the message.
Broker forwards the message to all subscribers of that
topic.
Applications
Smart homes
Healthcare monitoring
Agriculture
Industrial IoT
Vehicle tracking
Advantages
Fast communication
Low power consumption
Scalable
Easy implementation
Suitable for remote monitoring
Disadvantages
Requires a broker
Not suitable for large file transfer
2. CoAP (Constrained Application Protocol)
CoAP is a lightweight web transfer protocol developed for
constrained devices and low-power networks. It works over
UDP and follows a Client/Server (Request/Response) model.
CoAP Architecture
+-------------+ Request +----------------+
| CoAP | --------------------> | CoAP |
| Client | | Server |
| (Sensor) | <-------------------- | (Gateway) |
+------------+ Response +---------------+
Methods
GET – Read data
POST – Create data
PUT – Update data
DELETE – Remove data
Applications
Smart lighting
Smart meters
Environmental monitoring
Home automation
Advantages
Low power consumption
Small message size
Fast communication
Suitable for sensor networks
Disadvantages
Less reliable than TCP-based protocols
Limited security compared to HTTP
3. ZigBee
ZigBee is a low-power wireless communication protocol
based on the IEEE 802.15.4 standard. It is designed for short-
range communication in IoT networks.
ZigBee Network
Coordinator
|
-----------------------------
| | |
Router Router Router
| | |
End Dev End Dev End Dev
Device Types
Coordinator
– Starts and manages the network.
– Only one coordinator in a ZigBee network.
Router
– Extends network coverage.
– Forwards data between devices.
End Device
– Sensor or actuator.
– Communicates through a router or coordinator.
Applications
Home automation
Smart lighting
Industrial monitoring
Smart energy meters
4. HTTP (HyperText Transfer Protocol)
HTTP is the standard protocol used for communication
between web browsers, servers, and IoT devices. It follows a
Client/Server (Request/Response) model and works over
TCP.
HTTP Communication
+----------------+ HTTP Request +-----------------+
| Client | ----------------------> | Web Server |
| (Browser / | | |
| IoT Device) | <---------------------- | |
+-----------------+ HTTP Response +------------------+
HTTP Methods
GET – Retrieve data
POST – Send data
PUT – Update data
DELETE – Delete data
Applications
Web-based IoT dashboards
Smart home control via browser
Cloud communication
REST APIs
Advantages
Widely supported
Reliable communication
Easy integration with web services
Disadvantages
Higher bandwidth usage
More overhead than MQTT and CoAP
Higher power consumption
Real-World Examples
Protocol Example
MQTT
Temperature sensor publishing data to a cloud
dashboard
CoAP Smart light controlled from a mobile app
ZigBee
Smart bulbs and home automation devices
communicating in a mesh network
HTTP
Weather station sending data to a web server
using a REST API
Sensor Networks: Types, Topologies, and Protocols
A Sensor Network is a collection of interconnected sensor
nodes that monitor physical or environmental conditions
(such as temperature, humidity, pressure, light, or motion)
and transmit the collected data to a central location for
processing and analysis.
Sensor networks are a fundamental part of Internet of Things
(IoT) systems and are widely used in smart homes,
healthcare, agriculture, industrial automation, and
environmental monitoring.
Basic Architecture of a Sensor Network
Types of Sensor Networks
1. Wireless Sensor Network (WSN)
Uses wireless communication.
Sensor nodes communicate without cables.
Common protocols: ZigBee, Wi-Fi, Bluetooth.
Applications
Environmental monitoring
Smart agriculture
Smart homes
Advantages
Easy installation
Low maintenance
Flexible deployment
2. Wired Sensor Network
Uses cables for communication.
Provides high reliability and speed.
Applications
Industrial automation
Factory monitoring
Advantages
Reliable communication
High data transfer rate
Disadvantages
Expensive installation
Limited flexibility
3. Mobile Sensor Network
Sensor nodes can move from one place to another.
Applications
Military surveillance
Disaster management
Wildlife monitoring
4. Underground Sensor Network
Sensors are deployed underground.
Applications
Soil monitoring
Mining
Pipeline monitoring
5. Underwater Sensor Network
Sensors are placed underwater.
Applications
Ocean monitoring
Water quality analysis
Marine research
6. Multimedia Sensor Network
Uses cameras and microphones along with traditional
sensors.
Applications
Video surveillance
Traffic monitoring
Smart security systems
Sensor Network Topologies
A network topology defines how sensor nodes are
connected.
1. Star Topology
Features
All sensor nodes communicate directly with the gateway.
Advantages
Easy to install
Simple management
Failure of one node does not affect others
Disadvantages
Gateway failure stops the entire network
Limited communication range
2. Bus Topology
Features
All devices share a common communication line.
Advantages
Low cost
Simple design
Disadvantages
Cable failure affects the network
Difficult troubleshooting
3. Ring Topology
Features
Each node connects to two neighboring nodes.
Advantages
Equal communication opportunity
Disadvantages
Failure of one node may affect communication
4. Mesh Topology
Features
Every node communicates with multiple nodes.
Advantages
Highly reliable
Self-healing
No single point of failure
Disadvantages
Higher cost
Complex implementation
5. Tree Topology
Features
Hierarchical structure.
Advantages
Easy expansion
Suitable for large networks
Disadvantages
Parent node failure affects child nodes
Sensor Network Communication Protocols
Protocol Range Data Rate
Power
Consumption
Applications
ZigBee 10–100 m 250 kbps Low Home automation
Bluetooth Low
Energy (BLE)
10–100 m
Up to 2
Mbps
Very Low Wearables
Wi-Fi 50–100 m High High Smart homes
LoRaWAN Up to 15 km Low Very Low Smart agriculture
NB-IoT Long range Moderate Low Smart cities
MQTT Internet Moderate Low Cloud messaging
CoAP Internet Moderate Very Low Sensor communication
Introduction to IoT Security and Privacy Fundamentals
As IoT devices collect and exchange sensitive information,
security and privacy are essential to protect devices, users,
and data from cyber threats.
IoT Security: Protecting IoT devices, networks, and data
from unauthorized access, attacks, and misuse.
IoT Privacy: Ensuring that users' personal and sensitive
information is collected, stored, and shared only with proper
authorization.
Security Requirements
1. Confidentiality
Ensures only authorized users can access data.
Example: Encrypting health records.
2. Integrity
Ensures data is not altered during transmission.
3. Availability
Ensures systems remain operational whenever needed.
4. Authentication
Verifies the identity of users and devices.
5. Authorization
Grants appropriate permissions after authentication.
Basics of Networking and Communication Protocols, Sensor Networks,Introduction to IoT Security and Privacy Fundamentals.