[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

US20160182306A1 - Method and apparatus for selecting preferred parent node in wireless sensor network - Google Patents

Method and apparatus for selecting preferred parent node in wireless sensor network Download PDF

Info

Publication number
US20160182306A1
US20160182306A1 US15/055,297 US201615055297A US2016182306A1 US 20160182306 A1 US20160182306 A1 US 20160182306A1 US 201615055297 A US201615055297 A US 201615055297A US 2016182306 A1 US2016182306 A1 US 2016182306A1
Authority
US
United States
Prior art keywords
node
parent node
fixed
mobile
performance parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US15/055,297
Other versions
US9876687B2 (en
Inventor
Pei Liu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of US20160182306A1 publication Critical patent/US20160182306A1/en
Assigned to HUAWEI TECHNOLOGIES CO., LTD. reassignment HUAWEI TECHNOLOGIES CO., LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LIU, PEI
Application granted granted Critical
Publication of US9876687B2 publication Critical patent/US9876687B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for selecting a preferred parent node in a wireless sensor network.
  • IPv6 Internet Protocol Version 6; Internet Protocol Version 6
  • IPv6 Internet Protocol Version 6; Internet Protocol Version 6
  • IPv6 Internet Protocol Version 6
  • the some nodes access the network by using another node.
  • a process in which a node (hereinafter referred to as a first node) accesses the network by using another node is as follows: After receiving a DIO (Destination Oriented Directed Acyclic Graph Information Object) message sent by the another node, the first node selects a preferred parent node according to a target function and an acyclic graph that are carried in the DIO message, and accesses the network by using the preferred parent node.
  • DIO Destination Oriented Directed Acyclic Graph Information Object
  • a root node sends a DIO message by broadcasting; after a node A adjacent to the root node (that is, within a power sending range of the root node) receives the DIO message sent by the root node, the node A acquires an acyclic graph carried in the DIO message; in addition, the node A joins the foregoing acyclic graph, updates the acyclic graph, and replies to the root node with a DAO (Destination Advertisement Object) message; the node A sends a DIO message by broadcasting; after a node B within a power sending range of the node A receives the foregoing DIO message, the node B acquires an updated acyclic graph carried in the DIO message; after the node B joins the foregoing updated acyclic graph, the node B updates the acyclic graph again, and in addition, the node B replies to the node A with a DAO message.
  • DAO Destination Advertisement Object
  • the node B After a wireless sensor network is enabled and after the node B receives a DIS (Destination Oriented Directed Acyclic Graph information Solicitation) message sent by a node C, the node B sends a DIO message to the node C, requesting the node C to join the foregoing acyclic graph that is update again; the node C sends a DAO message to its parent node B based on the DIO message; after receiving the DAO message sent by the node C, the node B integrates acyclic graph information, and feeds back DAO information to the node A, so that the node A feeds back the foregoing DAO information fed back by the node B to the root node. The node C then can connect to the root node by using the node A, and access the network by using the root node.
  • DIS Distination Oriented Directed Acyclic Graph information Solicitation
  • the foregoing IPv6 wireless sensor network may be applied to a mobile scenario, that is, a scenario in which a mobile node exists in the foregoing wireless sensor network.
  • the RPL IPv6 Routing Protocol for Low-Power and Lossy Networks
  • IPv6 Routing Protocol for Low-Power and Lossy Networks does not provide a rule for selecting a preferred parent node in the mobile scenario, and a feature of an unfixed location of the mobile node may lead to poor link quality. Therefore, when the foregoing IPv6 wireless sensor network is applied to the mobile scenario, if a preferred parent node is still selected according to a target function and an acyclic graph that are carried in a DIO message in the mobile scenario, problems of a packet loss and network instability easily arise in a communication process.
  • Step 300 A first node determines any one parent node P 1 that is selected.
  • the first node is a mobile node or a fixed node
  • a preferred parent node of the first node is P 2 , where P 2 may be a mobile node or a fixed node.
  • Step 310 The first node acquires a Rank 1 value of the any one parent node P 1 and a Rank 2 value of a preferred parent node P 2 .
  • Step 320 The first node determines whether Rank 1 is equal to Rank 2. If yes, step 330 is performed; otherwise, step 340 is performed.
  • Step 330 Acquire node types of the foregoing P 1 and P 2 . If P 1 is a fixed node and P 2 is a mobile node, Select P 1 as the preferred parent node of the first node; if P 1 is a mobile node, retain P 2 as the preferred parent node of the first node.
  • Step 340 Acquire node types of P 1 and P 2 . If P 1 is a fixed node and P 2 is a mobile node, select P 1 as the preferred parent node of the first node; if P 1 is a mobile node, retain P 2 as the preferred parent node of the first node; if P 1 and P 2 are both mobile nodes, or P 1 and P 2 are both fixed nodes, select a node with a smaller Rank value from the foregoing two nodes as the preferred parent node.
  • the preferred parent node of the first node is already selected, and a Rank value of the preferred parent node of the first node is compared only with a Rank value of one parent node of the first node.
  • the foregoing process is executed for any one parent node, resulting in a long processing time.
  • selecting a preferred parent node by using a Rank value of a parent node leads to an inaccurate comparison result, and the selected preferred parent node is not an optimal parent node. Consequently, a problem of a high packet loss rate arises; in addition, a change of the preferred parent node also causes a problem of network unstability.
  • Embodiments of the present disclosure provide a method and an apparatus for selecting a preferred parent node in a wireless sensor network, so as to resolve current problems of a high packet loss rate and poor network performance that arise when an IPv6 wireless sensor network is applied to a mobile scenario and when a preferred parent node is selected for any one node in the wireless sensor network.
  • a method for selecting a preferred parent node in a wireless sensor network including:
  • the fixed node is selected as the preferred parent node.
  • a Rank value of each fixed node is acquired, and a received signal strength indicator RSSI value of each fixed node is measured; and a performance parameter level table is generated based on the Rank value and RSSI value of each fixed node, and a fixed node with a highest performance parameter level in the performance parameter level table is selected as the preferred parent node.
  • a fixed node with a minimum Rank value in the at least two fixed nodes is selected as the preferred parent node.
  • the mobile node is selected as the preferred parent node.
  • a Rank value of each mobile node is acquired, and an RSSI value of each mobile node is measured; and a performance parameter level table is generated based on the Rank value and RSSI value of each mobile node, and a mobile node with a highest performance parameter level in the performance parameter level table is selected as the preferred parent node.
  • a mobile node with a maximum RSSI value in the at least two mobile nodes is selected as the preferred parent node.
  • Rank values of all fixed nodes or all mobile nodes in the parent node set are acquired, and the Rank values of all the fixed nodes or all the mobile nodes are sorted in ascending order to generate a Rank list, and levels are assigned in descending order to the values in the Rank list in sequence; RSSI values of all the fixed nodes or all the mobile nodes in the parent node set are acquired, the RSSI values of all the fixed nodes or all the mobile nodes are sorted in descending order to generate an RSSI list, and levels are assigned in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the parent node set, the node identification information of the fixed node or the mobile node is added to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • an apparatus for selecting a preferred parent node in a wireless sensor network including:
  • an acquiring unit configured to: for all received Destination Oriented Directed Acyclic Graph Information Object DIO messages, separately acquire node identification information carried in each of the DIO messages, and send the node identification information to a generating unit;
  • the generating unit configured to: receive the node identification information sent by the acquiring unit, generate a parent node set based on all the node identification information, and send the parent node set to a selecting unit;
  • the selecting unit configured to: receive the parent node set sent by the selecting unit; select a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and select a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not include a fixed node, and includes at least two mobile nodes.
  • the selecting unit is further configured to: when it is determined that the parent node set includes one fixed node, select the fixed node as the preferred parent node.
  • the selecting unit is configured to: according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, acquire a Rank value of each fixed node, and measure a received signal strength indicator RSSI value of each fixed node; and generate a performance parameter level table based on the Rank value and RSSI value of each fixed node, and select a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • a fixed node with a minimum Rank value in the at least two fixed nodes is selected as the preferred parent node.
  • the mobile node is selected as the preferred parent node.
  • a Rank value of each mobile node is acquired, and an RSSI value of each mobile node is measured; and a performance parameter level table is generated based on the Rank value and RSSI value of each mobile node, and a mobile node with a highest performance parameter level in the performance parameter level table is selected as the preferred parent node.
  • a mobile node with a maximum RSSI value in the at least two mobile nodes is selected as the preferred parent node.
  • Rank values of all fixed nodes or all mobile nodes in the parent node set are acquired, the Rank values of all the fixed nodes or all the mobile nodes are sorted in ascending order to generate a Rank list, and levels are assigned in descending order to the values in the Rank list in sequence; RSSI values of all the fixed nodes or all the mobile nodes in the parent node set are acquired, the RSSI values of all the fixed nodes or all the mobile nodes are sorted in descending order to generate an RSSI list, and levels are assigned in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the parent node set, the node identification information of the fixed node or the mobile node is added to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • a device for selecting a preferred parent node in a wireless sensor network including:
  • a transceiver configured to receive a DIO message sent by another node
  • a memory configured to store an application program
  • a processor configured to invoke the application program in the memory to perform the following operations:
  • the processor is further configured to: when it is determined that the parent node set includes one fixed node, select the fixed node as the preferred parent node.
  • the processor is configured to: according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, acquire a Rank value of each fixed node, and measure a received signal strength indicator RSSI value of each fixed node; and generate a performance parameter level table based on the Rank value and RSSI value of each fixed node, and select a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • the processor is further configured to: when the parent node set includes at least two fixed nodes with a highest performance parameter level, select a fixed node with a minimum Rank value in the at least two fixed nodes as the preferred parent node.
  • the processor is further configured to: when it is determined that the parent node set does not include a fixed node, and includes one mobile node, select the mobile node as the preferred parent node.
  • the processor is configured to: according to a DIO message carrying node identification information corresponding to each mobile node in the parent node set, acquire a Rank value of each mobile node, and measure an RSSI value of each mobile node; and generate a performance parameter level table based on the Rank value and RSSI value of each mobile node, and select a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • the processor is further configured to: when the parent node set includes at least two mobile nodes with a highest performance parameter level, select a mobile node with a maximum RSSI value in the at least two mobile nodes as the preferred parent node.
  • the processor is further configured to: acquire Rank values of all fixed nodes or all mobile nodes in the parent node set, sort the Rank values of all the fixed nodes or all the mobile nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the fixed nodes or all the mobile nodes in the parent node set, sort the RSSI values of all the fixed nodes or all the mobile nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the parent node set, add the node identification information of the fixed node or the mobile node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • a parent node set is generated based on the DIO message; when the parent node set includes a fixed node, a fixed node with a highest performance parameter level is preferably selected as a preferred parent node of the foregoing any one node, and when the foregoing parent node set does not include a fixed node, and only includes a mobile node, a mobile node with a highest performance parameter level is preferably selected as the preferred parent node of the foregoing any one node.
  • the preferred parent node is selected for the foregoing any one node according to a node type and a performance parameter level that are of each node in the parent node set in sequence, which ensures that the selected preferred parent node is an optimal parent node in parent nodes of the any one node, thereby reducing a system packet loss rate and improving network performance.
  • FIG. 1 illustrates a process of constructing an acyclic graph in a wireless sensor network in the prior art
  • FIG. 2 is a schematic diagram of a network topology in a wireless sensor network in the prior art
  • FIG. 3 is a flowchart of selecting a preferred parent node in a wireless sensor network in the prior art
  • FIG. 4 is a diagram of an architecture of a wireless sensor network according to an embodiment of the disclosure.
  • FIG. 5 is a flowchart of selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure
  • FIG. 6 is a schematic diagram of a network topology in a wireless sensor network according to an embodiment of the disclosure.
  • FIG. 7A and FIG. 7B are a detailed flowchart of selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure
  • FIG. 8 is Flowchart 1 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure
  • FIG. 9 is Flowchart 2 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure.
  • FIG. 10 is Flowchart 3 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure
  • FIG. 11 is Flowchart 4 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure
  • FIG. 12 is Flowchart 5 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure
  • FIG. 13 is Flowchart 6 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure
  • FIG. 14 is an apparatus for selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure.
  • FIG. 15 is a device for selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure.
  • a parent node set is generated based on the DIO message; when the parent node set includes a fixed node, a fixed node with a highest performance parameter level is preferably selected as a preferred parent node of the foregoing any one node; and when the foregoing parent node set does not include a fixed node, and only includes a mobile node, a mobile node with a highest performance parameter level is preferably selected as the preferred parent node of the foregoing any one node.
  • the preferred parent node is selected for the foregoing any one node according to a node type and a performance parameter level that are of each node in the parent node set in sequence, which ensures that the selected preferred parent node is an optimal parent node in parent nodes of the any one node, thereby reducing a system packet loss rate and improving network performance.
  • the wireless sensor network includes a mobile node, a fixed node, a root node, and a server, where the foregoing mobile node and fixed node are connected to the root node by using respective parent nodes, or the foregoing mobile node and fixed node are directly connected to the root node, and then are connected to the server by using the root node, and access a network by using the server.
  • a process of selecting a preferred parent node in a wireless sensor network is as follows:
  • Step 500 For all received DIO messages, a first node separately acquires node identification information carried in each of the DIO messages, and generates a parent node set based on all the acquired node identification information.
  • each node that has joined the acyclic graph broadcasts a DIO message, and a first node receives a DIO message sent by another node, where the DIO message carries node identification information, and according to a difference in node types included in the node identification information, all nodes are classified into a fixed node and a mobile node.
  • the first node Based on the identification information of each node, the first node integrates the node identification information of all the nodes, and generates the parent node set. That is, each node that sends the DIO message to the first node is regarded as a parent node of the first node, and each node and the corresponding node identification information are stored in the foregoing parent node set.
  • Step 510 The first node selects a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the foregoing parent node set includes at least two fixed nodes, and the first node selects a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not include a fixed node, and includes at least two mobile nodes.
  • the parent node set may include one fixed node and a mobile node, may also include at least two fixed nodes and a mobile node, and further, may not include a fixed node and only include a mobile node, which is specifically as follows:
  • the first node selects the fixed node as the preferred parent node.
  • the fixed node in the parent node set is preferably selected as the preferred parent node.
  • the first node acquires a Rank value of each fixed node, and measures an RSSI (Received Signal Strength Indication; received signal strength indication) value of each fixed node; and the first node generates a performance parameter level table according to the foregoing acquired Rank value and measured RSSI value of each fixed node, and selects a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • RSSI Receiveived Signal Strength Indication
  • received signal strength indication received signal strength indication
  • the Rank value is a parameter that reflects a quantity of hops from the first node to a root node
  • the fixed node with the highest performance parameter level is a fixed node with a smallest sum of a level corresponding to the Rank value and a level corresponding to the RSSI value.
  • a Rank value and an RSSI value of each fixed node are used as performance parameters of the fixed node. Because a combination of the Rank value and the RSSI value can more accurately reflect performance of different fixed nodes, after a fixed node with a better performance parameter is selected from the at least two fixed nodes as the preferred parent node of the first node, network stability can be practically ensured in a subsequent communication process of the first node, thereby effectively improving network performance.
  • a process of generating the performance parameter level table of the first node includes: acquiring Rank values of all fixed nodes in the parent node set of the first node, sorting the Rank values of all the fixed nodes in ascending order to generate a Rank list, and assigning levels in descending order to the values in the Rank list in sequence; acquiring RSSI values of all fixed nodes or mobile nodes in the foregoing parent node set, sorting the RSSI values of all the fixed nodes or the mobile nodes in descending order to generate an RSSI list, and assigning levels in descending order to the values in the RSSI list in sequence; generating a corresponding two-dimensional table based on the foregoing generated Rank list and RSSI list; and adding the node identification information of the foregoing fixed node to a corresponding location in the foregoing two-dimensional table according to the Rank value and RSSI value of each fixed node in the foregoing parent node set, so as to generate the performance parameter level table.
  • the parent node set of the first node includes six fixed nodes, which are A1, A2, A3, A4, A5, and A6, where Rank values of A1, A2, A3, A4, A5, and A6 are Rank1, Rank2, Rank 3, Rank 4, Rank5, and Rank 6 in sequence, and in addition, Rank1 ⁇ Rank 2 ⁇ Rank6 ⁇ Rank3 ⁇ Rank4 ⁇ Rank5; RSSI values of A1, A2, A3, A4, A5, and A6 are RSSI6>RSSI1>RSSI2>RSSI5>RSSI3>RSSI4 in sequence.
  • Different levels are assigned to the Rank values of the foregoing fixed nodes based on the sorting order of the Rank values, that is, a level 1 is assigned to Rank1, a level 2 is assigned to Rank2, a level 3 is assigned to Rank6, a level 4 is assigned to Rank3, a level 5 is assigned to Rank4, and a level 6 is assigned to Rank5; different levels are assigned to the RSSI values of the foregoing fixed nodes based on the sorting order of the RSSI values, that is, a level 1 is assigned to RSSI6, a level 2 is assigned to RSSI1, a level 3 is assigned to RSSI2, a level 4 is assigned to RSSI5, a level 5 is assigned to the RSSI3, and a level 6 is assigned to RSSI4.
  • the performance parameter level table is obtained. Refer to Table 1.
  • the fixed node A 1 has a highest performance parameter level; therefore, the fixed node A1 is selected as the preferred parent node of the first node.
  • the fixed node A3 is selected as the preferred parent node of the first node.
  • the foregoing technical solution implements a smallest quantity of hops between the selected preferred parent node of the first node and the root node, thereby ensuring network stability.
  • a process of selecting the preferred parent node of the first node is as follows:
  • the first node selects the mobile node as the preferred parent node.
  • the first node acquires a Rank value of each mobile node, and measures an RSSI value of each mobile node; and the first node generates a performance parameter level table based on the foregoing acquired Rank value and RSSI value of each mobile node, and selects a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • the mobile node with the highest performance parameter level is a mobile node with a smallest sum of a level corresponding to the Rank value and a level corresponding to the RSSI value.
  • an optimal mobile node is selected as the preferred parent node by comprehensively considering the Rank values and the RSSI values, which can practically ensure network stability in a subsequent communication process of the first node, thereby effectively improving network performance.
  • a process of generating the performance parameter level table of the first node includes: acquiring Rank values of all mobile nodes in the parent node set of the first node, sorting the Rank values of all the mobile nodes in ascending order to generate a Rank list, and assigning levels in descending order to the values in the Rank list in sequence; acquiring RSSI values of all the mobile nodes in the foregoing parent node set, sorting the RSSI values of all the mobile nodes in descending order to generate an RSSI list, and assigning levels in descending order to the values in the RSSI list in sequence; generating a corresponding two-dimensional table based on the foregoing generated Rank list and RSSI list; and according to the Rank value and RSSI value of each mobile node in the foregoing parent node set, adding the mobile node to a corresponding location in the two-dimensional table, so as to generate the performance parameter level table.
  • the parent node set of the foregoing first node includes at least two mobile nodes with a highest performance parameter level
  • a mobile node with a maximum RSSI value in the at least two mobile nodes is selected as the preferred parent node.
  • Using the foregoing technical solution implements greatest received signal strength of the selected preferred parent node of the first node, thereby ensuring network stability and a low packet loss rate.
  • a detailed process of selecting a preferred parent node in a wireless sensor network is as follows:
  • Step 700 A first node receives a DIO message sent by another node, and generates a parent node set based on the DIO message.
  • the parent node set includes a node type of each parent node of the first node.
  • Step 701 The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 702 is performed; otherwise, step 707 is performed.
  • Step 702 The first node determines whether the foregoing parent node set includes only one fixed node. If yes, step 703 is performed; otherwise, step 704 is performed.
  • Step 703 Select the fixed node as a preferred parent node of the first node.
  • the fixed node in the parent node set is preferably selected as the preferred parent node.
  • a feature of higher stability of the fixed node itself can ensure a lower packet loss rate for the first node in a subsequent communication process.
  • Step 704 The first node acquires performance parameter levels of all fixed nodes in the parent node set, and determines whether the parent node set includes at least two fixed nodes with a highest performance parameter level. If yes, step 705 is performed; otherwise, step 706 is performed.
  • the first node acquires the performance parameter level of each fixed node according to a Rank value and an RSSI value of each fixed node in the parent node set.
  • the performance parameter levels of the foregoing at least two fixed nodes are the same, and in addition, the at least two fixed nodes are fixed nodes with the highest performance parameter level in all the fixed nodes.
  • Step 705 The first node selects a fixed node with a minimum Rank value from the at least two fixed nodes with the highest performance parameter level as the preferred parent node of the first node.
  • a Rank value and an RSSI value of each fixed node are used as performance parameters of the fixed node. Because a combination of the Rank value and the RSSI value can more accurately reflect performance of different fixed nodes, after a fixed node with a better performance parameter is selected from the at least two fixed nodes as the preferred parent node of the first node, network stability can be practically ensured in a subsequent communication process of the first node, thereby effectively improving network performance.
  • Step 706 The first node selects a fixed node with a highest performance parameter level as the preferred parent node of the first node.
  • Step 707 The first node determines whether the foregoing parent node set includes only one mobile node. If yes, step 708 is performed; otherwise, step 709 is performed.
  • Step 708 Select the mobile node as the preferred parent node of the first node.
  • Step 709 The first node acquires performance parameter levels of all mobile nodes in the parent node set, and determines whether the parent node set includes at least two mobile nodes with a highest performance parameter level. If yes, step 710 is performed; otherwise, step 711 is performed.
  • the first node acquires the performance parameter level of each mobile node according to a Rank value and an RSSI value of each mobile node in the parent node set.
  • Step 710 The first node selects a mobile node with a maximum RSSI value from the at least two mobile nodes with the highest performance parameter level as the preferred parent node of the first node.
  • Step 711 The first node selects a mobile node with a highest performance parameter level as the preferred parent node of the first node.
  • a process of selecting a preferred parent node of the first node is as follows:
  • Step 800 The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 810 The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 820 is performed.
  • Step 820 The first node determines whether the foregoing parent node set includes only one fixed node. If yes, step 830 is performed.
  • Step 830 Select the only fixed node in the foregoing parent node set as a preferred parent node of the first node.
  • a process of selecting a preferred parent node of the first node is as follows:
  • Step 900 The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 910 The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 920 is performed.
  • Step 920 The first node determines whether the foregoing parent node set includes only one fixed node. If no, step 930 is performed.
  • Step 930 The first node acquires performance parameter levels of all fixed nodes in the parent node set, and determines whether the parent node set includes at least two fixed nodes with a highest performance parameter level. If no, step 940 is performed.
  • Step 940 Select a fixed node with a highest performance parameter level in the foregoing parent node set as a preferred parent node of the first node.
  • a process of selecting a preferred parent node of the first node is as follows:
  • Step 1000 The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1010 The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 1020 is performed.
  • Step 1020 The first node determines whether the foregoing parent node set includes only one fixed node. If no, step 1030 is performed.
  • Step 1030 The first node acquires performance parameter levels of all fixed nodes in the parent node set, and determines whether the parent node set includes at least two fixed node with a highest performance parameter level. If yes, step 1040 is performed.
  • Step 1040 Select a fixed node with a minimum Rank value from the at least two fixed nodes with the highest performance parameter level as a preferred parent node of the first node.
  • a process of selecting a preferred parent node of the first node is as follows:
  • Step 1100 The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1110 The first node determines whether the foregoing parent node set includes a fixed node. If no, step 1120 is performed.
  • Step 1120 The first node determines whether the foregoing parent node set includes only one mobile node. If yes, step 1130 is performed.
  • Step 1130 Select the only mobile node in the foregoing parent node set as a preferred parent node of the first node.
  • a process of selecting a preferred parent node of the first node is as follows:
  • Step 1200 The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1210 The first node determines whether the foregoing parent node set includes a fixed node. If no, step 1220 is performed.
  • Step 1220 The first node determines whether the parent node set includes only one mobile node. If no, step 1230 is performed.
  • Step 1230 The first node acquires performance parameter levels of all mobile nodes in the parent node set, and determines whether the parent node set includes at least two mobile nodes with a highest performance parameter level. If no, step 1240 is performed.
  • Step 1240 Select a mobile node with a highest performance parameter level in the foregoing parent node set as a preferred parent node of the first node.
  • a process of selecting a preferred parent node of the first node is as follows:
  • Step 1300 The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1310 The first node determines whether the foregoing parent node set includes a fixed node. If no, step 1320 is performed.
  • Step 1320 The first node determines whether the foregoing parent node set includes only one mobile node. If no, step 1330 is performed.
  • Step 1330 The first node acquires performance parameter levels of all mobile nodes in the parent node set, and determines whether the parent node set includes at least two mobile nodes with a highest performance parameter level. If yes, step 1340 is performed.
  • Step 1340 Select a mobile node with a maximum RSSI value from the at least two mobile nodes with the highest performance parameter level as a preferred parent node of the first node.
  • the disclosure provides an apparatus for selecting a preferred parent node in a wireless sensor network, including an acquiring unit 140 , a generating unit 141 , and a selecting unit 142 , where:
  • the acquiring unit 140 is configured to: for all DIO messages, separately acquire node identification information carried in each of the DIO messages, and send the node identification information to the generating unit 141 ;
  • the generating unit 141 is configured to receive the node identification information sent by the acquiring unit 140 , generate a parent node set based on the node identification information, and send the parent node set to the selecting unit 142 ;
  • the selecting unit 142 is configured to: receive the parent node set sent by the generating unit 141 ; select a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and select a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the foregoing parent node set does not include a fixed node, and includes at least two mobile nodes.
  • the foregoing apparatus further includes a performance parameter level table generating unit 143 , configured to: acquire Rank values of all fixed nodes or all mobile nodes in the parent node set, sort the Rank values of all the fixed nodes or all the mobile nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the fixed nodes or all the mobile nodes in the foregoing parent node set, sort the RSSI values of all the fixed nodes or all the mobile nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list to the order in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the foregoing parent node set, add the node identification information of the foregoing fixed node or mobile node to a corresponding location in a two-dimensional table, so as to generate a performance parameter level table.
  • a performance parameter level table generating unit 143 configured
  • the disclosure further provides a device for selecting a preferred parent node in a wireless sensor network, including a transceiver 150 , a memory 151 , and a processor 152 , where
  • the transceiver 150 is configured to receive a DIO message sent by another node
  • the memory 151 is configured to store an application program
  • the processor 152 is configured to invoke the application program in the memory 151 to perform the following operations:
  • the processor 152 is further configured to: when it is determined that the foregoing parent node set includes one fixed node, select the fixed node as the preferred parent node.
  • the fixed node in the parent node set is preferably selected as the preferred parent node.
  • the processor 152 is configured to: according to a DIO message carrying node identification information corresponding to each fixed node in the forgoing parent node set, acquire a Rank value of the foregoing each fixed node, and measure a received signal strength indicator RSSI value of each fixed node; and generate a performance parameter level table based on the Rank value and RSSI value of each fixed node, and select a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • a Rank value and an RSSI value of each fixed node are used as performance parameters of the fixed node.
  • Rank value and the RSSI value can more accurately reflect performance of different fixed nodes, after a fixed node with a better performance parameter is selected from the at least two fixed nodes as the preferred parent node of the first node, network stability can be practically ensured in a subsequent communication process of the first node, thereby effectively improving network performance.
  • the processor 152 is further configured to: when the foregoing parent node set includes at least two fixed nodes with a highest performance parameter level, select a fixed node with a minimum Rank value in the at least two fixed nodes as the preferred parent node.
  • select a fixed node with a minimum Rank value in the at least two fixed nodes as the preferred parent node Using the foregoing technical solution implements a smallest quantity of hops between the selected preferred parent node of the first node and a root node, thereby ensuring network stability.
  • the processor 152 is further configured to: when it is determined that the foregoing parent node set does not include a fixed node, and includes one mobile node, select the mobile node as the preferred parent node.
  • the processor 152 is configured to: according to a DIO message carrying node identification information corresponding to each mobile node in the foregoing parent node set, acquire a Rank value of each mobile node, and measure an RSSI value of the foregoing each mobile node; and generate a performance parameter level table based on the Rank value and RSSI value of each mobile node, and select a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • an optimal mobile node is selected as the preferred parent node by comprehensively considering the Rank values and the RSSI values, which can practically ensure network stability in a subsequent communication process of the first node, thereby effectively improving network performance.
  • the processor 152 is further configured to: when the foregoing parent node set includes at least two fixed nodes with a highest performance parameter level, select a mobile node with a maximum RSSI value in the at least two mobile nodes as the preferred parent node.
  • select a mobile node with a maximum RSSI value in the at least two mobile nodes as the preferred parent node Using the foregoing technical solution implements greatest received signal strength of the selected preferred parent node of the first node, thereby ensuring network stability and a low packet loss rate.
  • the processor 152 is further configured to: acquire Rank values of all fixed nodes or all mobile nodes in the foregoing parent node set, sort the Rank values of all the fixed nodes or all the mobile nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the fixed nodes or all the mobile nodes in the foregoing parent node set, sort the RSSI values of all the fixed nodes or all the mobile nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the foregoing parent node set, add the node identification information of the fixed node or the mobile node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • a first node separately acquires node identification information carried in each of the DIO messages, and generates a parent node set based on all the acquired node identification information; the first node selects a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the foregoing parent node set includes at least two fixed nodes; and the first node selects a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the foregoing parent node set does not include a fixed node, and includes at least two mobile nodes.
  • the preferred parent node is selected for any one node in a wireless sensor network according to a node type and a performance parameter level that are of each node in the parent node set in sequence, which ensures that the selected preferred parent node is an optimal parent node in parent nodes of the any one node and ensures that the any one node performs communication on a link with best communication quality, thereby reducing a system packet loss rate and improving network performance.
  • the embodiments of the disclosure may be provided as a method, a system, or a computer program product. Therefore, the embodiments may use a form of hardware only embodiments, software only embodiments, or embodiments with a combination of software and hardware. Moreover, the embodiments may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a disk memory, a CD-ROM, an optical memory, and the like) that include computer-usable program code.
  • computer-usable storage media including but not limited to a disk memory, a CD-ROM, an optical memory, and the like
  • These computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
  • These computer program instructions may also be stored in a computer-readable memory that can instruct the computer or any other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate an artifact that includes an instruction apparatus.
  • the instruction apparatus implements a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
  • These computer program instructions may also be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or the another programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the disclosure provide a method and an apparatus for selecting a preferred parent node in a wireless sensor network, and the method includes: according to all received DIO messages, separately acquiring, by a first node, node identification information carried in each of the DIO messages and generates a parent node set; selecting, by the first node, a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and selecting, by the first node, a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not include a fixed node, and includes at least two mobile nodes.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a continuation of International Patent Application No. PCT/CN2013/082443, filed on Aug. 28, 2013, which is incorporated herein by reference in its entirety.
  • TECHNICAL FIELD
  • The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for selecting a preferred parent node in a wireless sensor network.
  • BACKGROUND
  • Each node in an IPv6 (Internet Protocol Version 6; Internet Protocol Version 6) wireless sensor network corresponds to a specific range that the transmit power can cover. When some nodes cannot access a network within their power sending ranges, the some nodes access the network by using another node.
  • In the IPv6 wireless sensor network, a process in which a node (hereinafter referred to as a first node) accesses the network by using another node is as follows: After receiving a DIO (Destination Oriented Directed Acyclic Graph Information Object) message sent by the another node, the first node selects a preferred parent node according to a target function and an acyclic graph that are carried in the DIO message, and accesses the network by using the preferred parent node. For example, referring to prior art FIG. 1, a root node sends a DIO message by broadcasting; after a node A adjacent to the root node (that is, within a power sending range of the root node) receives the DIO message sent by the root node, the node A acquires an acyclic graph carried in the DIO message; in addition, the node A joins the foregoing acyclic graph, updates the acyclic graph, and replies to the root node with a DAO (Destination Advertisement Object) message; the node A sends a DIO message by broadcasting; after a node B within a power sending range of the node A receives the foregoing DIO message, the node B acquires an updated acyclic graph carried in the DIO message; after the node B joins the foregoing updated acyclic graph, the node B updates the acyclic graph again, and in addition, the node B replies to the node A with a DAO message. After a wireless sensor network is enabled and after the node B receives a DIS (Destination Oriented Directed Acyclic Graph information Solicitation) message sent by a node C, the node B sends a DIO message to the node C, requesting the node C to join the foregoing acyclic graph that is update again; the node C sends a DAO message to its parent node B based on the DIO message; after receiving the DAO message sent by the node C, the node B integrates acyclic graph information, and feeds back DAO information to the node A, so that the node A feeds back the foregoing DAO information fed back by the node B to the root node. The node C then can connect to the root node by using the node A, and access the network by using the root node.
  • At present, the foregoing IPv6 wireless sensor network may be applied to a mobile scenario, that is, a scenario in which a mobile node exists in the foregoing wireless sensor network. The RPL (IPv6 Routing Protocol for Low-Power and Lossy Networks) does not provide a rule for selecting a preferred parent node in the mobile scenario, and a feature of an unfixed location of the mobile node may lead to poor link quality. Therefore, when the foregoing IPv6 wireless sensor network is applied to the mobile scenario, if a preferred parent node is still selected according to a target function and an acyclic graph that are carried in a DIO message in the mobile scenario, problems of a packet loss and network instability easily arise in a communication process.
  • Based on the foregoing technical problems, generally, it is determined, in a manner of comparing a Rank value of a preferred parent node of a first node with a Rank value of any one parent node in all parent nodes of the first node, whether to replace the preferred parent node with the any one parent node, where a network topology view is shown in prior art FIG. 2. Referring to prior art FIG. 3, a process of changing a preferred parent node by using a Rank value is as follows:
  • Step 300: A first node determines any one parent node P1 that is selected.
  • The first node is a mobile node or a fixed node, and a preferred parent node of the first node is P2, where P2 may be a mobile node or a fixed node.
  • Step 310: The first node acquires a Rank 1 value of the any one parent node P1 and a Rank 2 value of a preferred parent node P2.
  • Step 320: The first node determines whether Rank 1 is equal to Rank 2. If yes, step 330 is performed; otherwise, step 340 is performed.
  • Step 330: Acquire node types of the foregoing P1 and P2. If P1 is a fixed node and P2 is a mobile node, Select P1 as the preferred parent node of the first node; if P1 is a mobile node, retain P2 as the preferred parent node of the first node.
  • Step 340: Acquire node types of P1 and P2. If P1 is a fixed node and P2 is a mobile node, select P1 as the preferred parent node of the first node; if P1 is a mobile node, retain P2 as the preferred parent node of the first node; if P1 and P2 are both mobile nodes, or P1 and P2 are both fixed nodes, select a node with a smaller Rank value from the foregoing two nodes as the preferred parent node.
  • It may be learned from FIG. 3 that, in a manner of determining a preferred parent node of a first node in the foregoing mobile scenario, the preferred parent node of the first node is already selected, and a Rank value of the preferred parent node of the first node is compared only with a Rank value of one parent node of the first node. When there are multiple parent nodes of the first node, the foregoing process is executed for any one parent node, resulting in a long processing time. In addition, because a Rank value of each node cannot reflect a feature of the node, selecting a preferred parent node by using a Rank value of a parent node leads to an inaccurate comparison result, and the selected preferred parent node is not an optimal parent node. Consequently, a problem of a high packet loss rate arises; in addition, a change of the preferred parent node also causes a problem of network unstability.
  • It may be seen that, at present, when an IPv6 wireless sensor network is applied to a mobile scenario, problems of a high packet loss rate and poor network performance exist in a method for selecting a preferred parent node for any one node in the wireless sensor network.
  • SUMMARY
  • Embodiments of the present disclosure provide a method and an apparatus for selecting a preferred parent node in a wireless sensor network, so as to resolve current problems of a high packet loss rate and poor network performance that arise when an IPv6 wireless sensor network is applied to a mobile scenario and when a preferred parent node is selected for any one node in the wireless sensor network.
  • According to a first aspect, a method for selecting a preferred parent node in a wireless sensor network is provided, including:
  • for all received Destination Oriented Directed Acyclic Graph Information Object DIO messages, separately acquiring node identification information carried in each of the DIO messages, and generating a parent node set based on all the acquired node identification information;
  • selecting a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and
  • selecting a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not include a fixed node, and includes at least two mobile nodes.
  • With reference to the first aspect, in a first possible implementation manner, when it is determined that the parent node set includes one fixed node, the fixed node is selected as the preferred parent node.
  • With reference to the first aspect, in a second possible implementation manner, according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, a Rank value of each fixed node is acquired, and a received signal strength indicator RSSI value of each fixed node is measured; and a performance parameter level table is generated based on the Rank value and RSSI value of each fixed node, and a fixed node with a highest performance parameter level in the performance parameter level table is selected as the preferred parent node.
  • With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, when the parent node set includes at least two fixed nodes with a highest performance parameter level, a fixed node with a minimum Rank value in the at least two fixed nodes is selected as the preferred parent node.
  • With reference to the first aspect, in a fourth possible implementation manner, when it is determined that the parent node set does not include a fixed node, and includes one mobile node, the mobile node is selected as the preferred parent node.
  • With reference to the first aspect, in a fifth possible implementation manner, according to a DIO message carrying node identification information corresponding to each mobile node in the parent node set, a Rank value of each mobile node is acquired, and an RSSI value of each mobile node is measured; and a performance parameter level table is generated based on the Rank value and RSSI value of each mobile node, and a mobile node with a highest performance parameter level in the performance parameter level table is selected as the preferred parent node.
  • With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, when the parent node set includes at least two mobile nodes with a highest performance parameter level, a mobile node with a maximum RSSI value in the at least two mobile nodes is selected as the preferred parent node.
  • With reference to the second possible implementation manner or the fifth possible implementation manner of the first aspect, in a seventh possible implementation manner, Rank values of all fixed nodes or all mobile nodes in the parent node set are acquired, and the Rank values of all the fixed nodes or all the mobile nodes are sorted in ascending order to generate a Rank list, and levels are assigned in descending order to the values in the Rank list in sequence; RSSI values of all the fixed nodes or all the mobile nodes in the parent node set are acquired, the RSSI values of all the fixed nodes or all the mobile nodes are sorted in descending order to generate an RSSI list, and levels are assigned in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the parent node set, the node identification information of the fixed node or the mobile node is added to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • According to a second aspect, an apparatus for selecting a preferred parent node in a wireless sensor network is provided, including:
  • an acquiring unit, configured to: for all received Destination Oriented Directed Acyclic Graph Information Object DIO messages, separately acquire node identification information carried in each of the DIO messages, and send the node identification information to a generating unit;
  • the generating unit, configured to: receive the node identification information sent by the acquiring unit, generate a parent node set based on all the node identification information, and send the parent node set to a selecting unit; and
  • the selecting unit, configured to: receive the parent node set sent by the selecting unit; select a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and select a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not include a fixed node, and includes at least two mobile nodes.
  • With reference to the second aspect, in a first possible implementation manner, the selecting unit is further configured to: when it is determined that the parent node set includes one fixed node, select the fixed node as the preferred parent node.
  • With reference to the second aspect, in a second possible implementation manner, the selecting unit is configured to: according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, acquire a Rank value of each fixed node, and measure a received signal strength indicator RSSI value of each fixed node; and generate a performance parameter level table based on the Rank value and RSSI value of each fixed node, and select a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, when the parent node set includes at least two fixed nodes with a highest performance parameter level, a fixed node with a minimum Rank value in the at least two fixed nodes is selected as the preferred parent node.
  • With reference to the second aspect, in a fourth possible implementation manner, when it is determined that the parent node set does not include a fixed node, and includes one mobile node, the mobile node is selected as the preferred parent node.
  • With reference to the second aspect, in a fifth possible implementation manner, according to a DIO message carrying node identification information corresponding to each mobile node in the parent node set, a Rank value of each mobile node is acquired, and an RSSI value of each mobile node is measured; and a performance parameter level table is generated based on the Rank value and RSSI value of each mobile node, and a mobile node with a highest performance parameter level in the performance parameter level table is selected as the preferred parent node.
  • With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, when the parent node set includes at least two mobile nodes with a highest performance parameter level, a mobile node with a maximum RSSI value in the at least two mobile nodes is selected as the preferred parent node.
  • With reference to the second possible implementation manner or the fifth possible implementation manner of the second aspect, in a seventh possible implementation manner, Rank values of all fixed nodes or all mobile nodes in the parent node set are acquired, the Rank values of all the fixed nodes or all the mobile nodes are sorted in ascending order to generate a Rank list, and levels are assigned in descending order to the values in the Rank list in sequence; RSSI values of all the fixed nodes or all the mobile nodes in the parent node set are acquired, the RSSI values of all the fixed nodes or all the mobile nodes are sorted in descending order to generate an RSSI list, and levels are assigned in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the parent node set, the node identification information of the fixed node or the mobile node is added to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • According to a third aspect, a device for selecting a preferred parent node in a wireless sensor network is provided, including:
  • a transceiver, configured to receive a DIO message sent by another node;
  • a memory, configured to store an application program; and
  • a processor, configured to invoke the application program in the memory to perform the following operations:
  • for all received DIO messages, separately acquiring node identification information carried in each of the DIO messages, and generating a parent node set based on all the acquired node identification information; selecting a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and selecting a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the foregoing parent node set does not include a fixed node, and includes at least two mobile nodes.
  • With reference to the third aspect, in a first possible implementation manner, the processor is further configured to: when it is determined that the parent node set includes one fixed node, select the fixed node as the preferred parent node.
  • With reference to the third aspect, in a second possible implementation manner, the processor is configured to: according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, acquire a Rank value of each fixed node, and measure a received signal strength indicator RSSI value of each fixed node; and generate a performance parameter level table based on the Rank value and RSSI value of each fixed node, and select a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner, the processor is further configured to: when the parent node set includes at least two fixed nodes with a highest performance parameter level, select a fixed node with a minimum Rank value in the at least two fixed nodes as the preferred parent node.
  • With reference to the third aspect, in a fourth possible implementation manner, the processor is further configured to: when it is determined that the parent node set does not include a fixed node, and includes one mobile node, select the mobile node as the preferred parent node.
  • With reference to the third aspect, in a fifth possible implementation manner, the processor is configured to: according to a DIO message carrying node identification information corresponding to each mobile node in the parent node set, acquire a Rank value of each mobile node, and measure an RSSI value of each mobile node; and generate a performance parameter level table based on the Rank value and RSSI value of each mobile node, and select a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
  • With reference to the fifth possible implementation manner of the third aspect, in a sixth possible implementation manner, the processor is further configured to: when the parent node set includes at least two mobile nodes with a highest performance parameter level, select a mobile node with a maximum RSSI value in the at least two mobile nodes as the preferred parent node.
  • With reference to the second possible implementation manner or the fifth possible implementation manner of the third aspect, in a seventh possible implementation manner, the processor is further configured to: acquire Rank values of all fixed nodes or all mobile nodes in the parent node set, sort the Rank values of all the fixed nodes or all the mobile nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the fixed nodes or all the mobile nodes in the parent node set, sort the RSSI values of all the fixed nodes or all the mobile nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the parent node set, add the node identification information of the fixed node or the mobile node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • In embodiments of the present disclosure, after any one node in a wireless sensor network receives a DIO message sent by another node, a parent node set is generated based on the DIO message; when the parent node set includes a fixed node, a fixed node with a highest performance parameter level is preferably selected as a preferred parent node of the foregoing any one node, and when the foregoing parent node set does not include a fixed node, and only includes a mobile node, a mobile node with a highest performance parameter level is preferably selected as the preferred parent node of the foregoing any one node. In the technical solutions of the disclosure, the preferred parent node is selected for the foregoing any one node according to a node type and a performance parameter level that are of each node in the parent node set in sequence, which ensures that the selected preferred parent node is an optimal parent node in parent nodes of the any one node, thereby reducing a system packet loss rate and improving network performance.
  • BRIEF DESCRIPTION OF DRAWINGS
  • FIG. 1 illustrates a process of constructing an acyclic graph in a wireless sensor network in the prior art;
  • FIG. 2 is a schematic diagram of a network topology in a wireless sensor network in the prior art;
  • FIG. 3 is a flowchart of selecting a preferred parent node in a wireless sensor network in the prior art;
  • FIG. 4 is a diagram of an architecture of a wireless sensor network according to an embodiment of the disclosure;
  • FIG. 5 is a flowchart of selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure;
  • FIG. 6 is a schematic diagram of a network topology in a wireless sensor network according to an embodiment of the disclosure;
  • FIG. 7A and FIG. 7B are a detailed flowchart of selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure;
  • FIG. 8 is Flowchart 1 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure;
  • FIG. 9 is Flowchart 2 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure;
  • FIG. 10 is Flowchart 3 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure;
  • FIG. 11 is Flowchart 4 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure;
  • FIG. 12 is Flowchart 5 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure;
  • FIG. 13 is Flowchart 6 of selecting a preferred parent node in a wireless sensor network in a specific application scenario according to an embodiment of the disclosure;
  • FIG. 14 is an apparatus for selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure; and
  • FIG. 15 is a device for selecting a preferred parent node in a wireless sensor network according to an embodiment of the disclosure.
  • DESCRIPTION OF EMBODIMENTS
  • To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. Apparently, the described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present application.
  • To resolve problems of a high packet loss rate and poor network performance that exist in a method for selecting a preferred parent node for any one node in an IPv6 wireless sensor network when the wireless sensor network is applied to a mobile scenario, in the embodiments of the disclosure, after the any one node in the wireless sensor network receives a DIO message sent by another node, a parent node set is generated based on the DIO message; when the parent node set includes a fixed node, a fixed node with a highest performance parameter level is preferably selected as a preferred parent node of the foregoing any one node; and when the foregoing parent node set does not include a fixed node, and only includes a mobile node, a mobile node with a highest performance parameter level is preferably selected as the preferred parent node of the foregoing any one node. In the technical solutions of the disclosure, the preferred parent node is selected for the foregoing any one node according to a node type and a performance parameter level that are of each node in the parent node set in sequence, which ensures that the selected preferred parent node is an optimal parent node in parent nodes of the any one node, thereby reducing a system packet loss rate and improving network performance.
  • The following describes exemplary implementation manners of the present disclosure in detail with reference to accompanying drawings.
  • Referring to FIG. 4, which shows a diagram of an architecture of a wireless sensor network according to an embodiment of the disclosure, the wireless sensor network includes a mobile node, a fixed node, a root node, and a server, where the foregoing mobile node and fixed node are connected to the root node by using respective parent nodes, or the foregoing mobile node and fixed node are directly connected to the root node, and then are connected to the server by using the root node, and access a network by using the server.
  • Referring to FIG. 5, in an embodiment of the disclosure, a process of selecting a preferred parent node in a wireless sensor network is as follows:
  • Step 500: For all received DIO messages, a first node separately acquires node identification information carried in each of the DIO messages, and generates a parent node set based on all the acquired node identification information.
  • In an embodiment of the disclosure, referring to FIG. 6, in a process of constructing an acyclic graph of a wireless sensor network, each node that has joined the acyclic graph broadcasts a DIO message, and a first node receives a DIO message sent by another node, where the DIO message carries node identification information, and according to a difference in node types included in the node identification information, all nodes are classified into a fixed node and a mobile node.
  • Based on the identification information of each node, the first node integrates the node identification information of all the nodes, and generates the parent node set. That is, each node that sends the DIO message to the first node is regarded as a parent node of the first node, and each node and the corresponding node identification information are stored in the foregoing parent node set.
  • Step 510: The first node selects a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the foregoing parent node set includes at least two fixed nodes, and the first node selects a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not include a fixed node, and includes at least two mobile nodes.
  • In this embodiment of the disclosure, the parent node set may include one fixed node and a mobile node, may also include at least two fixed nodes and a mobile node, and further, may not include a fixed node and only include a mobile node, which is specifically as follows:
  • When the foregoing parent node set includes multiple parent nodes, and only one parent node in the multiple parent nodes is a fixed node, the first node selects the fixed node as the preferred parent node. According to the foregoing technical solution, the fixed node in the parent node set is preferably selected as the preferred parent node. A feature of higher stability of the fixed node itself can ensure a lower packet loss rate for the first node in a subsequent communication process.
  • Further, when the foregoing parent node set includes at least two fixed nodes, according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, the first node acquires a Rank value of each fixed node, and measures an RSSI (Received Signal Strength Indication; received signal strength indication) value of each fixed node; and the first node generates a performance parameter level table according to the foregoing acquired Rank value and measured RSSI value of each fixed node, and selects a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node. The Rank value is a parameter that reflects a quantity of hops from the first node to a root node, and the fixed node with the highest performance parameter level is a fixed node with a smallest sum of a level corresponding to the Rank value and a level corresponding to the RSSI value.
  • According to the foregoing technical solution, when the parent node set of the first node includes at least two fixed nodes, a Rank value and an RSSI value of each fixed node are used as performance parameters of the fixed node. Because a combination of the Rank value and the RSSI value can more accurately reflect performance of different fixed nodes, after a fixed node with a better performance parameter is selected from the at least two fixed nodes as the preferred parent node of the first node, network stability can be practically ensured in a subsequent communication process of the first node, thereby effectively improving network performance.
  • In the foregoing process, a process of generating the performance parameter level table of the first node includes: acquiring Rank values of all fixed nodes in the parent node set of the first node, sorting the Rank values of all the fixed nodes in ascending order to generate a Rank list, and assigning levels in descending order to the values in the Rank list in sequence; acquiring RSSI values of all fixed nodes or mobile nodes in the foregoing parent node set, sorting the RSSI values of all the fixed nodes or the mobile nodes in descending order to generate an RSSI list, and assigning levels in descending order to the values in the RSSI list in sequence; generating a corresponding two-dimensional table based on the foregoing generated Rank list and RSSI list; and adding the node identification information of the foregoing fixed node to a corresponding location in the foregoing two-dimensional table according to the Rank value and RSSI value of each fixed node in the foregoing parent node set, so as to generate the performance parameter level table.
  • For example, the parent node set of the first node includes six fixed nodes, which are A1, A2, A3, A4, A5, and A6, where Rank values of A1, A2, A3, A4, A5, and A6 are Rank1, Rank2, Rank 3, Rank 4, Rank5, and Rank 6 in sequence, and in addition, Rank1<Rank 2<Rank6<Rank3<Rank4<Rank5; RSSI values of A1, A2, A3, A4, A5, and A6 are RSSI6>RSSI1>RSSI2>RSSI5>RSSI3>RSSI4 in sequence. Different levels are assigned to the Rank values of the foregoing fixed nodes based on the sorting order of the Rank values, that is, a level 1 is assigned to Rank1, a level 2 is assigned to Rank2, a level 3 is assigned to Rank6, a level 4 is assigned to Rank3, a level 5 is assigned to Rank4, and a level 6 is assigned to Rank5; different levels are assigned to the RSSI values of the foregoing fixed nodes based on the sorting order of the RSSI values, that is, a level 1 is assigned to RSSI6, a level 2 is assigned to RSSI1, a level 3 is assigned to RSSI2, a level 4 is assigned to RSSI5, a level 5 is assigned to the RSSI3, and a level 6 is assigned to RSSI4. Based on the levels of the Rank value and RSSI value of each fixed node, the performance parameter level table is obtained. Refer to Table 1.
  • TABLE 1
    Rank RSSI level
    level
    1 2 3 4 5 6
    1 A1
    2 A2
    3 A6
    4 A3
    5 A4
    6 A5
  • Based on the foregoing technical solution, in Table 1, the fixed node A1 has a highest performance parameter level; therefore, the fixed node A1 is selected as the preferred parent node of the first node.
  • Further, when the parent node set of the first node includes at least two fixed nodes with a highest performance parameter level, a fixed node with a minimum Rank value in the at least two fixed nodes is selected as the preferred parent node. For example, in Table 1, if the parent node set does not include the fixed nodes A1, A2, and A6, the performance parameter level (5+4=9) of the fixed node A3 is the same as the performance parameter level (3+6=9) of the fixed node A5, and this performance parameter level is the highest level in the foregoing Table 1. Then the Rank value of the fixed node A3 is compared with the Rank value of the fixed node A5, that is, Rank 3 is compared with Rank5. Because Rank3<Rank5, the fixed node A3 is selected as the preferred parent node of the first node. Using the foregoing technical solution implements a smallest quantity of hops between the selected preferred parent node of the first node and the root node, thereby ensuring network stability.
  • When the parent node set of the foregoing first node does not include a fixed node, and only includes a mobile node, a process of selecting the preferred parent node of the first node is as follows:
  • when the parent node set of the foregoing first node includes only one mobile node, the first node selects the mobile node as the preferred parent node.
  • When the parent node set of the foregoing first node includes at least two mobile nodes, according to a DIO message carrying node identification information corresponding to each mobile node in the foregoing parent node set, the first node acquires a Rank value of each mobile node, and measures an RSSI value of each mobile node; and the first node generates a performance parameter level table based on the foregoing acquired Rank value and RSSI value of each mobile node, and selects a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node. The mobile node with the highest performance parameter level is a mobile node with a smallest sum of a level corresponding to the Rank value and a level corresponding to the RSSI value. According to the foregoing technical solution, when the parent node set of the first node includes at least two mobile nodes, an optimal mobile node is selected as the preferred parent node by comprehensively considering the Rank values and the RSSI values, which can practically ensure network stability in a subsequent communication process of the first node, thereby effectively improving network performance.
  • In the foregoing process, a process of generating the performance parameter level table of the first node includes: acquiring Rank values of all mobile nodes in the parent node set of the first node, sorting the Rank values of all the mobile nodes in ascending order to generate a Rank list, and assigning levels in descending order to the values in the Rank list in sequence; acquiring RSSI values of all the mobile nodes in the foregoing parent node set, sorting the RSSI values of all the mobile nodes in descending order to generate an RSSI list, and assigning levels in descending order to the values in the RSSI list in sequence; generating a corresponding two-dimensional table based on the foregoing generated Rank list and RSSI list; and according to the Rank value and RSSI value of each mobile node in the foregoing parent node set, adding the mobile node to a corresponding location in the two-dimensional table, so as to generate the performance parameter level table.
  • When the parent node set of the foregoing first node includes at least two mobile nodes with a highest performance parameter level, a mobile node with a maximum RSSI value in the at least two mobile nodes is selected as the preferred parent node. Using the foregoing technical solution implements greatest received signal strength of the selected preferred parent node of the first node, thereby ensuring network stability and a low packet loss rate.
  • Based on the foregoing technical solution, referring to FIG. 7A and FIG. 7B, in an embodiment of the disclosure, a detailed process of selecting a preferred parent node in a wireless sensor network is as follows:
  • Step 700: A first node receives a DIO message sent by another node, and generates a parent node set based on the DIO message.
  • The parent node set includes a node type of each parent node of the first node.
  • Step 701: The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 702 is performed; otherwise, step 707 is performed.
  • Step 702: The first node determines whether the foregoing parent node set includes only one fixed node. If yes, step 703 is performed; otherwise, step 704 is performed.
  • Step 703: Select the fixed node as a preferred parent node of the first node.
  • According to the foregoing technical solution, the fixed node in the parent node set is preferably selected as the preferred parent node. A feature of higher stability of the fixed node itself can ensure a lower packet loss rate for the first node in a subsequent communication process.
  • Step 704: The first node acquires performance parameter levels of all fixed nodes in the parent node set, and determines whether the parent node set includes at least two fixed nodes with a highest performance parameter level. If yes, step 705 is performed; otherwise, step 706 is performed.
  • The first node acquires the performance parameter level of each fixed node according to a Rank value and an RSSI value of each fixed node in the parent node set. The performance parameter levels of the foregoing at least two fixed nodes are the same, and in addition, the at least two fixed nodes are fixed nodes with the highest performance parameter level in all the fixed nodes.
  • Step 705: The first node selects a fixed node with a minimum Rank value from the at least two fixed nodes with the highest performance parameter level as the preferred parent node of the first node.
  • According to the foregoing technical solution, when the parent node set of the first node includes at least two fixed nodes, a Rank value and an RSSI value of each fixed node are used as performance parameters of the fixed node. Because a combination of the Rank value and the RSSI value can more accurately reflect performance of different fixed nodes, after a fixed node with a better performance parameter is selected from the at least two fixed nodes as the preferred parent node of the first node, network stability can be practically ensured in a subsequent communication process of the first node, thereby effectively improving network performance.
  • Step 706: The first node selects a fixed node with a highest performance parameter level as the preferred parent node of the first node.
  • Step 707: The first node determines whether the foregoing parent node set includes only one mobile node. If yes, step 708 is performed; otherwise, step 709 is performed.
  • Step 708: Select the mobile node as the preferred parent node of the first node.
  • Step 709: The first node acquires performance parameter levels of all mobile nodes in the parent node set, and determines whether the parent node set includes at least two mobile nodes with a highest performance parameter level. If yes, step 710 is performed; otherwise, step 711 is performed.
  • The first node acquires the performance parameter level of each mobile node according to a Rank value and an RSSI value of each mobile node in the parent node set.
  • Step 710: The first node selects a mobile node with a maximum RSSI value from the at least two mobile nodes with the highest performance parameter level as the preferred parent node of the first node.
  • Step 711: The first node selects a mobile node with a highest performance parameter level as the preferred parent node of the first node.
  • With reference to specific application scenarios, the following describes a process of selecting a preferred parent node in a wireless sensor network in different application scenarios.
  • Implementation manner 1:
  • When a parent node set of a first node includes only one fixed node, referring to FIG. 8, a process of selecting a preferred parent node of the first node is as follows:
  • Step 800: The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 810: The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 820 is performed.
  • Step 820: The first node determines whether the foregoing parent node set includes only one fixed node. If yes, step 830 is performed.
  • Step 830: Select the only fixed node in the foregoing parent node set as a preferred parent node of the first node.
  • Implementation manner 2:
  • When a parent node set of a first node only includes at least two fixed nodes, referring to FIG. 9, a process of selecting a preferred parent node of the first node is as follows:
  • Step 900: The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 910: The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 920 is performed.
  • Step 920: The first node determines whether the foregoing parent node set includes only one fixed node. If no, step 930 is performed.
  • Step 930: The first node acquires performance parameter levels of all fixed nodes in the parent node set, and determines whether the parent node set includes at least two fixed nodes with a highest performance parameter level. If no, step 940 is performed.
  • Step 940: Select a fixed node with a highest performance parameter level in the foregoing parent node set as a preferred parent node of the first node.
  • Implementation manner 3:
  • When a parent node set of a first node only includes at least two fixed nodes, referring to FIG. 10, a process of selecting a preferred parent node of the first node is as follows:
  • Step 1000: The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1010: The first node determines whether the foregoing parent node set includes a fixed node. If yes, step 1020 is performed.
  • Step 1020: The first node determines whether the foregoing parent node set includes only one fixed node. If no, step 1030 is performed.
  • Step 1030: The first node acquires performance parameter levels of all fixed nodes in the parent node set, and determines whether the parent node set includes at least two fixed node with a highest performance parameter level. If yes, step 1040 is performed.
  • Step 1040: Select a fixed node with a minimum Rank value from the at least two fixed nodes with the highest performance parameter level as a preferred parent node of the first node.
  • Implementation manner 4:
  • When a parent node set of a first node includes only one mobile node, referring to FIG. 11, a process of selecting a preferred parent node of the first node is as follows:
  • Step 1100: The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1110: The first node determines whether the foregoing parent node set includes a fixed node. If no, step 1120 is performed.
  • Step 1120: The first node determines whether the foregoing parent node set includes only one mobile node. If yes, step 1130 is performed.
  • Step 1130: Select the only mobile node in the foregoing parent node set as a preferred parent node of the first node.
  • Implementation manner 5:
  • When a parent node set of a first node only includes at least two mobile nodes, referring to FIG. 12, a process of selecting a preferred parent node of the first node is as follows:
  • Step 1200: The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1210: The first node determines whether the foregoing parent node set includes a fixed node. If no, step 1220 is performed.
  • Step 1220: The first node determines whether the parent node set includes only one mobile node. If no, step 1230 is performed.
  • Step 1230: The first node acquires performance parameter levels of all mobile nodes in the parent node set, and determines whether the parent node set includes at least two mobile nodes with a highest performance parameter level. If no, step 1240 is performed.
  • Step 1240: Select a mobile node with a highest performance parameter level in the foregoing parent node set as a preferred parent node of the first node.
  • Implementation manner 6:
  • When a parent node set of a first node only includes at least two mobile nodes, referring to FIG. 13, a process of selecting a preferred parent node of the first node is as follows:
  • Step 1300: The first node receives a DIO message sent by another node, and generates a parent node set according to the DIO message.
  • Step 1310: The first node determines whether the foregoing parent node set includes a fixed node. If no, step 1320 is performed.
  • Step 1320: The first node determines whether the foregoing parent node set includes only one mobile node. If no, step 1330 is performed.
  • Step 1330: The first node acquires performance parameter levels of all mobile nodes in the parent node set, and determines whether the parent node set includes at least two mobile nodes with a highest performance parameter level. If yes, step 1340 is performed.
  • Step 1340: Select a mobile node with a maximum RSSI value from the at least two mobile nodes with the highest performance parameter level as a preferred parent node of the first node.
  • Based on the foregoing technical solution, referring to FIG. 14, the disclosure provides an apparatus for selecting a preferred parent node in a wireless sensor network, including an acquiring unit 140, a generating unit 141, and a selecting unit 142, where:
  • the acquiring unit 140 is configured to: for all DIO messages, separately acquire node identification information carried in each of the DIO messages, and send the node identification information to the generating unit 141;
  • the generating unit 141 is configured to receive the node identification information sent by the acquiring unit 140, generate a parent node set based on the node identification information, and send the parent node set to the selecting unit 142; and
  • the selecting unit 142 is configured to: receive the parent node set sent by the generating unit 141; select a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and select a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the foregoing parent node set does not include a fixed node, and includes at least two mobile nodes.
  • The foregoing apparatus further includes a performance parameter level table generating unit 143, configured to: acquire Rank values of all fixed nodes or all mobile nodes in the parent node set, sort the Rank values of all the fixed nodes or all the mobile nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the fixed nodes or all the mobile nodes in the foregoing parent node set, sort the RSSI values of all the fixed nodes or all the mobile nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list to the order in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the foregoing parent node set, add the node identification information of the foregoing fixed node or mobile node to a corresponding location in a two-dimensional table, so as to generate a performance parameter level table.
  • Referring to FIG. 15, the disclosure further provides a device for selecting a preferred parent node in a wireless sensor network, including a transceiver 150, a memory 151, and a processor 152, where
  • the transceiver 150 is configured to receive a DIO message sent by another node;
  • the memory 151 is configured to store an application program; and
  • the processor 152 is configured to invoke the application program in the memory 151 to perform the following operations:
  • for all received DIO messages, separately acquiring node identification information carried in each of the DIO messages, and generating a parent node set based on all the acquired node identification information; selecting a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set includes at least two fixed nodes; and selecting a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the foregoing parent node set does not include a fixed node, and includes at least two mobile nodes.
  • The processor 152 is further configured to: when it is determined that the foregoing parent node set includes one fixed node, select the fixed node as the preferred parent node. According to the foregoing technical solution, the fixed node in the parent node set is preferably selected as the preferred parent node. A feature of higher stability of the fixed node itself can ensure a lower packet loss rate for the first node in a subsequent communication process.
  • The processor 152 is configured to: according to a DIO message carrying node identification information corresponding to each fixed node in the forgoing parent node set, acquire a Rank value of the foregoing each fixed node, and measure a received signal strength indicator RSSI value of each fixed node; and generate a performance parameter level table based on the Rank value and RSSI value of each fixed node, and select a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node. According to the foregoing technical solution, when the parent node set of the first node includes at least two fixed nodes, a Rank value and an RSSI value of each fixed node are used as performance parameters of the fixed node. Because a combination of the Rank value and the RSSI value can more accurately reflect performance of different fixed nodes, after a fixed node with a better performance parameter is selected from the at least two fixed nodes as the preferred parent node of the first node, network stability can be practically ensured in a subsequent communication process of the first node, thereby effectively improving network performance.
  • The processor 152 is further configured to: when the foregoing parent node set includes at least two fixed nodes with a highest performance parameter level, select a fixed node with a minimum Rank value in the at least two fixed nodes as the preferred parent node. Using the foregoing technical solution implements a smallest quantity of hops between the selected preferred parent node of the first node and a root node, thereby ensuring network stability.
  • The processor 152 is further configured to: when it is determined that the foregoing parent node set does not include a fixed node, and includes one mobile node, select the mobile node as the preferred parent node.
  • The processor 152 is configured to: according to a DIO message carrying node identification information corresponding to each mobile node in the foregoing parent node set, acquire a Rank value of each mobile node, and measure an RSSI value of the foregoing each mobile node; and generate a performance parameter level table based on the Rank value and RSSI value of each mobile node, and select a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node. According to the foregoing technical solution, when the parent node set of the first node includes at least two mobile nodes, an optimal mobile node is selected as the preferred parent node by comprehensively considering the Rank values and the RSSI values, which can practically ensure network stability in a subsequent communication process of the first node, thereby effectively improving network performance.
  • The processor 152 is further configured to: when the foregoing parent node set includes at least two fixed nodes with a highest performance parameter level, select a mobile node with a maximum RSSI value in the at least two mobile nodes as the preferred parent node. Using the foregoing technical solution implements greatest received signal strength of the selected preferred parent node of the first node, thereby ensuring network stability and a low packet loss rate.
  • The processor 152 is further configured to: acquire Rank values of all fixed nodes or all mobile nodes in the foregoing parent node set, sort the Rank values of all the fixed nodes or all the mobile nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the fixed nodes or all the mobile nodes in the foregoing parent node set, sort the RSSI values of all the fixed nodes or all the mobile nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node or each mobile node in the foregoing parent node set, add the node identification information of the fixed node or the mobile node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
  • In conclusion, in this embodiment of the disclosure, according to all received DIO messages, a first node separately acquires node identification information carried in each of the DIO messages, and generates a parent node set based on all the acquired node identification information; the first node selects a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the foregoing parent node set includes at least two fixed nodes; and the first node selects a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the foregoing parent node set does not include a fixed node, and includes at least two mobile nodes. In the technical solutions of the disclosure, the preferred parent node is selected for any one node in a wireless sensor network according to a node type and a performance parameter level that are of each node in the parent node set in sequence, which ensures that the selected preferred parent node is an optimal parent node in parent nodes of the any one node and ensures that the any one node performs communication on a link with best communication quality, thereby reducing a system packet loss rate and improving network performance.
  • Persons skilled in the art should understand that the embodiments of the disclosure may be provided as a method, a system, or a computer program product. Therefore, the embodiments may use a form of hardware only embodiments, software only embodiments, or embodiments with a combination of software and hardware. Moreover, the embodiments may use a form of a computer program product that is implemented on one or more computer-usable storage media (including but not limited to a disk memory, a CD-ROM, an optical memory, and the like) that include computer-usable program code.
  • The technical solutions are described with reference to the flowcharts and/or block diagrams of the method, the device (system), and the computer program product according to the embodiments of the disclosure. It should be understood that computer program instructions may be used to implement each process and/or each block in the flowcharts and/or the block diagrams and a combination of a process and/or a block in the flowcharts and/or the block diagrams. These computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
  • These computer program instructions may also be stored in a computer-readable memory that can instruct the computer or any other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate an artifact that includes an instruction apparatus. The instruction apparatus implements a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
  • These computer program instructions may also be loaded onto a computer or another programmable data processing device, so that a series of operations and steps are performed on the computer or the another programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or the another programmable device provide steps for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
  • Although some exemplary embodiments of the disclosure have been described, persons skilled in the art can make changes and modifications to these embodiments once they learn the basic inventive concept. Therefore, the following claims are intended to be construed as to cover the exemplary embodiments and all changes and modifications falling within the scope of the present application.
  • Obviously, persons skilled in the art can make various modifications and variations to the embodiments of the disclosure without departing from the scope of the embodiments of the disclosure. The present application is intended to cover these modifications and variations provided that they fall within the scope of protection defined by the following claims and their equivalent technologies.

Claims (18)

What is claimed is:
1. A method for selecting a preferred parent node in a wireless sensor network, comprising:
for all received Destination Oriented Directed Acyclic Graph Information Object (DIO) messages, separately acquiring node identification information carried in each of the DIO messages, and generating a parent node set based on all the acquired node identification information;
selecting a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set comprises at least two fixed nodes; and
selecting a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not comprise a fixed node, and comprises at least two mobile nodes.
2. The method according to claim 1, further comprising:
when it is determined that the parent node set comprises one fixed node, selecting the fixed node as the preferred parent node.
3. The method according to claim 1, wherein the selecting a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set comprises at least two fixed nodes specifically comprises:
according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, acquiring a Rank value of each fixed node and measuring a received signal strength indicator (RSSI) value of each fixed node; and
generating a performance parameter level table based on the Rank value and RSSI value of each fixed node, and selecting a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
4. The method according to claim 3, further comprising:
when the parent node set comprises at least two fixed nodes with a highest performance parameter level, selecting a fixed node with a minimum Rank value in the at least two fixed nodes as the preferred parent node.
5. The method according to claim 3, wherein the generating a performance parameter level table comprises:
acquiring Rank values of all fixed nodes in the parent node set, sorting the Rank values of all the fixed nodes in ascending order to generate a Rank list, and assigning levels in descending order to the values in the Rank list in sequence;
acquiring RSSI values of all the fixed nodes in the parent node set, sorting the RSSI values of all the fixed nodes in descending order to generate an RSSI list, and assigning levels in descending order to the values in the RSSI list in sequence; and
according to the Rank value and RSSI value of each fixed node in the parent node set, adding the node identification information of the fixed node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
6. The method according to claim 1, further comprising:
when it is determined that the parent node set does not comprise a fixed node, and comprises one mobile node, selecting the mobile node as the preferred parent node.
7. The method according to claim 1, wherein the selecting a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not comprise a fixed node, and comprises at least two mobile nodes specifically comprises:
according to a DIO message carrying node identification information corresponding to each mobile node in the parent node set, acquiring a Rank value of each mobile node and measuring an RSSI value of each mobile node; and
generating a performance parameter level table based on the Rank value and RSSI value of each mobile node, and selecting a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
8. The method according to claim 7, further comprising:
when the parent node set comprises at least two mobile nodes with a highest performance parameter level, selecting a mobile node with a maximum RSSI value in the at least two mobile nodes as the preferred parent node.
9. The method according to claim 7, wherein the generating a performance parameter level table comprises:
acquiring Rank values of all mobile nodes in the parent node set, sorting the Rank values of all the mobile nodes in ascending order to generate a Rank list, and assigning levels in descending order to the values in the Rank list in sequence;
acquiring RSSI values of all the mobile nodes in the parent node set, sorting the RSSI values of all the mobile nodes in descending order to generate an RSSI list, and assigning levels in descending order to the values in the RSSI list in sequence; and
according to the Rank value and RSSI value of each mobile node in the parent node set, adding the node identification information of the mobile node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
10. An apparatus for selecting a preferred parent node in a wireless sensor network, comprising:
a transceiver, configured to receive at least one Destination Oriented Directed Acyclic Graph Information Object (DIO) message; and
a processor, configured to separately acquire node identification information carried in each of the received DIO messages,
generate a parent node set based on the node identification information,
select a fixed node with a highest performance parameter level as a preferred parent node when it is determined that the parent node set comprises at least two fixed nodes, and
select a mobile node with a highest performance parameter level as the preferred parent node when it is determined that the parent node set does not comprise a fixed node, and comprises at least two mobile nodes.
11. The apparatus according to claim 10, wherein the processor is further configured to:
when it is determined that the parent node set comprises one fixed node, select the fixed node as the preferred parent node.
12. The apparatus according to claim 10, wherein the processor is specifically configured to:
according to a DIO message carrying node identification information corresponding to each fixed node in the parent node set, acquire a Rank value of each fixed node, and measure a received signal strength indicator RSSI value of each fixed node; and generate a performance parameter level table based on the Rank value and RSSI value of each fixed node, and select a fixed node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
13. The apparatus according to claim 12, wherein the processor is further configured to:
when the parent node set comprises at least two fixed nodes with a highest performance parameter level, select a fixed node with a minimum Rank value in the at least two fixed nodes as the preferred parent node.
14. The apparatus according to claim 12, wherein the processor is further configured to:
acquire Rank values of all fixed nodes in the parent node set, sort the Rank values of all the fixed nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the fixed nodes in the parent node set, sort the RSSI values of all the fixed nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each fixed node in the parent node set, add the node identification information of the fixed node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
15. The apparatus according to claim 10, wherein the processor is further configured to:
when it is determined that the parent node set does not comprise a fixed node, and comprises one mobile node, select the mobile node as the preferred parent node.
16. The apparatus according to claim 10, wherein in selecting the preferred parent node, the processor is configured to:
according to a DIO message carrying node identification information corresponding to each mobile node in the parent node set, acquire a Rank value of each mobile node, and measure an RSSI value of each mobile node; and generate a performance parameter level table based on the Rank value and RSSI value of each mobile node, and select a mobile node with a highest performance parameter level in the performance parameter level table as the preferred parent node.
17. The apparatus according to claim 16, wherein the processor is further configured to:
when the parent node set comprises at least two mobile nodes with a highest performance parameter level, select a mobile node with a maximum RSSI value in the at least two mobile nodes as the preferred parent node.
18. The apparatus according to claim 16, wherein the processor is further configured to:
acquire Rank values of all mobile nodes in the parent node set, sort the Rank values of all the mobile nodes in ascending order to generate a Rank list, and assign levels in descending order to the values in the Rank list in sequence; acquire RSSI values of all the mobile nodes in the parent node set, sort the RSSI values of all the mobile nodes in descending order to generate an RSSI list, and assign levels in descending order to the values in the RSSI list in sequence; and according to the Rank value and RSSI value of each mobile node in the parent node set, add the node identification information of the mobile node to a corresponding location in a two-dimensional table, so as to generate the performance parameter level table.
US15/055,297 2013-08-28 2016-02-26 Method and apparatus for selecting preferred parent node in wireless sensor network Active 2034-03-24 US9876687B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/082443 WO2015027406A1 (en) 2013-08-28 2013-08-28 Method and apparatus for selecting preferred parent node in wireless sensor network

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082443 Continuation WO2015027406A1 (en) 2013-08-28 2013-08-28 Method and apparatus for selecting preferred parent node in wireless sensor network

Publications (2)

Publication Number Publication Date
US20160182306A1 true US20160182306A1 (en) 2016-06-23
US9876687B2 US9876687B2 (en) 2018-01-23

Family

ID=52585387

Family Applications (1)

Application Number Title Priority Date Filing Date
US15/055,297 Active 2034-03-24 US9876687B2 (en) 2013-08-28 2016-02-26 Method and apparatus for selecting preferred parent node in wireless sensor network

Country Status (5)

Country Link
US (1) US9876687B2 (en)
EP (1) EP3032914B1 (en)
CN (1) CN104584673B (en)
BR (1) BR112016004164B1 (en)
WO (1) WO2015027406A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190174389A1 (en) * 2016-08-02 2019-06-06 Signify Holding B.V. Reliable reporting in wireless mesh network
US10448335B2 (en) * 2017-12-07 2019-10-15 Landis+Gyr Innovations, Inc. Communicating timing information for a next DIO transmission
US10491515B2 (en) 2017-09-13 2019-11-26 Cisco Technology, Inc. Fast and loss-free local recovery by a RPL parent device
US10609621B2 (en) * 2016-06-23 2020-03-31 Cisco Technology, Inc. Directed acyclic graph optimization for future time instance requested by a child network device
US10607012B2 (en) 2017-12-29 2020-03-31 Delphian Systems, LLC Bridge computing device control in local networks of interconnected devices
US20200145897A1 (en) * 2018-11-07 2020-05-07 Kabushiki Kaisha Toshiba METHOD AND DEVICE FOR ROUTING DATA IN 6TiSCH NETWORKS
US11051140B2 (en) * 2014-09-19 2021-06-29 Texas Instruments Incorporated Compression of internet protocol version 6 addresses in wireless sensor networks
EP3790321A4 (en) * 2018-05-02 2021-12-22 Picocela Inc. Wireless route control method, wireless communication system, wireless node, and wireless route control program
US11706687B2 (en) 2018-12-04 2023-07-18 Chongqing University Of Posts And Telecommunications IPV6 node mobility management method based on RPL routing protocol

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180262401A1 (en) * 2015-12-17 2018-09-13 Nebulae LLC Systems and Methods for Selection of Parent Nodes in a Network
CN108600026B (en) * 2018-05-07 2021-08-27 重庆邮电大学 Neighbor relation storage method and device
JP2021197576A (en) * 2020-06-10 2021-12-27 ルネサスエレクトロニクス株式会社 Wireless communication device, wireless route control method, and program
CN112770348A (en) * 2020-12-18 2021-05-07 展讯半导体(成都)有限公司 Wireless mobile communication method and device
CN113329351B (en) * 2021-06-02 2022-08-30 合肥工业大学 Message transmission method and equipment thereof
CN117097665B (en) * 2023-10-18 2024-01-19 杭州联芯通半导体有限公司 Father node selection method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010069238A1 (en) * 2008-12-19 2010-06-24 中国科学院沈阳自动化研究所 Communication method for mesh and star topology structure wireless sensor network
CN101895419A (en) * 2010-07-13 2010-11-24 北京航空航天大学 Tree structure-based data aggregation method with reliability assurance
JP5598228B2 (en) * 2010-10-01 2014-10-01 沖電気工業株式会社 Wireless terminal, accommodation terminal determination program, wireless network, and network configuration device
US8718055B2 (en) * 2012-01-25 2014-05-06 Cisco Technology, Inc. Fast-tracking approach for building routing topologies in fast-moving networks
US9667536B2 (en) * 2012-10-16 2017-05-30 Cisco Technology, Inc. Network traffic shaping for Low power and Lossy Networks
US20140204759A1 (en) * 2013-01-21 2014-07-24 Mitsubishi Electric Research Laboratories, Inc. Load Balanced Routing for Low Power and Lossy Networks

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11051140B2 (en) * 2014-09-19 2021-06-29 Texas Instruments Incorporated Compression of internet protocol version 6 addresses in wireless sensor networks
US11689900B2 (en) * 2014-09-19 2023-06-27 Texas Instruments Incorporated Compression of internet protocol version 6 addresses in wireless sensor networks
US20210281985A1 (en) * 2014-09-19 2021-09-09 Texas Instruments Incorporated Compression of Internet Protocol Version 6 Addresses in Wireless Sensor Networks
US10609621B2 (en) * 2016-06-23 2020-03-31 Cisco Technology, Inc. Directed acyclic graph optimization for future time instance requested by a child network device
US20190174389A1 (en) * 2016-08-02 2019-06-06 Signify Holding B.V. Reliable reporting in wireless mesh network
US10939353B2 (en) * 2016-08-02 2021-03-02 Signify Holding B.V. Reliable reporting in wireless mesh network
US10491515B2 (en) 2017-09-13 2019-11-26 Cisco Technology, Inc. Fast and loss-free local recovery by a RPL parent device
US11050663B2 (en) 2017-09-13 2021-06-29 Cisco Technology, Inc. Fast and loss-free local recovery by a RPL parent device
US10448335B2 (en) * 2017-12-07 2019-10-15 Landis+Gyr Innovations, Inc. Communicating timing information for a next DIO transmission
US10607012B2 (en) 2017-12-29 2020-03-31 Delphian Systems, LLC Bridge computing device control in local networks of interconnected devices
US11068601B2 (en) 2017-12-29 2021-07-20 Delphian Systems, LLC Bridge computing device control in local networks of interconnected devices
US11520897B2 (en) 2017-12-29 2022-12-06 Delphian Systems, LLC Bridge computing device control in local networks of interconnected devices
EP3790321A4 (en) * 2018-05-02 2021-12-22 Picocela Inc. Wireless route control method, wireless communication system, wireless node, and wireless route control program
US11483757B2 (en) 2018-05-02 2022-10-25 Picocela Inc. Wireless route control method, wireless communication system, and wireless node
US11838847B2 (en) 2018-05-02 2023-12-05 Picocela Inc. Wireless route control method, wireless communication system, and wireless node
US10972957B2 (en) * 2018-11-07 2021-04-06 Kabushiki Kaisha Toshiba Method and device for routing data in 6TiSCH networks
US20200145897A1 (en) * 2018-11-07 2020-05-07 Kabushiki Kaisha Toshiba METHOD AND DEVICE FOR ROUTING DATA IN 6TiSCH NETWORKS
US11706687B2 (en) 2018-12-04 2023-07-18 Chongqing University Of Posts And Telecommunications IPV6 node mobility management method based on RPL routing protocol

Also Published As

Publication number Publication date
EP3032914A4 (en) 2016-09-28
BR112016004164B1 (en) 2022-10-04
BR112016004164A8 (en) 2020-02-11
CN104584673B (en) 2018-10-30
CN104584673A (en) 2015-04-29
EP3032914B1 (en) 2017-10-18
US9876687B2 (en) 2018-01-23
WO2015027406A1 (en) 2015-03-05
EP3032914A1 (en) 2016-06-15

Similar Documents

Publication Publication Date Title
US9876687B2 (en) Method and apparatus for selecting preferred parent node in wireless sensor network
CA3006394C (en) Status detection method and wireless network node
EP2448196A1 (en) Wireless network device, wireless network system and method of controlling selection of routings
US10171986B2 (en) Radio relay device and system with waiting time optimization
US10103973B2 (en) Communication device and multi-hop network
US9603118B2 (en) Method and device for determining node movement
US11032827B2 (en) Route selection method and apparatus
US20150110099A1 (en) Service Information Discovery Method and Device
US20100097986A1 (en) Loop-Detection in Moving Networks
US11038956B2 (en) Method and apparatus for determining network central node, and node equipment
CN109587754B (en) Network equipment node selection method and device and computer readable storage medium
US9942828B2 (en) Wireless communication apparatus, wireless communication method, and computer-readable recording medium
JP6420360B2 (en) Method, apparatus and system for CoMP-based resource allocation
US8411684B1 (en) System, method, and computer program product for determining a hop count between network devices utilizing a binary search
JP2009218811A (en) Radio communication apparatus, method and program
US20150304877A1 (en) Positioning method, apparatus, and system
JP6502508B2 (en) Scheduling apparatus and method
CN111193805B (en) Resource discovery method and device
US9788222B2 (en) Network, and network establishing method and device
US20190014586A1 (en) Method for selecting management frame antenna based on master-slave network and apparatus
CN113542106A (en) Gateway selection method and device in multi-gateway environment and storage medium
CN111132095B (en) Synchronization source determination method, device, terminal and medium based on D2D communication technology
CN115348322B (en) Data processing method, networking equipment and computer readable storage medium
CN110972272B (en) Information reporting method, user terminal and computer readable storage medium
CN116249139A (en) Service data transmission method, device, equipment and medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: HUAWEI TECHNOLOGIES CO., LTD., CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LIU, PEI;REEL/FRAME:039860/0257

Effective date: 20160819

STCF Information on status: patent grant

Free format text: PATENTED CASE

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4