In the past,most of the wireless sensor network (WSN) applications were limited to data collection,and less attention was paid on the collaboration in the network.The weak support of the existing WSN routing algorithm for dynamic in network can not meet the service requirements of the distributed wireless networks and wireless sensor network applications.Based on a comprehensive consideration of the quality of service (QoS) indicators,and a routing search according to an intelligent particle swarm optimization(PSO)algorithm.New algorithm provides a very good search capabilities.The simulation results show that the PSObased routing with a comprehensive QoS indicator improves well the service quality.