Aiming at the current wireless sensor network security requirements,this paper proposed a new solution based on TePA(tri-element peer authentication),which simplifies TePA authentication packets and packet fieldss.This solution solved some problems in the nodes access and key agreement.Further,using improved BSW logic verifies protocols,and analyzed of the solution from security and network efficiency.The results show that the solution not only can resist man-in-the-middle attacks and replay attacks but als...