A method, apparatus, device, and medium for reconstructing routing paths in a clustered ad hoc network.
By performing Kalman filtering and prediction on the received signal strength and frame error rate, and combining with the greedy algorithm to reconstruct the routing path, the problem that the cluster ad hoc network routing protocol cannot quickly reconstruct the routing path in the critical state is solved, and the communication effect and speed are improved. stability.
Patent Information
- Application Number
- CN202411189244.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-28
AI Technical Summary
Clustered ad hoc network routing protocols cannot quickly rebuild routing paths in critical states, making it difficult to converge stably when links deteriorate, resulting in a high probability of communication interruption and unstable communication rates.
By collecting the received signal strength and frame error rate, Kalman filtering and prediction are performed to generate link quality prediction values. The routing path type is determined based on a greedy algorithm and reconstructed to ensure that when the link quality deteriorates, it can be switched to a stable path in advance.
It improves the accuracy of link quality prediction, reduces the probability of communication interruption, improves communication speed and stability, and solves the lag and volatility in the route reconstruction process.
Smart Images

Figure CN118714622B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless communication networks, and in particular to a method, device, equipment and medium for reconstructing a routing path of a cluster ad hoc network. Background Art
[0002] In the existing unmanned cluster ad hoc network routing protocol, the protocol generally performs route discovery and maintenance by periodically or proactively sending routing messages, and then selects the best routing link for route forwarding and transmission through certain routing decisions, and finally deletes the invalid route and re-establishes the route through the timeout mechanism. In practical applications, due to the high mobility of cluster ad hoc network application environment and the drastic changes in wireless communication environment, the link quality evaluation has the problems of large volatility, high latency and deviation from the actual results, which makes it difficult to find or lock the stable routing path for transmission in the critical state. Specifically, the routing protocol cannot support fast routing reconstruction when the link is about to deteriorate and it is difficult to converge stably when the link has deteriorated. Therefore, the link quality prediction and routing reconstruction under high dynamic wireless links face the following two problems: First, in an environment with a large number of bursty links, it is impossible to effectively perceive the continuous changes of the link in a short period of time, resulting in the inability to quickly lock the stable routing path for transmission in the critical state; second, in the process of route reconstruction, since the destination node is in the critical state of communication coverage of the source node, the route selection link quality cannot stably indicate the actual link state in the current critical state, resulting in high probability of communication interruption and unstable communication rate.
[0003] From the above, it can be seen that how to solve the problem that the cluster self-organizing network routing protocol cannot support fast routing reconstruction when the link is about to deteriorate and is difficult to converge stably when the link has deteriorated in a critical state, and improve the communication effect and rate are problems to be solved in this field. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for cluster self-organizing network routing path reconstruction, which can solve the problem that the routing protocol of the cluster self-organizing network cannot support fast routing reconstruction when the link is about to deteriorate and is difficult to converge stably when the link has deteriorated in a critical state, thereby improving the communication effect and rate. The specific scheme is as follows:
[0005] In a first aspect, the present application discloses a method for reconstructing a routing path of a cluster ad hoc network, comprising:
[0006] Collecting the received signal strength and data frames of neighboring nodes adjacent to the source node at the current moment, and performing frame error rate calculation and Kalman filtering on the received signal strength and the data frame, respectively, to obtain the frame error rate at the current moment and the filtered received signal strength at the current moment;
[0007] Update the filtered received signal strength and the frame error rate at the current moment to obtain the received signal strength and the frame error rate at the next moment, and generate new routing path information between the source node and the destination node at the next moment;
[0008] Determine the original routing path information between the source node and the destination node, judge whether the frame error rate at the next moment is less than a preset frame error rate threshold, if the frame error rate at the next moment is not less than the preset frame error rate threshold, compare the magnitude relationship between the filtered received signal strength at the current moment and the received signal strength at the next moment and the preset threshold, and determine the type of the target routing path between the source node and the destination node based on the magnitude relationship;
[0009] If the type is to remain unchanged, the original routing path information is used as the target routing path between the source node and the destination node; if the type is routing path reconstruction, the new routing path information is used as the target routing path, and the routing path reconstruction between the source node and the destination node is implemented based on the target routing path.
[0010] Optionally, after obtaining the frame error rate at the current moment and the filtered received signal strength at the current moment, the method further includes:
[0011] Determine a broadcast cycle, and broadcast the frame error rate at the current moment and the filtered received signal strength at the current moment to other nodes except the source node in the form of a routing message according to the broadcast cycle;
[0012] A routing path link quality prediction value at the current moment is generated based on the filtered received signal strength at the current moment and the frame error rate at the current moment.
[0013] Optionally, updating the filtered received signal strength at a current moment and the frame error rate at a current moment to obtain the received signal strength at a next moment and the frame error rate at a next moment includes:
[0014] The filtered received signal strength at the current moment and the frame error rate at the current moment in the routing path link quality prediction value at the current moment are respectively updated to obtain the received signal strength at the next moment and the frame error rate at the next moment;
[0015] The routing path link quality prediction value at the next moment is generated based on the received signal strength at the next moment and the frame error rate at the next moment.
[0016] Optionally, the determining whether the frame error rate at the next moment is less than a preset frame error rate threshold, if the frame error rate at the next moment is not less than the preset frame error rate threshold, comparing the size relationship between the filtered received signal strength at the current moment and the received signal strength at the next moment and the preset threshold, and determining the type of the target routing path between the source node and the destination node based on the size relationship, includes:
[0017] If the frame error rate at the next moment is less than a preset frame error rate threshold, determining that the type of the target routing path between the source node and the destination node remains unchanged;
[0018] If the frame error rate at the next moment is not less than the preset frame error rate threshold, then determine whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the first threshold; the preset threshold includes the first threshold and the second threshold; the first threshold is a threshold for measuring whether the link is transmitting normally.
[0019] Optionally, after determining whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than a first threshold, the method further includes:
[0020] If the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the first threshold, then determine whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the second threshold; the second threshold is a threshold for measuring whether a link has packet loss;
[0021] If the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the second threshold, determining that the type of the target routing path between the source node and the destination node remains unchanged;
[0022] If the received signal strength after filtering at the current moment and the received signal strength at the next moment are not both less than the second threshold, determining whether only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the second threshold;
[0023] If only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the second threshold, determining the type of the target routing path between the source node and the destination node as remaining unchanged or reconstructing the routing path;
[0024] If at least one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the second threshold, it is determined that the type of the target routing path between the source node and the destination node is routing path reconstruction.
[0025] Optionally, after determining whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than a first threshold, the method further includes:
[0026] If the filtered received signal strength at the current moment and the received signal strength at the next moment are not both less than the first threshold, determining whether only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold;
[0027] If only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold, determining the type of the target routing path between the source node and the destination node as remaining unchanged or reconstructing the routing path;
[0028] If at least one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold, it is determined that the type of the target routing path between the source node and the destination node is routing path reconstruction.
[0029] Optionally, the reconstructing the routing path between the source node and the destination node based on the target routing path includes:
[0030] A greedy algorithm is adopted to achieve the reconstruction of the routing path between the source node and the destination node based on the target routing path.
[0031] In a second aspect, the present application discloses a routing path reconstruction device for a cluster ad hoc network, comprising:
[0032] A calculation and filtering module, used to collect the received signal strength and data frames of the neighboring nodes adjacent to the source node at the current moment, and perform frame error rate calculation and Kalman filtering on the received signal strength and the data frames respectively, so as to obtain the frame error rate at the current moment and the filtered received signal strength at the current moment;
[0033] An updating module, used for updating the filtered received signal strength and the frame error rate at the current moment to obtain the received signal strength and the frame error rate at the next moment, and generating new routing path information between the source node and the destination node at the next moment;
[0034] a path type determination module, used to determine the original routing path information between the source node and the destination node, judge whether the frame error rate at the next moment is less than a preset frame error rate threshold, and if the frame error rate at the next moment is not less than the preset frame error rate threshold, compare the magnitude relationship between the filtered received signal strength at the current moment and the received signal strength at the next moment and the preset threshold, and determine the type of the target routing path between the source node and the destination node based on the magnitude relationship;
[0035] A routing reconstruction module is used to use the original routing path information as the target routing path between the source node and the destination node if the type is unchanged, and use the new routing path information as the target routing path if the type is routing path reconstruction, and realize the routing path reconstruction between the source node and the destination node based on the target routing path.
[0036] In a third aspect, the present application discloses an electronic device, comprising:
[0037] Memory, used to store computer programs;
[0038] The processor is used to execute the computer program to implement the aforementioned routing path reconstruction method for cluster ad hoc network.
[0039] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the routing path reconstruction method of the cluster self-organizing network disclosed above are implemented.
[0040] It can be seen that the present application provides a method for reconstructing a routing path of a cluster self-organizing network, including collecting the current moment received signal strength and data frames of neighboring nodes adjacent to a source node, and performing frame error rate calculation and Kalman filtering on the received signal strength and the data frames respectively, so as to obtain the frame error rate at the current moment and the received signal strength after filtering at the current moment; updating the filtered received signal strength at the current moment and the frame error rate at the current moment, so as to obtain the received signal strength at the next moment and the frame error rate at the next moment, and generating new routing path information at the next moment between the source node and the destination node; determining the original routing path information between the source node and the destination node, and judging the next moment. Whether the frame error rate at the moment is less than the preset frame error rate threshold; if the frame error rate at the next moment is not less than the preset frame error rate threshold, then compare the size relationship between the filtered received signal strength at the current moment and the received signal strength at the next moment and the preset threshold, and determine the type of the target routing path between the source node and the destination node based on the size relationship; if the type is unchanged, use the original routing path information as the target routing path between the source node and the destination node; if the type is routing path reconstruction, use the new routing path information as the target routing path, and realize the routing path reconstruction between the source node and the destination node based on the target routing path. The present application can improve the accuracy of the indicator for predicting link state changes by performing Kalman filtering on the received signal strength and calculating the frame error rate, generate the received signal strength at the next moment between the source node and the destination node, and compare the received signal strength at the next moment with the received signal strength at the current moment and the preset threshold, so as to determine the target routing path between the source node and the destination node. The present application supports switching to a stable route for transmission in advance when the link quality prediction trend deteriorates, and the target routing path can be the original routing path information or the new routing path information, eliminating the lag and volatility in the high dynamic link prediction process, and can effectively perceive the continuous changes of the link in a short period of time, so as to give priority to ensuring that the route is transmitted on a path with a low frame error rate, avoiding the high probability of communication interruption and unstable communication rate, and can solve the problem that the routing protocol of the cluster self-organizing network cannot support fast routing reconstruction when the link is about to deteriorate and is difficult to converge stably when the link has deteriorated in a critical state, thereby improving the communication effect, communication rate and stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0042] Figure 1 A flow chart of a method for reconstructing a routing path in a cluster ad hoc network disclosed in the present application;
[0043] Figure 2 A Kalman filtering flow chart for receiving signal strength disclosed in this application;
[0044] Figure 3 A schematic diagram of neighbor node routing information interaction disclosed in this application;
[0045] Figure 4 A flowchart of fast routing reconstruction based on a greedy algorithm disclosed in this application;
[0046] Figure 5 This is an original protocol performance test diagram disclosed in this application;
[0047] Figure 6 This is a performance test diagram of the cluster fast routing reconstruction technology based on link quality prediction disclosed in this application;
[0048] Figure 7 A schematic diagram of the structure of a routing path reconstruction device for a cluster ad hoc network disclosed in the present application;
[0049] Figure 8 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] In the existing unmanned cluster ad hoc network routing protocol, the protocol generally performs route discovery and maintenance by periodically or proactively sending routing messages, and then selects the best routing link for route forwarding and transmission through certain routing decisions, and finally deletes the invalid route and re-establishes the route through the timeout mechanism. In practical applications, due to the high mobility of cluster ad hoc network application environment and the drastic changes in wireless communication environment, the link quality evaluation has the problems of large volatility, high latency and deviation from the actual results, which makes it difficult to find or lock the stable routing path for transmission in the critical state. Specifically, the routing protocol cannot support fast routing reconstruction when the link is about to deteriorate and it is difficult to converge stably when the link has deteriorated. Therefore, the link quality prediction and routing reconstruction under high dynamic wireless links face the following two problems: First, in an environment with a large number of bursty links, it is impossible to effectively perceive the continuous changes of the link in a short period of time, resulting in the inability to quickly lock the stable routing path for transmission in the critical state; second, in the process of route reconstruction, since the destination node is in the critical state of communication coverage of the source node, the route selection link quality cannot stably indicate the actual link state in the current critical state, resulting in high probability of communication interruption and unstable communication rate. From the above, it can be seen that how to solve the problem that the cluster self-organizing network routing protocol cannot support fast routing reconstruction when the link is about to deteriorate and is difficult to converge stably when the link has deteriorated in a critical state, and improve the communication effect and rate are problems to be solved in this field.
[0052] See also Figure 1 As shown, the embodiment of the present invention discloses a method for reconstructing a routing path of a cluster ad hoc network, which may specifically include:
[0053] Step S11: Collect the received signal strength and data frames of the neighboring nodes adjacent to the source node at the current moment, and perform frame error rate calculation and Kalman filtering on the received signal strength and the data frame respectively to obtain the frame error rate at the current moment and the filtered received signal strength at the current moment.
[0054] In this embodiment, the node i in the cluster collects the received signal strength during the frame sent by the neighbor node j at time t to form R(i, j, t). The node i in the cluster counts the data frames sent by the neighbor node j at time t, and counts the frame error rate within the first M frames based on time t to form F(i, j, t). Then, Kalman filtering is used to perform received signal strength filtering. The specific process is as follows: Figure 2As shown in the figure, the Kalman gain value is first calculated, and then the estimated value is updated according to the new input value (this estimated value is the filter output value), and finally the error covariance is updated for the next calculation. Node i in the cluster performs Kalman filtering on the received signal strength R(i, j, t) of neighbor node j to obtain the filtered received signal strength table , and the filtering process is:
[0055] ;
[0056] ;
[0057] ;
[0058] Among them, Q and P are the process and measurement noise in the Kalman filter. It is assumed that they do not change with the system state, so constant initial values are given when the system is initialized. Among them, K(t) and P(t) are intermediate variables generated by the filtering process, which are used to calculate the filtering value at time t+1. In particular, when t=0, let:
[0059] P(t-1)=0;
[0060] R(i,j,t-1)=0.
[0061] In this embodiment, after obtaining the frame error rate at the current moment and the filtered received signal strength at the current moment, it also includes: determining a broadcast period, broadcasting the frame error rate at the current moment and the filtered received signal strength at the current moment to other nodes except the source node in the form of a routing message according to the broadcast period; generating a predicted value of the routing path link quality at the current moment based on the filtered received signal strength at the current moment and the frame error rate at the current moment. That is, all nodes in the cluster broadcast the filtered received signal strength and frame error rate to other nodes in the form of a routing message at a certain period.
[0062] Taking the source node s to the destination node d as an example, assuming that it receives routing information related to path x (where path x includes nodes s, k, l, m, d), it first represents the received signal strength value of path x:
[0063] ;
[0064] Where RR(x, s, d, t) represents the received signal strength from the source node s to the destination node d in the path x at time t, and then it represents the frame error rate value of the path x:
[0065] ;
[0066] Where RF(x, s, d, t) represents the frame error rate from the source node s to the destination node d at time t in the path x, and the generated routing path link quality prediction value from the source node s to the destination node d at time t is:
[0067] .
[0068] Step S12: Update the filtered received signal strength and the frame error rate at the current moment to obtain the received signal strength and the frame error rate at the next moment, and generate new routing path information between the source node and the destination node at the next moment.
[0069] In this embodiment, the filtered received signal strength at the current moment and the frame error rate at the current moment in the routing path link quality prediction value at the current moment are updated respectively to obtain the received signal strength at the next moment and the frame error rate at the next moment, and the routing path link quality prediction value at the next moment is generated based on the received signal strength at the next moment and the frame error rate at the next moment, and new routing path information at the next moment is generated between the source node and the destination node.
[0070] At time t, the link quality prediction value corresponding to the current path L=x selected by node s to node d is: Q(x, s, d, t), and the received signal strength value of path x and the frame error rate value of path x at time t are updated to obtain the routing path link quality prediction value of the updated path y from node s to node d at time t+1:
[0071] ;
[0072] The principle of neighbor node routing information interaction during the generation of new routing path information at the next moment is as follows: Figure 3 As shown, for example, four nodes form a three-hop chain topology. At the initial time t, after a round of information interaction, node 1 obtains routing information with node 2 (including signal strength and frame error rate, etc.), node 2 obtains routing information with 1 and 3, node 3 obtains routing information with nodes 2 and 4, and node 4 obtains routing information with node 3; at time t+1, after a new round of information interaction, node 1 obtains routing information with 2 and 3, node 2 obtains routing information with 1, 3, and 4, node 3 obtains routing information with 1, 2, and 4, and node 4 obtains routing information with 2 and 3; at time t+2, after a new round of information interaction, each node obtains routing information of the entire network, and continuously updates the routing information of the entire network at subsequent times.
[0073] Step S13: Determine the original routing path information between the source node and the destination node, and judge whether the frame error rate at the next moment is less than the preset frame error rate threshold. If the frame error rate at the next moment is not less than the preset frame error rate threshold, compare the filtered received signal strength at the current moment with the received signal strength at the next moment and the preset threshold, and determine the type of the target routing path between the source node and the destination node based on the size relationship.
[0074] In this embodiment, if the frame error rate at the next moment is less than a preset frame error rate threshold, it is determined that the type of the target routing path between the source node and the destination node remains unchanged; if the frame error rate at the next moment is not less than the preset frame error rate threshold, it is determined whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than a first threshold; the preset threshold includes the first threshold and the second threshold; the first threshold is a threshold for measuring whether the link is transmitting normally.
[0075] The step of judging whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than a first threshold includes two results. The first result is: if the received signal strength after filtering at the current moment and the received signal strength at the next moment are both less than the first threshold, then it is determined whether the received signal strength after filtering at the current moment and the received signal strength at the next moment are both less than the second threshold; the second threshold is a threshold for measuring whether the link has packet loss; if the received signal strength after filtering at the current moment and the received signal strength at the next moment are both less than the second threshold, then it is determined that the type of the target routing path between the source node and the destination node is unchanged; if the received signal strength after filtering at the current moment and the received signal strength at the next moment are not both less than the second threshold, then it is determined whether only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the second threshold; if only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the second threshold, then it is determined that the type of the target routing path between the source node and the destination node is unchanged or the routing path is reconstructed; if not only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the second threshold, then it is determined that the type of the target routing path between the source node and the destination node is routing path reconstruction.
[0076] The second result is: if the received signal strength after filtering at the current moment and the received signal strength at the next moment are not both less than the first threshold, then determine whether only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the first threshold; if only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the first threshold, then determine that the type of the target routing path between the source node and the destination node is to remain unchanged or to reconstruct the routing path; if not only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the first threshold, then determine that the type of the target routing path between the source node and the destination node is to reconstruct the routing path.
[0077] Step S14: If the type is to remain unchanged, the original routing path information is used as the target routing path between the source node and the destination node; if the type is routing path reconstruction, the new routing path information is used as the target routing path, and the routing path reconstruction between the source node and the destination node is implemented based on the target routing path.
[0078] In this embodiment, if the type is routing path reconstruction, the new routing path information is used as the target routing path, and the routing path reconstruction between the source node and the destination node is realized based on the target routing path using a greedy algorithm. In other words, the present application can quickly reconstruct the route each time the routing data is updated based on the greedy algorithm. The specific greedy strategy is: the reconstructed route gives priority to ensuring that the route is transmitted on a path with a low frame error rate, and path switching is considered only when the predicted channel quality is greater than a certain threshold, otherwise the link that can be stably transmitted is preferentially locked for transmission.
[0079] This application uses a greedy algorithm to perform a fast routing reconstruction process such as Figure 4As shown, after the routing information is updated (including reading the new RSSI value and receiving the routing information of the neighboring node), the new routing path information of the next moment is generated, and the routing path link quality prediction value of the new route at the next moment is generated (including the received signal strength at the next moment and the frame error rate at the next moment); wherein, RSSI (Received Signal Strength Indication) refers to the received signal strength indication, that is, the received signal strength in this application. If the frame error rate FER of the new route y is less than the preset frame error rate threshold Fth, the original route is maintained unchanged (that is, the type is unchanged); if the RSSI of the new and old routes are both greater than the threshold second threshold, the route with the smallest number of hops is selected; if only one of the new and old route RSSIs is greater than the threshold second threshold, the route greater than the threshold second threshold is selected; if both the new and old route RSSIs are greater than the threshold first threshold and less than the threshold second threshold, the original route is maintained unchanged; if only one of the new and old route RSSIs is greater than the threshold first threshold, the route greater than the threshold first threshold is selected; if both the new and old route RSSIs are less than the threshold first threshold, the route with the smallest number of hops is selected.
[0080] It is understandable that routing path reconstruction includes the following three situations:
[0081] (a) The routing path remains unchanged, and the current path maintains L=x;
[0082] (b) The routing path is updated to y, L = y;
[0083] (c) Routing path selection L = Min{metric(x,y)} (returns the link with the smallest number of hops between x and y)
[0084] Based on the above detailed process of determining the type of the target routing path between the source node and the destination node, a brief description of the routing selection process is given:
[0085] (1) After the routing information is updated (including reading the new RSSI value and receiving the routing information of the neighboring nodes), a new route y is generated;
[0086] (2) Generate the predicted value Q(y,s,d,t) of the link quality of the new route y at time t+1;
[0087] (3) If the frame error rate FER of the new route y is less than the preset frame error rate threshold Fth, the original route is maintained unchanged and the route reconstruction selection is case a;
[0088] (4) If the RSSI of the new and old routes are both greater than the second threshold Rth2, the route reconstruction selects case c;
[0089] (5) If only one of the new and old routes has an RSSI greater than the second threshold Rth2, the route with an RSSI greater than the second threshold Rth2 is selected, and the route reconstruction selects case a or b;
[0090] (6) If the RSSI of the old and new routes are both greater than the first threshold Rth1 and less than the second threshold Rth2, the original route is maintained unchanged and the route reconstruction selects case a;
[0091] (7) If only one of the new and old routes has an RSSI greater than the first threshold Rth1, the route greater than the first threshold Rth1 is selected, and the route reconstruction selects case a or b;
[0092] (8) If the RSSI of the new and old routes are both less than the first threshold Rth1, the route reconstruction selects case c;
[0093] In the above process, Fth is the frame error rate threshold that satisfies normal transmission. Rth1 and Rth2 are two thresholds of received signal strength, where Rth1 measures the threshold at which link quality cannot be transmitted normally, and Rth2 measures the link quality without packet loss, and satisfies: Rth1 <Rth2。
[0094] Figure 5 and Figure 6 The performance comparison diagrams of the original protocol and the cluster fast routing reconstruction technology based on link quality prediction are respectively shown in the figure. In the figure, nodes 1, 2, and 3 are switched from a fully connected topology to a 2-hop chain and then switched back to a fully connected topology. Figure 5 and Figure 6 From the RSSI curve, we can see that, affected by the high dynamic link and wireless environment, RSSI fluctuates violently in the original protocol, and it is difficult for RSSI to stably indicate the link status near the threshold. After adopting the cluster fast routing reconstruction technology based on link quality prediction, RSSI transition is smoother and can reflect the overall change trend of channel quality. Figure 5 and Figure 6 From the throughput curve, we can see that in the critical state, the throughput of the original protocol is difficult to recover after 300 sampling points. After adopting the cluster fast routing reconstruction technology based on link quality prediction, the throughput is quickly recovered after 120 sampling points, indicating that the routing can converge quickly and stably in the critical state.
[0095] The present invention can solve the problem that the routing protocol of cluster self-organizing network cannot support fast routing reconstruction when the link is about to deteriorate and is difficult to converge stably when the link has deteriorated in a critical state, and proposes a cluster fast routing reconstruction technology based on link quality prediction. The technology performs Kalman filtering on the signal reception strength, and then integrates the signal reception strength and the frame error rate to form an indicator that can more realistically predict the change of link state in the overall trend, and supports switching to a stable route for transmission in advance when the link quality prediction trend deteriorates. On this basis, in order to eliminate the hysteresis and volatility in the high dynamic link prediction process, a greedy strategy is adopted to make routing decisions based on the obtained link quality, and priority is given to ensuring that the route is transmitted on a path with a low frame error rate. When the selected routing path link has deteriorated, the link that can be stably transmitted is locked first, and it can quickly converge to a stable link for transmission when the link has deteriorated, reducing the probability of communication interruption and improving the stability of the communication rate.
[0096] In this embodiment, the received signal strength and data frame of the neighboring nodes adjacent to the source node at the current moment are collected, and the frame error rate calculation and Kalman filtering are performed on the received signal strength and the data frame respectively to obtain the frame error rate at the current moment and the received signal strength after filtering at the current moment; the filtered received signal strength at the current moment and the frame error rate at the current moment are updated to obtain the received signal strength at the next moment and the frame error rate at the next moment, and generate new routing path information at the next moment between the source node and the destination node; determine the original routing path information between the source node and the destination node, and judge whether the frame error rate at the next moment is less than According to the preset frame error rate threshold, if the frame error rate at the next moment is not less than the preset frame error rate threshold, the filtered received signal strength at the current moment is compared with the received signal strength at the next moment and the preset threshold, and the type of the target routing path between the source node and the destination node is determined based on the size relationship; if the type is unchanged, the original routing path information is used as the target routing path between the source node and the destination node; if the type is routing path reconstruction, the new routing path information is used as the target routing path, and the routing path reconstruction between the source node and the destination node is realized based on the target routing path. The present application can improve the accuracy of the indicator for predicting link state changes by performing Kalman filtering on the received signal strength and calculating the frame error rate, generate the received signal strength at the next moment between the source node and the destination node, and compare the received signal strength at the next moment with the received signal strength at the current moment and the preset threshold, so as to determine the target routing path between the source node and the destination node. The present application supports switching to a stable route for transmission in advance when the link quality prediction trend deteriorates, and the target routing path can be the original routing path information or the new routing path information, eliminating the lag and volatility in the high-dynamic link prediction process, and can effectively perceive the continuous changes of the link in a short period of time, so as to give priority to ensuring that the route is transmitted on a path with a low frame error rate, avoiding the high probability of communication interruption and unstable communication rate, and can solve the problem that the routing protocol of the cluster self-organizing network cannot support fast routing reconstruction when the link is about to deteriorate and is difficult to converge stably when the link has deteriorated in a critical state, thereby improving the communication effect, communication speed and stability.
[0097] See also Figure 7 As shown, the embodiment of the present invention discloses a routing path reconstruction device for a cluster ad hoc network, which may specifically include:
[0098] The calculation and filtering module 11 is used to collect the received signal strength and data frames of the neighboring nodes adjacent to the source node at the current moment, and perform frame error rate calculation and Kalman filtering on the received signal strength and the data frame respectively, so as to obtain the frame error rate at the current moment and the filtered received signal strength at the current moment;
[0099] An updating module 12, configured to update the filtered received signal strength at a current moment and the frame error rate at a current moment, so as to obtain the received signal strength at a next moment and the frame error rate at a next moment, and to generate new routing path information at a next moment between the source node and the destination node;
[0100] A path type determination module 13 is used to determine the original routing path information between the source node and the destination node, and judge whether the frame error rate at the next moment is less than a preset frame error rate threshold. If the frame error rate at the next moment is not less than the preset frame error rate threshold, the filtered received signal strength at the current moment is compared with the received signal strength at the next moment and the preset threshold, and the type of the target routing path between the source node and the destination node is determined based on the size relationship.
[0101] The routing reconstruction module 14 is used to use the original routing path information as the target routing path between the source node and the destination node if the type is unchanged, and use the new routing path information as the target routing path if the type is routing path reconstruction, and realize the routing path reconstruction between the source node and the destination node based on the target routing path.
[0102] In this embodiment, the received signal strength and data frame of the neighboring nodes adjacent to the source node at the current moment are collected, and the frame error rate calculation and Kalman filtering are performed on the received signal strength and the data frame respectively to obtain the frame error rate at the current moment and the received signal strength after filtering at the current moment; the filtered received signal strength at the current moment and the frame error rate at the current moment are updated to obtain the received signal strength at the next moment and the frame error rate at the next moment, and generate new routing path information at the next moment between the source node and the destination node; determine the original routing path information between the source node and the destination node, and judge whether the frame error rate at the next moment is less than According to the preset frame error rate threshold, if the frame error rate at the next moment is not less than the preset frame error rate threshold, the filtered received signal strength at the current moment is compared with the received signal strength at the next moment and the preset threshold, and the type of the target routing path between the source node and the destination node is determined based on the size relationship; if the type is unchanged, the original routing path information is used as the target routing path between the source node and the destination node; if the type is routing path reconstruction, the new routing path information is used as the target routing path, and the routing path reconstruction between the source node and the destination node is realized based on the target routing path. The present application can improve the accuracy of the indicator for predicting link state changes by performing Kalman filtering on the received signal strength and calculating the frame error rate, generate the received signal strength at the next moment between the source node and the destination node, and compare the received signal strength at the next moment with the received signal strength at the current moment and the preset threshold, so as to determine the target routing path between the source node and the destination node. The present application supports switching to a stable route for transmission in advance when the link quality prediction trend deteriorates, and the target routing path can be the original routing path information or the new routing path information, eliminating the lag and volatility in the high dynamic link prediction process, and can effectively perceive the continuous changes of the link in a short period of time, so as to give priority to ensuring that the route is transmitted on a path with a low frame error rate, avoiding the high probability of communication interruption and unstable communication rate, and can solve the problem that the routing protocol of the cluster self-organizing network cannot support fast routing reconstruction when the link is about to deteriorate and is difficult to converge stably when the link has deteriorated in a critical state, thereby improving the communication effect, communication rate and stability.
[0103] In some specific embodiments, the calculation and filtering module 11 may specifically include:
[0104] A broadcast module, used for determining a broadcast period, and broadcasting the frame error rate at a current moment and the filtered received signal strength at a current moment to other nodes except the source node in the form of a routing message according to the broadcast period;
[0105] The first prediction value generating module is used to generate a routing path link quality prediction value at a current moment based on the filtered received signal strength at a current moment and the frame error rate at a current moment.
[0106] In some specific embodiments, the updating module 12 may specifically include:
[0107] An updating module, used to update the filtered received signal strength at the current moment and the frame error rate at the current moment in the routing path link quality prediction value at the current moment, respectively, to obtain the received signal strength at the next moment and the frame error rate at the next moment;
[0108] The second prediction value generating module is used to generate the routing path link quality prediction value at the next moment based on the received signal strength at the next moment and the frame error rate at the next moment.
[0109] In some specific embodiments, the path type determination module 13 may specifically include:
[0110] A first type determination module, configured to determine that the type of the target routing path between the source node and the destination node remains unchanged if the frame error rate at the next moment is less than a preset frame error rate threshold;
[0111] The first threshold judgment module is used to judge whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the first threshold if the frame error rate at the next moment is not less than the preset frame error rate threshold; the preset threshold includes the first threshold and the second threshold; the first threshold is a threshold for measuring whether the link is transmitting normally.
[0112] In some specific embodiments, the path type determination module 13 may specifically include:
[0113] A second threshold judgment module is used to judge whether the received signal strength after filtering at the current moment and the received signal strength at the next moment are both less than the second threshold if both are less than the first threshold; the second threshold is a threshold for measuring whether a link has packet loss;
[0114] A second type determination module, configured to determine that the type of the target routing path between the source node and the destination node remains unchanged if the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the second threshold;
[0115] A signal strength and second threshold judgment module, configured to judge whether only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the second threshold if both the filtered received signal strength at the current moment and the received signal strength at the next moment are not less than the second threshold;
[0116] A third type determination module is used to determine the type of the target routing path between the source node and the destination node as remaining unchanged or reconstructing the routing path if only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the second threshold;
[0117] The fourth type determination module is used to determine that the type of the target routing path between the source node and the destination node is routing path reconstruction if at least one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the second threshold.
[0118] In some specific embodiments, the path type determination module 13 may specifically include:
[0119] A signal strength and first threshold judgment module, configured to judge whether only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold if both the filtered received signal strength at the current moment and the received signal strength at the next moment are not less than the first threshold;
[0120] a fifth type determination module, configured to determine whether the type of the target routing path between the source node and the destination node is to remain unchanged or to reconstruct the routing path if only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold;
[0121] The sixth type determination module is used to determine that the type of the target routing path between the source node and the destination node is routing path reconstruction if at least one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold.
[0122] In some specific embodiments, the routing reconstruction module 14 may specifically include:
[0123] A reconstruction module is used to use a greedy algorithm and based on the target routing path to achieve routing path reconstruction between the source node and the destination node.
[0124] Figure 8A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the routing path reconstruction method of the cluster ad hoc network performed by the electronic device disclosed in any of the aforementioned embodiments.
[0125] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0126] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0127] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the routing path reconstruction method of the cluster self-organizing network performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can also further include a computer program that can be used to complete other specific tasks. In addition to including data transmitted from an external device received by the routing path reconstruction device of the cluster self-organizing network, the data 223 can also include data collected by its own input and output interface 25, etc.
[0128] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0129] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the method for reconstructing the routing path of the cluster self-organizing network disclosed in any of the aforementioned embodiments are implemented.
[0130] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0131] The above is a detailed introduction to the routing path reconstruction method, device, equipment and storage medium of a cluster self-organizing network provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in the field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for reconstructing a routing path in a cluster ad hoc network, characterized in that: include: Collecting the received signal strength and data frames of neighboring nodes adjacent to the source node at the current moment, and performing frame error rate calculation and Kalman filtering on the received signal strength and the data frame, respectively, to obtain the frame error rate at the current moment and the filtered received signal strength at the current moment; Update the filtered received signal strength and the frame error rate at the current moment to obtain the received signal strength and the frame error rate at the next moment, and generate new routing path information between the source node and the destination node at the next moment; Determine the original routing path information between the source node and the destination node, judge whether the frame error rate at the next moment is less than a preset frame error rate threshold, if the frame error rate at the next moment is not less than the preset frame error rate threshold, compare the magnitude relationship between the filtered received signal strength at the current moment and the received signal strength at the next moment and the preset threshold, and determine the type of the target routing path between the source node and the destination node based on the magnitude relationship; If the type is to remain unchanged, the original routing path information is used as the target routing path between the source node and the destination node; if the type is routing path reconstruction, the new routing path information is used as the target routing path, and the routing path reconstruction between the source node and the destination node is implemented based on the target routing path.
2. The method for reconstructing a routing path in a cluster ad hoc network according to claim 1, characterized in that: After obtaining the frame error rate at the current moment and the filtered received signal strength at the current moment, the method further includes: Determine a broadcast cycle, and broadcast the frame error rate at the current moment and the filtered received signal strength at the current moment to other nodes except the source node in the form of a routing message according to the broadcast cycle; A routing path link quality prediction value at the current moment is generated based on the filtered received signal strength at the current moment and the frame error rate at the current moment.
3. The method for reconstructing a routing path of a cluster ad hoc network according to claim 2, characterized in that: The updating of the filtered received signal strength at the current moment and the frame error rate at the current moment to obtain the received signal strength at the next moment and the frame error rate at the next moment includes: The filtered received signal strength at the current moment and the frame error rate at the current moment in the routing path link quality prediction value at the current moment are respectively updated to obtain the received signal strength at the next moment and the frame error rate at the next moment; The routing path link quality prediction value at the next moment is generated based on the received signal strength at the next moment and the frame error rate at the next moment.
4. The method for reconstructing a routing path in a cluster ad hoc network according to claim 1, characterized in that: The determining whether the frame error rate at the next moment is less than a preset frame error rate threshold, if the frame error rate at the next moment is not less than the preset frame error rate threshold, comparing the magnitude relationship between the filtered received signal strength at the current moment and the received signal strength at the next moment and the preset threshold, and determining the type of the target routing path between the source node and the destination node based on the magnitude relationship, includes: If the frame error rate at the next moment is less than a preset frame error rate threshold, determining that the type of the target routing path between the source node and the destination node remains unchanged; If the frame error rate at the next moment is not less than the preset frame error rate threshold, then determine whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the first threshold; the preset threshold includes the first threshold and the second threshold; the first threshold is a threshold for measuring whether the link is transmitting normally.
5. The method for reconstructing a routing path in a cluster ad hoc network according to claim 4, characterized in that: After determining whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the first threshold, the method further includes: If the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the first threshold, then determine whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the second threshold; the second threshold is a threshold for measuring whether a link has packet loss; If the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the second threshold, determining that the type of the target routing path between the source node and the destination node remains unchanged; If the received signal strength after filtering at the current moment and the received signal strength at the next moment are not both less than the second threshold, determining whether only one of the received signal strength after filtering at the current moment and the received signal strength at the next moment is less than the second threshold; If only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the second threshold, determining the type of the target routing path between the source node and the destination node as remaining unchanged or reconstructing the routing path; If at least one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the second threshold, it is determined that the type of the target routing path between the source node and the destination node is routing path reconstruction.
6. The method for reconstructing a routing path in a cluster ad hoc network according to claim 4, characterized in that: After determining whether the filtered received signal strength at the current moment and the received signal strength at the next moment are both less than the first threshold, the method further includes: If the filtered received signal strength at the current moment and the received signal strength at the next moment are not both less than the first threshold, determining whether only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold; If only one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold, determining the type of the target routing path between the source node and the destination node as remaining unchanged or reconstructing the routing path; If at least one of the filtered received signal strength at the current moment and the received signal strength at the next moment is less than the first threshold, it is determined that the type of the target routing path between the source node and the destination node is routing path reconstruction.
7. The method for reconstructing a routing path in a cluster ad hoc network according to any one of claims 1 to 6, characterized in that: The reconstructing the routing path between the source node and the destination node based on the target routing path includes: A greedy algorithm is adopted to achieve the reconstruction of the routing path between the source node and the destination node based on the target routing path.
8. A routing path reconstruction device for a cluster ad hoc network, characterized in that: include: A calculation and filtering module, used to collect the received signal strength and data frames of the neighboring nodes adjacent to the source node at the current moment, and perform frame error rate calculation and Kalman filtering on the received signal strength and the data frames respectively, so as to obtain the frame error rate at the current moment and the filtered received signal strength at the current moment; An updating module, used for updating the filtered received signal strength and the frame error rate at the current moment to obtain the received signal strength and the frame error rate at the next moment, and generating new routing path information between the source node and the destination node at the next moment; a path type determination module, used to determine the original routing path information between the source node and the destination node, judge whether the frame error rate at the next moment is less than a preset frame error rate threshold, and if the frame error rate at the next moment is not less than the preset frame error rate threshold, compare the magnitude relationship between the filtered received signal strength at the current moment and the received signal strength at the next moment and the preset threshold, and determine the type of the target routing path between the source node and the destination node based on the magnitude relationship; A routing reconstruction module is used to use the original routing path information as the target routing path between the source node and the destination node if the type is unchanged, and use the new routing path information as the target routing path if the type is routing path reconstruction, and realize the routing path reconstruction between the source node and the destination node based on the target routing path.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the routing path reconstruction method of the cluster self-organizing network according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the routing path reconstruction method for a cluster self-organizing network as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Routing method and device for nodes in wireless ad hoc network
CN103826283A
Unmanned aerial vehicle ad hoc network routing updating method based on Kalman DNN model prediction
CN115314968A
