Core Characteristics of the Internet of Things
Core Characteristics of the Internet of Things
1. Dynamic & Self-Adapting
Devices automatically change their mode when conditions change (e.g., a CCTV camera switches to night-vision when it gets dark).
2. Self-Configuring
New devices join the network, get an IP address, and set up software updates automatically without manual configuration.
3. Interoperable Communication
Devices made by different companies (Samsung, Philips, Xiaomi) can communicate smoothly using common standard protocols.
4. Unique Identity
Every connected thing has a unique address (IP address or MAC address), just like every student has a unique roll number.
Explanation
- Each connected device needs an identity and a way to communicate.
- Sensing, changing conditions and differences between devices shape the system's design.
The IoT Conceptual Equation
The IoT Conceptual Equation
Physical Object
(The "Thing")
(The "Thing")
+ Controller, Sensor & Actuator
(Electronics)
(Electronics)
+ Internet Connectivity
(Protocols)
(Protocols)
➔ Internet of Things (IoT)
Explanation
- A connected thing combines physical sensing or action with processing and communication.
- The service uses that connection to turn a reading into a useful response.
Basic 3-Layer IoT Architecture
Basic 3-Layer IoT Architecture
1. Perception Layer (Physical)
Sensors, Actuators, RFID, Barcodes
Sensors, Actuators, RFID, Barcodes
➔ Raw Data ➔
2. Network Layer (Transmission)
Wi-Fi, 4G/5G, Zigbee, LoRa, Gateways
Wi-Fi, 4G/5G, Zigbee, LoRa, Gateways
➔ Processed Info ➔
3. Application Layer (User View)
Smart Homes, Healthcare, Dashboards
Smart Homes, Healthcare, Dashboards
Explanation
- The perception layer measures the physical world and the network carries the readings.
- The application layer uses them for a task such as monitoring a tank.
Enterprise 5-Layer IoT Architecture
Enterprise 5-Layer IoT Architecture
5. Business Layer
Overall management, business goals, monthly billing, user privacy, and executive reports.
4. Application Layer
User-facing interfaces: Mobile apps, alert notifications, and web dashboards.
3. Processing Layer (Middleware)
Cloud servers, Big Data storage, data filtering, and AI analytics engines.
2. Transport Layer (Network)
Transmits sensor packets across 4G/5G, LoRaWAN, Wi-Fi, and Internet routers.
1. Perception Layer (Physical)
Physical hardware nodes: Sensors, RFID tags, microcontrollers, and actuators.
Explanation
- The perception and transport layers collect and carry observations.
- Processing, application and business layers turn them into services and decisions.
Internal Hardware Architecture of an IoT Node
Internal Hardware Architecture of an IoT Node
1. Processing Unit (MCU / SoC)
The "brain" of the device (such as ATmega328P on Arduino, ESP32, or ARM Cortex) that runs the firmware code.
2. Sensors & Actuators
Sensors act as eyes and ears (detecting temperature, light, motion). Actuators act as hands and legs (relays, motors, buzzers).
3. Communication Interface
Wireless modules that give connectivity: Wi-Fi (802.11), BLE, Zigbee (802.15.4), LoRa, or 4G/GSM.
4. Memory & Power Unit
RAM and Flash memory to store code and data; powered by batteries, solar cells, or DC adapters.
Explanation
- A sensor supplies a signal and a controller processes it.
- A communication interface sends the result while the power system supports the node.
The 4-Layer IoT Protocol Stack
The 4-Layer IoT Protocol Stack
4. Application Layer
MQTT, CoAP, AMQP, XMPP, HTTP / REST, WebSockets
3. Transport Layer
TCP (Reliable, connection-oriented) and UDP (Fast, lightweight, connectionless)
2. Network / Internet Layer
IPv4, IPv6, 6LoWPAN (IPv6 over Low-Power Wireless PAN), RPL Routing
1. Link / Physical Layer
IEEE 802.15.4, Bluetooth Low Energy (BLE), Wi-Fi (802.11), LoRaWAN, Cellular (NB-IoT)
Explanation
- Local links carry frames and the network layer routes packets.
- Transport and application protocols deliver and interpret device messages.
The Six IoT Functional Blocks
The Six IoT Functional Blocks
1. Device Block
The software running on the hardware to read sensors, trigger actuators, and monitor device health.
2. Communication Block
Handles network connections and sends/receives packets using Wi-Fi, Bluetooth, or cellular networks.
3. Services Block
Provides essential services like data storage, analytics, device discovery, and message routing.
4. Management Block
Administrative tools to configure devices, install remote firmware updates, and check device status.
5. Security Block
Protects the system using user logins, password authentication, access rights, and data encryption.
6. Application Block
The user interface: mobile apps and web dashboards with buttons, charts, and alert notifications.
Explanation
- Devices and communication carry readings to services and applications.
- Management and security support those parts throughout their operation.
RESTful vs. WebSocket API Comparison
RESTful vs. WebSocket API Comparison
REST-Based APIs (Stateless Request-Response)
Client sends a request, server sends a reply, then connection closes.
Half-duplex, higher overhead per packet.
Half-duplex, higher overhead per packet.
WebSocket-Based APIs (Persistent Full-Duplex)
Single connection stays open like a phone call.
Full-duplex, two-way, ultra-low overhead for live streaming.
Full-duplex, two-way, ultra-low overhead for live streaming.
Explanation
- A REST client requests a representation of a resource.
- A WebSocket connection lets either endpoint send messages after setup.
The Four IoT Communication Models
The Four IoT Communication Models
1. Request - Response
Client asks for data; server answers and closes the connection. Simple and stateless.
2. Publish - Subscribe
Publishers send data to a Topic on a Broker; Subscribers automatically receive it.
3. Push - Pull
Producers push messages into a Queue; Consumers pull and process them at their own speed.
4. Exclusive Pair
A persistent, two-way (full-duplex) open channel between two devices.
Explanation
- Request-response waits for an answer and publish-subscribe distributes by topic.
- Push-pull distributes work, while an exclusive pair maintains a direct conversation.
Publish-Subscribe Architecture (MQTT Pattern)
Publish-Subscribe Architecture (MQTT Pattern)
Publisher (Sensor)
Publishes to Topic:
Publishes to Topic:
home/temp➔ Central Broker (Server)
Routes message to subscribers ➔
Routes message to subscribers ➔
Subscribers
AC Unit & Phone App
AC Unit & Phone App
Explanation
- A publisher sends a reading to a named topic at the broker.
- Subscribers to that topic receive it without a direct link to the sensor.
Major Domains of IoT Applications
Major Domains of IoT Applications
1. Smart Homes
Automatic lights, smart AC control, video doorbells, and gas leak alarms.
2. Smart Cities
Smart streetlights, smart dustbins, automatic traffic signals, and water management.
3. Smart Agriculture
Soil moisture tracking, automatic drip irrigation, and greenhouse climate control.
4. Smart Healthcare
Remote patient tracking, wearable heart rate bands, and smart ambulances.
Explanation
- Sensors collect observations from places such as fields, homes and factories.
- Applications interpret those readings and may send commands back to equipment.