摘要 |
The present invention provides a method and an apparatus for selecting a preferred parent node in a wireless sensor network, wherein the method comprises: a first node, based on all received DIO messages, obtaining node identification information carried in each DIO message respectively, and generating a parent node set; when determining that the parent node set comprises at least two fixed nodes, the first node selecting a fixed node with the highest performance parameter level as a preferred parent node; and when determining that the parent node set does not comprise fixed nodes and comprises at least two mobile nodes, the first node selecting a mobile node with the highest performance parameter as a preferred parent node. According to a technical scheme of the present invention, a preferred parent node is selected for any one node based on a node type and a performance parameter level of each node in a parent node set, which further ensures that the selected preferred parent node is the optimal parent node in parent nodes of the any one node, thus reducing a system packet loss rate and improving network performance. |