WO2020093190A1 - Routing method and apparatus for mobile ad hoc network - Google Patents

Routing method and apparatus for mobile ad hoc network Download PDF

Info

Publication number
WO2020093190A1
WO2020093190A1 PCT/CN2018/113931 CN2018113931W WO2020093190A1 WO 2020093190 A1 WO2020093190 A1 WO 2020093190A1 CN 2018113931 W CN2018113931 W CN 2018113931W WO 2020093190 A1 WO2020093190 A1 WO 2020093190A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
hop neighbor
nodes
remaining
network node
Prior art date
Application number
PCT/CN2018/113931
Other languages
French (fr)
Chinese (zh)
Inventor
张吉寇
卢丙权
Original Assignee
鹤壁天海电子信息系统有限公司
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 鹤壁天海电子信息系统有限公司 filed Critical 鹤壁天海电子信息系统有限公司
Priority to PCT/CN2018/113931 priority Critical patent/WO2020093190A1/en
Publication of WO2020093190A1 publication Critical patent/WO2020093190A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/04Communication route or path selection, e.g. power-based or shortest path routing based on wireless node resources

Definitions

  • the present invention relates to the field of network technology, and more specifically, to a routing method and device for wireless ad hoc networks.
  • the wireless ad hoc network (MANET, Mobile Ad Hoc Network) is a temporary multi-hop autonomous system composed of a group of mobile nodes with wireless transceiver devices. It does not need to rely on the preset information infrastructure network. It can quickly build a mobile communication network at any time and any place. It has the characteristics of temporary networking, rapid deployment, no control center, and strong resistance to destruction.
  • the forwarding node in the forwarding routing table is usually updated in real time according to the channel occupancy, or the route is designed according to the change of the physical link quality, thereby reducing the network congestion and improving the network performance.
  • the existing routing scheme ignores the device forms of different network nodes The difference is that when multiple types of devices are mixed, the characteristics of the device form cannot be fully utilized to take advantage of the device, so that the wireless ad hoc network has low network efficiency and poor network stability, which affects the wireless ad hoc network. Combined network performance.
  • the present invention provides a routing method and device for a wireless ad hoc network to solve the technical problem that the overall network performance of the wireless ad hoc network is lower due to the existing networking method.
  • the present invention provides the following technical solutions:
  • a routing method for a wireless ad hoc network is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the method includes:
  • the node information includes the device form
  • the MPR nodes matched by the target network node are used to flood the network topology information sensed by the target network node in the wireless ad hoc network, and used for each network node in the wireless ad hoc network to determine corresponding routing information .
  • the acquiring node information of neighbor nodes of the target network node within a preset range includes:
  • the first heartbeat message carries: the node information of the one-hop neighbor node, and the node information of the neighbor node of the one-hop neighbor node within the range of one hop;
  • the first heartbeat message obtain the node information of the neighbor node of the target network node within two hops.
  • the preset range is a two-hop range
  • neighbor nodes of the target network node within the preset range include: a one-hop neighbor node and a two-hop neighbor node of the target network node
  • Setting the device form of the neighbor node within the range, and determining the multipoint relay MPR node that the target network node matches include:
  • the one-hop neighbor node and the two-hop neighbor node of the target network node respectively determine the set of one-hop neighbor nodes and the set of two-hop neighbor nodes of the target network node;
  • the one-hop neighbor node set and any one of the two-hop neighbor node set is determined as the MPR node matching the target network node; correspondingly, the one-hop neighbor node with the unique path is deleted from the one-hop neighbor node set, And from the set of two-hop neighbor nodes, delete the two-hop neighbor nodes covered by the one-hop neighbor nodes with unique paths;
  • the remaining one-hop neighbor nodes with the largest device weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the device is deleted from the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest equipment weight from the set of two-hop neighbor nodes.
  • the node information further includes moving speed, remaining power, link quality, and congestion status; in the acquiring, a device weight corresponding to the device form of the remaining one-hop neighbor node is used as the remaining one-hop After the device weights of neighbor nodes, the method further includes:
  • the moving speed weights, remaining power weights, link quality weights, and congestion status weights of the remaining one-hop neighbor nodes calculate the comprehensive weights of the remaining one-hop neighbor nodes, respectively;
  • the MPR node matched by the target network node is determined according to the integrated weight of each remaining one-hop neighbor node.
  • the determining the MPR node according to the comprehensive weight of each remaining one-hop neighbor node includes:
  • the remaining one-hop neighbor nodes with the largest integrated weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the synthesis is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest comprehensive weight from the set of two-hop neighbor nodes.
  • the method further includes:
  • the MPR node matched by the target network node is determined according to the number of remaining two-hop neighbor nodes of the coverage.
  • the determining the MPR node that the target network node matches according to the number of remaining two-hop neighbor nodes of the coverage includes:
  • the remaining two-hop neighbor node with the largest number of nodes is determined as the MPR node that matches the target network node; correspondingly, the number of nodes covering the remaining two-hop neighbor nodes is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest number, and from the set of two-hop neighbor nodes, delete the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes.
  • the method further includes:
  • the network topology information of each network node in the wireless ad hoc network to obtain the topology information of the entire network;
  • the topology information of the entire network includes the device form of each network node;
  • the routing information of the target network node is determined according to the device form of each network node in the wireless ad hoc network.
  • the network-wide topology information further includes the movement speed, remaining power, link quality, and congestion status of each network node; the target network is determined according to the device form of each network node in the wireless ad hoc network
  • the routing information of the node includes:
  • the routing information of the target network node is determined according to the weight of each link in the wireless ad hoc network.
  • the method further includes:
  • a corresponding routing strategy is implemented.
  • the method further includes:
  • the second heartbeat message carries: the node information of the target network node, and the node information of the neighbor node of the target network node within a hop range.
  • a routing device for a wireless ad hoc network is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the device includes:
  • the neighbor information obtaining unit is used to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes the device form;
  • An MPR node determining unit configured to determine a multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range;
  • the topology information flooding unit is used for flooding the network topology information perceived by the target network node in the wireless ad hoc network through the MPR nodes matched by the target network node, and used in the wireless ad hoc network Each network node determines the corresponding routing information.
  • the device further includes:
  • a topology information acquiring unit configured to acquire network topology information of each network node in the wireless ad hoc network to obtain topology information of the entire network; the topology information of the entire network includes the device form of each network node;
  • the routing information determining unit is configured to determine the routing information of the target network node according to the device form of each network node in the wireless ad hoc network.
  • a storage medium stores computer program code, and when the computer program code is executed, the wireless ad hoc network routing method described above is implemented.
  • a routing terminal for a wireless ad hoc network is applied to a target network node, and the target network node is any network node in the wireless ad hoc network;
  • the routing terminal includes a processor and a memory;
  • the processor is configured to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes a device form; and determine the node according to the device form of the neighbor node within the preset range
  • a multipoint relay MPR node matched by the target network node the MPR node matched by the target network node floods the network topology information perceived by the target network node in the wireless ad hoc network for the wireless
  • Each network node in the ad hoc network determines the corresponding routing information
  • the memory is used to store node information of neighbor nodes of the target network node within a preset range, a multipoint relay MPR node matched by the target network node, and network topology information perceived by the target network node .
  • the wireless ad hoc network routing method and apparatus are applied to the target network node of the wireless ad hoc network to obtain the device form of the neighbor node of the target network node within a preset range, And determine the multipoint relay MPR node that the target network node matches according to the device shape of the neighbor node within the preset range, which overcomes the disadvantage that the MPR node cannot be obtained by simply selecting the MPR node from the network node coverage To obtain a better set of MPR nodes, and through the MPR nodes matched by the target network node, flood the network topology information sensed by the target network node in the wireless ad hoc network for the wireless ad hoc network Each network node in the network determines the corresponding routing information, so as to effectively control the number of messages forwarded while ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.
  • FIG. 1 is a flowchart of a routing method for a wireless ad hoc network provided by an embodiment of this application;
  • FIG. 2 is a flowchart of a heartbeat message interaction process provided by an embodiment of this application.
  • FIG. 3 is an example diagram of a heartbeat message format provided by an embodiment of this application.
  • FIG. 5 is an example diagram of a device encoding rule provided by an embodiment of this application.
  • FIG. 8 is another flowchart of the MPR node determination process provided by the embodiment of the present application.
  • FIG. 9 is another flowchart of a routing method for a wireless ad hoc network provided by an embodiment of this application.
  • FIG. 10 is a schematic diagram of a packet format of network topology information provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a routing device for a wireless ad hoc network provided by an embodiment of this application;
  • FIG. 12 is another schematic structural diagram of a wireless ad hoc network routing device according to an embodiment of the present application.
  • the routing method of the wireless ad hoc network provided by the embodiment of the present invention is applied to a target network node, and the target network node is any network node in the wireless ad hoc network.
  • FIG. 1 is a flowchart of a routing method of a wireless ad hoc network according to an embodiment of the present application.
  • the method includes:
  • S101 Acquire node information of a neighbor node of a target network node within a preset range.
  • the target network node is any network node in the wireless ad hoc network, and the neighbor node of the target network node refers to a network node near the target network node.
  • the preset range may refer to a preset number of hops between network nodes, then the neighbor node of the target network node within the preset range may be a neighbor node of the target network node within the preset hop number range, such as one hop of the target network node Neighbor nodes, two-hop neighbor nodes, etc.
  • Network nodes usually have corresponding node information, such as congestion, remaining power, and moving speed. Since the network node is actually a device, the node information of the network node may also include the device form.
  • the form of the device refers to the form of the device under specific conditions, which can specifically refer to the specific form of the device in different use environments or different application scenarios, such as handheld form, carrying form, vehicle form, airborne form, drone Load form, ship form, etc.
  • the present invention When acquiring the node information of the neighbor nodes of the target network node within the preset range, the present invention acquires the device form of the neighbor node of the target network node within the preset range through the target network node, so as to facilitate the Formulate corresponding message forwarding strategies.
  • S102 Determine a multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range.
  • the multi-point relay (MPR, Multi Point Relay) node mechanism can effectively reduce the number of messages forwarded during the network flooding process to overcome the large network maintenance overhead in the table-driven routing protocol Shortcomings, and can be widely used in large and dense network environment. Since only the network node selected as the MPR node forwards the message, and the MPR node only generates the link state information between the matching MPR nodes, whether the MPR node is selected accurately will directly affect the performance of the network.
  • MPR Multi Point Relay
  • the traditional greedy algorithm for selecting MPR nodes uses the coverage of network nodes as a priority strategy, so the near optimal solution obtained often has a certain redundancy, and it is impossible to obtain a better MPR node set; and, the greedy algorithm is just The minimum MPR node set for the local network node is not considered for the entire network.
  • simply selecting the MPR node from the dimension of network node coverage is bound to fail Excellent MPR node set.
  • the present invention determines the multipoint relay MPR node matched by the target network node in combination with the reference factor of the device form of the neighbor node of the target network node within the preset range, which can be applied Different usage environments and application scenarios overcome the disadvantage of simply selecting MPR nodes from the coverage of network nodes, thereby obtaining a better set of MPR nodes.
  • S103 Flood the network topology information perceived by the target network node in the wireless ad hoc network through the MPR node matched by the target network node.
  • the invention floods the network topology information sensed by the target network node through a better MPR node set, and on the premise of ensuring message coverage, effectively controls the number of message forwarding, improves the message forwarding efficiency, and reduces the wireless
  • the network load of the network increases the network performance of the wireless ad hoc network.
  • the network topology information sensed by the target network node refers to the network topology information obtained by the target network node according to the node information of neighbor nodes within the preset range.
  • the flooded network topology information determines the corresponding routing information, that is, it is used for each network node in the wireless ad hoc network to determine the corresponding routing information, which improves the network efficiency of the wireless ad hoc network as a whole.
  • the routing method of the wireless ad hoc network obtains the device form of the neighbor node of the target network node within the preset range, and determines the target network node according to the device form of the neighbor node within the preset range
  • the matched multi-point relay MPR node overcomes the shortcomings that simply selecting MPR nodes from the network node coverage cannot obtain a better MPR node set, can obtain a better MPR node set, and can be applied to different corresponding to different device forms Usage environment and application scenarios, through the MPR nodes matched by the target network node, the network topology information perceived by the target network node is flooded in the wireless ad hoc network for each network node in the wireless ad hoc network Determine the corresponding routing information, so as to effectively control the number of messages forwarded under the premise of ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.
  • the node information interaction between the network nodes in the wireless ad hoc network is achieved through the heartbeat message interaction process.
  • the heartbeat message interaction between the network nodes can be used to implement neighbor discovery and neighbor Various functions such as maintenance and link status monitoring.
  • the heartbeat message of the network node may carry the node information of the network node.
  • the embodiment of the present application also provides a heartbeat message interaction solution applicable to the present invention.
  • FIG. 2 is a flowchart of a heartbeat message interaction process provided by an embodiment of the present application.
  • the heartbeat message interaction process includes:
  • S201 Receive a first heartbeat message sent by a one-hop neighbor node of the target network node.
  • the first heartbeat message carries: the node information of the one-hop neighbor node, and the node information of the neighbor node of the one-hop neighbor node within the range of one hop.
  • S202 Obtain the node information of the neighbor node of the target network node within two hops according to the first heartbeat message.
  • S203 Send a second heartbeat message to the one-hop neighbor node of the target network node.
  • the second heartbeat message carries: the node information of the target network node, and the node information of the neighbor node of the target network node within a hop range.
  • the first heartbeat message refers to the heartbeat message sent by the one-hop neighbor node of the target network node to the target network node;
  • the second heartbeat message refers to the heartbeat message sent by the target network node to its one-hop neighbor node.
  • the first heartbeat message and the second heartbeat message use the same heartbeat message format. See FIG. 3 for details.
  • the number of neighbor nodes represents the number of one-hop neighbor nodes of the network node; the IP address of the neighbor node represents the IP address of the neighbor node; the device morphology represents the device morphology of the network node; the congestion degree represents the network
  • the current traffic load of a node can be expressed as a value from 0 to 16. The larger the value, the more serious the current network congestion; the power characterizes the current remaining power of the network node; the speed characterizes the current moving speed of the network node; the link quality characterization is measured by the physical layer
  • the communication quality of the current link obtained afterwards can be used for the first 4 bits to indicate the forward link quality and the last 4 bits to indicate the reverse link quality.
  • the transmission cycle refers to the heartbeat
  • the message sending interval is in seconds; the MPR identifier is used to characterize the willingness of the network node to act as an MPR node of other network nodes (referred to as MPR willingness).
  • the MPR willingness can be expressed using Table 1 below.
  • V Speed (V) 7 3 0 Energy (P) 0 3 7 Link quality (L) 0 3 7 Congestion state (C) 7 3 0
  • speed (V), energy (P), link quality (L), and congestion status (C) are the status parameters of the network nodes, and low, medium, and high represent the status parameter levels.
  • Speed (V) refers to the moving speed of the network node
  • energy (P) refers to the remaining power of the node device
  • link quality (L) refers to the data transmission quality of the link where the network node is located
  • congestion status (C) refers to the network The degree of node congestion.
  • the speed level is inversely proportional to the size of the willingness value
  • the energy level is proportional to the size of the willingness value
  • the link quality level is proportional to the size of the willingness value
  • the level of the congestion state level is related to the willingness Inversely proportional, therefore, when selecting MPR nodes, network nodes with low speed level, high energy level, high link quality and low congestion status level should be selected.
  • the MPR willingness value in Table 1 is only an optional example in this embodiment. In practical applications, the MPR willingness value of the network node is not limited to the willingness value shown in Table 1.
  • the device form of the network node may include at least one of a handheld form, a piggyback form, a vehicle form, an airborne form, an unmanned aerial vehicle load form, and a shipborne form. Of course, other device forms may be added according to specific requirements. For each device form, the corresponding device weights are set.
  • the correspondence between the device shape and the device weights can be shown in Table 2 below:
  • the MPR mark (V + P + L + C + D) ⁇ 5; in other examples, the MPR mark may also be determined by other calculation methods.
  • steps S201-S202 may be used to implement the step of obtaining the node information of the neighbor node of the target network node within a preset range (S101) described in the foregoing embodiment.
  • steps S201-S202 and step S203 are parallel to each other, and there is no successive trigger relationship.
  • the heartbeat message interaction process realizes the node information interaction between each network node in the wireless ad hoc network, so that the target network node can not only send its own node information to other neighbor nodes, but also obtain other neighbor nodes.
  • the node information sent by the node in particular, obtains the device form of the neighbor node, so as to select the MPR node based on the device form, and obtain a better MPR node set, which can be applied to the use environment and application scenarios corresponding to different device forms.
  • FIG. 4 is a flowchart of an apparatus shape extraction process provided by an embodiment of the present application.
  • the device shape extraction process includes:
  • S301 Acquire a device number of the target network node according to a preset device coding rule.
  • Each network node is a device, and each device can have a globally unique number. After the device as the target network node is turned on, the device number of the device can be automatically read according to the preset device coding rules.
  • the device encoding rules shown in FIG. 5 may be used to encode device information.
  • the device information includes the manufacturer's identification, device type and device number, and uses 6 bytes to encode the device information. Among them, 1 byte is used to store the manufacturer's identification, and 1 byte is used to store the device form Information, using 4 bytes to store the device number.
  • the manufacturer's logo is used to distinguish manufacturers of different devices.
  • the manufacturers of different devices have different manufacturers' unique identifiers; the device type is used to distinguish different device forms and communication systems (see Table 3 below for specific definitions); the device number, ie For the device serial number, the device numbers corresponding to node devices with the same device form must be different, and the device numbers corresponding to node devices with different device forms can be the same.
  • S302 Acquire a device form corresponding to the device number of the target network node.
  • the device form corresponding to the device number of the target network node is acquired as the target network The device form of the node.
  • S303 Perform a corresponding routing strategy according to the device shape of the target network node.
  • the routing strategy corresponding to the form of the device may refer to a routing strategy that differs depending on the form of the device, for example, the period for sending protocol packets and the time for node failure.
  • the device form extraction process provided in this embodiment first obtains the device number of the target network node according to a preset device coding rule, and then obtains the target network node according to the correspondence between the preset device number and the device form The device form corresponding to the device number of, as the device form of the target network node, realizes the extraction of the device form of the target network node.
  • FIG. 6 is a flowchart of an MPR node determination process provided by an embodiment of the present application.
  • the neighbor nodes of the target network node within the preset range include: the one-hop neighbor node and the two-hop neighbor node of the target network node.
  • the MPR node determination process includes:
  • S401 Determine the one-hop neighbor node set M1 (i) and the two-hop neighbor node set M2 (i) of the target network node i.
  • the node information of the neighbor nodes within the two-hop range acquired by the target network node i indicates that the target network node i has one-hop neighbor nodes and two-hop neighbor nodes. According to the one-hop neighbor node and the two-hop neighbor node of the target network node i, the one-hop neighbor node set M1 (i) and the two-hop neighbor node set M2 (i) of the target network node i can be determined respectively.
  • S402 Obtain the number of nodes of the two-hop neighbor nodes covered by the one-hop neighbor nodes in the one-hop neighbor node set M1 (i) in the two-hop neighbor node set M2 (i), respectively.
  • the number of two-hop neighbor nodes covered by any one-hop neighbor node refers to the number of two-hop neighbor nodes that the one-hop neighbor node can reach directly.
  • S403 Determine whether the two-hop neighbor node in M2 (i) has a one-hop neighbor node with which it has a unique communication, if yes, go to step S404; if not, go to step S406.
  • S404 Determine the one-hop neighbor node with unique communication as the MPR node matching the target network node i, and delete the one-hop neighbor node from M1 (i), and delete the one-hop node from M2 (i) Two-hop neighbor nodes covered by neighbor nodes.
  • a one-hop neighbor node having a unique path with any two-hop neighbor node in the two-hop neighbor node set M2 (i) is determined to match the target network node i MPR node; correspondingly, delete the one-hop neighbor node with the unique path from the one-hop neighbor node set M1 (i), and delete the two-hop neighbor node set M2 (i)
  • a two-hop neighbor node covered by a one-hop neighbor node with a unique path is described.
  • a corresponding MPR (i) set may be pre-defined for the target network node i, and used to store the MPR nodes that the target network node i matches.
  • step S405 Determine whether the number of the remaining two-hop neighbor nodes in M2 (i) is zero. If not, perform step S406; if yes, the MPR node determination process ends.
  • the number of remaining two-hop neighbor nodes in M2 (i) is zero, which means that the two-hop neighbor nodes of the target network node have been covered by the determined MPR node, that is, the currently determined MPR node can
  • the message is directly forwarded to all two-hop neighbor nodes of the target network node, and the MPR node determination process ends.
  • S406 Obtain the device weight of the remaining one-hop neighbor node according to the device form of the remaining one-hop neighbor node in M1 (i).
  • steps S403 and S405-406 when the one-hop neighbor node set M1 (i) has a unique path with any one of the two-hop neighbor nodes in the two-hop neighbor node set M2 (i) When the number of nodes is zero, or when the number of remaining two-hop neighbor nodes in the two-hop neighbor node set M2 (i) is not zero, according to the remaining in the one-hop neighbor node set M1 (i)
  • the device form of the one-hop neighbor node obtains the device weight corresponding to the device form of the remaining one-hop neighbor node as the device weight of the remaining one-hop neighbor node.
  • S407 Determine the remaining one-hop neighbor node with the largest device weight as the MPR node matching the target network node i, and delete the remaining one-hop neighbor node from M1 (i) and delete the remaining one from M2 (i) The remaining two-hop neighbor nodes covered by the hop neighbor nodes.
  • step S407 the remaining one-hop neighbor nodes with the largest device weights in the one-hop neighbor node set M1 (i) are determined as the MPR nodes matching the target network node i; correspondingly, from the one-hop In the neighbor node set M1 (i), delete the remaining one-hop neighbor node with the largest device weight, and delete the remaining one hop neighbor with the largest device weight from the two-hop neighbor node set M2 (i).
  • step S408 Determine again whether the number of remaining two-hop neighbor nodes in M2 (i) is zero. If not, perform step S403; if so, the MPR node determination process ends.
  • the MPR node determination process provided in this embodiment may be used to implement the step of determining the multipoint relay MPR node matching the target network node i according to the device form of the neighbor node within the preset range in the foregoing embodiment (S102) .
  • the MPR node determination process provided in this embodiment first determines the MPR node according to the unique path between the one-hop neighbor node in the one-hop neighbor node set and the two-hop neighbor node in the two-hop neighbor node set.
  • the MPR nodes that match the target network node are selected from the device weights of the one-hop neighbor nodes, so that the selection of MPR nodes is combined with the reference factors of the device shape to get better
  • the MPR node set can be applied to different usage environments and application scenarios corresponding to different device forms, which overcomes the disadvantage that the MPR node cannot be obtained by simply selecting the MPR node from the network node coverage.
  • the remaining one-hop neighbor nodes in the set of one-hop neighbor nodes of the target network node may be devices with the same device shape, which may cause the remaining one-hop neighbor nodes to have the same device weight, resulting in failure to determine the device shape
  • the MPR node is determined by the device weight corresponding to the shape.
  • FIG. 7 is another flowchart of an MPR node determination process provided by an embodiment of the present application.
  • the MPR node determination process also Can include:
  • S501 Obtain the moving speed weight, remaining power weight, link quality weight, and congestion status weight of each remaining one-hop neighbor node.
  • the node information of the network node also includes moving speed, remaining power, link quality, and congestion status.
  • the moving speed, remaining power, link quality, and congestion status have preset correspondences with the moving speed weight, remaining power weight, link quality weight, and congestion status weight, respectively.
  • each of the remaining one-hop neighbor nodes in the one-hop neighbor node set M1 (i) can be obtained according to the moving speed, remaining power, link quality, and congestion status of the remaining one-hop neighbor nodes.
  • the moving speed weights, remaining power weights, link quality weights, and congestion state weights of each remaining one-hop neighbor node are described.
  • S502 According to the moving speed weights, remaining power weights, link quality weights, and congestion state weights of the remaining one-hop neighbor nodes, calculate the comprehensive weights of the remaining one-hop neighbor nodes, respectively.
  • the integrated weight of the remaining one-hop neighbor node is equal to the weighted average of the remaining one-hop neighbor node's moving speed weight, remaining power weight, link quality weight, and congestion state weight.
  • S503 Determine the MPR node that the target network node i matches according to the integrated weight of each remaining one-hop neighbor node.
  • the remaining one-hop neighbor nodes with the largest integrated weights are determined as the MPR nodes matching the target network node i; correspondingly, from the one-hop neighbors In the node set M1 (i), delete the remaining one-hop neighbor node with the largest comprehensive weight, and delete the remaining one-hop neighbor node with the largest comprehensive weight from the two-hop neighbor node set M2 (i) The remaining two-hop neighbor nodes covered.
  • the MPR node determination process provided in this embodiment can be used as a supplementary solution to step S407 in the foregoing embodiment.
  • each remaining one-hop neighbor node has the same device weight carried out.
  • the MPR node determination process provided in this embodiment is directed to the case where the remaining one-hop neighbor nodes in the foregoing embodiments have the same device weight, and the remaining one-hop neighbor node with the largest device weight cannot be selected as the MPR node.
  • the moving speed weight, the remaining power weight, the link quality weight and the congestion state weight of each remaining one-hop neighbor node are calculated, and the comprehensive weight of each remaining one-hop neighbor node is calculated respectively, and the one-hop In the set of neighbor nodes, the remaining one-hop neighbor node with the largest comprehensive weight is determined as the MPR node that matches the target network node i, so that from the perspective of the entire network, according to the shape of the device, moving speed, remaining power, and link quality
  • the selection of MPR nodes with multi-level and multi-dimensional perceptions such as congestion status further overcomes the disadvantage that it is impossible to obtain a better MPR node set simply by selecting MPR nodes from the coverage of network nodes.
  • the present invention also provides the following embodiments.
  • FIG. 8 is another flowchart of the MPR node determination process provided by the embodiment of the present application.
  • the MPR node determination process can also be include:
  • S601 Obtain the number of remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set M2 (i), respectively.
  • S602 Determine the MPR node that the target network node i matches according to the number of remaining two-hop neighbor nodes covered by the node.
  • the one-hop neighbor node set M1 (i) the one-hop neighbor node set M1 (i) .
  • the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes is determined as the MPR node matching the target network node i; correspondingly, from the one-hop neighbor node set M1 (i) , Delete the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes, and delete the covering two remaining hop neighbors from the two-hop neighbor node set M2 (i) The remaining one-hop neighbor node covered by the remaining one-hop neighbor node with the largest number of nodes.
  • the MPR node determination process provided in this embodiment has the same comprehensive weight value for each remaining one-hop neighbor node in the one-hop neighbor node set in the foregoing embodiment, and the remaining one-hop neighbor node with the largest device weight value cannot be selected from it as the In the case of an MPR node, according to the number of nodes of the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set respectively, determine the MPR nodes that the target network node matches, and thus stand on the entire network From the perspective of network node coverage, device shape, moving speed, remaining power, link quality and congestion status, etc. to determine the selection of MPR nodes, the quality of MPR node selection is further improved, which in turn guarantees Under the premise of message coverage, it can effectively control the number of messages forwarded and improve the network efficiency and comprehensive network performance of the wireless ad hoc network.
  • FIG. 9 is another flowchart of a routing method of a wireless ad hoc network provided by an embodiment of the present application.
  • the method includes:
  • S701 Obtain network topology information of each network node in the wireless ad hoc network flooding to obtain network-wide topology information.
  • the network-wide topology information includes the device form of each network node.
  • the packet format of the network topology information flooded by each network node in the wireless ad hoc network may be as shown in FIG. 10.
  • the packet sequence number is used to distinguish the old and new packets.
  • the packet sequence number in the packet is automatically incremented by 1.
  • the protocol message formats (heartbeat message and network topology information) provided in the embodiments of the present application are all self-defined formats, and the message only needs to contain necessary information, thereby reducing the overhead of the protocol message in a wireless scenario. If the network node needs to communicate with the standard protocol, it can perform protocol conversion in the external interface to adapt and be compatible with the standard protocol.
  • S702 Determine routing information of the target network node according to the device form of each network node in the wireless ad hoc network.
  • the network-wide topology information further includes the movement speed, remaining power, link quality, and congestion status of each network node; and the target is determined according to the device form of each network node in the wireless ad hoc network
  • the routing information of network nodes includes:
  • L is the link quality
  • C is the congestion state
  • P is the remaining power
  • V is the moving speed
  • D is the device form
  • is the weight factor corresponding to the link quality
  • is the weight factor corresponding to the congestion state
  • is the remaining
  • is the weighting factor corresponding to the form of the device.
  • the routing method of the wireless ad hoc network calculates the link weight based on the reference factor of the device shape, and then determines the shortest path between the network nodes through the link weight, thereby improving the network of mixed networking of multiple devices efficacy. Moreover, by combining the link weight determination method based on the device form provided in this embodiment, and the MPR determination method based on the device form provided in the previous embodiment, the network efficiency and integrated network of the wireless ad hoc network can be improved as a whole performance.
  • An embodiment of the present invention also provides a routing device for a wireless ad hoc network.
  • the routing device for a wireless ad hoc network is used to implement the routing method for the wireless ad hoc network provided by the embodiment of the present invention.
  • the routing of the wireless ad hoc network described below The content of the device can correspond to each other with the content of the routing method of the wireless ad hoc network described above.
  • the routing device of the wireless ad hoc network provided by the embodiment of the present invention is applied to a target network node, and the target network node is any network node in the wireless ad hoc network.
  • FIG. 11 is a schematic structural diagram of a wireless ad hoc network routing device according to an embodiment of the present application.
  • the device includes a neighbor information acquisition unit 100, an MPR node determination unit 200, and a topology information flooding unit 300. among them,
  • the neighbor information obtaining unit 100 is configured to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes a device form.
  • the MPR node determining unit 200 is configured to determine a multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range;
  • the topology information flooding unit 300 is used to flood the network topology information perceived by the target network node in the wireless ad hoc network through the MPR nodes matched by the target network node, and is used for the wireless self-organization. Each network node in the networking determines the corresponding routing information.
  • the neighbor information obtaining unit 100 may be specifically used for:
  • the first heartbeat message carries: the node information of the one-hop neighbor node, and the node information of the neighbor node of the one-hop neighbor node within the range of one hop;
  • the first heartbeat message obtain the node information of the neighbor node of the target network node within two hops.
  • the device may further include:
  • a node information sending unit configured to send a second heartbeat message to the one-hop neighbor node of the target network node
  • the second heartbeat message carries: the node information of the target network node, and the node information of the neighbor node of the target network node within a hop range.
  • the device may further include:
  • Equipment morphology extraction unit for:
  • the corresponding routing strategy can be implemented according to the device form of the target network node.
  • the preset range is a two-hop range; neighbor nodes of the target network node within the preset range include: a one-hop neighbor node and a two-hop neighbor node of the target network node; the MPR node
  • the determining unit 200 is specifically used for:
  • the one-hop neighbor node and the two-hop neighbor node of the target network node respectively determine the set of one-hop neighbor nodes and the set of two-hop neighbor nodes of the target network node;
  • the one-hop neighbor node set and any one of the two-hop neighbor node set is determined as the MPR node matching the target network node; correspondingly, the one-hop neighbor node with the unique path is deleted from the one-hop neighbor node set, And from the set of two-hop neighbor nodes, delete the two-hop neighbor nodes covered by the one-hop neighbor nodes with unique paths;
  • the remaining one-hop neighbor nodes with the largest device weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the device is deleted from the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest equipment weight from the set of two-hop neighbor nodes.
  • the node information further includes moving speed, remaining power, link quality, and congestion status.
  • a device weight corresponding to the device form of the remaining one-hop neighbor node is used as the After the device weights of the remaining one-hop neighbor nodes are described, the MPR node determining unit 200 is further used to:
  • the moving speed weights, remaining power weights, link quality weights, and congestion status weights of the remaining one-hop neighbor nodes calculate the comprehensive weights of the remaining one-hop neighbor nodes, respectively;
  • the MPR node matched by the target network node is determined according to the integrated weight of each remaining one-hop neighbor node.
  • the determining the MPR node according to the comprehensive weight of each remaining one-hop neighbor node includes:
  • the remaining one-hop neighbor nodes with the largest integrated weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the synthesis is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest comprehensive weight from the set of two-hop neighbor nodes.
  • the MPR node determining unit 200 is further configured to:
  • the MPR node matched by the target network node is determined according to the number of remaining two-hop neighbor nodes of the coverage.
  • the determining the MPR node that the target network node matches according to the number of remaining two-hop neighbor nodes of the coverage includes:
  • the remaining two-hop neighbor node with the largest number of nodes is determined as the MPR node that matches the target network node; correspondingly, the number of nodes covering the remaining two-hop neighbor nodes is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest number, and from the set of two-hop neighbor nodes, delete the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes.
  • the routing device for a wireless ad hoc network obtains the device form of a neighbor node whose target network node is within a preset range, and determines the target network node according to the device form of a neighbor node within the preset range
  • the matched multi-point relay MPR node overcomes the shortcomings that simply selecting MPR nodes from the network node coverage cannot obtain a better MPR node set, can obtain a better MPR node set, and can be applied to different corresponding to different device forms Usage environment and application scenarios, through the MPR nodes matched by the target network node, the network topology information perceived by the target network node is flooded in the wireless ad hoc network for each network node in the wireless ad hoc network Determine the corresponding routing information, so as to effectively control the number of messages forwarded under the premise of ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.
  • FIG. 12 is another schematic structural diagram of a wireless ad hoc network routing device according to an embodiment of the present application.
  • the device in addition to the neighbor information obtaining unit 100, the MPR node determining unit 200, and the topology information flooding unit 300, the device further includes:
  • the topology information acquiring unit 400 is used to acquire network topology information of each network node in the wireless ad hoc network to obtain topology information of the entire network; the topology information of the entire network includes the device form of each network node.
  • the routing information determining unit 500 is configured to determine the routing information of the target network node according to the device form of each network node in the wireless ad hoc network.
  • the network-wide topology information further includes the movement speed, remaining power, link quality, and congestion status of each network node.
  • the routing information determination unit is specifically configured to:
  • the routing information of the target network node is determined according to the weight of each link in the wireless ad hoc network.
  • the routing device of the wireless ad hoc network calculates the link weight based on the reference factor of the device shape, and then determines the shortest path between the network nodes through the link weight, thereby improving the network of a mixed network of multiple devices efficacy. Furthermore, the link weight determination method based on the device form and the MPR determination method based on the device form provided by the present invention can improve the network efficiency and overall network performance of the wireless ad hoc network as a whole.
  • An embodiment of the present application further provides a storage medium in which computer program code is stored.
  • the computer program code is executed, the wireless ad hoc network routing method described in the foregoing embodiment is implemented.
  • An embodiment of the present application further provides a routing terminal of a wireless ad hoc network corresponding to the routing method of the wireless ad hoc network described in the foregoing embodiments, the routing terminal is applied to a target network node, and the target network node It is any network node in the wireless ad hoc network; the routing terminal includes: a processor and a memory;
  • the processor is configured to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes a device form; and determine the node according to the device form of the neighbor node within the preset range
  • a multipoint relay MPR node matched by the target network node the MPR node matched by the target network node floods the network topology information perceived by the target network node in the wireless ad hoc network for the wireless
  • Each network node in the ad hoc network determines the corresponding routing information
  • the memory is used to store node information of neighbor nodes of the target network node within a preset range, a multipoint relay MPR node matched by the target network node, and network topology information perceived by the target network node .
  • the routing terminal of the wireless ad hoc network obtains the device form of the neighbor node of the target network node within a preset range, and determines the target network node according to the device form of the neighbor node within the preset range
  • the matched multi-point relay MPR node overcomes the shortcomings that simply selecting MPR nodes from the network node coverage cannot obtain a better MPR node set, can obtain a better MPR node set, and can be applied to different corresponding to different device forms Usage environment and application scenarios, through the MPR nodes matched by the target network node, the network topology information perceived by the target network node is flooded in the wireless ad hoc network for each network node in the wireless ad hoc network Determine the corresponding routing information, so as to effectively control the number of messages forwarded under the premise of ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.

