DAG Rank defines the node’s individual position relative to other nodes with respect to DODAG root.
DAG Rank is computed depends on the Objective Function(OF).
DAG Rank analogously track a simple topological distance and calculated as a function of Link metric and their constraints.
Open file at location: contiki-ng/os/net/routing/rpl-lite/rpl-mrhof.c
Here, the function handling the dag rank calculation.
Run the simulation