Algorithm 1: EDADA-RPL parent selection |
Input: DIO, DAO, DAO-ACK, DIO_RER |
Output: Optimal Parent |
1:For preferred_ParentNodeparentNode-list do
|
2: compute RER |
|
3:compute the Rank(N) |
|
4:Calculate the Rank_Increase_Value |
|
5:IfBest_ParentNode>= Preferred_ParentNodeThen
|
Best_ParentNode=Preferred_ParentNode |
6:End
|
7:Whilepreferred_ParentNode==Best_ParentNodedo
|
SourceNode=Preferred_ParentNode |
8:End
|
9:End
|
10:Return Optimal Parent |