The invention relates to the field of
wireless ad hoc networks, in particular to an anti-collision method in multi-task end-to-end transmission routing optimization. Comprising the following steps: constructing a multi-task
wireless ad hoc network
system model, adding Qos parameters and constraint conditions to establish an
optimization problem of maximizing a
transmission rate between minimum nodes, and solving each task by adopting an improved
ant colony
algorithm aiming at the
optimization problem. And performing anti-
collision detection on the optimal path of each task found by the
ant colony
algorithm, and improving the collision path to obtain a routing transmission path without conflicts among the plurality of tasks. According to the method, the problems that a traditional
routing protocol is difficult to meet multiple quality service (QoS) requirements in multi-hop transmission and transmission information of different tasks collides at the same node are solved, and a reasonable routing path, meeting QoS constraints, of each transmission task can be obtained through the optimized
ant colony
algorithm; and meanwhile, the
collision problem of task transmission between the nodes is effectively solved, so that the
system can run more efficiently, and the method has very high application value.