Landscapes

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

Abstract

The present invention provides a routing method and apparatus for a mobile ad hoc network, applied to a target network node in a mobile ad hoc network. First, node information of neighbor nodes of a target network node within a preset range is obtained, wherein said information comprises device forms; then, multipoint relay (MPR) nodes matching the target network node are determined according to the device forms of the neighbor nodes within the preset range; and finally, network topology information obtained by the target network node according to the node information of the neighbor nodes within the preset range is flooded in the mobile ad hoc network by means of the MPR nodes matching the target network node, for each network node in the mobile ad hoc network to determine corresponding routing information. According to the present invention, MPR nodes are determined based on device forms to flood topology information, thereby overcoming the disadvantage of being unable to obtain a better MPR node set by simply selecting MPR nodes from network node coverage, and improving the network efficiency and comprehensive network performance of the mobile ad hoc network on the whole.

Description

无线自组网的路由方法及装置Routing method and device of wireless ad hoc network 技术领域Technical field
本发明涉及网络技术领域,更具体的说,涉及无线自组网的路由方法及装置。The present invention relates to the field of network technology, and more specifically, to a routing method and device for wireless ad hoc networks.
背景技术Background technique
无线自组网(MANET,Mobile Ad Hoc Network)是由一组带有无线收发装置的可移动节点所组成的一个临时性多跳自治系统,它不需要依赖于预设的信息基础网络设施,就能够在任何时刻、任何地点快速构建起一个移动通信网络,具有可临时组网、快速展开、无控制中心、抗毁性强等特点。The wireless ad hoc network (MANET, Mobile Ad Hoc Network) is a temporary multi-hop autonomous system composed of a group of mobile nodes with wireless transceiver devices. It does not need to rely on the preset information infrastructure network. It can quickly build a mobile communication network at any time and any place. It has the characteristics of temporary networking, rapid deployment, no control center, and strong resistance to destruction.
在无线自组网的组网过程中,通常是根据信道占用率情况实时更新转发路由表中的转发节点,或者是根据物理链路质量的变化情况来设计路由,进而降低网络拥塞程度,提高网络性能。但是,由于无线自组网中通信设备的使用环境与使用场景的不同,即使是相同通信体制的通信设备也可能会衍生出不同的设备形态,现有的路由方案忽视了不同网络节点的设备形态的差异性,在多种类型的设备混合组网时,不能充分利用设备形态的特点发挥设备的优势,从而使无线自组网的网络效率较低,网络稳定性较差,影响无线自组网的组合网络性能。In the process of wireless ad hoc networking, the forwarding node in the forwarding routing table is usually updated in real time according to the channel occupancy, or the route is designed according to the change of the physical link quality, thereby reducing the network congestion and improving the network performance. However, due to differences in the use environment and usage scenarios of communication devices in the wireless ad hoc network, even communication devices with the same communication system may derive different device forms. The existing routing scheme ignores the device forms of different network nodes The difference is that when multiple types of devices are mixed, the characteristics of the device form cannot be fully utilized to take advantage of the device, so that the wireless ad hoc network has low network efficiency and poor network stability, which affects the wireless ad hoc network. Combined network performance.
所以,目前迫切需要一种能够有效提高无线自组网的综合网络性能的组网方案。Therefore, there is an urgent need for a networking solution that can effectively improve the overall network performance of wireless ad hoc networks.
发明内容Summary of the invention
有鉴于此,本发明提供了一种无线自组网的路由方法及装置,以解决现有组网方式导致无线自组网的综合网络性能较低的技术问题。In view of this, the present invention provides a routing method and device for a wireless ad hoc network to solve the technical problem that the overall network performance of the wireless ad hoc network is lower due to the existing networking method.
为实现上述目的,本发明提供如下技术方案:To achieve the above objectives, the present invention provides the following technical solutions:
一种无线自组网的路由方法,应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点;所述方法包括:A routing method for a wireless ad hoc network is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the method includes:
获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信 息包括设备形态;Obtain the node information of the neighbor node of the target network node within a preset range; the node information includes the device form;
根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;Determine the multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range;
通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息。The MPR nodes matched by the target network node are used to flood the network topology information sensed by the target network node in the wireless ad hoc network, and used for each network node in the wireless ad hoc network to determine corresponding routing information .
优选的,所述获取所述目标网络节点在预设范围内的邻居节点的节点信息包括:Preferably, the acquiring node information of neighbor nodes of the target network node within a preset range includes:
接收所述目标网络节点的一跳邻居节点发送的第一心跳报文;Receiving a first heartbeat message sent by a one-hop neighbor node of the target network node;
其中,所述第一心跳报文中携带有:所述一跳邻居节点的节点信息,和,所述一跳邻居节点在一跳范围内的邻居节点的节点信息;Wherein, the first heartbeat message carries: the node information of the one-hop neighbor node, and the node information of the neighbor node of the one-hop neighbor node within the range of one hop;
根据所述第一心跳报文,获取所述目标网络节点在两跳范围内的邻居节点的节点信息。According to the first heartbeat message, obtain the node information of the neighbor node of the target network node within two hops.
优选的,所述预设范围为两跳范围;所述目标网络节点在预设范围内的邻居节点包括:所述目标网络节点的一跳邻居节点与两跳邻居节点;所述根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点包括:Preferably, the preset range is a two-hop range; neighbor nodes of the target network node within the preset range include: a one-hop neighbor node and a two-hop neighbor node of the target network node; Setting the device form of the neighbor node within the range, and determining the multipoint relay MPR node that the target network node matches include:
根据所述目标网络节点的一跳邻居节点与两跳邻居节点,分别确定所述目标网络节点的一跳邻居节点集合与两跳邻居节点集合;According to the one-hop neighbor node and the two-hop neighbor node of the target network node, respectively determine the set of one-hop neighbor nodes and the set of two-hop neighbor nodes of the target network node;
获取所述一跳邻居节点集合中各个一跳邻居节点分别在所述两跳邻居节点集合中覆盖的两跳邻居节点的节点个数;Acquiring the number of nodes of two-hop neighbor nodes that are covered by each one-hop neighbor node in the one-hop neighbor node set in the two-hop neighbor node set;
根据所述各个一跳邻居节点分别在所述两跳邻居节点集合中覆盖的两跳邻居节点的节点个数,将所述一跳邻居节点集合中,与所述两跳邻居节点集合中任一个两跳邻居节点具有唯一通路的一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述具有唯一通路的一跳邻居节点,并从所述两跳邻居节点集合中,删除所述具有唯一通路的一跳邻居节点覆盖的两跳邻居节点;According to the number of nodes of the two-hop neighbor nodes covered by the respective one-hop neighbor nodes in the two-hop neighbor node set respectively, the one-hop neighbor node set and any one of the two-hop neighbor node set The one-hop neighbor node with the two-hop neighbor node having a unique path is determined as the MPR node matching the target network node; correspondingly, the one-hop neighbor node with the unique path is deleted from the one-hop neighbor node set, And from the set of two-hop neighbor nodes, delete the two-hop neighbor nodes covered by the one-hop neighbor nodes with unique paths;
当所述一跳邻居节点集合中,与所述两跳邻居节点集合中任一个两跳邻居节点具有唯一通路的一跳邻居节点的节点个数为零时,或者,当所述两跳邻居节点集合中剩余两跳邻居节点的节点个数不为零时,根据所述一跳邻居节点集 合中剩余一跳邻居节点的设备形态,获取与所述剩余一跳邻居节点的设备形态相对应的设备权值,作为所述剩余一跳邻居节点的设备权值;When the number of one-hop neighbor nodes that have a unique path with any one of the two-hop neighbor nodes in the set of one-hop neighbor nodes is zero, or when the two-hop neighbor nodes When the number of remaining two-hop neighbor nodes in the set is not zero, obtain a device corresponding to the device form of the remaining one-hop neighbor node according to the device form of the remaining one-hop neighbor node in the one-hop neighbor node set The weight value is used as the device weight value of the remaining one-hop neighbor node;
将所述一跳邻居节点集合中,设备权值最大的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述设备权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述设备权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。The remaining one-hop neighbor nodes with the largest device weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the device is deleted from the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest equipment weight from the set of two-hop neighbor nodes.
优选的,所述节点信息还包括移动速度、剩余电量、链路质量与拥塞状态;在所述获取与所述剩余一跳邻居节点的设备形态相对应的设备权值,作为所述剩余一跳邻居节点的设备权值之后,所述方法还包括:Preferably, the node information further includes moving speed, remaining power, link quality, and congestion status; in the acquiring, a device weight corresponding to the device form of the remaining one-hop neighbor node is used as the remaining one-hop After the device weights of neighbor nodes, the method further includes:
当所述一跳邻居节点集合中各个剩余一跳邻居节点的设备权值相同时,获取所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值;When the device weights of each remaining one-hop neighbor node in the set of one-hop neighbor nodes are the same, the moving speed weight, the remaining power weight, the link quality weight, and the congestion status of each remaining one-hop neighbor node are acquired Weight
根据所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值,分别计算所述各个剩余一跳邻居节点的综合权值;According to the moving speed weights, remaining power weights, link quality weights, and congestion status weights of the remaining one-hop neighbor nodes, calculate the comprehensive weights of the remaining one-hop neighbor nodes, respectively;
根据所述各个剩余一跳邻居节点的综合权值确定所述目标网络节点匹配的MPR节点。The MPR node matched by the target network node is determined according to the integrated weight of each remaining one-hop neighbor node.
优选的,所述根据所述各个剩余一跳邻居节点的综合权值确定MPR节点包括:Preferably, the determining the MPR node according to the comprehensive weight of each remaining one-hop neighbor node includes:
将所述一跳邻居节点集合中,综合权值最大的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述综合权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述综合权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。The remaining one-hop neighbor nodes with the largest integrated weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the synthesis is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest comprehensive weight from the set of two-hop neighbor nodes.
优选的,在所述分别计算所述各个剩余一跳邻居节点的综合权值之后,所述方法还包括:Preferably, after calculating the comprehensive weights of the remaining one-hop neighbor nodes respectively, the method further includes:
当所述一跳邻居节点集合中各个剩余一跳邻居节点的综合权值相同时,获取所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合中覆盖的剩余两跳邻居节点的节点个数;When the integrated weights of the remaining one-hop neighbor nodes in the set of one-hop neighbor nodes are the same, obtain the nodes of the remaining two-hop neighbor nodes that are respectively covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set Number
根据所述覆盖的剩余两跳邻居节点的节点个数确定所述目标网络节点匹配的MPR节点。The MPR node matched by the target network node is determined according to the number of remaining two-hop neighbor nodes of the coverage.
优选的,所述根据所述覆盖的剩余两跳邻居节点的节点个数确定所述目标 网络节点匹配的MPR节点包括:Preferably, the determining the MPR node that the target network node matches according to the number of remaining two-hop neighbor nodes of the coverage includes:
根据所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合中覆盖的剩余两跳邻居节点的节点个数,将所述一跳邻居节点集合中,覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点覆盖的剩余两跳邻居节点。According to the number of nodes of the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the set of two-hop neighbor nodes, cover the remaining two-hop neighbor nodes in the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest number of nodes is determined as the MPR node that matches the target network node; correspondingly, the number of nodes covering the remaining two-hop neighbor nodes is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest number, and from the set of two-hop neighbor nodes, delete the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes.
优选的,所述方法还包括:Preferably, the method further includes:
获取所述无线自组网中各网络节点泛洪的网络拓扑信息,得到全网拓扑信息;所述全网拓扑信息包括各网络节点的设备形态;Obtain the network topology information of each network node in the wireless ad hoc network, to obtain the topology information of the entire network; the topology information of the entire network includes the device form of each network node;
根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息。The routing information of the target network node is determined according to the device form of each network node in the wireless ad hoc network.
优选的,所述全网拓扑信息还包括各网络节点的移动速度、剩余电量、链路质量与拥塞状态;所述根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息包括:Preferably, the network-wide topology information further includes the movement speed, remaining power, link quality, and congestion status of each network node; the target network is determined according to the device form of each network node in the wireless ad hoc network The routing information of the node includes:
根据所述无线自组网中各网络节点的移动速度、剩余电量、链路质量、拥塞状态与设备形态中的至少一项,确定所述无线自组网中各链路的权重;Determine the weight of each link in the wireless ad hoc network according to at least one of the movement speed, remaining power, link quality, congestion status, and device shape of each network node in the wireless ad hoc network;
根据所述无线自组网中各链路的权重,确定所述目标网络节点的路由信息。The routing information of the target network node is determined according to the weight of each link in the wireless ad hoc network.
优选的,所述方法还包括:Preferably, the method further includes:
按照预置的设备编码规则,获取所述目标网络节点的设备编号;Obtain the device number of the target network node according to preset device coding rules;
根据预设的设备编号与设备形态之间的对应关系,获取与所述目标网络节点的设备编号相对应的设备形态,作为所述目标网络节点的设备形态;Acquiring the device form corresponding to the device number of the target network node according to the correspondence between the preset device number and the device form as the device form of the target network node;
根据所述目标网络节点的设备形态,执行相应的路由策略。According to the device configuration of the target network node, a corresponding routing strategy is implemented.
优选的,所述方法还包括:Preferably, the method further includes:
向所述目标网络节点的一跳邻居节点发送第二心跳报文;Sending a second heartbeat message to the one-hop neighbor node of the target network node;
其中,所述第二心跳报文中携带有:所述目标网络节点的节点信息,以及,所述目标网络节点在一跳范围内的邻居节点的节点信息。Wherein, the second heartbeat message carries: the node information of the target network node, and the node information of the neighbor node of the target network node within a hop range.
一种无线自组网的路由装置,应用于目标网络节点,所述目标网络节点为 无线自组网中的任一网络节点;所述装置包括:A routing device for a wireless ad hoc network is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the device includes:
邻居信息获取单元,用于获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信息包括设备形态;The neighbor information obtaining unit is used to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes the device form;
MPR节点确定单元,用于根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;An MPR node determining unit, configured to determine a multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range;
拓扑信息泛洪单元,用于通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息。The topology information flooding unit is used for flooding the network topology information perceived by the target network node in the wireless ad hoc network through the MPR nodes matched by the target network node, and used in the wireless ad hoc network Each network node determines the corresponding routing information.
优选的,所述装置还包括:Preferably, the device further includes:
拓扑信息获取单元,用于获取所述无线自组网中各网络节点泛洪的网络拓扑信息,得到全网拓扑信息;所述全网拓扑信息包括各网络节点的设备形态;A topology information acquiring unit, configured to acquire network topology information of each network node in the wireless ad hoc network to obtain topology information of the entire network; the topology information of the entire network includes the device form of each network node;
路由信息确定单元,用于根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息。The routing information determining unit is configured to determine the routing information of the target network node according to the device form of each network node in the wireless ad hoc network.
一种存储介质,所述存储介质中存储有计算机程序代码,所述计算机程序代码被运行时实现如前述所述的无线自组网的路由方法。A storage medium stores computer program code, and when the computer program code is executed, the wireless ad hoc network routing method described above is implemented.
一种无线自组网的路由终端,应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点;所述路由终端包括处理器和存储器;A routing terminal for a wireless ad hoc network is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the routing terminal includes a processor and a memory;
所述处理器,用于获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信息包括设备形态;根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息;The processor is configured to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes a device form; and determine the node according to the device form of the neighbor node within the preset range A multipoint relay MPR node matched by the target network node; the MPR node matched by the target network node floods the network topology information perceived by the target network node in the wireless ad hoc network for the wireless Each network node in the ad hoc network determines the corresponding routing information;
所述存储器,用于存储所述目标网络节点在预设范围内的邻居节点的节点信息,所述目标网络节点匹配的多点中继MPR节点,以及所述目标网络节点感知到的网络拓扑信息。The memory is used to store node information of neighbor nodes of the target network node within a preset range, a multipoint relay MPR node matched by the target network node, and network topology information perceived by the target network node .
从上述的技术方案可以看出,本发明提供的无线自组网的路由方法及装置,应用于无线自组网的目标网络节点,获取目标网络节点在预设范围内的邻居节点的设备形态,并根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点,克服了单纯从网络节点覆盖度选择MPR节点无法得到较优MPR节点集的弊端,进而得到更优的MPR节点集合, 并通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,以供无线自组网中各网络节点确定相应的路由信息,从而在保证消息覆盖率的前提下,有效地控制了消息的转发数量,提高了无线自组网的网络效率与综合网络性能。It can be seen from the above technical solutions that the wireless ad hoc network routing method and apparatus provided by the present invention are applied to the target network node of the wireless ad hoc network to obtain the device form of the neighbor node of the target network node within a preset range, And determine the multipoint relay MPR node that the target network node matches according to the device shape of the neighbor node within the preset range, which overcomes the disadvantage that the MPR node cannot be obtained by simply selecting the MPR node from the network node coverage To obtain a better set of MPR nodes, and through the MPR nodes matched by the target network node, flood the network topology information sensed by the target network node in the wireless ad hoc network for the wireless ad hoc network Each network node in the network determines the corresponding routing information, so as to effectively control the number of messages forwarded while ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only This is an embodiment of the present invention. For a person of ordinary skill in the art, without paying any creative labor, other drawings may be obtained according to the provided drawings.
图1为本申请实施例提供的无线自组网的路由方法的一种流程图;FIG. 1 is a flowchart of a routing method for a wireless ad hoc network provided by an embodiment of this application;
图2为本申请实施例提供的心跳报文交互过程的流程图;2 is a flowchart of a heartbeat message interaction process provided by an embodiment of this application;
图3为本申请实施例提供的心跳报文格式的示例图;3 is an example diagram of a heartbeat message format provided by an embodiment of this application;
图4为本申请实施例提供的设备形态提取过程的流程图;4 is a flowchart of a process for extracting device morphology provided by an embodiment of the present application;
图5为本申请实施例提供的设备编码规则的示例图;FIG. 5 is an example diagram of a device encoding rule provided by an embodiment of this application;
图6为本申请实施例提供的MPR节点确定过程的一种流程图;6 is a flowchart of an MPR node determination process provided by an embodiment of this application;
图7为本申请实施例提供的MPR节点确定过程的另一种流程图;7 is another flowchart of an MPR node determination process provided by an embodiment of this application;
图8为本申请实施例提供的MPR节点确定过程的又一种流程图;FIG. 8 is another flowchart of the MPR node determination process provided by the embodiment of the present application;
图9为本申请实施例提供的无线自组网的路由方法的另一种流程图;9 is another flowchart of a routing method for a wireless ad hoc network provided by an embodiment of this application;
图10为本申请实施例提供的网络拓扑信息的报文格式的示意图;10 is a schematic diagram of a packet format of network topology information provided by an embodiment of the present application;
图11为本申请实施例提供的无线自组网的路由装置的一种结构示意图;11 is a schematic structural diagram of a routing device for a wireless ad hoc network provided by an embodiment of this application;
图12为本申请实施例提供的无线自组网的路由装置的另一种结构示意图。FIG. 12 is another schematic structural diagram of a wireless ad hoc network routing device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.
本发明实施例提供的无线自组网的路由方法,应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点。The routing method of the wireless ad hoc network provided by the embodiment of the present invention is applied to a target network node, and the target network node is any network node in the wireless ad hoc network.
请参阅图1,图1为本申请实施例提供的无线自组网的路由方法的一种流程图。Please refer to FIG. 1. FIG. 1 is a flowchart of a routing method of a wireless ad hoc network according to an embodiment of the present application.
如图1所示,所述方法包括:As shown in FIG. 1, the method includes:
S101:获取目标网络节点在预设范围内的邻居节点的节点信息。S101: Acquire node information of a neighbor node of a target network node within a preset range.
目标网络节点为无线自组网中的任一网络节点,目标网络节点的邻居节点是指所述目标网络节点附近的网络节点。预设范围可以是指网络节点之间的预设跳数,则目标网络节点在预设范围内的邻居节点可以是目标网络节点预设跳数范围内的邻居节点,例如目标网络节点的一跳邻居节点、两跳邻居节点等。The target network node is any network node in the wireless ad hoc network, and the neighbor node of the target network node refers to a network node near the target network node. The preset range may refer to a preset number of hops between network nodes, then the neighbor node of the target network node within the preset range may be a neighbor node of the target network node within the preset hop number range, such as one hop of the target network node Neighbor nodes, two-hop neighbor nodes, etc.
网络节点通常具有相应的节点信息,例如,拥塞度、剩余电量、移动速度等。由于网络节点实际上是一种设备,所以网络节点的节点信息还可以包括设备形态。Network nodes usually have corresponding node information, such as congestion, remaining power, and moving speed. Since the network node is actually a device, the node information of the network node may also include the device form.
设备形态是指设备在特定条件下的表现形式,具体可以是指设备在不同使用环境或不同应用场景下的具体表现形式,例如,手持形态、背负形态、车载形态、机载形态、无人机载荷形态、舰载形态等。The form of the device refers to the form of the device under specific conditions, which can specifically refer to the specific form of the device in different use environments or different application scenarios, such as handheld form, carrying form, vehicle form, airborne form, drone Load form, ship form, etc.
在获取目标网络节点在预设范围内的邻居节点的节点信息时,本发明通过目标网络节点获取目标网络节点在预设范围内的邻居节点的设备形态,以便于根据各网络节点的设备形态来制定相应的消息转发策略。When acquiring the node information of the neighbor nodes of the target network node within the preset range, the present invention acquires the device form of the neighbor node of the target network node within the preset range through the target network node, so as to facilitate the Formulate corresponding message forwarding strategies.
S102:根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点。S102: Determine a multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range.
在链路状态路由协议中,通过选取多点中继(MPR,Multi Point Relay)节点机制能够有效地减少网络洪泛过程中消息的转发数量,以克服了表驱式路由协议中网络维护开销大的缺点,并可广泛应用于大而密集的网络环境中。由于只有被选作MPR节点的网络节点才转发消息,且MPR节点只产生与其相匹配的MPR节点之间的链路状态信息,所以MPR节点选取是否准确将直接影响网络的性能。In the link-state routing protocol, the multi-point relay (MPR, Multi Point Relay) node mechanism can effectively reduce the number of messages forwarded during the network flooding process to overcome the large network maintenance overhead in the table-driven routing protocol Shortcomings, and can be widely used in large and dense network environment. Since only the network node selected as the MPR node forwards the message, and the MPR node only generates the link state information between the matching MPR nodes, whether the MPR node is selected accurately will directly affect the performance of the network.
传统的选取MPR节点的贪心算法,是采用网络节点的覆盖度作为优先策略,所以求得的近优解往往带有一定的冗余,无法获取到较优的MPR节点集;并且,贪心算法只是针对本地网络节点来求最小MPR节点集,并没有针对整 个网络予以考虑,而在多种不同类型的设备进行综合组网时,单纯从网络节点覆盖度这一维度选择MPR节点,势必无法得到较优的MPR节点集。The traditional greedy algorithm for selecting MPR nodes uses the coverage of network nodes as a priority strategy, so the near optimal solution obtained often has a certain redundancy, and it is impossible to obtain a better MPR node set; and, the greedy algorithm is just The minimum MPR node set for the local network node is not considered for the entire network. When a variety of different types of equipment are integrated, simply selecting the MPR node from the dimension of network node coverage is bound to fail Excellent MPR node set.
本发明在确定目标网络节点匹配的MPR节点时,结合目标网络节点在预设范围内的邻居节点的设备形态这一参考因素,来确定目标网络节点匹配的多点中继MPR节点,能够适用于不同的使用环境与应用场景,克服了单纯从网络节点覆盖度选择MPR节点的弊端,从而得到更优的MPR节点集。When determining the MPR node matched by the target network node, the present invention determines the multipoint relay MPR node matched by the target network node in combination with the reference factor of the device form of the neighbor node of the target network node within the preset range, which can be applied Different usage environments and application scenarios overcome the disadvantage of simply selecting MPR nodes from the coverage of network nodes, thereby obtaining a better set of MPR nodes.
S103:通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息。S103: Flood the network topology information perceived by the target network node in the wireless ad hoc network through the MPR node matched by the target network node.
本发明通过更优的MPR节点集来泛洪目标网络节点感知到的网络拓扑信息,在保证消息覆盖率的前提下,有效地控制了消息的转发数量,提高了消息转发效率,降低了无线自组网的网络负荷,从而提高了无线自组网的网络性能。The invention floods the network topology information sensed by the target network node through a better MPR node set, and on the premise of ensuring message coverage, effectively controls the number of message forwarding, improves the message forwarding efficiency, and reduces the wireless The network load of the network increases the network performance of the wireless ad hoc network.
其中,目标网络节点感知到的网络拓扑信息,是指所述目标网络节点根据所述预设范围内的邻居节点的节点信息获得的网络拓扑信息。Wherein, the network topology information sensed by the target network node refers to the network topology information obtained by the target network node according to the node information of neighbor nodes within the preset range.
将所述目标网络节点根据所述预设范围内的邻居节点的节点信息获得的网络拓扑信息泛洪到无线自组网中,使得所述无线自组网中各网络节点可根据无线自组网中泛洪的网络拓扑信息确定相应的路由信息,即用于所述无线自组网中各网络节点确定相应的路由信息,从整体上提高了无线自组网的网络效率。Flooding the network topology information obtained by the target network node according to the node information of the neighbor nodes within the preset range into the wireless ad hoc network, so that each network node in the wireless ad hoc network can be based on the wireless ad hoc network The flooded network topology information determines the corresponding routing information, that is, it is used for each network node in the wireless ad hoc network to determine the corresponding routing information, which improves the network efficiency of the wireless ad hoc network as a whole.
本实施例提供的无线自组网的路由方法,获取目标网络节点在预设范围内的邻居节点的设备形态,并根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点,克服了单纯从网络节点覆盖度选择MPR节点无法得到较优MPR节点集的弊端,能够得到更优的MPR节点集合,能够适用于与不同设备形态相对应的不同的使用环境与应用场景,通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,以供无线自组网中各网络节点确定相应的路由信息,从而能够在保证消息覆盖率的前提下,有效地控制消息的转发数量,提高无线自组网的网络效率与综合网络性能。The routing method of the wireless ad hoc network provided in this embodiment obtains the device form of the neighbor node of the target network node within the preset range, and determines the target network node according to the device form of the neighbor node within the preset range The matched multi-point relay MPR node overcomes the shortcomings that simply selecting MPR nodes from the network node coverage cannot obtain a better MPR node set, can obtain a better MPR node set, and can be applied to different corresponding to different device forms Usage environment and application scenarios, through the MPR nodes matched by the target network node, the network topology information perceived by the target network node is flooded in the wireless ad hoc network for each network node in the wireless ad hoc network Determine the corresponding routing information, so as to effectively control the number of messages forwarded under the premise of ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.
在具体应用中,无线自组网中各网络节点之间的节点信息交互,是通过心跳报文的交互过程来实现的,各网络节点之间的心跳报文交互,可用于实现邻 居发现、邻居维护以及链路状态监测等各种功能。网络节点的心跳报文中可携带有该网络节点的节点信息,相应的,本申请实施例还提供了适用于本发明的心跳报文交互方案。In specific applications, the node information interaction between the network nodes in the wireless ad hoc network is achieved through the heartbeat message interaction process. The heartbeat message interaction between the network nodes can be used to implement neighbor discovery and neighbor Various functions such as maintenance and link status monitoring. The heartbeat message of the network node may carry the node information of the network node. Correspondingly, the embodiment of the present application also provides a heartbeat message interaction solution applicable to the present invention.
请参阅图2,图2为本申请实施例提供的心跳报文交互过程的流程图。Please refer to FIG. 2, which is a flowchart of a heartbeat message interaction process provided by an embodiment of the present application.
以应用于无线自组网中的目标网络节点为例,如图2所示,所述心跳报文交互过程包括:Taking the target network node applied in the wireless ad hoc network as an example, as shown in FIG. 2, the heartbeat message interaction process includes:
S201:接收所述目标网络节点的一跳邻居节点发送的第一心跳报文。S201: Receive a first heartbeat message sent by a one-hop neighbor node of the target network node.
其中,所述第一心跳报文中携带有:所述一跳邻居节点的节点信息,和,所述一跳邻居节点在一跳范围内的邻居节点的节点信息。Wherein, the first heartbeat message carries: the node information of the one-hop neighbor node, and the node information of the neighbor node of the one-hop neighbor node within the range of one hop.
S202:根据所述第一心跳报文,获取所述目标网络节点在两跳范围内的邻居节点的节点信息。S202: Obtain the node information of the neighbor node of the target network node within two hops according to the first heartbeat message.
S203:向所述目标网络节点的一跳邻居节点发送第二心跳报文。S203: Send a second heartbeat message to the one-hop neighbor node of the target network node.
其中,所述第二心跳报文中携带有:所述目标网络节点的节点信息,以及,所述目标网络节点在一跳范围内的邻居节点的节点信息。Wherein, the second heartbeat message carries: the node information of the target network node, and the node information of the neighbor node of the target network node within a hop range.
其中,第一心跳报文是指,目标网络节点的一跳邻居节点向目标网络节点发送的心跳报文;第二心跳报文是指,目标网络节点向其一跳邻居节点发送心跳报文。第一心跳报文与第二心跳报文采用相同的心跳报文格式,具体可参见图3。The first heartbeat message refers to the heartbeat message sent by the one-hop neighbor node of the target network node to the target network node; the second heartbeat message refers to the heartbeat message sent by the target network node to its one-hop neighbor node. The first heartbeat message and the second heartbeat message use the same heartbeat message format. See FIG. 3 for details.
图3所示的心跳报文格式中,邻居节点数量表征本网络节点的一跳邻居节点的数量;邻居节点IP地址表征邻居节点的IP地址;设备形态表征网络节点的设备形态;拥塞度表征网络节点的当前业务负载,可用数值0~16表示,数值越大表示当前网络拥塞程度越严重;电量表征网络节点的当前剩余电量;速度表征网络节点的当前移动速度;链路质量表征通过物理层测量后得到的当前链路的通信质量,可用前4bit表示正向链路质量,后4bit表示反向链路质量,其数值越大表示通信质量越好,通信速率也越高;发送周期是指心跳报文的发送间隔,以秒为单位;MPR标识用于表征本网络节点担任其他网络节点的MPR节点的意愿(简称MPR意愿)。In the heartbeat message format shown in Figure 3, the number of neighbor nodes represents the number of one-hop neighbor nodes of the network node; the IP address of the neighbor node represents the IP address of the neighbor node; the device morphology represents the device morphology of the network node; the congestion degree represents the network The current traffic load of a node can be expressed as a value from 0 to 16. The larger the value, the more serious the current network congestion; the power characterizes the current remaining power of the network node; the speed characterizes the current moving speed of the network node; the link quality characterization is measured by the physical layer The communication quality of the current link obtained afterwards can be used for the first 4 bits to indicate the forward link quality and the last 4 bits to indicate the reverse link quality. The larger the value, the better the communication quality and the higher the communication rate; the transmission cycle refers to the heartbeat The message sending interval is in seconds; the MPR identifier is used to characterize the willingness of the network node to act as an MPR node of other network nodes (referred to as MPR willingness).
一示例中,MPR意愿可采用下表1来表示。In an example, the MPR willingness can be expressed using Table 1 below.
表1MPR意愿表Table 1 MPR wish list
 A low in high
