the traffic of the Ad-hoc Ondemand Distance Vector (AODV) routing protocol. The algorithm
consists of two parts: In part one, machine learning algorithms are used to detect whether
the network suffers from a blackhole attack or not. Part two will be activated if there is a
blackhole attack. To block the compromised node, the proposed algorithm in stage two
removes the highest sequence number in the route reply as the blackhole node increases …