Unicast: One-to-one communication where a message is addressed to a single recipient
Multicast: One-to-many communication where a single message is delivered to a group of subscribed receivers
Broadcast: One-to-all communication where a message is sent to every node in the network
Anycast: One-to-nearest communication where a message is delivered to the closest or most available member of a group
Many-to-One (Convergecast): Multiple sensors sending data to a single sink; the dominant pattern in IoT telemetry
Publish-Subscribe: A decoupled messaging pattern where publishers emit messages to named topics without knowing who receives them
Request-Response: A synchronous pattern where a client sends a request and waits for a reply; used by CoAP and HTTP
9.1 In 60 Seconds
IoT networks use four main communication patterns: unicast (one-to-one), broadcast (one-to-all), multicast (one-to-group), and many-to-one (sensor aggregation). Choosing the right pattern directly affects bandwidth usage, power consumption, and scalability – for example, multicast reduces source traffic by up to 99.9% compared to individual unicast messages when updating a large group of devices.
9.2 Learning Objectives
By the end of this section, you will be able to:
Distinguish Communication Patterns: Classify unicast, broadcast, multicast, and many-to-one data flows
Apply Addressing Schemes: Select appropriate IP addressing (unicast, broadcast, multicast) for each pattern
Optimize Bandwidth Usage: Calculate bandwidth savings from multicast versus unicast delivery
Design Data Collection Architectures: Architect many-to-one aggregation patterns for sensor networks
Map Protocols to Patterns: Justify why specific IoT protocols favor particular communication typologies
Beyond physical and logical topologies, understanding communication typologies (data flow patterns) is essential for IoT system design. These patterns describe how many senders communicate with how many receivers.
For Beginners: Communication Patterns Explained
Analogy: Think of these patterns like different types of conversations:
1-to-1 (Unicast): A phone call between two people - only you and your friend are talking
1-to-N (Broadcast/Multicast): A radio station - one DJ speaks, millions listen
N-to-1 (Many-to-One): Customer service hotline - many callers, one call center
N-to-N (Many-to-Many): Group video chat - everyone can talk to everyone
In IoT, sensor networks typically use N-to-1 (many sensors report to one gateway), while firmware updates use 1-to-N (one server broadcasts to many devices).
Sensor Squad: How We Talk to Each Other!
“There are different ways to communicate in a network,” said Sammy the Sensor. “When I send my temperature reading to the gateway, that is unicast – one sender, one receiver. Like a phone call between two people.”
“When the cloud server needs to update the firmware on ALL sensors at once, that is broadcast,” explained Max the Microcontroller. “One sender, every device listens. Like a radio station broadcasting to millions.”
Lila the LED added, “There is also multicast – sending to a SPECIFIC GROUP. If the server wants to update only the light bulbs and not the temperature sensors, it sends to the ‘lights’ multicast group. Way more efficient than sending individual messages to each light!”
“In IoT, the most common pattern is many-to-one,” said Bella the Battery. “Hundreds of sensors all reporting to one gateway. That is why RPL routing was invented – it builds tree-shaped routes that funnel all sensor data toward the gateway efficiently. Choosing the right communication pattern – multicast instead of unicast for 1,000 devices – can cut network traffic by up to 99.9% and save tons of my energy!”
9.5 The Three Fundamental Communication Patterns
Figure 9.1: Three fundamental communication typologies. 1-to-1 Unicast (Navy): telephony model with direct point-to-point addressing. 1-to-N Broadcast/Multicast (Teal): TV/radio model where one source sends to many receivers using broadcast (255.255.255.255) or multicast (224.0.0.0-239.255.255.255) addresses. N-to-1 Many-to-One (Orange): sensor network model where many sources converge data to a single sink or gateway.
In N-to-1 scenarios within mesh networks, nodes close to the sink relay traffic for distant nodes, creating energy hotspots:
Figure 9.5: Hotspot problem: Nodes near sink (Orange) relay traffic for distant nodes, experiencing 3x higher traffic load and faster battery drain than distant sensors (Gray).
Mitigation strategies:
Multiple sinks: Distribute data collection points
Mobile sink: Move sink location to balance energy consumption
Data aggregation: Compress data at intermediate nodes
Load balancing: Rotate routing paths
9.9 Communication Patterns in IoT Protocols
Protocol
Dominant Pattern
Why
Example
MQTT
N-to-1 (pub to broker), 1-to-N (broker to subs)
Centralized broker model
Sensors publish to broker, subscribers receive
CoAP
1-to-1 (request/response), 1-to-N (observe)
REST-like resource access
Client requests sensor value, server responds
LoRaWAN
N-to-1 (uplink dominant)
Star topology, battery optimization
1000 sensors to gateway to network server
Zigbee
N-to-1, with multicast support
Mesh routes to coordinator
Sensors to routers to coordinator
Thread
N-to-N (mesh), N-to-1 (border router)
IPv6 mesh with external connectivity
Devices mesh internally, aggregate to cloud via border router
BLE Mesh
1-to-N (managed flooding)
Publish/subscribe model
Lightswitch to all lights in group
9.10 Topology Selection Decision Matrix
Communication patterns are tightly coupled to topology choice: the dominant data flow (N-to-1, 1-to-N, or unicast) often dictates which physical topology and protocol is the best fit. Use this matrix to map requirements to topology options.
Requirement
Star
Ring
Tree
Partial Mesh
Full Mesh
Protocol Example
High bandwidth
Excellent
Poor
Good
Moderate
Excellent
Wi-Fi, Ethernet
Fault tolerance
SPOF
Dual ring
SPOF
Good
Excellent
Zigbee, Thread
Low cost
$50-200
$100-500
$100-300
$500-2K
$5K-20K
LoRaWAN, Zigbee
Scalability
Hub limit
O(n) latency
O(log n)
O(n)
O(n²)
LoRaWAN, Thread
Energy efficiency
Direct paths
Multi-hop
Hierarchical
Routing overhead
High overhead
LoRaWAN, Zigbee
Deterministic latency
2 hops max
Token passing
Depth-limited
Variable
1 hop
Industrial bus
Easy deployment
Simple
Simple
Hierarchical
Complex
Very complex
Wi-Fi, LoRaWAN
9.10.1 Decision Flowchart
Life-safety or critical? → Mesh (fault tolerance) or Dual-star (failover)
High bandwidth (>1 Mbps)? → Star (Wi-Fi) or Tree (Ethernet)
Battery-powered? → Star-of-stars (LoRaWAN) or Mesh with sleep (Zigbee)
Large area (>100m)? → Star-of-stars (LoRaWAN) or Mesh (Zigbee)
Low cost priority? → Star (Wi-Fi/Zigbee hub) or Bus (industrial)
Deterministic timing? → Ring (token) or Star (time-slotted)
Key Insight: Hybrid Topologies Are the Norm
Real-world IoT deployments rarely use pure topologies. A smart building might use:
Star for Wi-Fi cameras (high bandwidth)
Mesh for Zigbee lights (fault tolerance)
Star-of-stars for LoRaWAN outdoor sensors (long range)
Tree for Ethernet backbone (scalability)
This hybrid approach optimizes cost, performance, and reliability for different device classes.
9.11 Worked Example: Choosing Communication Patterns for a Smart Farm
Scenario: A precision agriculture deployment covers 500 hectares with the following devices:
Device Type
Count
Data Pattern
Frequency
Data Size
Soil moisture sensors
2,000
Report to gateway
Every 15 min
64 bytes
Weather stations
10
Report to gateway
Every 5 min
256 bytes
Irrigation valves
200
Receive commands
On-demand
32 bytes
Firmware server
1
Push updates
Monthly
500 KB
Analysis: Match communication pattern to each data flow
1. Soil sensors to gateway – N-to-1 (Many-to-One)
Traffic volume:
2,000 sensors x 4 msgs/hour x 64 bytes = 512 KB/hour
= 8.5 KB/min aggregate at the gateway
Bottleneck analysis:
Gateway receives 133 msgs/min (2.2 msgs/sec)
LoRaWAN gateway handles ~1,000 msgs/hour comfortably
Result: Single gateway sufficient for this traffic pattern
2. Commands to irrigation valves – 1-to-1 (Unicast)
Each valve needs individual commands:
"Open valve #47 for 30 minutes at 2.5 L/min"
Why unicast, not broadcast:
- Different zones need different watering schedules
- Accidental broadcast could flood all 200 zones
- Each command must be acknowledged (confirmed delivery)
Protocol choice: MQTT QoS 1 with per-valve topics
Topic: farm/zone/{zone_id}/valve/command
3. Firmware updates – 1-to-N (Multicast)
Without multicast:
2,200 devices x 500 KB = 1.1 GB network traffic
At LoRaWAN data rates (5 kbps): 500 KB x 8 bits/byte / 5,000 bps = 800 seconds per device
Sequential update: 2,200 x 800s = 20.4 days (!)
With multicast (grouped by device type):
Group 1: 2,000 soil sensors -- one 500 KB multicast stream
Group 2: 200 valves -- one 500 KB multicast stream
Group 3: 10 weather stations -- one 500 KB multicast stream
Total: 3 x 500 KB = 1.5 MB network traffic
Bandwidth savings: 1.1 GB / 1.5 MB = 733x reduction
4. Weather alerts – 1-to-N (Broadcast)
When a weather station detects frost risk, ALL devices need the alert:
Alert message: {"type": "frost_warning", "temp_c": -1.2, "action": "close_valves"}
Broadcast to all 200 valves simultaneously via MQTT topic: farm/alerts/#
Result: 200 valves close within 5 seconds (vs 30+ seconds for sequential unicast)
Decision summary:
Flow
Pattern
Protocol
Rationale
Sensor data
N-to-1
LoRaWAN uplink
Low power, infrequent, convergecast
Valve commands
1-to-1
MQTT QoS 1 unicast
Targeted, acknowledged delivery
Firmware updates
1-to-N
Multicast
733x bandwidth reduction
Emergency alerts
1-to-N
MQTT broadcast
All devices must respond fast
Match: Communication Pattern to IoT Protocol
Order: Bandwidth Efficiency (Most Efficient to Least)
Common Pitfalls
1. Using Broadcast When Multicast or Unicast Would Suffice
Broadcasting a configuration update to 500 nodes wakes every device unnecessarily, draining batteries and consuming channel capacity. Fix: use multicast groups or unicast to target only the devices that need the update.
2. Ignoring Convergecast Bottleneck at the Sink Node
In many-to-one patterns, the sink node receives traffic from all sensors simultaneously after a trigger event (e.g., power restore). Fix: implement jitter (random back-off delays) at each sensor to spread transmissions over time.
3. Choosing Request-Response for High-Frequency Telemetry
Polling 100 sensors every second with request-response doubles traffic (request + response) and adds latency. Fix: use event-driven publish-subscribe for high-frequency telemetry and reserve request-response for occasional queries.
4. Not Considering Multicast Route Establishment Overhead
Multicast requires routing protocols to establish and maintain group membership trees. Fix: account for the control traffic overhead of multicast group management when sizing the network.
Label the Diagram
Code Challenge
9.12 Summary
Communication typologies describe data flow patterns independent of physical topology:
1-to-1 (Unicast):
Direct point-to-point communication
Most efficient bandwidth usage
Used for: Device commands, secure communication
1-to-N (Broadcast/Multicast):
One source to many receivers
Broadcast: All devices, Multicast: Subscribers only
Used for: Device discovery, firmware updates, emergency alerts
N-to-1 (Many-to-One):
Dominant IoT pattern for sensor data collection
Creates hotspots near sink nodes
Used for: Environmental monitoring, telemetry, smart city
N-to-N (Many-to-Many):
Full mesh communication
Highest complexity and overhead
Used for: Distributed control, peer-to-peer systems