速度(V)Speed (V) 77 33 00
能量(P)Energy (P) 00 33 77
链路质量(L)Link quality (L) 00 33 77
拥塞状态(C)Congestion state (C) 77 33 00
其中,速度(V)、能量(P)、链路质量(L)与拥塞状态(C)为本网络节点的状态参数,低、中、高分别代表状态参数的级别。速度(V)是指网络节点的移动速度,能量(P)是指节点设备的剩余电量,链路质量(L)是指网络节点所在链路的数据传输质量,拥塞状态(C)是指网络节点的拥塞程度。Among them, speed (V), energy (P), link quality (L), and congestion status (C) are the status parameters of the network nodes, and low, medium, and high represent the status parameter levels. Speed (V) refers to the moving speed of the network node, energy (P) refers to the remaining power of the node device, link quality (L) refers to the data transmission quality of the link where the network node is located, and congestion status (C) refers to the network The degree of node congestion.
如表1所示,速度级别高低与意愿度值大小成反比,能量级别高低与意愿度值大小成正比,链路质量级别高低与意愿度值大小成正比,拥塞状态级别高低与意愿度值大小成反比,因此,选取MPR节点时,应选取速度级别低、能量级别高、链路质量高且拥塞状态级别低的网络节点。As shown in Table 1, the speed level is inversely proportional to the size of the willingness value, the energy level is proportional to the size of the willingness value, the link quality level is proportional to the size of the willingness value, and the level of the congestion state level is related to the willingness Inversely proportional, therefore, when selecting MPR nodes, network nodes with low speed level, high energy level, high link quality and low congestion status level should be selected.
表1中的MPR意愿度值仅仅为本实施例中的一种可选示例,在实际应用中,网络节点的MPR意愿度值,并不局限于表1所示的意愿度值。The MPR willingness value in Table 1 is only an optional example in this embodiment. In practical applications, the MPR willingness value of the network node is not limited to the willingness value shown in Table 1.
网络节点的设备形态可包括手持形态、背负形态、车载形态、机载形态、无人机载荷形态、舰载形态中至少一种,当然也可以根据具体需求增加其他更多的设备形态。针对每一种设备形态,均设定有相应的设备权值。The device form of the network node may include at least one of a handheld form, a piggyback form, a vehicle form, an airborne form, an unmanned aerial vehicle load form, and a shipborne form. Of course, other device forms may be added according to specific requirements. For each device form, the corresponding device weights are set.
一示例中,设备形态与设备权值的对应关系可如下表2所示:In an example, the correspondence between the device shape and the device weights can be shown in Table 2 below:
表2设备形态及相应权值Table 2 Equipment form and corresponding weight
设备形态(D)Equipment form (D) 设备权值Equipment weight
手持形态Handheld form 11
背负形态 Piggyback pattern 22
车载形态 Car form 55
机载形态 Airborne form 77
无人机载荷形态 UAV load pattern 33
舰载形态 Shipborne form 55
作为一种可选示例,MPR标识=(V+P+L+C+D)÷5;在其他示例中,MPR标识还可以采用其他计算方式确定。As an optional example, the MPR mark = (V + P + L + C + D) ÷ 5; in other examples, the MPR mark may also be determined by other calculation methods.
本实施例中,步骤S201-S202可用于实现前述实施例中所述获取所述目标网络节点在预设范围内的邻居节点的节点信息的步骤(S101)。并且,步骤 S201-S202与步骤S203是相互并行的,并不存在先后触发关系。In this embodiment, steps S201-S202 may be used to implement the step of obtaining the node information of the neighbor node of the target network node within a preset range (S101) described in the foregoing embodiment. In addition, steps S201-S202 and step S203 are parallel to each other, and there is no successive trigger relationship.
本实施提供的心跳报文交互过程,实现了无线自组网中各网络节点之间的节点信息交互,使目标网络节点不仅能够将自己的节点信息发送给其他邻居节点,还能够获取到其他邻居节点发送的节点信息,尤其是获取邻居节点的设备形态,从而基于设备形态来选取MPR节点,得到更优的MPR节点集,能够适用于不同设备形态对应的使用环境与应用场景。The heartbeat message interaction process provided in this implementation realizes the node information interaction between each network node in the wireless ad hoc network, so that the target network node can not only send its own node information to other neighbor nodes, but also obtain other neighbor nodes. The node information sent by the node, in particular, obtains the device form of the neighbor node, so as to select the MPR node based on the device form, and obtain a better MPR node set, which can be applied to the use environment and application scenarios corresponding to different device forms.
请参阅图4,图4为本申请实施例提供的设备形态提取过程的流程图。Please refer to FIG. 4, which is a flowchart of an apparatus shape extraction process provided by an embodiment of the present application.
仍以应用于无线自组网中的目标网络节点为例,如图4所示,所述设备形态提取过程包括:Still taking the target network node applied in the wireless ad hoc network as an example, as shown in FIG. 4, the device shape extraction process includes:
S301:按照预置的设备编码规则,获取所述目标网络节点的设备编号。S301: Acquire a device number of the target network node according to a preset device coding rule.
每个网络节点都是一台设备,每台设备均可具有全球唯一编号。作为目标网络节点的设备开机后,可按照预置的设备编码规则可以自动读取到该设备的设备编号。Each network node is a device, and each device can have a globally unique number. After the device as the target network node is turned on, the device number of the device can be automatically read according to the preset device coding rules.
一示例中,可采用图5所示的设备编码规则来对设备信息进行编码。如图5所示,设备信息包括厂家标识、设备类型与设备编号,并采用6个字节来对设备信息进行编码,其中,采用1个字节存储厂家标识,采用1个字节存储设备形态信息,采用4个字节存储设备编号。In an example, the device encoding rules shown in FIG. 5 may be used to encode device information. As shown in Figure 5, the device information includes the manufacturer's identification, device type and device number, and uses 6 bytes to encode the device information. Among them, 1 byte is used to store the manufacturer's identification, and 1 byte is used to store the device form Information, using 4 bytes to store the device number.
厂家标识用于用于区分不同设备的生产厂商,不同设备的生产厂商具有不同的厂家唯一标识;设备类型用于区分不同的设备形态和通信体制(具体定义见下表3);设备编号,即为设备序列号,具有相同设备形态的节点设备对应的设备编号必须不同,而不同设备形态的节点设备对应的设备编号可以相同。The manufacturer's logo is used to distinguish manufacturers of different devices. The manufacturers of different devices have different manufacturers' unique identifiers; the device type is used to distinguish different device forms and communication systems (see Table 3 below for specific definitions); the device number, ie For the device serial number, the device numbers corresponding to node devices with the same device form must be different, and the device numbers corresponding to node devices with different device forms can be the same.
表3设备类型定义Table 3 Device type definition
Figure PCTCN2018113931-appb-000001
Figure PCTCN2018113931-appb-000001
Figure PCTCN2018113931-appb-000002
Figure PCTCN2018113931-appb-000002
S302:获取与所述目标网络节点的设备编号相对应的设备形态。S302: Acquire a device form corresponding to the device number of the target network node.
设备编号与设备形态之间具有预设的对应关系,根据预设的设备编号与设备形态之间的对应关系,获取与所述目标网络节点的设备编号相对应的设备形态,作为所述目标网络节点的设备形态。There is a preset correspondence between the device number and the device form, and according to the correspondence between the preset device number and the device form, the device form corresponding to the device number of the target network node is acquired as the target network The device form of the node.
一示例中,设备形态与路由策略之间也具有对应关系,相应的,在获取到所述目标网络节点的设备形态后,还可以执行以下操作:In an example, there is also a correspondence between the device shape and the routing strategy. Correspondingly, after obtaining the device shape of the target network node, the following operations can also be performed:
S303:根据所述目标网络节点的设备形态,执行相应的路由策略。S303: Perform a corresponding routing strategy according to the device shape of the target network node.
其中,与设备形态相对应的路由策略,可以是指因设备形态不同而存在差异性的路由策略,例如,协议报文发送周期、节点失效时间等。Among them, the routing strategy corresponding to the form of the device may refer to a routing strategy that differs depending on the form of the device, for example, the period for sending protocol packets and the time for node failure.
本实施提供的设备形态提取过程,先按照预置的设备编码规则获取所述目标网络节点的设备编号,再根据预设的设备编号与设备形态之间的对应关系,获取与所述目标网络节点的设备编号相对应的设备形态,作为所述目标网络节点的设备形态,实现了目标网络节点的设备形态的提取。The device form extraction process provided in this embodiment first obtains the device number of the target network node according to a preset device coding rule, and then obtains the target network node according to the correspondence between the preset device number and the device form The device form corresponding to the device number of, as the device form of the target network node, realizes the extraction of the device form of the target network node.
请参阅图6,图6为本申请实施例提供的MPR节点确定过程的一种流程图。Please refer to FIG. 6, which is a flowchart of an MPR node determination process provided by an embodiment of the present application.
本实施例中以所述预设范围为两跳范围为例,则目标网络节点在预设范围内的邻居节点包括:所述目标网络节点的一跳邻居节点与两跳邻居节点。In this embodiment, taking the preset range as a two-hop range as an example, the neighbor nodes of the target network node within the preset range include: the one-hop neighbor node and the two-hop neighbor node of the target network node.
如图6所示,所述MPR节点确定过程包括:As shown in FIG. 6, the MPR node determination process includes:
S401:确定目标网络节点i的一跳邻居节点集合M1(i)与两跳邻居节点集合M2(i)。S401: Determine the one-hop neighbor node set M1 (i) and the two-hop neighbor node set M2 (i) of the target network node i.
目标网络节点i获取到的两跳范围内的邻居节点的节点信息,表明了目标网络节点i具有的一跳邻居节点与两跳邻居节点。根据目标网络节点i的一跳邻居节点与两跳邻居节点,可以分别确定目标网络节点i的一跳邻居节点集合M1(i)与两跳邻居节点集合M2(i)。The node information of the neighbor nodes within the two-hop range acquired by the target network node i indicates that the target network node i has one-hop neighbor nodes and two-hop neighbor nodes. According to the one-hop neighbor node and the two-hop neighbor node of the target network node i, the one-hop neighbor node set M1 (i) and the two-hop neighbor node set M2 (i) of the target network node i can be determined respectively.
S402:获取所述一跳邻居节点集合M1(i)中各个一跳邻居节点分别在所述两跳邻居节点集合M2(i)中覆盖的两跳邻居节点的节点个数。S402: Obtain the number of nodes of the two-hop neighbor nodes covered by the one-hop neighbor nodes in the one-hop neighbor node set M1 (i) in the two-hop neighbor node set M2 (i), respectively.
其中,任何一个一跳邻居节点覆盖的两跳邻居节点的节点个数,是指该一跳邻居节点可以直达的两跳邻居节点的节点个数。The number of two-hop neighbor nodes covered by any one-hop neighbor node refers to the number of two-hop neighbor nodes that the one-hop neighbor node can reach directly.
S403:判断M2(i)中两跳邻居节点是否存在与其具有唯一通络的一跳邻居 节点,若是,则执行步骤S404;若否,执行步骤S406。S403: Determine whether the two-hop neighbor node in M2 (i) has a one-hop neighbor node with which it has a unique communication, if yes, go to step S404; if not, go to step S406.
S404:将所述具有唯一通络的一跳邻居节点确定为所述目标网络节点i匹配的MPR节点,并从M1(i)中删除该一跳邻居节点,从M2(i)删除该一跳邻居节点覆盖的两跳邻居节点。S404: Determine the one-hop neighbor node with unique communication as the MPR node matching the target network node i, and delete the one-hop neighbor node from M1 (i), and delete the one-hop node from M2 (i) Two-hop neighbor nodes covered by neighbor nodes.
通过步骤S403-S404,根据所述一跳邻居节点集合M1(i)中各个一跳邻居节点分别在所述两跳邻居节点集合M2(i)中覆盖的两跳邻居节点的节点个数,将所述一跳邻居节点集合M1(i)中,与所述两跳邻居节点集合M2(i)中任一个两跳邻居节点具有唯一通路的一跳邻居节点,确定为所述目标网络节点i匹配的MPR节点;相应的,从所述一跳邻居节点集合M1(i)中,删除所述具有唯一通路的一跳邻居节点,并从所述两跳邻居节点集合M2(i)中,删除所述具有唯一通路的一跳邻居节点覆盖的两跳邻居节点。Through steps S403-S404, according to the number of nodes of the two-hop neighbor nodes covered by the one-hop neighbor nodes M1 (i) in the one-hop neighbor node set M2 (i) respectively, the In the one-hop neighbor node set M1 (i), a one-hop neighbor node having a unique path with any two-hop neighbor node in the two-hop neighbor node set M2 (i) is determined to match the target network node i MPR node; correspondingly, delete the one-hop neighbor node with the unique path from the one-hop neighbor node set M1 (i), and delete the two-hop neighbor node set M2 (i) A two-hop neighbor node covered by a one-hop neighbor node with a unique path is described.
一示例中,可以针对目标网络节点i预先定义一个相应的MPR(i)集合,用于存放所述目标网络节点i匹配的MPR节点。In an example, a corresponding MPR (i) set may be pre-defined for the target network node i, and used to store the MPR nodes that the target network node i matches.
S405:判断M2(i)中剩余两跳邻居节点的节点个数是否为零,若否,则执行步骤S406;若是,则MPR节点确定过程结束。S405: Determine whether the number of the remaining two-hop neighbor nodes in M2 (i) is zero. If not, perform step S406; if yes, the MPR node determination process ends.
M2(i)中剩余两跳邻居节点的节点个数为零,意味着目标网络节点的两跳邻居节点均已被确定的MPR节点所覆盖,即通过目前确定的MPR节点能够将目标网络节点的消息直接转发至目标网络节点的所有两跳邻居节点,则MPR节点确定过程结束。The number of remaining two-hop neighbor nodes in M2 (i) is zero, which means that the two-hop neighbor nodes of the target network node have been covered by the determined MPR node, that is, the currently determined MPR node can The message is directly forwarded to all two-hop neighbor nodes of the target network node, and the MPR node determination process ends.
S406:根据M1(i)中剩余一跳邻居节点的设备形态,获取所述剩余一跳邻居节点的设备权值。S406: Obtain the device weight of the remaining one-hop neighbor node according to the device form of the remaining one-hop neighbor node in M1 (i).
通过步骤S403、S405-406,当所述一跳邻居节点集合M1(i)中,与所述两跳邻居节点集合M2(i)中任一个两跳邻居节点具有唯一通路的一跳邻居节点的节点个数为零时,或者,当所述两跳邻居节点集合M2(i)中剩余两跳邻居节点的节点个数不为零时,根据所述一跳邻居节点集合M1(i)中剩余一跳邻居节点的设备形态,获取与所述剩余一跳邻居节点的设备形态相对应的设备权值,作为所述剩余一跳邻居节点的设备权值。Through steps S403 and S405-406, when the one-hop neighbor node set M1 (i) has a unique path with any one of the two-hop neighbor nodes in the two-hop neighbor node set M2 (i) When the number of nodes is zero, or when the number of remaining two-hop neighbor nodes in the two-hop neighbor node set M2 (i) is not zero, according to the remaining in the one-hop neighbor node set M1 (i) The device form of the one-hop neighbor node obtains the device weight corresponding to the device form of the remaining one-hop neighbor node as the device weight of the remaining one-hop neighbor node.
设备形态与设备权值之间存在预设的对应关系,根据所述目标网络节点i的设备形态,以及,预设的设备形态与设备权值之间的对应关系,能过获取到与所述目标网络节点i的设备形态相对应的设备权值。There is a preset correspondence between the device form and the device weight, and according to the device form of the target network node i, and the correspondence between the preset device form and the device weight, the The device weight corresponding to the device form of the target network node i.
S407:将设备权值最大的剩余一跳邻居节点确定为所述目标网络节点i匹配的MPR节点,并从M1(i)中删除该剩余一跳邻居节点,从M2(i)删除该剩余一跳邻居节点覆盖的剩余两跳邻居节点。S407: Determine the remaining one-hop neighbor node with the largest device weight as the MPR node matching the target network node i, and delete the remaining one-hop neighbor node from M1 (i) and delete the remaining one from M2 (i) The remaining two-hop neighbor nodes covered by the hop neighbor nodes.
通过步骤S407,将所述一跳邻居节点集合M1(i)中,设备权值最大的剩余一跳邻居节点,确定为所述目标网络节点i匹配的MPR节点;相应的,从所述一跳邻居节点集合M1(i)中,删除所述设备权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合M2(i)中,删除所述设备权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。In step S407, the remaining one-hop neighbor nodes with the largest device weights in the one-hop neighbor node set M1 (i) are determined as the MPR nodes matching the target network node i; correspondingly, from the one-hop In the neighbor node set M1 (i), delete the remaining one-hop neighbor node with the largest device weight, and delete the remaining one hop neighbor with the largest device weight from the two-hop neighbor node set M2 (i). The remaining two-hop neighbors covered by the node.
S408:再次判断M2(i)中剩余两跳邻居节点的节点个数是否为零,若否,则执行步骤S403;若是,则MPR节点确定过程结束。S408: Determine again whether the number of remaining two-hop neighbor nodes in M2 (i) is zero. If not, perform step S403; if so, the MPR node determination process ends.
本实施例提供的MPR节点确定过程可用于实现前述实施例中根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点i匹配的多点中继MPR节点的步骤(S102)。The MPR node determination process provided in this embodiment may be used to implement the step of determining the multipoint relay MPR node matching the target network node i according to the device form of the neighbor node within the preset range in the foregoing embodiment (S102) .
本实施例提供的MPR节点确定过程,先根据所述一跳邻居节点集合中一跳邻居节点与所述两跳邻居节点集合中两跳邻居节点之间的唯一通路确定MPR节点,并在所述一跳邻居节点集合中,与所述两跳邻居节点集合中任一个两跳邻居节点具有唯一通路的一跳邻居节点的节点个数为零时,或者,在所述两跳邻居节点集合中剩余两跳邻居节点的节点个数不为零时,结合一跳邻居节点的设备权值来从中选取目标网络节点匹配的MPR节点,从而结合设备形态的参考因素来决策MPR节点的选取,得到更优的MPR节点集,能够适用于与不同设备形态相对应的不同的使用环境与应用场景,克服了单纯从网络节点覆盖度选取MPR节点无法得到较优MPR节点集的弊端。The MPR node determination process provided in this embodiment first determines the MPR node according to the unique path between the one-hop neighbor node in the one-hop neighbor node set and the two-hop neighbor node in the two-hop neighbor node set. In the one-hop neighbor node set, when the number of one-hop neighbor nodes having a unique path with any one of the two-hop neighbor nodes in the two-hop neighbor node set is zero, or, remaining in the two-hop neighbor node set When the number of two-hop neighbor nodes is not zero, the MPR nodes that match the target network node are selected from the device weights of the one-hop neighbor nodes, so that the selection of MPR nodes is combined with the reference factors of the device shape to get better The MPR node set can be applied to different usage environments and application scenarios corresponding to different device forms, which overcomes the disadvantage that the MPR node cannot be obtained by simply selecting the MPR node from the network node coverage.
在具体应用中,目标网络节点的一跳邻居节点集合中剩余一跳邻居节点有可能是具有相同设备形态的设备,可能会使得剩余一跳邻居节点具有相同的设备权值,导致无法根据设备形态形态对应的设备权值来确定MPR节点。针对这一情况,本发明还提供了以下实施例。In a specific application, the remaining one-hop neighbor nodes in the set of one-hop neighbor nodes of the target network node may be devices with the same device shape, which may cause the remaining one-hop neighbor nodes to have the same device weight, resulting in failure to determine the device shape The MPR node is determined by the device weight corresponding to the shape. In response to this situation, the present invention also provides the following embodiments.
请参阅图7,图7为本申请实施例提供的MPR节点确定过程的另一种流程图。Please refer to FIG. 7, which is another flowchart of an MPR node determination process provided by an embodiment of the present application.
在本实施例中,当目标网络节点i的一跳邻居节点集合M1(i)中,各个剩 余一跳邻居节点的设备权值相同时,则如图7所示,所述MPR节点确定过程还可以包括:In this embodiment, when the device weights of the remaining one-hop neighbor nodes in the one-hop neighbor node set M1 (i) of the target network node i are the same, as shown in FIG. 7, the MPR node determination process also Can include:
S501:获取所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值。S501: Obtain the moving speed weight, remaining power weight, link quality weight, and congestion status weight of each remaining one-hop neighbor node.
网络节点的节点信息除了包括设备类型外,还包括移动速度、剩余电量、链路质量与拥塞状态。其中,移动速度、剩余电量、链路质量与拥塞状态分别与移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值之间具有预设的对应关系,所以,当所述一跳邻居节点集合M1(i)中各个剩余一跳邻居节点的设备权值相同时,可以根据所述各个剩余一跳邻居节点的移动速度、剩余电量、链路质量与拥塞状态,分别获取所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值。In addition to the device type, the node information of the network node also includes moving speed, remaining power, link quality, and congestion status. Among them, the moving speed, remaining power, link quality, and congestion status have preset correspondences with the moving speed weight, remaining power weight, link quality weight, and congestion status weight, respectively. When the device weights of the remaining one-hop neighbor nodes in the one-hop neighbor node set M1 (i) are the same, each of the remaining one-hop neighbor nodes can be obtained according to the moving speed, remaining power, link quality, and congestion status of the remaining one-hop neighbor nodes. The moving speed weights, remaining power weights, link quality weights, and congestion state weights of each remaining one-hop neighbor node are described.
S502:根据各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值,分别计算各个剩余一跳邻居节点的综合权值。S502: According to the moving speed weights, remaining power weights, link quality weights, and congestion state weights of the remaining one-hop neighbor nodes, calculate the comprehensive weights of the remaining one-hop neighbor nodes, respectively.
一示例中,所述剩余一跳邻居节点的综合权值等于所述剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值的加权平均值。In an example, the integrated weight of the remaining one-hop neighbor node is equal to the weighted average of the remaining one-hop neighbor node's moving speed weight, remaining power weight, link quality weight, and congestion state weight.
S503:根据所述各个剩余一跳邻居节点的综合权值确定目标网络节点i匹配的MPR节点。S503: Determine the MPR node that the target network node i matches according to the integrated weight of each remaining one-hop neighbor node.
具体地,将所述一跳邻居节点集合M1(i)中,综合权值最大的剩余一跳邻居节点,确定为所述目标网络节点i匹配的MPR节点;相应的,从所述一跳邻居节点集合M1(i)中,删除所述综合权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合M2(i)中,删除所述综合权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。Specifically, in the one-hop neighbor node set M1 (i), the remaining one-hop neighbor nodes with the largest integrated weights are determined as the MPR nodes matching the target network node i; correspondingly, from the one-hop neighbors In the node set M1 (i), delete the remaining one-hop neighbor node with the largest comprehensive weight, and delete the remaining one-hop neighbor node with the largest comprehensive weight from the two-hop neighbor node set M2 (i) The remaining two-hop neighbor nodes covered.
本实施例提供的MPR节点确定过程可作为前述实施例中步骤S407的补充方案,在目标网络节点i的一跳邻居节点集合M1(i)中各个剩余一跳邻居节点的设备权值相同的下执行。The MPR node determination process provided in this embodiment can be used as a supplementary solution to step S407 in the foregoing embodiment. In the one-hop neighbor node set M1 (i) of the target network node i, each remaining one-hop neighbor node has the same device weight carried out.
本实施例提供的MPR节点确定过程,针对前述实施例中剩余一跳邻居节点具有相同的设备权值,无法从中选取出设备权值最大的剩余一跳邻居节点来作为MPR节点的情况,根据所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值,分别计算所述各个剩余一跳邻居 节点的综合权值,并将所述一跳邻居节点集合中,综合权值最大的剩余一跳邻居节点,确定为所述目标网络节点i匹配的MPR节点,从而站在全网的角度,根据设备形态、移动速度、剩余电量、链路质量与拥塞状态等多层次多维度的感知来决策MPR节点的选取,进一步克服了单纯从网络节点覆盖度选择MPR节点无法得到较优MPR节点集的弊端。The MPR node determination process provided in this embodiment is directed to the case where the remaining one-hop neighbor nodes in the foregoing embodiments have the same device weight, and the remaining one-hop neighbor node with the largest device weight cannot be selected as the MPR node. The moving speed weight, the remaining power weight, the link quality weight and the congestion state weight of each remaining one-hop neighbor node are calculated, and the comprehensive weight of each remaining one-hop neighbor node is calculated respectively, and the one-hop In the set of neighbor nodes, the remaining one-hop neighbor node with the largest comprehensive weight is determined as the MPR node that matches the target network node i, so that from the perspective of the entire network, according to the shape of the device, moving speed, remaining power, and link quality The selection of MPR nodes with multi-level and multi-dimensional perceptions such as congestion status further overcomes the disadvantage that it is impossible to obtain a better MPR node set simply by selecting MPR nodes from the coverage of network nodes.
在具体应用中,当目标网络节点i的一跳邻居节点集合M1(i)中各个剩余一跳邻居节点的综合权值也相同时,则会导致无法从中选取出综合权值最大的剩余一跳邻居节点来作为MPR节点。针对这一情况,本发明还提供了以下实施例。In a specific application, when the comprehensive weights of the remaining one-hop neighbor nodes in the one-hop neighbor node set M1 (i) of the target network node i are also the same, it will result in the failure to select the remaining one-hop with the largest comprehensive weight Neighbor nodes are used as MPR nodes. In response to this situation, the present invention also provides the following embodiments.
请参阅图8,图8为本申请实施例提供的MPR节点确定过程的又一种流程图。Please refer to FIG. 8, which is another flowchart of the MPR node determination process provided by the embodiment of the present application.
本实施例中,当目标网络节点i的一跳邻居节点集合M1(i)中,各个剩余一跳邻居节点的综合权值相同时,则如图8所示,所述MPR节点确定过程还可以包括:In this embodiment, when the comprehensive weights of the remaining one-hop neighbor nodes in the one-hop neighbor node set M1 (i) of the target network node i are the same, as shown in FIG. 8, the MPR node determination process can also be include:
S601:获取所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合M2(i)中覆盖的剩余两跳邻居节点的节点个数。S601: Obtain the number of remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set M2 (i), respectively.
S602:根据所述覆盖的剩余两跳邻居节点的节点个数确定所述目标网络节点i匹配的MPR节点。S602: Determine the MPR node that the target network node i matches according to the number of remaining two-hop neighbor nodes covered by the node.
具体地,根据所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合M2(i)中覆盖的剩余两跳邻居节点的节点个数,将所述一跳邻居节点集合M1(i)中,覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,确定为所述目标网络节点i匹配的MPR节点;相应的,从所述一跳邻居节点集合M1(i)中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,并从所述两跳邻居节点集合M2(i)中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点覆盖的剩余两跳邻居节点。Specifically, according to the number of nodes of the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set M2 (i), the one-hop neighbor node set M1 (i) , The remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes is determined as the MPR node matching the target network node i; correspondingly, from the one-hop neighbor node set M1 (i) , Delete the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes, and delete the covering two remaining hop neighbors from the two-hop neighbor node set M2 (i) The remaining one-hop neighbor node covered by the remaining one-hop neighbor node with the largest number of nodes.
本实施例提供的MPR节点确定过程,针对前述实施例中一跳邻居节点集合中各个剩余一跳邻居节点的综合权值也相同,无法从中选取出设备权值最大的剩余一跳邻居节点来作为MPR节点的情况,根据所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合中覆盖的剩余两跳邻居节点的节点个数,确定 目标网络节点匹配的MPR节点,从而站在全网的角度,根据网络节点覆盖度、设备形态、移动速度、剩余电量、链路质量与拥塞状态等多层次多维度的感知来决策MPR节点的选取,进一步提高了MPR节点的选取质量,进而在保证消息覆盖率的前提下,有效地控制消息的转发数量,提高无线自组网的网络效率与综合网络性能。The MPR node determination process provided in this embodiment has the same comprehensive weight value for each remaining one-hop neighbor node in the one-hop neighbor node set in the foregoing embodiment, and the remaining one-hop neighbor node with the largest device weight value cannot be selected from it as the In the case of an MPR node, according to the number of nodes of the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set respectively, determine the MPR nodes that the target network node matches, and thus stand on the entire network From the perspective of network node coverage, device shape, moving speed, remaining power, link quality and congestion status, etc. to determine the selection of MPR nodes, the quality of MPR node selection is further improved, which in turn guarantees Under the premise of message coverage, it can effectively control the number of messages forwarded and improve the network efficiency and comprehensive network performance of the wireless ad hoc network.
请参阅图9,图9为本申请实施例提供的无线自组网的路由方法的另一种流程图。Please refer to FIG. 9, which is another flowchart of a routing method of a wireless ad hoc network provided by an embodiment of the present application.
如图9所示,所述方法包括:As shown in FIG. 9, the method includes:
S701:获取所述无线自组网中各网络节点泛洪的网络拓扑信息,得到全网拓扑信息。S701: Obtain network topology information of each network node in the wireless ad hoc network flooding to obtain network-wide topology information.
所述全网拓扑信息包括各网络节点的设备形态。The network-wide topology information includes the device form of each network node.
一示例中,无线自组网中各网络节点泛洪的网络拓扑信息的报文格式可如图10所示。报文序列号用于区分报文的新旧,网络节点每发送一次网络拓扑信息的报文时,报文中的报文序列号自动加1。网络拓扑信息的报文格式中其他字段的含义可参考前述实施例中的心跳报文格式,在此不再赘述。In an example, the packet format of the network topology information flooded by each network node in the wireless ad hoc network may be as shown in FIG. 10. The packet sequence number is used to distinguish the old and new packets. Each time a network node sends a packet with network topology information, the packet sequence number in the packet is automatically incremented by 1. For the meanings of other fields in the message format of the network topology information, refer to the heartbeat message format in the foregoing embodiment, which will not be repeated here.
本申请实施例提供的协议报文格式(心跳报文、网络拓扑信息)均为自定义格式,报文中仅包含必要的信息即可,从而能够减少协议报文在无线场景下的开销。如果网络节点需要与标准协议进行互通,可在对外接口中进行协议转换,以适配和兼容标准协议。The protocol message formats (heartbeat message and network topology information) provided in the embodiments of the present application are all self-defined formats, and the message only needs to contain necessary information, thereby reducing the overhead of the protocol message in a wireless scenario. If the network node needs to communicate with the standard protocol, it can perform protocol conversion in the external interface to adapt and be compatible with the standard protocol.
S702:根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息。S702: Determine routing information of the target network node according to the device form of each network node in the wireless ad hoc network.
一示例中,所述全网拓扑信息还包括各网络节点的移动速度、剩余电量、链路质量与拥塞状态;所述根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息包括:In an example, the network-wide topology information further includes the movement speed, remaining power, link quality, and congestion status of each network node; and the target is determined according to the device form of each network node in the wireless ad hoc network The routing information of network nodes includes:
a、根据所述无线自组网中各网络节点的移动速度、剩余电量、链路质量、拥塞状态与设备形态中的至少一项,确定所述无线自组网中各链路的权重;a. Determine the weight of each link in the wireless ad hoc network according to at least one of the movement speed, remaining power, link quality, congestion status, and device shape of each network node in the wireless ad hoc network;
例如,链路的权重:Weight=α×L+β×C+γ×P+δ×V+ε×D。For example, the weight of the link: Weight = α × L + β × C + γ × P + δ × V + ε × D.
其中,L为链路质量、C为拥塞状态、P为剩余电量、V为移动速度、D为设备形态;α为链路质量对应的权重因子,β为拥塞状态对应的权重因子,γ 为剩余电量对应的权重因子,ε为设备形态对应的权重因子。Among them, L is the link quality, C is the congestion state, P is the remaining power, V is the moving speed, and D is the device form; α is the weight factor corresponding to the link quality, β is the weight factor corresponding to the congestion state, and γ is the remaining The weighting factor corresponding to the amount of electricity, ε is the weighting factor corresponding to the form of the device.
b、根据所述无线自组网中各链路的权重,确定所述目标网络节点的路由信息。b. Determine the routing information of the target network node according to the weight of each link in the wireless ad hoc network.
本实施提供的无线自组网的路由方法,基于设备形态这一参考因素,来计算链路权重,进而通过链路权重来确定网络节点间的最短路径,从而提高多种设备混合组网的网络效能。并且,通过结合本实施例提供的基于设备形态的链路权重确定方式,以及,前述实施例提供的基于设备形态的MPR确定方法,能够从整体上提高无线自组网的网络效率与与综合网络性能。The routing method of the wireless ad hoc network provided by this embodiment calculates the link weight based on the reference factor of the device shape, and then determines the shortest path between the network nodes through the link weight, thereby improving the network of mixed networking of multiple devices efficacy. Moreover, by combining the link weight determination method based on the device form provided in this embodiment, and the MPR determination method based on the device form provided in the previous embodiment, the network efficiency and integrated network of the wireless ad hoc network can be improved as a whole performance.
本发明实施例还提供了无线自组网的路由装置,所述无线自组网的路由装置用于实现本发明实施例提供的无线自组网的路由方法,下文描述的无线自组网的路由装置内容,可与上文描述的无线自组网的路由方法内容相互对应参照。An embodiment of the present invention also provides a routing device for a wireless ad hoc network. The routing device for a wireless ad hoc network is used to implement the routing method for the wireless ad hoc network provided by the embodiment of the present invention. The routing of the wireless ad hoc network described below The content of the device can correspond to each other with the content of the routing method of the wireless ad hoc network described above.
本发明实施例提供的无线自组网的路由装置,应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点。The routing device of the wireless ad hoc network provided by the embodiment of the present invention is applied to a target network node, and the target network node is any network node in the wireless ad hoc network.
请参阅图11,图11为本申请实施例提供的无线自组网的路由装置的一种结构示意图。Please refer to FIG. 11, which is a schematic structural diagram of a wireless ad hoc network routing device according to an embodiment of the present application.
如图11所示,所述装置包括邻居信息获取单元100、MPR节点确定单元200与拓扑信息泛洪单元300。其中,As shown in FIG. 11, the device includes a neighbor information acquisition unit 100, an MPR node determination unit 200, and a topology information flooding unit 300. among them,
所述邻居信息获取单元100,用于获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信息包括设备形态。The neighbor information obtaining unit 100 is configured to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes a device form.
所述MPR节点确定单元200,用于根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;The MPR node determining unit 200 is configured to determine a multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range;
所述拓扑信息泛洪单元300,用于通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息。The topology information flooding unit 300 is used to flood the network topology information perceived by the target network node in the wireless ad hoc network through the MPR nodes matched by the target network node, and is used for the wireless self-organization. Each network node in the networking determines the corresponding routing information.
在一示例中,所述邻居信息获取单元100可具体用于:In an example, the neighbor information obtaining unit 100 may be specifically used for:
接收所述目标网络节点的一跳邻居节点发送的第一心跳报文;Receiving a first heartbeat message sent by a one-hop neighbor node of the target network node;
其中,所述第一心跳报文中携带有:所述一跳邻居节点的节点信息,和,所述一跳邻居节点在一跳范围内的邻居节点的节点信息;Wherein, the first heartbeat message carries: the node information of the one-hop neighbor node, and the node information of the neighbor node of the one-hop neighbor node within the range of one hop;
根据所述第一心跳报文,获取所述目标网络节点在两跳范围内的邻居节点的节点信息。According to the first heartbeat message, obtain the node information of the neighbor node of the target network node within two hops.
相应的,所述装置还可以包括:Correspondingly, the device may further include:
节点信息发送单元,用于向所述目标网络节点的一跳邻居节点发送第二心跳报文;A node information sending unit, configured to send a second heartbeat message to the one-hop neighbor node of the target network node;
其中,所述第二心跳报文中携带有:所述目标网络节点的节点信息,以及,所述目标网络节点在一跳范围内的邻居节点的节点信息。Wherein, the second heartbeat message carries: the node information of the target network node, and the node information of the neighbor node of the target network node within a hop range.
在一示例中,所述装置还可以包括:In an example, the device may further include:
设备形态提取单元,用于:Equipment morphology extraction unit for:
按照预置的设备编码规则,获取所述目标网络节点的设备编号;Obtain the device number of the target network node according to preset device coding rules;
根据预设的设备编号与设备形态之间的对应关系,获取与所述目标网络节点的设备编号相对应的设备形态,作为所述目标网络节点的设备形态;Acquiring the device form corresponding to the device number of the target network node according to the correspondence between the preset device number and the device form as the device form of the target network node;
其中,可以根据所述目标网络节点的设备形态,执行相应的路由策略。Wherein, the corresponding routing strategy can be implemented according to the device form of the target network node.
在一示例中,所述预设范围为两跳范围;所述目标网络节点在预设范围内的邻居节点包括:所述目标网络节点的一跳邻居节点与两跳邻居节点;所述MPR节点确定单元200具体用于:In an example, the preset range is a two-hop range; neighbor nodes of the target network node within the preset range include: a one-hop neighbor node and a two-hop neighbor node of the target network node; the MPR node The determining unit 200 is specifically used for:
根据所述目标网络节点的一跳邻居节点与两跳邻居节点,分别确定所述目标网络节点的一跳邻居节点集合与两跳邻居节点集合;According to the one-hop neighbor node and the two-hop neighbor node of the target network node, respectively determine the set of one-hop neighbor nodes and the set of two-hop neighbor nodes of the target network node;
获取所述一跳邻居节点集合中各个一跳邻居节点分别在所述两跳邻居节点集合中覆盖的两跳邻居节点的节点个数;Acquiring the number of nodes of two-hop neighbor nodes that are covered by each one-hop neighbor node in the one-hop neighbor node set in the two-hop neighbor node set;
根据所述各个一跳邻居节点分别在所述两跳邻居节点集合中覆盖的两跳邻居节点的节点个数,将所述一跳邻居节点集合中,与所述两跳邻居节点集合中任一个两跳邻居节点具有唯一通路的一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述具有唯一通路的一跳邻居节点,并从所述两跳邻居节点集合中,删除所述具有唯一通路的一跳邻居节点覆盖的两跳邻居节点;According to the number of nodes of the two-hop neighbor nodes covered by the respective one-hop neighbor nodes in the two-hop neighbor node set respectively, the one-hop neighbor node set and any one of the two-hop neighbor node set The one-hop neighbor node with the two-hop neighbor node having a unique path is determined as the MPR node matching the target network node; correspondingly, the one-hop neighbor node with the unique path is deleted from the one-hop neighbor node set, And from the set of two-hop neighbor nodes, delete the two-hop neighbor nodes covered by the one-hop neighbor nodes with unique paths;
当所述一跳邻居节点集合中,与所述两跳邻居节点集合中任一个两跳邻居节点具有唯一通路的一跳邻居节点的节点个数为零时,或者,当所述两跳邻居节点集合中剩余两跳邻居节点的节点个数不为零时,根据所述一跳邻居节点集合中剩余一跳邻居节点的设备形态,获取与所述剩余一跳邻居节点的设备形态 相对应的设备权值,作为所述剩余一跳邻居节点的设备权值;When the number of one-hop neighbor nodes that have a unique path with any one of the two-hop neighbor nodes in the set of one-hop neighbor nodes is zero, or when the two-hop neighbor nodes When the number of remaining two-hop neighbor nodes in the set is not zero, obtain a device corresponding to the device form of the remaining one-hop neighbor node according to the device form of the remaining one-hop neighbor node in the one-hop neighbor node set The weight value is used as the device weight value of the remaining one-hop neighbor node;
将所述一跳邻居节点集合中,设备权值最大的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述设备权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述设备权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。The remaining one-hop neighbor nodes with the largest device weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the device is deleted from the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest equipment weight from the set of two-hop neighbor nodes.
一示例中,所述节点信息还包括移动速度、剩余电量、链路质量与拥塞状态,相应的,在所述获取与所述剩余一跳邻居节点的设备形态相对应的设备权值,作为所述剩余一跳邻居节点的设备权值之后,所述MPR节点确定单元200具体还用于:In an example, the node information further includes moving speed, remaining power, link quality, and congestion status. Correspondingly, in the acquisition, a device weight corresponding to the device form of the remaining one-hop neighbor node is used as the After the device weights of the remaining one-hop neighbor nodes are described, the MPR node determining unit 200 is further used to:
当所述一跳邻居节点集合中各个剩余一跳邻居节点的设备权值相同时,获取所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值;When the device weights of each remaining one-hop neighbor node in the set of one-hop neighbor nodes are the same, the moving speed weight, the remaining power weight, the link quality weight, and the congestion status of each remaining one-hop neighbor node are acquired Weight
根据所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值,分别计算所述各个剩余一跳邻居节点的综合权值;According to the moving speed weights, remaining power weights, link quality weights, and congestion status weights of the remaining one-hop neighbor nodes, calculate the comprehensive weights of the remaining one-hop neighbor nodes, respectively;
根据所述各个剩余一跳邻居节点的综合权值确定所述目标网络节点匹配的MPR节点。The MPR node matched by the target network node is determined according to the integrated weight of each remaining one-hop neighbor node.
其中,所述根据所述各个剩余一跳邻居节点的综合权值确定MPR节点包括:Wherein, the determining the MPR node according to the comprehensive weight of each remaining one-hop neighbor node includes:
将所述一跳邻居节点集合中,综合权值最大的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述综合权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述综合权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。The remaining one-hop neighbor nodes with the largest integrated weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the synthesis is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest comprehensive weight from the set of two-hop neighbor nodes.
一示例中,在所述分别计算所述各个剩余一跳邻居节点的综合权值之后,所述MPR节点确定单元200具体还用于:In an example, after the comprehensive weights of the remaining one-hop neighbor nodes are calculated separately, the MPR node determining unit 200 is further configured to:
当所述一跳邻居节点集合中各个剩余一跳邻居节点的综合权值相同时,获取所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合中覆盖的剩余两跳邻居节点的节点个数;When the integrated weights of the remaining one-hop neighbor nodes in the set of one-hop neighbor nodes are the same, obtain the nodes of the remaining two-hop neighbor nodes that are respectively covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set Number
根据所述覆盖的剩余两跳邻居节点的节点个数确定所述目标网络节点匹配的MPR节点。The MPR node matched by the target network node is determined according to the number of remaining two-hop neighbor nodes of the coverage.
其中,所述根据所述覆盖的剩余两跳邻居节点的节点个数确定所述目标网络节点匹配的MPR节点包括:Wherein, the determining the MPR node that the target network node matches according to the number of remaining two-hop neighbor nodes of the coverage includes:
根据所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合中覆盖的剩余两跳邻居节点的节点个数,将所述一跳邻居节点集合中,覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点覆盖的剩余两跳邻居节点。According to the number of nodes of the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the set of two-hop neighbor nodes, cover the remaining two-hop neighbor nodes in the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest number of nodes is determined as the MPR node that matches the target network node; correspondingly, the number of nodes covering the remaining two-hop neighbor nodes is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest number, and from the set of two-hop neighbor nodes, delete the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes.
本实施例提供的无线自组网的路由装置,获取目标网络节点在预设范围内的邻居节点的设备形态,并根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点,克服了单纯从网络节点覆盖度选择MPR节点无法得到较优MPR节点集的弊端,能够得到更优的MPR节点集合,能够适用于与不同设备形态相对应的不同的使用环境与应用场景,通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,以供无线自组网中各网络节点确定相应的路由信息,从而能够在保证消息覆盖率的前提下,有效地控制消息的转发数量,提高无线自组网的网络效率与综合网络性能。The routing device for a wireless ad hoc network provided in this embodiment obtains the device form of a neighbor node whose target network node is within a preset range, and determines the target network node according to the device form of a neighbor node within the preset range The matched multi-point relay MPR node overcomes the shortcomings that simply selecting MPR nodes from the network node coverage cannot obtain a better MPR node set, can obtain a better MPR node set, and can be applied to different corresponding to different device forms Usage environment and application scenarios, through the MPR nodes matched by the target network node, the network topology information perceived by the target network node is flooded in the wireless ad hoc network for each network node in the wireless ad hoc network Determine the corresponding routing information, so as to effectively control the number of messages forwarded under the premise of ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.
请参阅图12,图12为本申请实施例提供的无线自组网的路由装置的另一种结构示意图。Please refer to FIG. 12, which is another schematic structural diagram of a wireless ad hoc network routing device according to an embodiment of the present application.
如图12所示,所述装置除了包括邻居信息获取单元100、MPR节点确定单元200与拓扑信息泛洪单元300之外,所述装置还包括:As shown in FIG. 12, in addition to the neighbor information obtaining unit 100, the MPR node determining unit 200, and the topology information flooding unit 300, the device further includes:
拓扑信息获取单元400,用于获取所述无线自组网中各网络节点泛洪的网络拓扑信息,得到全网拓扑信息;所述全网拓扑信息包括各网络节点的设备形态。The topology information acquiring unit 400 is used to acquire network topology information of each network node in the wireless ad hoc network to obtain topology information of the entire network; the topology information of the entire network includes the device form of each network node.
路由信息确定单元500,用于根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息。The routing information determining unit 500 is configured to determine the routing information of the target network node according to the device form of each network node in the wireless ad hoc network.
一示例中,所述全网拓扑信息还包括各网络节点的移动速度、剩余电量、链路质量与拥塞状态,所述路由信息确定单元具体用于:In an example, the network-wide topology information further includes the movement speed, remaining power, link quality, and congestion status of each network node. The routing information determination unit is specifically configured to:
根据所述无线自组网中各网络节点的移动速度、剩余电量、链路质量、拥塞状态与设备形态中的至少一项,确定所述无线自组网中各链路的权重;Determine the weight of each link in the wireless ad hoc network according to at least one of the movement speed, remaining power, link quality, congestion status, and device shape of each network node in the wireless ad hoc network;
根据所述无线自组网中各链路的权重,确定所述目标网络节点的路由信息。The routing information of the target network node is determined according to the weight of each link in the wireless ad hoc network.
本实施提供的无线自组网的路由装置,基于设备形态这一参考因素,来计算链路权重,进而通过链路权重来确定网络节点间的最短路径,从而提高多种设备混合组网的网络效能。并且,通过本发明提供的基于设备形态的链路权重确定方式,以及,基于设备形态的MPR确定方法,能够从整体上提高无线自组网的网络效率与与综合网络性能。The routing device of the wireless ad hoc network provided by this embodiment calculates the link weight based on the reference factor of the device shape, and then determines the shortest path between the network nodes through the link weight, thereby improving the network of a mixed network of multiple devices efficacy. Furthermore, the link weight determination method based on the device form and the MPR determination method based on the device form provided by the present invention can improve the network efficiency and overall network performance of the wireless ad hoc network as a whole.
本申请实施例还提供了一种存储介质,所述存储介质中存储有计算机程序代码,所述计算机程序代码被运行时实现如前述实施例中所述的无线自组网的路由方法。An embodiment of the present application further provides a storage medium in which computer program code is stored. When the computer program code is executed, the wireless ad hoc network routing method described in the foregoing embodiment is implemented.
本申请实施例还提供了一种与前述实施例中所述的无线自组网的路由方法相对应的无线自组网的路由终端,所述路由终端应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点;所述路由终端包括:处理器和存储器;An embodiment of the present application further provides a routing terminal of a wireless ad hoc network corresponding to the routing method of the wireless ad hoc network described in the foregoing embodiments, the routing terminal is applied to a target network node, and the target network node It is any network node in the wireless ad hoc network; the routing terminal includes: a processor and a memory;
所述处理器,用于获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信息包括设备形态;根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息;The processor is configured to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes a device form; and determine the node according to the device form of the neighbor node within the preset range A multipoint relay MPR node matched by the target network node; the MPR node matched by the target network node floods the network topology information perceived by the target network node in the wireless ad hoc network for the wireless Each network node in the ad hoc network determines the corresponding routing information;
所述存储器,用于存储所述目标网络节点在预设范围内的邻居节点的节点信息,所述目标网络节点匹配的多点中继MPR节点,以及所述目标网络节点感知到的网络拓扑信息。The memory is used to store node information of neighbor nodes of the target network node within a preset range, a multipoint relay MPR node matched by the target network node, and network topology information perceived by the target network node .
本实施例提供的无线自组网的路由终端,获取目标网络节点在预设范围内的邻居节点的设备形态,并根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点,克服了单纯从网络节点覆盖度选择MPR节点无法得到较优MPR节点集的弊端,能够得到更优的MPR节点集合,能够适用于与不同设备形态相对应的不同的使用环境与应用场景,通过 所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,以供无线自组网中各网络节点确定相应的路由信息,从而能够在保证消息覆盖率的前提下,有效地控制消息的转发数量,提高无线自组网的网络效率与综合网络性能。The routing terminal of the wireless ad hoc network provided in this embodiment obtains the device form of the neighbor node of the target network node within a preset range, and determines the target network node according to the device form of the neighbor node within the preset range The matched multi-point relay MPR node overcomes the shortcomings that simply selecting MPR nodes from the network node coverage cannot obtain a better MPR node set, can obtain a better MPR node set, and can be applied to different corresponding to different device forms Usage environment and application scenarios, through the MPR nodes matched by the target network node, the network topology information perceived by the target network node is flooded in the wireless ad hoc network for each network node in the wireless ad hoc network Determine the corresponding routing information, so as to effectively control the number of messages forwarded under the premise of ensuring message coverage, and improve the network efficiency and overall network performance of the wireless ad hoc network.
最后,还需要说明的是,在本文中,诸如第一和第一等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and first are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities Or there is any such actual relationship or order between operations. Moreover, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements, but also those not explicitly listed Or other elements that are inherent to this process, method, article, or equipment. Without more restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the process, method, article or equipment that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式来实现。基于这样的理解,本申请的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Based on this understanding, all or part of the technical solutions of the present application that contribute to the background technology can be embodied in the form of software products, and the computer software products can be stored in storage media, such as ROM / RAM, magnetic disks, optical disks, etc. , Including several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present application or some parts of the embodiments.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part can be referred to the description in the method part.
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本申请的限制。This article uses specific examples to explain the principles and implementation of this application. The descriptions of the above examples are only used to help understand the method and core ideas of this application; at the same time, for ordinary technicians in the field, based on this application There will be changes in the specific implementation and application scope of the idea. In summary, the content of this specification should not be understood as a limitation to this application.

