A Dynamic Routing Optimization Method and System Based on Ad Hoc Network
By building the routing topology diagram and state space of the ad hoc network, collecting neighbor node information and performance characteristics, and using response delay information to determine path stability, the problem that traditional ad hoc network routing protocols cannot respond to network topology changes in real time, and the stability and reliability of routing switching in the ad hoc network are improved.
Patent Information
- Application Number
- CN202510581129.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2045-05-07
AI Technical Summary
Traditional ad hoc network routing protocols cannot respond to network topology changes in real time, resulting in misjudgment and uneven allocation of network resources, affecting the stability of routing switching.
By constructing a routing topology map of the ad hoc network, collecting neighbor node information and performance characteristics, generating state space, using response delay information to determine path stability, and performing incremental updates of the routing table when the routing condition indicator is below the threshold.
It realizes topology dynamic perception and intelligent routing optimization in the ad hoc network, improves the stability and reliability of routing handover, and avoids unnecessary frequent routing reconstruction.
Smart Images

Figure CN120091382B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of routing communication technology. More specifically, this application relates to a dynamic routing optimization method and system based on an ad hoc network. Background Art
[0002] With the development of 5G and 6G communication technologies, the ad hoc network technology has also been continuously improving its communication rate, capacity, and coverage. The ad hoc network technology is in a stage of rapid development and has been widely used in both military and civilian fields. In the military field, the unmanned aerial vehicle ad hoc network technology has become a research hotspot. In the civilian aspect, the wireless ad hoc network system, due to its flexibility and self-healing characteristics, is widely used in fields such as emergency communication and the Internet of Things, especially showing unique advantages in scenarios such as disaster rescue and field operations.
[0003] Traditional ad hoc network routing protocols have obvious defects in static routing maintenance. The core problem lies in the use of a passive routing update mechanism, which cannot respond to network topology changes in real time. This traditional ad hoc network routing protocol usually only establishes a routing path when a communication demand occurs, or relies on the synchronization of the entire network routing information at fixed intervals, resulting in the network being unable to timely perceive the topological changes brought about by node movement. At the same time, using fixed parameters to determine the link state is difficult to adapt to the dynamic changes of the wireless channel environment, and misjudgments often occur. More seriously, such protocols generally adopt simple path selection criteria, only considering a single factor such as the number of hops, while ignoring key indicators such as node energy and network load, which easily causes uneven distribution of network resources and seriously affects the overall performance. Therefore, how to achieve dynamic topology perception and intelligent routing optimization in an ad hoc network, thereby improving the routing switching stability in an ad hoc network, has become a difficult problem faced by the industry. Summary of the Invention
[0004] This application provides a dynamic routing optimization method and system based on an ad hoc network, which can achieve dynamic topology perception and intelligent routing optimization in an ad hoc network, thereby improving the routing switching stability in an ad hoc network.
[0005] In the first aspect, this application provides a dynamic routing optimization method based on an ad hoc network, including:
[0006] Abstract the routing nodes of the ad hoc network into a graph structure to obtain the routing topology graph of the ad hoc network, and then collect the neighbor node information in the routing topology graph;
[0007] Extract the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information, and construct the state space of the ad hoc network in routing switching through the performance characteristics of each routing node and the interaction density characteristics;
[0008] During the routing handover process in an ad hoc network, collect the response delay information of the routing handover request, determine the path stability of each routing node in the ad hoc network during this routing handover through the response delay information, and then determine the routing working condition index of the ad hoc network in the current network based on all the path stabilities;
[0009] When the routing working condition index is lower than the preset working condition threshold, trigger the real-time update of the routing table in the ad hoc network, and then perform incremental update on the routing table in the ad hoc network based on the reward function in the state space.
[0010] In some embodiments, extracting the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information specifically includes:
[0011] For each routing node in the routing topology graph, extract the historical performance mean of each performance parameter in the routing node from the pre-collected historical performance data;
[0012] Determine the performance characteristics of the routing node through all the historical performance means, and then obtain the performance characteristics of each routing node in the routing topology graph;
[0013] For each group of neighbor nodes in the neighbor node information, obtain all the interaction intervals between the neighbor nodes within a specified time period;
[0014] Determine the interaction density value of the neighbor nodes through all the interaction intervals, and then obtain the interaction density value of each group of neighbor nodes in the neighbor node information;
[0015] Determine the interaction density characteristics in the neighbor node information according to all the interaction density values.
[0016] In some embodiments, the performance parameters include the routing node location, remaining energy, and link quality of the routing node.
[0017] In some embodiments, constructing the state space of the ad hoc network during routing handover through the performance characteristics of each routing node and the interaction density characteristics specifically includes:
[0018] Convert the node locations of each routing node into a relative distance matrix;
[0019] Normalize the remaining energy and link quality of each performance characteristic and integrate them into the relative distance matrix, and then obtain the multi-dimensional matrix of the performance characteristics of the ad hoc network during routing handover;
[0020] Generate an interaction density matrix of the ad hoc network during routing handover through the interaction density characteristics;
[0021] Fuse the performance matrix and the interaction density matrix into the state space of the ad hoc network during routing handover.
[0022] In some embodiments, determining the path stability of each routing node in the ad hoc network during the current routing switch based on the response delay information specifically includes:
[0023] For each routing node in the ad hoc network, obtain the response delay and the number of path hops of the switched path of the routing node during the current routing switch from the response delay information;
[0024] Determine the path stability of the routing node during the current routing switch based on the response delay and the number of path hops, and then obtain the path stability of each routing node in the ad hoc network during the current routing switch.
[0025] In some embodiments, determining the routing condition index of the ad hoc network in the current network based on all the path stabilities specifically includes:
[0026] Obtain the adjustment coefficient of the network stability of the ad hoc network in the current network;
[0027] Determine the first stability score and the second stability score of the ad hoc network based on all the path stabilities;
[0028] Determine the routing condition index of the ad hoc network in the current network based on the adjustment coefficient, the first stability score, and the second stability score.
[0029] In some embodiments, incrementally updating the routing table in the ad hoc network based on the reward function in the state space specifically includes:
[0030] For each routing node in the routing table of the ad hoc network, extract the incremental reward value of the number of path hops in the routing node from the reward function in the state space;
[0031] Perform greedy reward on the transmission path of the routing node based on the incremental reward value, and then perform greedy reward on the transmission paths of all routing nodes in the routing table of the ad hoc network to complete the incremental update of the routing table in the ad hoc network.
[0032] In a second aspect, the present application provides a dynamic routing optimization system based on an ad hoc network, including a routing update unit, and the routing update unit includes:
[0033] An acquisition module, configured to abstract the routing nodes of the ad hoc network into a graph structure to obtain a routing topology graph of the ad hoc network, and then acquire neighbor node information in the routing topology graph;
[0034] A processing module, configured to extract the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information, and construct a state space of the ad hoc network during routing switch based on the performance characteristics of each routing node and the interaction density characteristics;
[0035] The processing module is further configured to collect response delay information of a routing switch request during a routing switch process in the ad hoc network, determine the path stability of each routing node in the ad hoc network during this routing switch through the response delay information, and then determine the routing working condition index of the ad hoc network in the current network according to all the path stabilities;
[0036] The execution module is configured to trigger real-time update of the routing table in the ad hoc network when the routing working condition index is lower than a preset working condition threshold, and then perform incremental update of the routing table in the ad hoc network based on the reward function in the state space.
[0037] In a third aspect, the present application provides a computer device, which includes a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the above-mentioned dynamic routing optimization method based on the ad hoc network.
[0038] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions or codes are stored. When the instructions or codes are run on a computer, the computer is caused to execute the above-mentioned dynamic routing optimization method based on the ad hoc network.
[0039] The technical solutions provided by the disclosed embodiments of the present application have the following beneficial effects:
[0040] In a dynamic routing optimization method and system based on an ad hoc network provided by the present application, the routing nodes of the ad hoc network are abstracted into a graph structure to obtain a routing topology graph of the ad hoc network, and then neighbor node information in the routing topology graph is collected; performance characteristics of each routing node in the routing topology graph and interaction density characteristics in the neighbor node information are extracted, and a state space of the ad hoc network during a routing switch is constructed through the performance characteristics of each routing node and the interaction density characteristics; response delay information of a routing switch request is collected during a routing switch process in the ad hoc network, the path stability of each routing node in the ad hoc network during this routing switch is determined through the response delay information, and then the routing working condition index of the ad hoc network in the current network is determined according to all the path stabilities; when the routing working condition index is lower than a preset working condition threshold, real-time update of the routing table in the ad hoc network is triggered, and then incremental update of the routing table in the ad hoc network is performed based on the reward function in the state space.
[0041] It can be seen that in this application, when the routing condition index is lower than the preset condition threshold, the real-time update of the routing table in the ad hoc network is triggered, and then the routing table in the ad hoc network is incrementally updated based on the reward function in the state space. First, by determining the state space, the real-time dynamic performance profile of all network nodes can be obtained, thus significantly improving the accuracy of routing decisions. By abstracting routing nodes into a graph structure and collecting neighbor node information, the ad hoc network can completely depict the network topology relationship. After extracting node performance characteristics and interaction density characteristics, the constructed multi-dimensional state space not only includes traditional static parameters such as location and energy, but also incorporates an interaction density index reflecting the dynamic characteristics of the network. The comprehensive state representation enables the ad hoc network to perceive the subtle changes in the network topology in real time. Based on the refined state-aware routing algorithm, more accurate path selection can be made, avoiding misjudgments caused by incomplete information in traditional protocols and fundamentally improving the stability of routing switching. Then, by determining the routing condition index, a quantitative evaluation of the overall network operation state can be obtained, thus realizing intelligent routing adjustment. By collecting the routing switching response delay and calculating the stability scores of each path, the ad hoc network can accurately evaluate the health status of the current network. After synthesizing the stability of all paths into a unified routing condition index, the ad hoc network has an objective standard for judging whether routing optimization is required. The incremental update mechanism triggered when the index is lower than the preset threshold can not only ensure timely response to network state changes, but also avoid unnecessary frequent routing reconstruction. The intelligent trigger mechanism based on the quantitative index, combined with the detailed network information provided by the state space, enables the ad hoc network to quickly adapt to network changes while maintaining a low control overhead, greatly improving the stability and reliability of routing switching. In summary, based on the above solution, the topology dynamic perception and intelligent routing optimization in the ad hoc network can be realized, thereby improving the routing switching stability in the ad hoc network. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0043] Figure 1 is an exemplary flowchart of a dynamic routing optimization method based on an ad hoc network shown in some embodiments of the present application;
[0044] Figure 2 is a schematic flowchart of the incremental update shown in some embodiments of the present application;
[0045] Figure 3 is a schematic structural diagram of a routing update unit shown in some embodiments of the present application;
[0046] Figure 4 It is a schematic structural diagram of a computer device for implementing a dynamic routing optimization method based on an ad hoc network as shown in some embodiments of the present application. Detailed implementation manners
[0047] To better understand the technical solution of the present application, the technical solution of the present application will be described in detail below in conjunction with the accompanying drawings of the specification and specific implementation manners.
[0048] Refer to Figure 1 , which is an exemplary flowchart of a dynamic routing optimization method based on an ad hoc network as shown in some embodiments of the present application. The dynamic routing optimization method based on an ad hoc network mainly includes the following steps:
[0049] In step 101, the routing nodes of the ad hoc network are abstracted into a graph structure to obtain a routing topology graph of the ad hoc network, and then the neighbor node information in the routing topology graph is collected.
[0050] It should be noted that in the present application, the neighbor node information represents a set of attribute data of all adjacent nodes of the current node; in specific implementation, each routing node in the ad hoc network periodically sends lightweight beacon messages containing its own ID, location, power, etc. The receiving node determines the neighbor relationship through the signal strength and records the link quality parameters. Each routing node maintains a dynamic neighbor table, and after summarization, a weighted topology graph is formed as the routing topology graph of the ad hoc network. The nodes in this routing topology graph represent devices, and the connections are marked with routing metrics such as delay and stability; the topology graph is ensured to be updated in real time by dynamically adjusting the beacon frequency (speeding up the sending when moving fast) and the three-time timeout determination mechanism. The set of all neighbor nodes in the routing topology graph is used as the neighbor node information in the routing topology graph.
[0051] In step 102, the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information are extracted, and a state space of the ad hoc network in routing switching is constructed through the performance characteristics of each routing node and the interaction density characteristics.
[0052] In some embodiments, the extraction of the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information can be implemented by the following steps:
[0053] For each routing node in the routing topology graph, the historical performance mean of each performance parameter in the routing node is extracted from the pre-collected historical performance data;
[0054] The performance characteristics of the routing node are determined through all the historical performance means, and then the performance characteristics of each routing node in the routing topology graph are obtained;
[0055] For each group of neighbor nodes in the neighbor node information, obtain all interaction intervals between neighbor nodes within a specified time period;
[0056] Determine the interaction density value of neighbor nodes through all the interaction intervals, and further obtain the interaction density value of each group of neighbor nodes in the neighbor node information;
[0057] Determine the interaction density feature in the neighbor node information according to all the interaction density values.
[0058] It should be noted that in this application, the interaction density feature represents the topological dynamic characteristics of the data interaction frequency and intensity between nodes per unit time; the interaction interval represents the minimum time interval between two adjacent valid data interactions; the interaction density value is a normalized numerical index quantifying the communication activity degree between nodes; the performance feature represents the set of operating state parameters of the routing node in terms of energy, load, and link quality; the historical performance mean represents the average level value of the performance feature of the node within a specific time window; the performance parameters include the routing node position, remaining energy, and link quality of the routing node.
[0059] In specific implementation, first, collect the historical performance data of each routing node in the ad hoc network within a specified time period. Among them, the historical performance data contains the parameter values of each performance parameter. For each routing node in the routing topology graph, obtain the parameter values of each performance parameter in the routing node from the historical performance data. For each performance parameter in the routing node, the mean value of all parameter values of the performance parameter can be used as the historical performance mean of the performance parameter in the routing node. In this way, the historical performance means of each performance parameter in the routing node can be obtained; secondly, the set of all historical performance means can be used as the performance feature of the routing node. In this way, the performance features of each routing node in the routing topology graph can be obtained.
[0060] Then, for each group of neighbor nodes in the neighbor node information, the following method can be used to obtain all the interaction intervals between neighbor nodes within a specified time period, that is: for each group of neighbor nodes in the neighbor node information, obtain all the interaction intervals between neighbor nodes within a specified time period from the console of the ad hoc network; furthermore, the reciprocal of the mean value of all the interaction intervals can be used as the interaction density value of the neighbor nodes. In this way, the interaction density values of each group of neighbor nodes in the neighbor node information can be obtained; finally, the set of all the interaction density values can be used as the interaction density feature in the neighbor node information.
[0061] In some embodiments, the state space of the ad hoc network in routing switching can be constructed through the performance features of each routing node and the interaction density feature by the following steps:
[0062] Convert the node positions of each routing node into a relative distance matrix;
[0063] Normalize the remaining energy and link quality of each performance characteristic and incorporate them into the relative distance matrix, thereby obtaining a multi-dimensional matrix of the performance characteristics of the ad hoc network during routing switching;
[0064] Generate an interaction density matrix of the ad hoc network during routing switching through the interaction density characteristics;
[0065] Fuse the performance matrix and the interaction density matrix into the state space of the ad hoc network during routing switching.
[0066] In specific implementation, first, obtain the node positions of the corresponding routing nodes from the performance characteristics of each routing node, and then calculate the Euclidean distance between any two routing nodes as the relative distance, so as to matrixize all the relative distances as the relative distance matrix; second, use the normalization algorithm to normalize the remaining energy and link quality of each performance characteristic, so as to use the normalized remaining energy and link quality as a new column vector, and use the dimension concatenation algorithm (for example: vertical concatenation) to concatenate the new column vector with the relative distance matrix, and then use the concatenated matrix as the multi-dimensional matrix of the performance characteristics of the ad hoc network during routing switching; then, use the sliding window counting method to count the number of data packet interactions of all interaction density values in the interaction density characteristics within the set time window (default is 5s), so as to construct all the data packet interaction times as an asymmetric matrix as the interaction density matrix of the ad hoc network during routing switching; finally, use the feature concatenation algorithm (for example: multi-modal fusion algorithm in machine learning) to unify the routing node indexes in the performance matrix and the interaction density matrix to generate the state vector of the ad hoc network as the state space of the ad hoc network during routing switching.
[0067] It should be noted that in this application, the state space represents a multi-dimensional feature set of the dynamic performance and topological relationship of all nodes in the ad hoc network; the relative distance matrix represents a symmetric distance quantization table of the physical connection relationship between nodes; the multi-dimensional matrix; the interaction density matrix represents a comprehensive feature matrix that fuses multiple indicators such as distance, energy, and link quality.
[0068] In step 103, during the routing switching process in the ad hoc network, collect the response delay information of the routing switching request, determine the path stability of each routing node in the ad hoc network during this routing switching through the response delay information, and then determine the routing working condition index of the ad hoc network in the current network according to all the path stabilities.
[0069] In some embodiments, the response delay information of a routing handover request can be collected during the routing handover process in an ad hoc network in the following manner: during the routing handover process in the ad hoc network, obtain the response delay and the number of path hops of each routing handover request from the console of the ad hoc network, so as to use the set of all response delays and the number of path hops as the response delay information of the routing handover request, where the response delay information represents the set of time delay data for the entire process from the sending to the receiving of the routing request; the response delay represents the end-to-end transmission time consumption of a single routing request; and the number of path hops represents the number of relay nodes that a data packet needs to pass through from the source node to the target node.
[0070] In some embodiments, determining the path stability of each routing node in the ad hoc network during the current routing handover through the response delay information can be achieved by the following steps:
[0071] For each routing node in the ad hoc network, obtain the response delay and the number of path hops of the switched path of the routing node during the current routing handover from the response delay information;
[0072] Determine the path stability of the routing node during the current routing handover through the response delay and the number of path hops, and thus obtain the path stability of each routing node in the ad hoc network during the current routing handover.
[0073] It should be noted that in this application, the path stability represents a comprehensive reliability quantification index of the transmission path under the constraints of time delay, link quality, and node energy; specifically, when implemented, first, for each routing node in the ad hoc network, obtain the response delay and the number of path hops of the switched path of the routing node during the current routing handover from the response delay information; then, use the product of the response delay and the natural logarithm of the number of path hops as the adjustment weight of the response delay, obtain the average path link quality of the routing node and the minimum remaining energy of the nodes in the path from the console of the ad hoc network, and thus preset the weight coefficients of the average path link quality and the minimum remaining energy in combination with historical experience, and thus calculate the result of dividing the weighted sum of the average path link quality and the minimum remaining energy by the adjustment weight as the path stability of the routing node during the current routing handover. Through the above method, the path stability of each routing node in the ad hoc network during the current routing handover can be obtained.
[0074] In some embodiments, determining the routing working condition index of the ad hoc network in the current network according to all the path stabilities can be achieved by the following steps:
[0075] Obtain the adjustment coefficient of the network stability of the ad hoc network in the current network;
[0076] Determine the first stability score and the second stability score of the ad hoc network according to all the path stabilities;
[0077] Determine the routing condition index of the ad hoc network in the current network based on the adjustment coefficient, the first stability score, and the second stability score.
[0078] It should be noted that in this application, the adjustment coefficient is a dynamic weight parameter used to balance the influence degrees of the mean and variance of path stability on the routing condition index; the first stability score is used to quantify the overall level of the reliability of the network-wide paths; the second stability score is used to reflect the fluctuation degree of path performance and the robustness of the network topology.
[0079] In specific implementation, first, obtain the adjustment coefficient of the network stability of the ad hoc network in the current network from the console of the ad hoc network; then, take the mean of all path stabilities as the first stability score of the ad hoc network, and take the variance of all path stabilities as the first stability score of the ad hoc network; finally, routing condition index = first stability score + adjustment coefficient * second stability score, and the routing condition index of the ad hoc network in the current network can be obtained through the above formula.
[0080] In step 104, when the routing condition index is lower than the preset condition threshold, trigger the real-time update of the routing table in the ad hoc network, and then perform incremental update on the routing table in the ad hoc network based on the reward function in the state space.
[0081] It should be noted that in this application, the condition threshold represents the quantization index of the critical state of network performance for triggering routing update. In specific implementation, the condition threshold can be obtained from the console of the ad hoc network. For improving the accuracy of judgment, it can also be manually modified in combination with historical experience.
[0082] In some embodiments, perform incremental update on the routing table in the ad hoc network based on the reward function in the state space. Refer to Figure 2 As shown, this figure is a schematic flow diagram of incremental update in some embodiments of this application. The incremental update in this embodiment can be implemented by the following steps:
[0083] In step 1041, for each routing node in the routing table of the ad hoc network, extract the incremental reward value of the path hop count in the routing node from the reward function in the state space;
[0084] In step 1042, perform greedy reward on the transmission path of the routing node through the incremental reward value, and then perform greedy reward on the transmission paths of each routing node in the routing table of the ad hoc network to complete the incremental update of the routing table in the ad hoc network.
[0085] In specific implementation, first, for each routing node in the routing table of the ad hoc network, obtain the reward value of the reward function in the state space as the incremental reward value of the number of hops in the routing node. This incremental reward value represents the quantization value of the improvement in the hop efficiency of the new path relative to the old path. Then, when the incremental reward value is greater than 0, use the greedy selection algorithm to select the path with the highest comprehensive reward value from the candidate paths to update and replace the routing table entry of the routing node. In this way, the transmission paths of each routing node in the routing table of the ad hoc network can be greedily rewarded, thereby completing the incremental update of the routing table in the ad hoc network.
[0086] In addition, on the other hand of the present application, in some embodiments, the present application provides a dynamic routing optimization system based on an ad hoc network. The dynamic routing optimization system based on an ad hoc network includes a routing update unit. Refer to Figure 3 , which is a schematic structural diagram of the routing update unit shown according to some embodiments of the present application. The routing update unit includes: a collection module 201, a processing module 202, and an execution module 203, which are described as follows:
[0087] The collection module 201. In the present application, the collection module 201 is mainly used to abstract the routing nodes of the ad hoc network into a graph structure to obtain the routing topology graph of the ad hoc network, and then collect the neighbor node information in the routing topology graph.
[0088] The processing module 202. In the present application, the processing module 202 is used to extract the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information, and construct the state space of the ad hoc network in routing switching through the performance characteristics of each routing node and the interaction density characteristics.
[0089] It should be noted that the processing module 202 is also used to collect the response delay information of the routing switch request during the routing switching process in the ad hoc network, determine the path stability of each routing node in the ad hoc network in this routing switching through the response delay information, and then determine the routing working condition index of the ad hoc network in the current network according to all the path stabilities.
[0090] The execution module 203. In the present application, the execution module 203 is mainly used to trigger the real-time update of the routing table in the ad hoc network when the routing working condition index is lower than the preset working condition threshold, and then perform an incremental update of the routing table in the ad hoc network based on the reward function in the state space.
[0091] The examples of the dynamic routing optimization method and system based on ad hoc network provided by the embodiments of the present application are introduced in detail above. It can be understood that, in order to implement the above functions, the corresponding device includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0092] In some embodiments, the present application further provides a computer device, which includes a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the above-mentioned dynamic routing optimization method based on ad hoc network.
[0093] In some embodiments, referring to Figure 4 , the dotted line in this figure indicates that the unit or the module is optional. This figure is a schematic structural diagram of a computer device for implementing the dynamic routing optimization method based on ad hoc network provided by the embodiments of the present application. The above-mentioned dynamic routing optimization method based on ad hoc network in the above embodiments can be implemented by Figure 4 the computer device shown. The computer device includes at least one processor 301, a memory 302, and at least one communication unit 305. The computer device can be a terminal device, a server, or a chip.
[0094] The processor 301 can be a general-purpose processor or a special-purpose processor. For example, the processor 301 can be a central processing unit (CPU). The CPU can be used to control the computer device, execute software programs, and process the data of software programs. The computer device can also include a communication unit 305 for implementing signal input (reception) and output (transmission).
[0095] For example, the computer device can be a chip, and the communication unit 305 can be the input and / or output circuit of the chip, or the communication unit 305 can be the communication interface of the chip. The chip can be used as a component of a terminal device, a network device, or other devices.
[0096] Again, for example, the computer device can be a terminal device or a server, and the communication unit 305 can be the transceiver of the terminal device or the server, or the communication unit 305 can be the transceiver circuit of the terminal device or the server.
[0097] The computer device may include one or more memories 302, on which a program 304 is stored. The program 304 can be run by the processor 301 to generate instructions 303, enabling the processor 301 to execute the methods described in the above method embodiments according to the instructions 303. Optionally, data (such as a target audit model) may also be stored in the memory 302. Optionally, the processor 301 may also read the data stored in the memory 302. This data may be stored at the same storage address as the program 304, or it may be stored at a different storage address from the program 304.
[0098] The processor 301 and the memory 302 can be set separately or integrated together. For example, they can be integrated on a system on chip (SOC) of a terminal device.
[0099] It should be understood that each step of the above method embodiments can be completed by a logic circuit in the form of hardware or instructions in the form of software in the processor 301. The processor 301 can be a CPU, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices. For example, discrete gates, transistor logic devices, or discrete hardware components.
[0100] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0101] For example, in some embodiments, the present application also provides a computer-readable storage medium, in which instructions or codes are stored. When the instructions or codes are run on a computer, the computer is enabled to implement the above-described dynamic routing optimization method based on an ad hoc network.
[0102] Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concepts. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0103] Obviously, those skilled in the art can make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, this application is also intended to cover these changes and modifications.
Claims
1. A dynamic routing optimization method based on an ad hoc network, characterized in that, Including the following steps: Abstract the routing nodes of the ad hoc network into a graph structure to obtain the routing topology graph of the ad hoc network, and then collect the neighbor node information in the routing topology graph; Extract the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information, and construct the state space of the ad hoc network in routing handover through the performance characteristics of each routing node and the interaction density characteristics; Collect the response delay information of the routing handover request during the routing handover of the ad hoc network, determine the path stability of each routing node in the ad hoc network during this routing handover through the response delay information, and then determine the routing working condition index of the ad hoc network in the current network according to all the path stabilities; When the routing working condition index is lower than the preset working condition threshold, trigger the real-time update of the routing table in the ad hoc network, and then perform incremental update on the routing table in the ad hoc network based on the reward function in the state space.
2. The method according to claim 1, wherein The extraction of the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information specifically includes: For each routing node in the routing topology graph, extract the historical performance mean of each performance parameter in the routing node from the pre-collected historical performance data; Determine the performance characteristics of the routing node through all the historical performance means, and then obtain the performance characteristics of each routing node in the routing topology graph; For each group of neighbor nodes in the neighbor node information, obtain all the interaction intervals between the neighbor nodes within a specified time period; Determine the interaction density value of the neighbor nodes through all the interaction intervals, and then obtain the interaction density value of each group of neighbor nodes in the neighbor node information; Determine the interaction density characteristics in the neighbor node information according to all the interaction density values.
3. The method according to claim 2, wherein The performance parameters include the routing node location, remaining energy, and link quality of the routing node.
4. The method according to claim 1, characterized in that The construction of the state space of the ad hoc network in routing handover through the performance characteristics of each routing node and the interaction density characteristics specifically includes: Convert the node locations of each routing node into a relative distance matrix; Normalize the remaining energy and link quality of each performance characteristic and integrate them into the relative distance matrix, and then obtain the multi-dimensional matrix of the performance characteristics of the ad hoc network in routing handover; Generate the interaction density matrix of the ad hoc network in routing handover through the interaction density characteristics; Fuse the multi-dimensional matrix of the performance characteristics and the interaction density matrix into the state space of the ad hoc network in routing handover.
5. The method according to claim 1, wherein The determination of the path stability of each routing node in the ad hoc network during this routing handover through the response delay information specifically includes: For each routing node in the ad hoc network, obtain the response delay and path hops of the switching path of the routing node during this routing handover from the response delay information; Determine the path stability of the routing node during this routing handover through the response delay and the path hops, and then obtain the path stability of each routing node in the ad hoc network during this routing handover.
6. The method according to claim 1, wherein The determination of the routing working condition index of the ad hoc network in the current network according to all the path stabilities specifically includes: Obtain the adjustment coefficient of the network stability of the ad hoc network in the current network; Determine the first stability score and the second stability score of the ad hoc network according to all path stabilities; Determine the routing working condition index of the ad hoc network in the current network through the adjustment coefficient, the first stability score and the second stability score.
7. The method according to claim 1, characterized in that, The incremental update of the routing table in the ad hoc network based on the reward function in the state space specifically includes: For each routing node in the routing table of the ad hoc network, extract the incremental reward value of the path hop count in the routing node from the reward function in the state space; Perform greedy reward on the transmission path of the routing node through the incremental reward value, and then perform greedy reward on the transmission paths of each routing node in the routing table of the ad hoc network to complete the incremental update of the routing table in the ad hoc network.
8. A dynamic routing optimization system based on an ad hoc network. The dynamic routing optimization system based on an ad hoc network includes a routing update unit, and is characterized in that, The routing update unit includes: An acquisition module, configured to abstract the routing nodes of the ad hoc network into a graph structure to obtain the routing topology graph of the ad hoc network, and then acquire the neighbor node information in the routing topology graph; A processing module, configured to extract the performance characteristics of each routing node in the routing topology graph and the interaction density characteristics in the neighbor node information, and construct the state space of the ad hoc network in routing switching through the performance characteristics of each routing node and the interaction density characteristics; The processing module is further configured to acquire the response delay information of the routing switch request during the routing switch process of the ad hoc network, determine the path stability of each routing node in the ad hoc network in this routing switch through the response delay information, and then determine the routing working condition index of the ad hoc network in the current network according to all the path stabilities; An execution module, configured to trigger the real-time update of the routing table in the ad hoc network when the routing working condition index is lower than a preset working condition threshold, and then perform an incremental update of the routing table in the ad hoc network based on the reward function in the state space.
9. A computer device, characterized in that, The computer device includes a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the computer device executes the dynamic routing optimization method based on the ad hoc network according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Instructions or codes are stored in the computer-readable storage medium. When the instructions or codes are run on a computer, the computer is caused to execute the dynamic routing optimization method based on the ad hoc network according to any one of claims 1 to 7.
Citation Information
Patent Citations
Routing method adapting to make-and-break connection data transmission of spatial network link
CN106059920A
Inter-vehicle communication routing method based on node familiarity model
CN110446185A