Research Article

5G Development in China: From Policy Strategy to User-Oriented Architecture

Algorithm 1

LBCA algorithm code.
() Set = any channel in optimal
()    Set = the count of the channels
()    Set Timer send to 1
()    If send is expired
()      broadcast CHANUSAGE message to its () hop neighbors
()    End If
()    Set Timer change to 2
(8)    If change is expired
(9)      Look up the neighbor table
(10)      use heap sort to find the most idle channel vector optimal
(11)    Set = the element count of the optimal
(12)    If
(13)     For Each channel in optimal
(14)       If is not used
(15)          change the channel of one DOWN-RADIO to
(16)          End If
(17)     End For Each
(18)     Else
(19)     For Each channel in the first channels of optimal
(20)       If is not used
(21)          change the channel of one DOWN-RADIO to
(22)       End If
(23)     End For Each
(24)   End If
(25)   If any radio has changed
(26)     broadcast CHANCHANGE message to its () hop neighbors
(27)   End If
(28) End If
(29) If receive a CHANUSAGE message
(30)   update its neighbor table
(31) End If
(32) If receive a CHANCHANGE message
(33)   If the sender is parent and its DOWN-RADIOs changed
(34)    change UP-RADIOs to the channels of parent’s DOWN-RADIOs
(35)     broadcast CHANCHANGE message to its () hop neighbors
(36)   End If
(37)   update its neighbor table
(38) End If