Skip to main content
. 2022 Sep 7;22(18):6765. doi: 10.3390/s22186765
Algorithm 1: Protocol-specific RA Scenario
1. Input: rank attack building block, DIO control message
2. Output: DIO message with the decreased rank
3.     Begin
4.    True: DIO with an illegitimately decreased rank
5.        If
6.         RPL_Conf_Min_HopRankInc = 0,
7.         RPL_Max_RankInc = 0,
8.         Infinite_Rank limited to 256, and
9.         Rpl_recalculate_ranks = null, then
10.         Child nodes select the parent,
11.        Attack instigated
12.      Else
13.        False: node = benign
14.     Until decreased rank attack is launched
15.          Network = attacked
16. End