In wireless sensor network have safe routing protocol, such as the security-aware ad hoc routing protocol (SAR), can be used to defend next to black hole and wormhole attacks. The security-aware ad hoc routing protocol is base on on-demand protocol, such as AODV. In SAR, a safety metric is additional into the way request packet, and a dissimilar route detection process is used. Intermediate nod...