In order to increase dynamic adaptability of wireless sensor networks and implement multi-path transmission of data packets,this paper designed an ant colony algorithm based routing protocol by NesC programming language based on TinyOS2.x operating system called Ant-PDRP.It used pheromones for searching path for transmitting routing packets and data packets.During the transmission of data packets,it used a punishment mechanism for balancing the energy consumpution of networks.The simulation in TOSSIM and th...