Research Article

Heavy Traffic Feasible Hybrid Intracycle and Cyclic Sleep for Power Saving in 10G-EPON

Pseudocode 1

Pseudocode of the sleep control and DBA algorithm.
Abbreviation: CS: Cyclic Sleep; IS: Intra-cycle Sleep;
L: Listen; W: Full Active Work; Th: Threshold
(1) for   : ONU_number //PART A
(2)    if ( == CS)
(3)    CS when <
(4)    Quit when or Prequit
(5)    end
(6)    if ( < UpCSTh) and ( < DownCSTh)
(7)     if   L
(8)        CS;
(9)     elseif   ISWQuit
(10)      L;
(11)    end
(12)  end
(13) end
(14) Run DBA to determine window sizes; //PART B
(15) for   : ONU_number //PART C
(16)  ;
(17) end
(18) index = sort(difference, ascending);
(19) for   : ONU_number
(20)   = index();
(21)   = upStartTime;
(22)  upStartTime = upStartTime + + GuardTime;
(23)   = downStartTime;
(24)  downStartTime = downStartTime + Down;
(25) end
(26) Select not in CS state one by one: //PART D
(27) start = min(, );
(28) end = max( + , + );
(29) if (start—) ( + cycleDuration—end) > +
(30)  Next = IS when NextStat ~= L;
(31) else
(32)  NextStat = W;
(33) end