Claims (15)

  1. 一种无线自组网的路由方法,其中,应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点;所述方法包括:A routing method for a wireless ad hoc network, wherein it is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the method includes:
    获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信息包括设备形态;Obtain the node information of the neighbor node of the target network node within a preset range; the node information includes the device form;
    根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;Determine the multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range;
    通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息。The MPR nodes matched by the target network node are used to flood the network topology information sensed by the target network node in the wireless ad hoc network, and used for each network node in the wireless ad hoc network to determine corresponding routing information .
  2. 如权利要求1所述的方法,其中,所述获取所述目标网络节点在预设范围内的邻居节点的节点信息包括:The method of claim 1, wherein the acquiring node information of neighbor nodes of the target network node within a preset range includes:
    接收所述目标网络节点的一跳邻居节点发送的第一心跳报文;Receiving a first heartbeat message sent by a one-hop neighbor node of the target network node;
    其中,所述第一心跳报文中携带有:所述一跳邻居节点的节点信息,和,所述一跳邻居节点在一跳范围内的邻居节点的节点信息;Wherein, the first heartbeat message carries: the node information of the one-hop neighbor node, and the node information of the neighbor node of the one-hop neighbor node within the range of one hop;
    根据所述第一心跳报文,获取所述目标网络节点在两跳范围内的邻居节点的节点信息。According to the first heartbeat message, obtain the node information of the neighbor node of the target network node within two hops.
  3. 如权利要求1所述的方法,其中,所述预设范围为两跳范围;所述目标网络节点在预设范围内的邻居节点包括:所述目标网络节点的一跳邻居节点与两跳邻居节点;所述根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点包括:The method of claim 1, wherein the preset range is a two-hop range; the neighbor nodes of the target network node within the preset range include: a one-hop neighbor node and a two-hop neighbor of the target network node A node; the determining the multipoint relay MPR node matched by the target network node according to the device form of the neighbor node within the preset range includes:
    根据所述目标网络节点的一跳邻居节点与两跳邻居节点,分别确定所述目标网络节点的一跳邻居节点集合与两跳邻居节点集合;According to the one-hop neighbor node and the two-hop neighbor node of the target network node, respectively determine the set of one-hop neighbor nodes and the set of two-hop neighbor nodes of the target network node;
    获取所述一跳邻居节点集合中各个一跳邻居节点分别在所述两跳邻居节点集合中覆盖的两跳邻居节点的节点个数;Acquiring the number of nodes of two-hop neighbor nodes that are covered by each one-hop neighbor node in the one-hop neighbor node set in the two-hop neighbor node set;
    根据所述各个一跳邻居节点分别在所述两跳邻居节点集合中覆盖的两跳邻居节点的节点个数,将所述一跳邻居节点集合中,与所述两跳邻居节点集合中任一个两跳邻居节点具有唯一通路的一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述具有唯一通路的一跳邻居节点,并从所述两跳邻居节点集合中,删除所述具有唯一通 路的一跳邻居节点覆盖的两跳邻居节点;According to the number of nodes of the two-hop neighbor nodes covered by the respective one-hop neighbor nodes in the two-hop neighbor node set respectively, the one-hop neighbor node set and any one of the two-hop neighbor node set The one-hop neighbor node with the two-hop neighbor node having a unique path is determined as the MPR node matching the target network node; correspondingly, the one-hop neighbor node with the unique path is deleted from the one-hop neighbor node set, And from the set of two-hop neighbor nodes, delete the two-hop neighbor nodes covered by the one-hop neighbor nodes with unique paths;
    当所述一跳邻居节点集合中,与所述两跳邻居节点集合中任一个两跳邻居节点具有唯一通路的一跳邻居节点的节点个数为零时,或者,当所述两跳邻居节点集合中剩余两跳邻居节点的节点个数不为零时,根据所述一跳邻居节点集合中剩余一跳邻居节点的设备形态,获取与所述剩余一跳邻居节点的设备形态相对应的设备权值,作为所述剩余一跳邻居节点的设备权值;When the number of one-hop neighbor nodes that have a unique path with any one of the two-hop neighbor nodes in the set of one-hop neighbor nodes is zero, or when the two-hop neighbor nodes When the number of remaining two-hop neighbor nodes in the set is not zero, obtain a device corresponding to the device form of the remaining one-hop neighbor node according to the device form of the remaining one-hop neighbor node in the one-hop neighbor node set The weight value is used as the device weight value of the remaining one-hop neighbor node;
    将所述一跳邻居节点集合中,设备权值最大的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述设备权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述设备权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。The remaining one-hop neighbor nodes with the largest device weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the device is deleted from the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest equipment weight from the set of two-hop neighbor nodes.
  4. 如权利要求3所述的方法,其中,所述节点信息还包括移动速度、剩余电量、链路质量与拥塞状态;在所述获取与所述剩余一跳邻居节点的设备形态相对应的设备权值,作为所述剩余一跳邻居节点的设备权值之后,所述方法还包括:The method according to claim 3, wherein the node information further includes moving speed, remaining power, link quality, and congestion status; in the acquiring, device rights corresponding to the device form of the remaining one-hop neighbor node Value, as the device weight of the remaining one-hop neighbor node, the method further includes:
    当所述一跳邻居节点集合中各个剩余一跳邻居节点的设备权值相同时,获取所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值;When the device weights of each remaining one-hop neighbor node in the set of one-hop neighbor nodes are the same, the moving speed weight, the remaining power weight, the link quality weight, and the congestion status of each remaining one-hop neighbor node are acquired Weight
    根据所述各个剩余一跳邻居节点的移动速度权值、剩余电量权值、链路质量权值与拥塞状态权值,分别计算所述各个剩余一跳邻居节点的综合权值;According to the moving speed weights, remaining power weights, link quality weights, and congestion status weights of the remaining one-hop neighbor nodes, calculate the comprehensive weights of the remaining one-hop neighbor nodes, respectively;
    根据所述各个剩余一跳邻居节点的综合权值确定所述目标网络节点匹配的MPR节点。The MPR node matched by the target network node is determined according to the integrated weight of each remaining one-hop neighbor node.
  5. 如权利要求4所述的方法,其中,所述根据所述各个剩余一跳邻居节点的综合权值确定MPR节点包括:The method of claim 4, wherein the determining the MPR node according to the integrated weights of the remaining one-hop neighbor nodes comprises:
    将所述一跳邻居节点集合中,综合权值最大的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述综合权值最大的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述综合权值最大的剩余一跳邻居节点覆盖的剩余两跳邻居节点。The remaining one-hop neighbor nodes with the largest integrated weights in the set of one-hop neighbor nodes are determined as the MPR nodes matching the target network node; correspondingly, the synthesis is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest weight, and deleting the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest comprehensive weight from the set of two-hop neighbor nodes.
  6. 如权利要求4所述的方法,其中,在所述分别计算所述各个剩余一跳邻居节点的综合权值之后,所述方法还包括:The method according to claim 4, wherein, after the separately calculating the integrated weights of the remaining one-hop neighbor nodes, the method further comprises:
    当所述一跳邻居节点集合中各个剩余一跳邻居节点的综合权值相同时,获 取所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合中覆盖的剩余两跳邻居节点的节点个数;When the integrated weights of the remaining one-hop neighbor nodes in the set of one-hop neighbor nodes are the same, obtain the nodes of the remaining two-hop neighbor nodes that are respectively covered by the remaining one-hop neighbor nodes in the two-hop neighbor node set Number
    根据所述覆盖的剩余两跳邻居节点的节点个数确定所述目标网络节点匹配的MPR节点。The MPR node matched by the target network node is determined according to the number of remaining two-hop neighbor nodes of the coverage.
  7. 如权利要求6所述的方法,其中,所述根据所述覆盖的剩余两跳邻居节点的节点个数确定所述目标网络节点匹配的MPR节点包括:The method of claim 6, wherein the determining the MPR node that the target network node matches based on the number of remaining two-hop neighbor nodes of the coverage includes:
    根据所述各个剩余一跳邻居节点分别在所述两跳邻居节点集合中覆盖的剩余两跳邻居节点的节点个数,将所述一跳邻居节点集合中,覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,确定为所述目标网络节点匹配的MPR节点;相应的,从所述一跳邻居节点集合中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点,并从所述两跳邻居节点集合中,删除所述覆盖所述剩余两跳邻居节点的节点个数最多的剩余一跳邻居节点覆盖的剩余两跳邻居节点。According to the number of nodes of the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor nodes in the set of two-hop neighbor nodes, cover the remaining two-hop neighbor nodes in the set of one-hop neighbor nodes The remaining one-hop neighbor node with the largest number of nodes is determined as the MPR node that matches the target network node; correspondingly, the number of nodes covering the remaining two-hop neighbor nodes is deleted from the one-hop neighbor node set The remaining one-hop neighbor node with the largest number, and from the set of two-hop neighbor nodes, delete the remaining two-hop neighbor nodes covered by the remaining one-hop neighbor node with the largest number of nodes covering the remaining two-hop neighbor nodes.
  8. 如权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    获取所述无线自组网中各网络节点泛洪的网络拓扑信息,得到全网拓扑信息;所述全网拓扑信息包括各网络节点的设备形态;Obtain the network topology information of each network node in the wireless ad hoc network, to obtain the topology information of the entire network; the topology information of the entire network includes the device form of each network node;
    根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息。The routing information of the target network node is determined according to the device form of each network node in the wireless ad hoc network.
  9. 如权利要求8所述的方法,其中,所述全网拓扑信息还包括各网络节点的移动速度、剩余电量、链路质量与拥塞状态;所述根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息包括:The method according to claim 8, wherein the network-wide topology information further includes the movement speed, remaining power, link quality, and congestion status of each network node; the network node according to the wireless ad hoc network Device form, determining the routing information of the target network node includes:
    根据所述无线自组网中各网络节点的移动速度、剩余电量、链路质量、拥塞状态与设备形态中的至少一项,确定所述无线自组网中各链路的权重;Determine the weight of each link in the wireless ad hoc network according to at least one of the movement speed, remaining power, link quality, congestion status, and device shape of each network node in the wireless ad hoc network;
    根据所述无线自组网中各链路的权重,确定所述目标网络节点的路由信息。The routing information of the target network node is determined according to the weight of each link in the wireless ad hoc network.
  10. 如权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    按照预置的设备编码规则,获取所述目标网络节点的设备编号;Obtain the device number of the target network node according to preset device coding rules;
    根据预设的设备编号与设备形态之间的对应关系,获取与所述目标网络节点的设备编号相对应的设备形态,作为所述目标网络节点的设备形态;Acquiring the device form corresponding to the device number of the target network node according to the correspondence between the preset device number and the device form as the device form of the target network node;
    根据所述目标网络节点的设备形态,执行相应的路由策略。According to the device configuration of the target network node, a corresponding routing strategy is implemented.
  11. 如权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, wherein the method further comprises:
    向所述目标网络节点的一跳邻居节点发送第二心跳报文;Sending a second heartbeat message to the one-hop neighbor node of the target network node;
    其中,所述第二心跳报文中携带有:所述目标网络节点的节点信息,以及,所述目标网络节点在一跳范围内的邻居节点的节点信息。Wherein, the second heartbeat message carries: the node information of the target network node, and the node information of the neighbor node of the target network node within a hop range.
  12. 一种无线自组网的路由装置,其中,应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点;所述装置包括:A routing device for a wireless ad hoc network, wherein it is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the device includes:
    邻居信息获取单元,用于获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信息包括设备形态;The neighbor information obtaining unit is used to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes the device form;
    MPR节点确定单元,用于根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;An MPR node determining unit, configured to determine a multipoint relay MPR node matching the target network node according to the device form of the neighbor node within the preset range;
    拓扑信息泛洪单元,用于通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息。The topology information flooding unit is used for flooding the network topology information perceived by the target network node in the wireless ad hoc network through the MPR nodes matched by the target network node, and used in the wireless ad hoc network Each network node determines the corresponding routing information.
  13. 如权利要求12所述的装置,其中,所述装置还包括:The device of claim 12, wherein the device further comprises:
    拓扑信息获取单元,用于获取所述无线自组网中各网络节点泛洪的网络拓扑信息,得到全网拓扑信息;所述全网拓扑信息包括各网络节点的设备形态;A topology information acquiring unit, configured to acquire network topology information of each network node in the wireless ad hoc network to obtain topology information of the entire network; the topology information of the entire network includes the device form of each network node;
    路由信息确定单元,用于根据所述无线自组网中各网络节点的设备形态,确定所述目标网络节点的路由信息。The routing information determining unit is configured to determine the routing information of the target network node according to the device form of each network node in the wireless ad hoc network.
  14. 一种存储介质,其中,所述存储介质中存储有计算机程序代码,所述计算机程序代码被运行时实现如权利要求1~11中任一项所述的无线自组网的路由方法。A storage medium, wherein the storage medium stores computer program code, and when the computer program code is executed, the wireless ad hoc network routing method according to any one of claims 1 to 11 is implemented.
  15. 一种无线自组网的路由终端,其中,应用于目标网络节点,所述目标网络节点为无线自组网中的任一网络节点;所述路由终端包括处理器和存储器;A routing terminal for a wireless ad hoc network, wherein it is applied to a target network node, and the target network node is any network node in the wireless ad hoc network; the routing terminal includes a processor and a memory;
    所述处理器,用于获取所述目标网络节点在预设范围内的邻居节点的节点信息;所述节点信息包括设备形态;根据所述预设范围内的邻居节点的设备形态,确定所述目标网络节点匹配的多点中继MPR节点;通过所述目标网络节点匹配的MPR节点,在所述无线自组网中泛洪所述目标网络节点感知到的网络拓扑信息,用于所述无线自组网中各网络节点确定相应的路由信息;The processor is configured to obtain the node information of the neighbor node of the target network node within a preset range; the node information includes a device form; and determine the node according to the device form of the neighbor node within the preset range A multipoint relay MPR node matched by the target network node; the MPR node matched by the target network node floods the network topology information perceived by the target network node in the wireless ad hoc network for the wireless Each network node in the ad hoc network determines the corresponding routing information;
    所述存储器,用于存储所述目标网络节点在预设范围内的邻居节点的节点 信息,所述目标网络节点匹配的多点中继MPR节点,以及所述目标网络节点感知到的网络拓扑信息。The memory is used to store node information of neighbor nodes of the target network node within a preset range, a multipoint relay MPR node matched by the target network node, and network topology information perceived by the target network node .
