%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
graph TB
subgraph "Protocol Stacks Built on IEEE 802.15.4"
direction TB
subgraph Zigbee["Zigbee Stack"]
ZA["Application<br/>ZCL Clusters"]
ZN["Network<br/>Zigbee NWK"]
ZM["MAC<br/>802.15.4"]
ZP["PHY<br/>802.15.4"]
end
subgraph Thread["Thread Stack"]
TA["Application<br/>CoAP/HTTP"]
TN["Network<br/>IPv6/6LoWPAN"]
TM["MAC<br/>802.15.4"]
TP["PHY<br/>802.15.4"]
end
subgraph WirelessHART["WirelessHART"]
WA["Application<br/>HART Commands"]
WN["Network<br/>HART NWK"]
WM["MAC<br/>802.15.4e"]
WP["PHY<br/>802.15.4"]
end
end
style ZM fill:#16A085,stroke:#2C3E50,color:#fff
style ZP fill:#16A085,stroke:#2C3E50,color:#fff
style TM fill:#16A085,stroke:#2C3E50,color:#fff
style TP fill:#16A085,stroke:#2C3E50,color:#fff
style WM fill:#16A085,stroke:#2C3E50,color:#fff
style WP fill:#16A085,stroke:#2C3E50,color:#fff
177 IEEE and IETF IoT Standards
177.1 Learning Objectives
By the end of this chapter, you will be able to:
- Identify key IEEE standards shaping IoT physical and data link layers (802.15.4, P2413)
- Explain how IEEE 802.15.4 serves as the foundation for Zigbee, Thread, and WirelessHART
- Evaluate IETF protocols (CoAP, MQTT, 6LoWPAN) for constrained IoT environments
- Compare CoAP and HTTP for resource-constrained device communication
- Understand MQTT QoS levels and their appropriate use cases
- Apply 6LoWPAN header compression for IPv6 over IEEE 802.15.4
177.2 Prerequisites
Before diving into this chapter, you should be familiar with:
- IoT Reference Models: Understanding layered architectures helps you see how standards apply at different system levels
- IoT Protocols Overview: Basic protocol knowledge helps you understand why standardization matters
Protocol Standards: - CoAP Protocol - IETF constrained protocol - MQTT Protocol - Messaging standard
Networking Standards: - Zigbee - IEEE 802.15.4 based - Thread - IP-based mesh
177.3 IEEE IoT Standards
The Institute of Electrical and Electronics Engineers (IEEE) develops foundational standards for physical layer and data link layer communications, as well as higher-level IoT architecture frameworks.
177.3.1 IEEE 802.15.4: The Foundation of Low-Power IoT
IEEE 802.15.4 defines the physical layer (PHY) and media access control (MAC) layer for low-rate wireless personal area networks (LR-WPANs). It serves as the foundation for:
- Zigbee: Home automation and smart building protocols
- Thread: IP-based mesh networking for smart home
- 6LoWPAN: IPv6 over Low-Power Wireless Personal Area Networks
- WirelessHART: Industrial process automation
{fig-alt=“Three protocol stacks showing Zigbee with ZCL clusters, Thread with CoAP/IPv6, and WirelessHART with HART commands, all sharing the IEEE 802.15.4 PHY and MAC layers as their common foundation”}
177.3.1.1 Key 802.15.4 Characteristics
| Feature | Specification |
|---|---|
| Frequency Bands | 868 MHz (EU), 915 MHz (US), 2.4 GHz (Global) |
| Data Rate | 20-250 kbps |
| Range | 10-100 meters typical |
| Topology | Star, Peer-to-Peer, Mesh |
| Power | Designed for battery operation (years) |
| Addressing | 16-bit short or 64-bit extended |
177.3.2 IEEE P2413: IoT Architectural Framework
IEEE P2413 provides an architectural framework for IoT, defining:
- Abstraction layers for IoT system decomposition
- Common terminology across domains
- Cross-domain interaction patterns
- Trust and security considerations
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
graph TB
subgraph "IEEE P2413 IoT Architecture"
direction TB
D1["Domain 1<br/>Smart Home"]
D2["Domain 2<br/>Healthcare"]
D3["Domain 3<br/>Industrial"]
CF["Common Framework"]
D1 --> CF
D2 --> CF
D3 --> CF
CF --> ABS["Abstraction<br/>Layers"]
CF --> SEC["Security<br/>Framework"]
CF --> INT["Interoperability<br/>Guidelines"]
end
style CF fill:#E67E22,stroke:#2C3E50,color:#fff
style ABS fill:#2C3E50,stroke:#16A085,color:#fff
style SEC fill:#2C3E50,stroke:#16A085,color:#fff
style INT fill:#2C3E50,stroke:#16A085,color:#fff
{fig-alt=“IEEE P2413 architecture diagram showing smart home, healthcare, and industrial domains connecting to a common framework that provides abstraction layers, security framework, and interoperability guidelines”}
177.4 IETF Protocols for IoT
The Internet Engineering Task Force (IETF) develops protocols for constrained IoT environments, focusing on bringing IP connectivity to resource-limited devices.
177.4.1 CoAP: Constrained Application Protocol
CoAP (RFC 7252) is a specialized web transfer protocol for constrained nodes and networks:
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
sequenceDiagram
participant S as Sensor<br/>(CoAP Server)
participant G as Gateway<br/>(CoAP-HTTP Proxy)
participant C as Cloud<br/>(HTTP Server)
Note over S,C: CoAP enables RESTful communication for constrained devices
S->>G: CoAP GET /temperature<br/>(4-byte header, UDP)
G->>C: HTTP GET /sensors/123/temperature<br/>(TCP connection)
C-->>G: HTTP 200 OK<br/>{"temp": 23.5}
G-->>S: CoAP 2.05 Content<br/>(compact binary)
Note over S: Confirmable message<br/>with retransmission
{fig-alt=“Sequence diagram showing a sensor sending a CoAP GET request over UDP to a gateway, which translates it to HTTP for cloud communication, then returns the response back through the proxy chain”}
177.4.1.1 CoAP vs HTTP Comparison
| Feature | CoAP | HTTP |
|---|---|---|
| Transport | UDP (default) | TCP |
| Header Size | 4 bytes fixed | Variable (100+ bytes typical) |
| Message Model | Request/Response + Observe | Request/Response |
| Methods | GET, POST, PUT, DELETE | Full REST |
| Caching | ETags, Max-Age | Full HTTP caching |
| Discovery | /.well-known/core | Various mechanisms |
| Security | DTLS | TLS |
177.4.2 MQTT: Message Queuing Telemetry Transport
MQTT (ISO/IEC 20922, OASIS Standard) is a publish-subscribe messaging protocol designed for constrained devices and low-bandwidth networks:
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
graph TB
subgraph Publishers["Publishers"]
P1["Temperature<br/>Sensor"]
P2["Humidity<br/>Sensor"]
P3["Motion<br/>Detector"]
end
subgraph Broker["MQTT Broker"]
B["Message Broker<br/>(e.g., Mosquitto, HiveMQ)"]
T1["Topic: sensors/temp"]
T2["Topic: sensors/humidity"]
T3["Topic: sensors/motion"]
end
subgraph Subscribers["Subscribers"]
S1["Dashboard<br/>App"]
S2["Analytics<br/>Service"]
S3["Alert<br/>System"]
end
P1 -->|"PUBLISH"| T1
P2 -->|"PUBLISH"| T2
P3 -->|"PUBLISH"| T3
T1 -->|"SUBSCRIBE"| S1
T1 -->|"SUBSCRIBE"| S2
T2 -->|"SUBSCRIBE"| S1
T3 -->|"SUBSCRIBE"| S3
style B fill:#E67E22,stroke:#2C3E50,color:#fff
{fig-alt=“MQTT architecture diagram showing three publishers (temperature, humidity, motion sensors) publishing to topics on a central broker, which distributes messages to three subscribers (dashboard, analytics, alerts) based on their topic subscriptions”}
177.4.2.1 MQTT QoS Levels
| QoS Level | Name | Guarantee | Use Case |
|---|---|---|---|
| 0 | At most once | Fire and forget | High-frequency telemetry |
| 1 | At least once | Delivered, may duplicate | General sensor data |
| 2 | Exactly once | Delivered exactly once | Critical commands, billing |
177.4.3 6LoWPAN and IPv6 for IoT
6LoWPAN (RFC 4944, RFC 6282) enables IPv6 over IEEE 802.15.4 networks:
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
graph LR
subgraph IPv6["Standard IPv6"]
H1["IPv6 Header<br/>40 bytes"]
U1["UDP Header<br/>8 bytes"]
P1["Payload<br/>Variable"]
end
subgraph Compressed["6LoWPAN Compressed"]
HC["IPHC + NHC<br/>2-7 bytes"]
P2["Payload<br/>Variable"]
end
IPv6 -->|"Header Compression"| Compressed
Note["802.15.4 MTU: 127 bytes<br/>Compression essential!"]
style H1 fill:#E74C3C,stroke:#C0392B,color:#fff
style HC fill:#27AE60,stroke:#1E8449,color:#fff
{fig-alt=“Comparison showing standard IPv6 header (40 bytes) plus UDP header (8 bytes) being compressed by 6LoWPAN to only 2-7 bytes using IPHC and NHC compression, critical for the 127-byte MTU of 802.15.4”}
177.4.3.1 6LoWPAN Key Features
| Feature | Description |
|---|---|
| Header Compression | IPHC reduces IPv6 header from 40 to 2-7 bytes |
| Fragmentation | Handles packets larger than 127-byte MTU |
| Mesh Addressing | Supports multi-hop routing at link layer |
| Neighbor Discovery | Optimized for low-power networks |
177.5 Summary
177.5.1 Key Takeaways
- IEEE 802.15.4 provides the physical and MAC layer foundation for low-power IoT protocols including Zigbee, Thread, and WirelessHART
- IEEE P2413 defines an architectural framework enabling cross-domain IoT interoperability
- CoAP brings REST semantics to constrained devices with 4-byte headers and UDP transport
- MQTT provides reliable publish-subscribe messaging with three QoS levels for different reliability requirements
- 6LoWPAN enables IPv6 over IEEE 802.15.4 through aggressive header compression
177.5.2 What’s Next
- Industry Consortiums for IoT: Learn about OCF, OPC-UA, Thread Group, and Matter
- IoT Interoperability Challenges: Understand fragmentation and strategies for multi-vendor deployments
- Standard Selection and Certification: Apply selection criteria and understand certification requirements