Research Article

SACA: Self-Aware Communication Architecture for IoT Using Mobile Fog Servers

Algorithm 1

Network alliance for prevention against failures.
(1) Input: Current State, DNM - and
(2) Output: Decision for continuity or change link
(3) set interval
(4) while Transmission Continues do
(5)  check for interval
(6)  request periodic update
(7)  select most communicating node from each layer
(8)  send virtual control to the node
(9)  receive and map state dependencies
(10)  if ambiguous     then
(11)    eliminate node from state-dependencies
(12)    update neighbours
(13)  else
(14)    continue
(15)  end while
(16) end while