The invention discloses an active routing method and device, and the method comprises the steps:
broadcasting a first greeting message to a neighbor node, and receiving a second greeting message at the same time, wherein the second greeting message is broadcasted by the neighbor node and comprises an address identification of the neighbor node; recording the address identification of the neighbor node, and updating a neighbor node table of a local node;
broadcasting topology subtree information to the neighbor node; updating a
topology table after routing convergence, and determining a local
routing table; extracting a destination node when a data
package is received, and determining the shortest path of the destination node according to the local
routing table; transmitting the data
package to a next jump node, indicating the next jump node to continuously transmit a data
package according to the shortest path of the destination node till the data package reaches the destination node. The method can reduce the cost in network messages, can find the change of nodes and network state timely and quickly, and better solves a technical problem of network
instability caused by a complex severe channel characteristic.