UNIT 1 : Introduction to IoT - Part 1  (Concepts, Protocols, and Architecture)

UNIT 1 : Introduction to IoT - Part 1 (Concepts, Protocols, and Architecture)

By Vinay Bhadane15 May 202613 min read16 views

Introduction to Internet of Things (IoT): Concepts, Protocols, and Architecture

The Internet of Things (IoT) represents one of the most significant advancements in modern computing and communication systems. It marks a paradigm shift where the internet is no longer limited to connecting computers, smartphones, and servers. Instead, it expands to connect everyday physical items—ranging from industrial machines and medical devices to household appliances and wearable sensors—to the digital world. This technical educational material provides a comprehensive introduction to the fundamental concepts, architectures, and protocols that define the IoT ecosystem.


1. Definition and Characteristics of IoT

Definition of IoT

The Internet of Things can be formally defined as a dynamic global network infrastructure with self-configuring capabilities based on standard and interoperable communication protocols. In this network, physical and virtual "things" have unique identities, physical attributes, and virtual personalities. They use intelligent interfaces and are seamlessly integrated into the information network.

In simple terms, IoT refers to a network of interconnected physical devices embedded with electronics, software, sensors, actuators, and network connectivity that enables these objects to collect, exchange, and act upon data without requiring human-to-human or human-to-computer interaction.

Hinglish Explanation: IoT ka simple matlab hai ki kisi bhi physical object (jaise fridge, AC, ya car) mein sensors aur internet connectivity lagakar use ek network se jodna. Isse wo device khud data collect kar sakta hai aur doosre devices ya cloud se bina insani madad ke baat kar sakta hai.

Core Characteristics of IoT

To understand how an IoT system functions, it is essential to analyze its core engineering characteristics:

  • Dynamic and Self-Adapting: IoT devices must have the ability to dynamically adapt to changing contexts and environments. For example, a smart surveillance camera must change its video capture modes based on different light levels (day versus night) or detect movement and alter its data reporting frequency.

  • Self-Configuring: IoT devices must be capable of configuring themselves automatically. This allows a vast number of devices to connect to the network, download necessary software updates, and establish security protocols with minimal human intervention.

  • Interoperable Communication Protocols: IoT systems consist of heterogeneous devices built by different manufacturers using varying hardware platforms. These devices must communicate using standard protocols to ensure seamless interoperability across diverse networks.

  • Unique Identity: Every IoT device must possess a unique identifier, such as an IP address or a Media Access Control (MAC) address. This ensures that data packets originating from a specific device can be accurately tracked, managed, and addressed.

  • Integrated into Information Network: IoT devices do not operate in isolation. They are deeply integrated into larger information networks, allowing them to publish data to centralized cloud systems or consume services from other network components.


2. Evolution of IoT

The evolution of the internet can be viewed as a transition through several technological phases, eventually culminating in the Internet of Things.

  1. Pre-Internet Era: Characterized by isolated human-to-human communication systems like traditional telephony and telegraphy.

  2. Internet of Content (Web 1.0): The early internet focused heavily on publishing information. Users could browse static web pages, access documents, and send emails. Communication was primarily one-way or transactional.

  3. Internet of Services (Web 2.0 & E-Commerce): The internet evolved into a transactional platform. Online banking, e-commerce, and enterprise applications redefined business operations, shifting focus toward services.

  4. Internet of People (Social Media Phase): This phase focused on human connectivity. Platforms allowed users to generate content, collaborate, and maintain continuous digital connections via social networks and mobile smartphones.

  5. Internet of Things (Current Phase): The focus has shifted from connecting people to connecting machine-to-machine (M2M) and machine-to-human entities. Data is automatically generated by devices rather than manually entered by humans.


3. Convergence of IoT Technologies

The realization of IoT is not the result of a single breakthrough technology. Instead, it is the convergence of several independent computing and engineering domains over recent decades:

  • Wireless Sensor Networks (WSN): WSNs consist of spatially distributed autonomous sensors that monitor physical or environmental conditions. WSN technologies provided the low-power communication foundations needed for modern IoT nodes.

  • Embedded Systems: Improvements in microcontrollers, System-on-Chips (SoCs), and real-time operating systems (RTOS) made it possible to place computing power, memory, and networking interfaces directly onto miniature, cost-effective physical chips.

  • Cloud Computing: The massive amount of data generated by billions of IoT devices requires scalable storage and processing infrastructures. Cloud computing provides the back-end platforms needed to execute heavy analytics, host databases, and run machine learning models.

  • Big Data Analytics: IoT systems produce continuous, high-volume data streams. Big Data technologies allow organizations to parse, filter, analyze, and extract actionable insights from unstructured device logs in real-time.


