Cluster Head Selection and Energy Efficient Multicast Routing Protocol-Based Optimal Route Selection for Mobile Ad Hoc Networks
Algorithm 2
Optimal Path Selection Algorithm
(1)The source node initiates the creation of a route request packet RREQ(2)RREQ contains the following information: the RREQ ID, the destination address, the source address, the destination sequence number, the source sequence number, the NmaxE, and the hop count(3)NmaxE is updated by a node receiving the packet only if its energy level is greater than the current NmaxE; otherwise, NmaxE stays constant(4)Continue checking until RREQ reaches its target(5)The most energy efficient route is chosen from the numerous RREQ collected from several routes(6)If (NmaxE=high &&hopcount=low), choose the communication route(7)A route response RREP is created and returned(8)Data is sent through the newly specified route