(In order to deal with the security risks caused by the lack of fixed infrastructure and the difficulty of viewing malicious behaviors of wireless sensor network nodes, the concept of node reliability is proposed, which is connected with the collective intelligence optimization algorithm and introduces nodes into routing. Credibility, as a distribution strategy for pheromone)