4. IoT Challenges

Building and deploying a large-scale IoT network introduces several critical engineering and deployment challenges:

  • Security and Privacy: Because IoT devices collect real-time data from private environments (such as smart homes or hospitals) and lack heavy cryptographic processing power, they are primary targets for cyberattacks. Securing data during transmission and storage is a major concern.

  • Interoperability and Standardization: The lack of a single global standard means different manufacturers often use proprietary protocols. This creates operational silos where devices from different vendors cannot talk to each other.

  • Scalability: As billions of new devices connect to global networks, the underlying network infrastructure must scale properly to handle the increased traffic, address allocation, and data processing demands.

  • Power Consumption: Many IoT devices operate in remote areas using battery power. Engineering low-power hardware and highly optimized protocols that extend battery life to several years is a persistent challenge.

  • Data Management: Managing the volume, velocity, and variety of data generated by sensors requires optimized storage architectures and advanced data-filtering techniques at the edge of the network.


5. Machine-to-Machine (M2M) Communication

Machine-to-Machine (M2M) communication refers to technologies that allow wired or wireless systems to communicate with other devices of the same ability without direct human manual intervention. It is often considered a foundational building block or a subset of the broader Internet of Things paradigm.

Key Components of M2M

An M2M architecture typically consists of three primary components:

  1. M2M Device: An embedded node equipped with a sensor or actuator that captures local environment data.

  2. Communication Network: The transit path (such as cellular networks, satellite links, or local area networks) that moves data from the device to the receiver.

  3. M2M Application: A central software system that processes incoming device data and triggers automated tasks or adjustments.

Comparison: M2M vs. IoT

ParameterM2M CommunicationInternet of Things (IoT)Scope & ScaleTypically point-to-point, isolated, and closed-loop systems.Global, open-loop systems connecting diverse applications.Communication TypeHardware-centric, machine-to-machine specific.Software and data-centric, machine-to-cloud and machine-to-human.ConnectivityUses traditional telecom networks (Cellular, Satellite) or direct links.Relies heavily on IP-based networks, cloud platforms, and local web protocols.Data UsageData is mostly used for immediate operational automation.Data is aggregated for long-term analytics, AI, and big data systems.

Hinglish Explanation: M2M ek point-to-point connection hai jahan do machines aapas mein direct baat karti hain, jaise ek vending machine cellular network ke zariye central server ko report karti hai. IoT iska ek bada roop hai, jahan hazaron devices internet aur cloud platforms ke zariye aapas mein aur insano se connect hote hain.


6. Things in IoT

In the context of an IoT ecosystem, a "Thing" is any physical object embedded with a specific set of hardware components that allow it to act as an active participant in an information network.

An IoT node or "Thing" is functionally structured with four core building blocks:

  1. Sensors: These are hardware components that detect changes in the physical environment and convert them into measurable electrical signals. Examples include temperature sensors (thermocouples), humidity sensors, accelerometers, and light sensors.

  2. Actuators: These components work in reverse compared to sensors. They take digital commands from the processor and convert them into physical movement or action. Examples include electric motors, relays (to turn appliances on/off), and hydraulic valves.

  3. Processing Unit: Typically a low-power microcontroller or a System-on-Chip (SoC) that runs the local software code, reads data from sensors, processes it, and commands the actuators.

  4. Communication Interface: The hardware module responsible for transmitting and receiving data over a network path (e.g., Wi-Fi, Bluetooth, Zigbee, LoRa transceiver chips).


7. IoT Protocols

The IoT protocol stack is designed to address the challenges of low power, constrained memory, and varying network bandwidths across different layers of system architecture.