PCT/CN2018/113931 2018-11-05 2018-11-05 Routing method and apparatus for mobile ad hoc network WO2020093190A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/113931 WO2020093190A1 (en) 2018-11-05 2018-11-05 Routing method and apparatus for mobile ad hoc network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/113931 WO2020093190A1 (en) 2018-11-05 2018-11-05 Routing method and apparatus for mobile ad hoc network

Publications (1)

Publication Number Publication Date
WO2020093190A1 true WO2020093190A1 (en) 2020-05-14

Family

ID=70612317

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/113931 WO2020093190A1 (en) 2018-11-05 2018-11-05 Routing method and apparatus for mobile ad hoc network

Country Status (1)

Country Link
WO (1) WO2020093190A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802228A (en) * 2012-08-23 2012-11-28 西北工业大学 AdHoc network multipath routing method oriented to link stability
CN103986648A (en) * 2014-05-06 2014-08-13 安徽理工大学 Internet-of-Things route repairing method based on link stability and energy sensing
CN106658635A (en) * 2016-11-03 2017-05-10 东莞理工学院 Hierarchical routing method based on service quality in wireless multi-hop network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802228A (en) * 2012-08-23 2012-11-28 西北工业大学 AdHoc network multipath routing method oriented to link stability
CN103986648A (en) * 2014-05-06 2014-08-13 安徽理工大学 Internet-of-Things route repairing method based on link stability and energy sensing
CN106658635A (en) * 2016-11-03 2017-05-10 东莞理工学院 Hierarchical routing method based on service quality in wireless multi-hop network

