Research Article

Hybrid Internal Anomaly Detection System for IoT: Reactive Nodes with Cross-Layer Operation

Pseudocode 2

RSS-incident reporting phase outline.
while (report_timer expired)
for every node in nbr_monitor
  if (status == new neighbour)
   if (not reported to parent)
    generate NIO;
    dispatch DPO;
    assign reported status;
   }end if
  }  else if (status == inactive || anomaly)
   if (not reported)
    generate ONIO;
    dispatch DPO;
    assign reported status;
    }  end if
  } end if
 }
reset report_timer;