[Avg. reading time: 4 minutes]

IoT Protocol Stack Overview

Many IoT protocols span multiple layers.
This stack is a conceptual view used to understand responsibilities, not a strict OSI mapping.

LayerPurposeExamples
Physical LayerHandles hardware-level transmission such as sensors, actuators, radios, and modulation.LoRa, BLE (PHY), Zigbee (PHY), Wi-Fi, Cellular (NB-IoT, LTE-M)
Data Link LayerManages MAC addressing, framing, error detection, and local delivery.IEEE 802.15.4, BLE Link Layer, LoRaWAN
Network LayerHandles addressing and routing across networks (IP or adapted IP).IPv6, 6LoWPAN, RPL
Transport LayerProvides end-to-end data delivery and reliability where required.UDP, TCP
Security LayerEnsures encryption, authentication, and integrity.DTLS, TLS
Application LayerDefines messaging, device interaction, and application semantics.MQTT, CoAP, HTTP, LwM2M, AMQP

IoT Stack Preferred Languages

Stack LayerPreferred LanguagesWhy
Lower Stack (Firmware / Device)C / C++ / Rust (emerging)Direct hardware access, deterministic performance, low memory footprint, real-time constraints, zero-cost abstractions.
Middle Stack (Gateway / Edge)Rust / PythonProtocol translation, buffering, edge analytics, balance of performance and developer productivity.
Upper Stack (Cloud / Data)Rust / PythonLarge-scale data processing, APIs, stream processing, ML orchestration, cloud-native services.

#protocol #stackVer 6.0.5

Last change: 2026-02-05