What is RPL?
RPL is an IPv6 routing protocol for low-power and lossy networks where radios sleep, links vary, and devices have limited memory.
Build an RPL DODAG step by step and see how DIO, rank, parent choice, and DAO messages fit together
Step through the root announcement, DIO propagation, rank calculation, preferred-parent selection, DAO route advertisement, and repair diagnosis used by constrained IoT networks.
RPL is an IPv6 routing protocol for low-power and lossy networks where radios sleep, links vary, and devices have limited memory.
A Destination-Oriented Directed Acyclic Graph is a directed routing structure rooted at one destination, usually a border router.
Rank is a scalar position relative to the root. Nodes normally choose parents with lower rank, which helps prevent loops.
Blue DIO messages flow outward so nodes can join. Amber DAO messages flow upward to advertise routes back toward the root.
Start with a stable low-power network, then switch scenarios to see how parent choice responds to link quality and faults.
The border router creates a DODAG version and starts with the lowest rank.
Node F will compare candidate parents after DIO messages reach it.
| Parent | Evidence | Decision |
|---|
DODAG Information Object. Advertises DODAG identity, version, rank, objective code point, and configuration so neighbors can decide whether to join.
DODAG Information Solicitation. A node can ask nearby routers for DODAG information instead of waiting for the next multicast DIO.
Destination Advertisement Object. Sends reachability information upward so downward routes can be maintained when the selected mode uses them.
A scalar position relative to the DODAG root. Exact calculation depends on the objective function and configured parameters.
This page uses small classroom formulas so learners can see decisions. Real RPL rank is defined by RFC 6550 and shaped by the objective function, MinHopRankIncrease, metrics, and implementation policy.
OF0 is a basic objective function. MRHOF-style behavior prefers a minimum path cost with hysteresis. The ETX lens here is an explanatory model, not a full MRHOF implementation.
DIO helps nodes discover the DODAG. DAO is used to advertise destination reachability upward when the selected RPL mode maintains downward routes.