This layer defines how data is physically transmitted over the local network medium.

  • IEEE 802.15.4: A technical standard defining low-rate wireless personal area networks (LR-WPANs). It forms the physical basis for protocols like Zigbee.

  • LoRaWAN: Long Range Wide Area Network protocol designed for low-power, battery-operated devices over regional, national, or global networks. It offers very long range transmissions with minimal power consumption.

  • Cellular (4G/5G/NB-IoT): Narrowband IoT (NB-IoT) is a cellular standard developed to deliver excellent indoor coverage for highly constrained enterprise IoT assets.

Network Layer

Responsible for addressing and routing data packets across multiple networks.

  • IPv6: Provides a massive address space, ensuring every individual IoT node globally can obtain a unique public IP address.

  • 6LoWPAN: IPv6 over Low-Power Wireless Personal Area Networks. This protocol applies header compression techniques to allow large IPv6 packets to fit into the small frame sizes defined by IEEE 802.15.4 wireless links.

Transport Layer

Manages end-to-end communication sessions and data flow control.

  • Transmission Control Protocol (TCP): A connection-oriented protocol that ensures reliable, ordered, and error-checked delivery of stream data. It has higher overhead, making it less suitable for highly constrained devices.

  • User Datagram Protocol (UDP): A simpler, connectionless internet protocol with minimal packet overhead. It does not guarantee delivery, but it is often preferred in IoT for its low power usage and speed.

Application Layer

Defines how applications interface with the network to format and exchange data.

  • MQTT (Message Queuing Telemetry Transport): A lightweight, broker-based publish-subscribe messaging protocol. Designed for use in resource-constrained environments and low-bandwidth, high-latency networks.

  • CoAP (Constrained Application Protocol): A specialized web transfer protocol designed for constrained nodes and networks. It mimics the RESTful model of HTTP but runs over UDP to reduce overhead.


8. Functional Blocks of an IoT Ecosystem

An IoT system relies on the coordination of several underlying functional blocks to manage device operations, communication, and applications smoothly:

+-----------------------------------------------------+
|                  APPLICATION LAYER                  |
|          (User Interfaces, Monitoring Apps)         |
+-----------------------------------------------------+
|      SERVICES     |    MANAGEMENT   |    SECURITY   |
| (Data Analytics)  | (Device Config) | (Auth/Encrypt)|
+-----------------------------------------------------+
|                 COMMUNICATION LAYER                 |
|             (Protocols, Network Routing)            |
+-----------------------------------------------------+
|                   DEVICE ECOSYSTEM                  |
|             (Sensors, Actuators, Hardware)          |
+-----------------------------------------------------+

Device: This block contains the physical hardware nodes, including sensors, actuators, and processing chips that interact directly with the environment.

  • Communication: Handles the protocols and transport mechanisms used by devices to send data packets to routers, gateways, or cloud servers.

  • Services: Provides functions such as device modeling, data publishing, and real-time data analytics processing.

  • Management: This block provides functions to manage the entire IoT system, including device discovery, configuration tracking, remote firmware updates, and status monitoring.

  • Security: Focuses on safeguarding the system. It handles user authentication, device identity verification, encryption of data in transit, and access control policies.

  • Application: The front-end interface that allows human users to interact with the IoT system, visualize data charts, set automation rules, and monitor system performance.


9. IoT Communication Models

IoT architectures use distinct communication design patterns to handle the distribution of data between devices, gateways, and central servers.

Request-Response Model

In this model, the client sends a request to the server, and the server processes the request, prepares the data, and sends a response back. This model is stateless and synchronous, meaning the client typically waits for the server to reply before continuing.

Publish-Subscribe Model

This model involves three main entities: Publishers, Subscribers, and a Broker. Publishers do not send data directly to subscribers. Instead, they send data to specific topics managed by a central Broker. Subscribers register their interest in a topic with the broker, and whenever new data arrives on that topic, the broker automatically forwards it to all subscribed clients. This model completely decouples the sender and receiver in terms of time, space, and synchronization.

Hinglish Explanation: Publish-Subscribe model mein data bhejne wala (Publisher) aur receive karne wala (Subscriber) direct connect nahi hote. Beech mein ek 'Broker' hota hai. Publisher kisi Topic par data bhej deta hai, aur jin devices ne us topic ko subscribe kiya hota hai, Broker unhe wo data forward kar deta hai. MQTT isi model par chalta hai.

Push-Pull Model