Similar Documents

Publication Publication Date Title
CN1926820B (en) Method, communication device and system for checking neighbor node using NDP in wireless multi-hop network
US6744740B2 (en) Network protocol for wireless devices utilizing location information
Shruthi Proactive routing protocols for a MANET—A review
CN109547351B (en) Routing method based on Q learning and trust model in Ad Hoc network
CN111148176B (en) Routing method and device for wireless ad hoc network
CN108366093B (en) Distributed wireless ad hoc network based on virtual center and mobile agent
Darehshoorzadeh et al. Distance progress based opportunistic routing for wireless mesh networks
Huang et al. Coordinate-assisted routing approach to bypass routing holes in wireless sensor networks
Mu An improved AODV routing for the zigbee heterogeneous networks in 5G environment
Li et al. Ad hoc network routing protocol based on location and neighbor sensing
Zhang et al. Smart routing with learning-based qos-aware meta-strategies
CN110121185B (en) Power distribution communication network route optimization method
Fendji et al. Energy and performance evaluation of reactive, proactive, and hybrid routing protocols in wireless mesh network
Fonseca et al. Beacon vector routing: Scalable point-to-point in wireless sensornets
Barz et al. Extending OLSRv2 for tactical applications
WO2020093190A1 (en) Routing method and apparatus for mobile ad hoc network
Margaryan et al. Development of an Adaptive Routing Algorithm in MANET
Abolhasan et al. LPAR: an adaptive routing strategy for MANETs
Tan et al. A distributed and dynamic data gathering protocol for sensor networks
Nassereddine et al. The scalability of the hybrid protocol in wireless mesh network 802.11 s
Maruoka et al. A method for establishing routes and IPv6 addressing based on the estimated distance from neighboring nodes in wireless mesh networks
Ramrekha et al. Standardisation advancements in the area of routing for mobile ad-hoc networks
Hamatta et al. Protocols in mobile ad-hoc networks: a review
Uddin et al. Efficient route selection in ad hoc on-demand distance vector routing
Xiaonan et al. Design and implementation of anycast services in ad hoc networks connected to IPv6 networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18939537

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18939537

Country of ref document: EP

Kind code of ref document: A1