| Algorithm 2. Processing of ALARM Message |
| /*Upon a cluster node vx receiving an ALARM message for vy broadcast by node vz*/ if (it is the first ALARM message sent by vz for vy) NAy = NAy + 1; if (NAy ≥ Nc/2) { Delete vy from the trusted neighbor list; Add vy into the isolation list; } |