i ⟶ possible integer (e.g. 1,2,3,. . .) |
xi ⟶ node |
N ⟶ neighbors set of xi |
ni ⟶ xi neighbor xi |
NT ⟶ node type of xi |
TMR ⟶ timer |
SYNC ⟶ synchronization packet before updating of time slot |
SYNCn ⟶ synchronization packet after updating of time slot |
BN ⟶ border-node |
SN ⟶ stationary-node |
CH ⟶ cluster-head node of SN |
MN ⟶ mobile-node |
CH ⟶ cluster-head node of mobile-node |
TS ⟶ time slot |
HB ⟶ handover-bit |
RSSI ⟶ radio signal strength indicator |
LQI ⟶ link quality indicator |
RSSIn ⟶ RSSI new values |
RSSIo ⟶ RSSI old values |
LQIn ⟶ LQI new values |
LQIo ⟶ LQI old values |
(1) | Start |
(2) | )Xi starts listening for SYNC; |
(3) | )if xi receives SYNC from ni where ni ∈ N then |
(4) | xi adopts Schdlc; |
(5) | xi.status = CM; |
(6) | xi.NT = SN;/∗ node become a stationary node ∗/ |
(7) | if xi receives Schdln| Schdln ≠ Schdlcthen |
(8) | xi sends Inquiry msg to its parent node that is CH |
(9) | CH looks its parent node upon receiving Inquire msg |
(10) | if (CH.parent = BN) |
(11) | CH sends Inquire Ack to the CM |
(12) | xi maintains the same status that is CM |
(13) | else |
(14) | xi.status = B.N/∗ node becomes border node ∗/ |
(15) | xi adopts both schedules; |
(16) | Reschedule TMR = 5 mins; /∗ next schedule phase timer ∗/ |
(17) | end if |
(18) | TMR. |
(19) | if TMR = 0 then |
(20) | goto Line 2 |
(21) | end if |
(22) | else |
(23) | xi.status = CH;/∗ node becomes a cluster head ∗/ |
(24) | xi creates Schdlc and broadcast it; |
(25) | end it |
(26) | End. |