%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
graph TB
subgraph ManyToOne["Many-to-One<br/>(Upward)"]
S1["Sensor 1"] --> GW1["Gateway"]
S2["Sensor 2"] --> GW1
S3["Sensor 3"] --> GW1
S4["Sensor 4"] --> GW1
end
subgraph OneToMany["One-to-Many<br/>(Downward)"]
GW2["Gateway"] --> A1["Actuator 1"]
GW2 --> A2["Actuator 2"]
GW2 --> A3["Actuator 3"]
end
subgraph P2P["Point-to-Point"]
SEN["Sensor"] --> ACT["Actuator"]
end
style ManyToOne fill:#16A085,stroke:#2C3E50,color:#fff
style OneToMany fill:#E67E22,stroke:#2C3E50,color:#fff
style P2P fill:#7F8C8D,stroke:#2C3E50,color:#fff
style GW1 fill:#2C3E50,stroke:#16A085,color:#fff
style GW2 fill:#2C3E50,stroke:#16A085,color:#fff
style S1 fill:#F8F9FA,stroke:#16A085,color:#2C3E50
style S2 fill:#F8F9FA,stroke:#16A085,color:#2C3E50
style S3 fill:#F8F9FA,stroke:#16A085,color:#2C3E50
style S4 fill:#F8F9FA,stroke:#16A085,color:#2C3E50
style A1 fill:#F8F9FA,stroke:#E67E22,color:#2C3E50
style A2 fill:#F8F9FA,stroke:#E67E22,color:#2C3E50
style A3 fill:#F8F9FA,stroke:#E67E22,color:#2C3E50
style SEN fill:#F8F9FA,stroke:#7F8C8D,color:#2C3E50
style ACT fill:#F8F9FA,stroke:#7F8C8D,color:#2C3E50
711 RPL Traffic Patterns and Network Design
By the end of this section, you will be able to:
- Understand upward, downward, and point-to-point routing in RPL
- Design RPL networks for different IoT applications
- Calculate memory requirements for Storing vs Non-Storing modes
- Analyze traffic patterns and select appropriate RPL configurations
- Apply RPL concepts to real-world smart building scenarios
711.1 Prerequisites
Before diving into this chapter, you should be familiar with:
- RPL Introduction and Core Concepts: Understanding DODAG topology, RANK mechanism, and why RPL is needed for IoT
- RPL DODAG Construction and Modes: Knowledge of how DODAGs are built and the differences between Storing and Non-Storing modes
This Series: - RPL Introduction - Core concepts and fundamentals - RPL DODAG Construction and Modes - Building DODAGs and routing modes - RPL Traffic Patterns and Design - This chapter - RPL Production and Summary - Production framework and key takeaways
Hands-On: - RPL Production and Review - Storing vs Non-Storing mode deployment - Simulations Hub - Test RPL DODAG formation in simulators
711.2 RPL Traffic Patterns
RPL optimizes for different traffic directions:
{fig-alt=“RPL traffic patterns: Many-to-One shows multiple sensors sending to gateway (upward routing), One-to-Many shows gateway sending to multiple actuators (downward), Point-to-Point shows direct sensor to actuator communication”}
711.2.1 Many-to-One (Upward Routing)
Pattern: Many sensors to single gateway/root
How: - Each node knows parent (from DODAG construction) - Default route: Send to parent (toward root) - No routing table needed (upward)
Example: Temperature sensors reporting to cloud
Sensor 3 -> Node 1 -> Root -> Internet -> Cloud
(Upward along DODAG tree)
Optimization: - Most common traffic in IoT (data collection) - Minimal state: Just parent pointer - Efficient: Direct path to root
711.2.2 One-to-Many (Downward Routing)
Pattern: Single controller to many actuators
How: - Storing mode: Each node has routing table, forwards optimally - Non-storing mode: Root inserts source route, nodes follow
Example: Controller sends “turn off” to all lights
Root -> [Multicast or unicast to each light]
Modes: - Storing: Root -> Node 1 -> Light 3 (optimal) - Non-storing: Root inserts route [Node 1, Light 3]
711.2.3 Point-to-Point (P2P)
Pattern: Sensor to Actuator (peer-to-peer)
How: - Upward then downward (via common ancestor, often root) - Storing mode: May find shorter path - Non-storing mode: Always via root
Example: Motion sensor triggers light
Storing: Sensor 3 -> Node 1 -> Light 4 (3 hops, if both under Node 1)
Non-Storing: Sensor 3 -> Node 1 -> Root -> Node 2 -> Light 4 (4 hops)
711.3 Hands-On Lab: RPL Network Design
711.4 Quiz: RPL Routing Protocol
711.5 What’s Next
Now that you understand RPL traffic patterns and have practiced network design, the next chapter covers production frameworks and provides a comprehensive summary of key concepts.
Continue to: RPL Production and Summary
- Production RPL framework architecture
- Key concepts summary
- Visual reference gallery
- Comprehensive review quiz
- Standards references (RFC 6550, 6552, 6719)