Research Article

Energy-Efficient Adaptive Geosource Multicast Routing for Wireless Sensor Networks

Algorithm 1

Group management at intermediate nodes.
(1) // MState: multicast state table, contains dst and hopCnt pairs
(2) if  joinMsg(dst) MState(dstSeg) then
(3) if  hopCnt < MState(dstSeg).hopCnt  then
(4)  MState(dstSeg) = dst
(5)  MState(dstSeg).hopCnt = hopCnt
(6)  Add the location information to joinMsg
(7)  Send the joinMsg to the next hop toward src
(8) end if
(9) else
(10) Add dstSeg, hopCnt to Mstate
(11) Add the location information to joinMsg
(12) Send the joinMsg to the next hop toward src
(13) end if