Considering the great significant role that routing protocols play in transfer rate and choosing the optimum path for exchange of data packages, and further in the amount of consumed energy in the routing protocol, the present study has focused on developing an efficient compound energy algorithm based on cluster structure which is called active node with cluster structure. The purpose of this algorithm is to distribute the heavy traffic of data and equal load of highly-consumed energy throughout the networks by introducing unequal and unbalanced clusters into the network. In the second stage, the light sensor mechanism which is called active node sensor algorithm has been proposed. The major purpose of this mechanism is to prevent excessive interfering data of sensors through incorporating a set of active nodes in each cluster with a defensive shield near to the incident node. The third stage has aimed at proposing an active node algorithm for complexity of internal and external addressing due to clusters routing in high density distribution based on the values within node range. The obtained results indicate relative success of the design in terms of energy optimization on the basis of routing protocol.