The invention discloses a
black hole attack defense method applied to
route discovery. The objective of the invention is to solve the problem of incapability of detecting inner attacks and defending against
black hole attacks in
route discovery in the prior art. According to the method provided by the technical schemes of the invention, each node establishes a receiving
route request table and a receiving route response table and compares the content of the receiving route request table and the receiving route response table; whether a suspicious node exists is judged; if a suspicious node exists, a determined threshold value in a
training set is compared with the destination sequence number of a received route response packet; if the sequence number is larger than the threshold value, it is determined that a node which sends the route response packet is a
black hole node, otherwise, the node which sends the route response packet is determined as a normal node; and in subsequent route discovery, only the data packet of the normal node is forwarded or received, and the data packet of the black hole node is not forwarded or received. According to the black hole
attack defense method applied to route discovery of the invention, a
third party is not introduced, all procedures are completely completed by nodes in a
wireless ad hoc network, and therefore, the security requirements of the routing of the
wireless ad hoc network can be satisfied. The method can be applied to defending against black hole attacks in the route discovery of the
wireless ad hoc network.