| Algorithm 1: Collaborative detection mechanism. |
|
Require nodes start; Require cont = 0; for all do Require set ; Require Calculate ; Require Calculate ; Require Calculate ; Require send HELLO packet with metrics information; if Algorithm == Extended Mechanism then Collector node sends broadcast to receive information of all nodes; Collector node sets metric values for each ; Collector node compares each value per metric for each positionRing; while == do if != then cont++; end if if != then cont++; end if if != then cont++; end if end while end if if Algorithm == Connected Mechanism then for all neighbor of do if != then cont++; end if if != then cont++; end if if != then cont++; end if end for end if IF then sends a control packet to every ; deletes from its routing table; end if end for |