Aiming at the problems of some typical clustering routing protocol such as the cluster size is not uniform and the energy consumption is not balanced,an Energy-balanced Clustering Routing Algorithm Based on Energy and Distance(ECRED) is proposed. The cluster head selection threshold formula based on energy and distance factor is improved to prolong the working life of the selected cluster heads. The alternative cluster head is chosen to reduce the energy consumption of reelections. A waiting time before bro...