This model uses a shared data queue to decouple publishers and consumers. Publishers push messages into a storage queue, and consumers pull messages out of the queue from the other side. This model is highly effective for smoothing out traffic spikes when data production rates vary.

Exclusive Pair Model

This is a stateful, bidirectional, full-duplex communication model that establishes a persistent, long-lived connection between a client and a server. Once the connection setup phase is complete, both sides can send messages to each other at any time without the overhead of repeated request headers.


10. IoT Communication Application Programming Interfaces (APIs)

APIs define the standard programmatic interfaces used by applications to connect, share data, and command devices across an IoT system.

REST-based APIs (Representational State Transfer)

REST APIs follow the classic architectural principles of the Web, running primarily over the HTTP protocol. They use standard HTTP verbs to perform CRUD (Create, Read, Update, Delete) operations on devices, which are treated as unique web resources.

  • GET: Retrieves device data or status.

  • POST: Creates a new device instance or configurations.

  • PUT: Replaces or updates existing device attributes.

  • DELETE: Removes a device or database record.

REST is inherently stateless, meaning every single request sent from an IoT client must contain all the authorization parameters and context headers required to process it.

WebSocket-based APIs

WebSocket APIs offer full-duplex, bidirectional communication over a single, persistent TCP connection. After a fast handshake using HTTP, the underlying network connection remains open indefinitely. This allows both the client and the server to stream raw data frames back and forth instantly without the heavy overhead of repeating HTTP headers.

Comparison: REST APIs vs. WebSocket APIs

ParameterREST-based APIsWebSocket-based APIsProtocol FoundationRuns over standard HTTP.Starts with HTTP handshake, switches to standalone TCP connection.Communication StateStrictly Stateless.Stateful (connection remains open).Duplex TypeHalf-Duplex (Request followed by Response).Full-Duplex (Simultaneous bidirectional streaming).OverheadHigh (Every packet carries large text headers).Low (Minimal framing data after handshake).Best Used ForPeriodic data uploads, configuration updates.Real-time monitoring, low-latency live video streaming.


11. Important Engineering Notes

Important Note: Network Overhead in Constrained Nodes

When designing a production-grade IoT architecture, engineers must avoid using standard HTTP/REST APIs on deeply constrained devices (like 8-bit microcontrollers with less than 32KB of RAM). The extensive text headers of HTTP can quickly consume the limited memory and power available to the node. In these scenarios, use MQTT over TCP or CoAP over UDP to keep network overhead to a minimum.


Summary and Key Revision Points

  • IoT Core Concept: A global network infrastructure connecting uniquely identifiable physical objects to share data and perform automated actions.

  • Key Characteristics: Features dynamic self-adaptation, automated self-configuration, interoperability through standards, and unique device identification.

  • The Evolution: Shifted the internet from a human-driven environment (Web 1.0, 2.0, social networks) to an automated machine-to-machine data collection framework.

  • M2M vs. IoT: M2M focuses on isolated, point-to-point hardware connections. IoT builds a broader network, integrating devices with scalable cloud architectures and web applications.

  • The Anatomy of a "Thing": Every IoT node relies on sensors for environmental inputs, processors for computing tasks, actuators for physical outputs, and network interfaces for data transmission.

  • Essential Protocols: Lightweight messaging models like MQTT and CoAP are preferred over standard HTTP because they minimize packet sizes and power consumption.

  • Communication Models: Systems use specific data-routing styles like Request-Response, Publish-Subscribe, Push-Pull, or Exclusive Pair based on their real-time performance needs.

  • APIs: REST APIs are ideal for stateless, periodic data transfers, while WebSockets provide continuous, low-latency, full-duplex communication channels.


SEO Keywords

  • Internet of Things notes

  • What is IoT definition and characteristics

  • Evolution of IoT timeline

  • Difference between M2M and IoT

  • IoT application layer protocols MQTT CoAP

  • Functional blocks of IoT ecosystem

  • IoT communication models request response publish subscribe

  • REST vs WebSocket API in IoT

  • Computer engineering IoT study material

  • SPPU 2024 Pattern IoT Unit 1

  • IoT exam preparation notes text book style

Download PDF Notes & Get Updates

Join our WhatsApp channel for free PDF downloads and instant notifications when new notes drop.

Join WhatsApp

Advertisement

Comments (0)

Sign in to join the discussion