Data routing method, device and equipment of flight ad hoc network, medium and product

By decoupling the control packets and data packets of the flying ad hoc network routing protocol, the destination MAC address is quickly determined and processed accordingly, which reduces data transmission delays, reduces the burden on the central processor, and solves the problem of traditional routing protocols in highly dynamic environments. It solves the delay problem and optimizes data transmission under the condition of insufficient UAV terminal resources.

CN118764930AActive Publication Date: 2024-10-11PURPLE MOUNTAIN LAB

Patent Information

Application Number
CN202410964460.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-11
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Traditional wireless ad hoc network routing protocols are not applicable in the highly dynamic environment of flight ad hoc networks, resulting in long forwarding delays at intermediate nodes and unable to meet the low latency requirements of drone services.

Method used

By receiving the target routing protocol message sent by the networking node for decoupling processing, the destination MAC address is determined and the target data message is extracted. If the destination MAC address corresponds to the current node, the process is processed. Otherwise, the central processor extracts the routing table entry as the next One-hop node MAC address, and configure the rate of data packets to optimize forwarding.

Benefits of technology

It reduces data transmission delays and waiting times, improves the utilization efficiency of network resources, reduces the burden on the central processor, adapts to the conditions of insufficient UAV terminal resources and energy constraints, and ensures the stability and accuracy of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764930A_ABST
    Figure CN118764930A_ABST
Patent Text Reader

Abstract

The invention discloses a flight ad hoc network data routing method and device, equipment, a medium and a product, and relates to the technical field of flight ad hoc networks, and the method comprises the steps: receiving a target routing protocol message sent by a networking node, and carrying out the decoupling processing of the target routing protocol message, so as to extract a target data message; judging whether the target MAC address of the target data message corresponds to the current networking node or not; if the destination MAC address corresponds to the current networking node, uploading the target data message to a central processing unit of the current networking node for processing; if the destination MAC address does not correspond to the current networking node, extracting a currently changed routing table entry as a node MAC address of a next hop networking node of the target data message through the central processing unit; and performing rate configuration and message header modification on the target data message to obtain a to-be-forwarded target data message, and sending the to-be-forwarded target data message to the node MAC address to complete message forwarding of the to-be-forwarded target data message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of flying ad hoc networks, and in particular to a data routing method, device, equipment, medium and product for flying ad hoc networks. Background Art

[0002] With the development of wireless communication technology and Internet of Things technology, wireless networks and various mobile devices have gradually been integrated into people's daily lives. FANET (Flying Ad Hoc Network) is the product of the combination of sensor technology, wireless communication technology, unmanned aerial vehicles and MANET (Mobile Ad Hoc Network) technology. It is a highly dynamic mobile self-organizing network. With the increasing popularity of drones in all walks of life, researchers have gradually increased their research on FANET. Although FANET originated from MANET, it is significantly different from MANET. Specifically, it can be summarized as follows: strong node mobility and frequent changes in network topology; low node density; long distance between nodes; more types of sensors contained in nodes and complex equipment; complex network protocols and high performance requirements. In particular, the prominent feature of fast changes in network topology makes some traditional protocols no longer applicable in the highly dynamic environment of FANET. Based on the above reasons, finding a solution that is more suitable for the high dynamic changes in network topology has become the mainstream direction of current research on FANET.

[0003] FANET is more special than traditional MANET due to the fast node movement and rapid changes in network topology. Some traditional protocols are no longer applicable in highly dynamic environments. In addition, the service characteristics of drones determine that the routing protocols used on drones need to have higher requirements for link latency. If traditional MANET routing protocols are directly applied to FANET, service or protocol failures may occur due to response message timeouts, and this problem is particularly prominent in self-organizing networks that support forwarding at multiple nodes. Therefore, it is crucial to improve the existing wireless self-organizing network routing protocols and reduce the forwarding latency of intermediate nodes to adapt to the highly dynamic environment of flying self-organizing networks and the low latency requirements of drone services. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a data routing method, device, equipment, medium and product for a flying ad hoc network, which can reduce the forwarding delay of intermediate nodes, thereby adapting to the high dynamic environment of the flying ad hoc network and the low delay requirements of drone services. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a data routing method for a flight ad hoc network, comprising:

[0006] Receive a target routing protocol message sent by a networking node, and perform decoupling processing on the target routing protocol message to extract a target data message;

[0007] Determine whether the destination MAC address of the target data message corresponds to the current networking node;

[0008] If the destination MAC address corresponds to the current networking node, uploading the target data message to the central processor of the current networking node for processing;

[0009] If the destination MAC address does not correspond to the current networking node, extracting the currently changed routing table entry as the node MAC address of the next hop networking node of the target data message through the central processor;

[0010] The target data message is rate configured to modify the message header of the target data message to obtain the target data message to be forwarded, and the target data message to be forwarded is sent to the node MAC address to complete the message forwarding of the target data message to be forwarded.

[0011] Optionally, the receiving a target routing protocol message sent by the networking node, and performing decoupling processing on the target routing protocol message to extract a target data message, includes:

[0012] Receiving routing protocol messages sent by networking nodes through a field programmable logic gate array;

[0013] Determining whether the routing protocol message is a flight ad hoc network routing protocol message;

[0014] If not, uploading the routing protocol message as a non-target routing protocol message to the central processor for parsing and processing;

[0015] If yes, the routing protocol message is used as the target routing protocol message, and the target routing protocol message is decoupled to extract the target data message and the target control message, and the target control message is sent to the central processor for routing table entry extraction processing;

[0016] Correspondingly, the determining whether the destination MAC address of the target data message corresponds to the current networking node includes:

[0017] Perform message format check and message integrity check on the target data message, and determine whether the destination MAC address of the target data message after verification corresponds to the current networking node.

[0018] Optionally, if the destination MAC address corresponds to the current networking node, uploading the target data message to a central processor of the current networking node for processing includes:

[0019] If the destination MAC address of the verified target data message corresponds to the current networking node, the verified target data message is uploaded to the central processor of the current networking node for parsing and processing.

[0020] Optionally, the data routing method of the flight ad hoc network further includes:

[0021] Extracting, by the central processor, routing table information in the target control message corresponding to the verified target data message as the current routing table;

[0022] Query the table entry information corresponding to the addition, deletion, and modification between the current routing table and the historical routing table to obtain the current changed routing table entry, and update the table entry information in the historical routing table to obtain the updated routing table, and use the updated routing table as the historical routing table when the next control message queries the table entry;

[0023] The currently changed routing table entry is used as the node MAC address of the next hop networking node of the verified target data message.

[0024] Optionally, extracting, by the central processor, routing table information in the target control message corresponding to the verified target data message as the current routing table includes:

[0025] The central processing unit extracts the routing table information contained in the source node list in the target control message corresponding to the verified target data message, and writes it into a new routing table as the current routing table in a bidirectional linked list format; wherein the source node list records all other networking nodes that have established connections with the current networking node, and the data structure of each current networking node stores the best networking node to reach the current networking node.

[0026] Optionally, the configuring a rate of the target data message to modify a message header of the target data message to obtain a target data message to be forwarded includes:

[0027] Set the initial transmission rate according to the node performance parameters of the current networking nodes;

[0028] The initial transmission rate is adjusted according to external communication environment factors between the current networking node and the next hop networking node to determine a target transmission rate;

[0029] The target data message is rate-configured according to the target transmission rate to modify the message header of the target data message to obtain the target data message to be forwarded.

[0030] In a second aspect, the present application discloses a data routing device for a flight ad hoc network, comprising:

[0031] A message decoupling module is used to receive a target routing protocol message sent by a networking node, and perform decoupling processing on the target routing protocol message to extract a target data message;

[0032] An address determination module, used to determine whether the destination MAC address of the target data message corresponds to the current networking node;

[0033] A first processing module, configured to upload the target data message to a central processor of the current networking node for processing if the destination MAC address corresponds to the current networking node;

[0034] A second processing module is used for extracting the currently changed routing table entry as the node MAC address of the next hop networking node of the target data message through the central processor if the destination MAC address does not correspond to the current networking node;

[0035] The message forwarding module is used to configure the rate of the target data message to modify the message header of the target data message to obtain the target data message to be forwarded, and send the target data message to be forwarded to the node MAC address to complete the message forwarding of the target data message to be forwarded.

[0036] In a third aspect, the present application discloses an electronic device, comprising:

[0037] Memory, used to store computer programs;

[0038] A processor is used to execute the computer program to implement the steps of the aforementioned disclosed flying ad hoc network data routing method.

[0039] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the data routing method of the flying ad hoc network disclosed above are implemented.

[0040] In a fifth aspect, the present application discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of data routing of the aforementioned flight ad hoc network disclosed above.

[0041] It can be seen that the present application discloses a data routing method for flying self-organizing networks, including: receiving a target routing protocol message sent by a networking node, and decoupling the target routing protocol message to extract a target data message; judging whether the destination MAC address of the target data message corresponds to the current networking node; if the destination MAC address corresponds to the current networking node, uploading the target data message to the central processor of the current networking node for processing; if the destination MAC address does not correspond to the current networking node, extracting the currently changed routing table entry as the node MAC address of the next-hop networking node of the target data message through the central processor; performing rate configuration on the target data message to modify the message header of the target data message to obtain a target data message to be forwarded, and sending the target data message to be forwarded to the node MAC address to complete the message forwarding of the target data message to be forwarded. It can be seen that by decoupling the control message and data message of the flight ad hoc network routing protocol, the delay and waiting time in data transmission are reduced by quickly and accurately judging the destination MAC address and performing corresponding processing, and the data processing and forwarding path are determined according to the judgment of the destination MAC address. It is not necessary to upload all messages to the central processor for parsing and judgment processing. Instead, when judging the destination MAC address, the data message that needs to be directly forwarded is judged and forwarded accordingly, so that network resources can be allocated more efficiently and the burden on the central processor is reduced. Energy consumption is reduced, and it is more suitable for deployment and optimization under conditions of insufficient resources and harsh energy constraints of drone terminals. The rate configuration and message header modification of the target data message help ensure the stability and accuracy of data transmission between different nodes. When the network environment of the drone terminal is unstable, the rate can be adjusted to reduce the packet loss rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] 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.

[0043] Figure 1 A flow chart of a data routing method for a flight ad hoc network disclosed in this application;

[0044] Figure 2 The composition architecture of a batman-adv-based flight ad hoc network routing protocol improvement method disclosed in this application;

[0045] Figure 3 A logic flow chart of a flight ad hoc network route extraction module disclosed in this application;

[0046] Figure 4 A flowchart of a method for improving a flight ad hoc network routing protocol based on batman-adv disclosed in this application;

[0047] Figure 5 This is a schematic diagram of the structure of a data routing device for a flight ad hoc network disclosed in the present application;

[0048] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. 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 making creative work are within the scope of protection of the present invention.

[0050] With the development of wireless communication technology and Internet of Things technology, wireless networks and various mobile devices have gradually been integrated into people's daily lives. Mobile ad hoc network (MANET) is one of the technologies emerging in the development of wireless communication networks. MANET is a centerless, multi-hop, temporary self-organizing network formed by a series of mobile terminal nodes with routing functions interconnected by wireless links. MANET's networking mode is flexible and changeable, breaking through the geographical limitations of traditional wireless networks and enabling faster, more convenient and efficient deployment. After decades of development, MANET has been applied in many fields, and MANET has derived many new networks for different application scenarios in various fields. Flying Ad Hoc Network (FANET) is one of the most widely used ones.

[0051] FANET is a product of the combination of sensor technology, wireless communication technology, unmanned aerial vehicles and MANET technology. It is a highly dynamic mobile self-organizing network. With the increasing popularity of drones in all walks of life, researchers are gradually increasing their research on FANET. Although FANET originated from MANET, it is significantly different from MANET, which can be summarized as follows: strong node mobility and frequent changes in network topology; low node density; long distance between nodes; more types of sensors contained in nodes and complex equipment; complex network protocols and high performance requirements. In particular, the outstanding feature of fast changes in network topology makes some traditional protocols no longer applicable in the highly dynamic environment of FANET. Based on the above reasons, finding a solution that is more suitable for the highly dynamic changes in network topology has become the mainstream direction of current research on FANET.

[0052] Batman-adv (better approach to mobile ad-hoc networking advanced) is an a priori link state routing protocol that works at the data link layer. Nodes are identified by MAC addresses instead of traditional IP (Internet Protocol) addresses. The batman-adv protocol relies on each node to periodically send OGM (Originator Messages) messages to inform other nodes around it of its own status. It is also used to discover new nodes and maintain links. The purpose of the batman-adv protocol is to find the best next-hop node. Each batman-adv node does not maintain global routing information, but only maintains the destination node that can be reached and the best next node to reach the destination node. And for each destination node, the batman-adv protocol will calculate and maintain the TQ (Transmission Quality) to reach the node. Each node selects the neighbor node with the best link quality as the next-hop node according to the TQ value. The working principle of batman-adv determines that the protocol has the characteristics of high transparency, strong scalability, and fast convergence speed, so it is widely used in traditional wireless ad hoc networks.

[0053] FANET is more special than traditional MANET due to the fast node movement and rapid changes in network topology. Some traditional protocols are no longer applicable in highly dynamic environments. In addition, the business characteristics of drones determine that the routing protocols used on drones need to have higher requirements for link latency. If traditional MANET routing protocols are directly applied to FANET, service or protocol failures may occur due to response message timeouts. This problem is particularly prominent in self-organizing networks that support forwarding at multiple nodes.

[0054] To this end, the present invention provides a data routing solution for a flying ad hoc network, which can reduce the forwarding delay of intermediate nodes, thereby adapting to the high dynamic environment of the flying ad hoc network and the low delay requirements of UAV services.

[0055] Reference Figure 1 As shown, an embodiment of the present invention discloses a data routing method for a flying ad hoc network, comprising:

[0056] Step S11: receiving a target routing protocol message sent by a networking node, and performing decoupling processing on the target routing protocol message to extract a target data message.

[0057] In this embodiment, a routing protocol message sent by a networking node is received through a field programmable logic gate array; it is determined whether the routing protocol message is a flying ad hoc network routing protocol message; if not, the routing protocol message is uploaded to the central processing unit as a non-target routing protocol message for parsing; if so, the routing protocol message is used as a target routing protocol message, and the target routing protocol message is decoupled to extract the target data message and the target control message, and the target control message is sent to the central processing unit for routing table entry extraction processing. It can be understood that the routing protocol message sent by the networking node in the flying self-organizing network is received through the field programmable logic gate array, wherein the received routing protocol message may be a routing message of the batman-adv protocol category, or may not be a routing message of the batman-adv protocol category. If it is not a routing message of the batman-adv protocol category, it is determined as a non-target routing protocol message and uploaded to the CPU (Central Processing Unit) of the current node for parsing and processing. If it is a routing message of the batman-adv protocol category, it is determined as a target routing protocol message and directly decoupled through the field programmable logic gate array to decouple the target data message and the target control message. It should be noted that the decoupled target control message contains the routing information about the target data message, so all target control messages need to be uploaded to the CPU of the current node for routing information change extraction and processing.

[0058] In this embodiment, refer to Figure 2 As shown, the flight ad hoc network includes a batman-adv route extraction module (referred to as the route extraction module), a switch module, an FPGA, a CPU, a batman-adv message processing, a register, a wireless transceiver interface, and a message rate control module, wherein the route extraction module is deployed on the batman-adv protocol stack, the protocol stack and the switch module are both located on the CPU, and the batman-adv message processing, the register, the wireless transceiver interface, and the message rate control module are all located on the field programmable logic gate array FPGA, wherein the register is used to store the routing table and rate information. In this way, the flight ad hoc network uses the central processing unit CPU and the field programmable logic gate array FPGA as the hardware architecture, and the CPU is responsible for processing the messages that need to be parsed, while the batman-adv data messages that do not need to be parsed are directly forwarded by the FPGA, thereby realizing the decoupling, processing, and forwarding of the control messages and data messages of the batman-adv protocol.

[0059] Step S12: Determine whether the destination MAC address of the target data message corresponds to the current networking node.

[0060] In this embodiment, the target data message is subjected to a message format check and a message integrity check, and it is determined whether the destination MAC (Media Access Control) address of the target data message after the check corresponds to the current networking node. The FPGA further performs a format check and a verification on the target data message (batman data message), specifically, it checks the payload length field recorded in the 8021 frame, checks whether the MAC address is valid, and checks whether the destination MAC address is the current networking node. After passing the above-mentioned format check and payload integrity check, the verified target data message is obtained, and it is determined whether the destination MAC address of the verified target data message corresponds to the current networking node.

[0061] Step S13: If the destination MAC address corresponds to the current networking node, the target data message is uploaded to the central processor of the current networking node for processing.

[0062] In this embodiment, if the destination MAC address of the verified target data message corresponds to the current networking node, the verified target data message is uploaded to the central processing unit of the current networking node for parsing. It can be understood that when the destination MAC address corresponds to the current networking node, it indicates that the current networking node where the target data message is located is the last routing node in the routing process of the target data message, and it does not need to be forwarded to other networking nodes, and it is directly uploaded to the CPU of the current networking node for the corresponding subsequent processing of the message.

[0063] Step S14: If the destination MAC address does not correspond to the current networking node, the central processor extracts the currently changed routing table entry as the node MAC address of the next hop networking node of the target data message.

[0064] In this embodiment, if the destination MAC address does not correspond to the current networking node, it indicates that the current networking node where the target data message is located is still an intermediate node, and it is necessary to continue to find the next-hop networking node. Therefore, the central processor extracts the routing table information in the target control message corresponding to the verified target data message as the current routing table; queries the table entry information corresponding to the addition, deletion, and modification between the current routing table and the historical routing table to obtain the current changed routing table entry, and updates the table entry information in the historical routing table to obtain the updated routing table, and uses the updated routing table as the historical routing table when the next control message queries the table entry; uses the current changed routing table entry as the node MAC address of the next-hop networking node of the verified target data message. It can be understood that if Figure 2As shown, the routing extraction module running in the CPU extracts the routing table in the batman-adv protocol and maintains it in real time, compares the table entries of each routing table change, and sends it to the FPGA as the destination address of the FPGA forwarding the batman-adv data message. The switch module of the read and write registers in the CPU opens the switch driver interface. Batman-adv and other kernel modules can call the switch interface to read and write data (changed routing table entry information) to the specified area of ​​the FPGA to realize data interaction between the CPU and the FPGA. It can be seen that the batman-adv protocol can speed up the message processing speed by forwarding through the FPGA instead of uploading to the CPU, thereby reducing the forwarding delay and adapting to the highly dynamic and weakly linked flying self-organizing network environment.

[0065] In this embodiment, the routing extraction module uses a bidirectional linked list to store the extracted routing table information. Compare with the old routing table, extract the modified information, and send it to the FPGA side. The specific processing flow is as follows: Figure 3 As shown. The time complexity of inserting, modifying and deleting linked lists is o(n), and the length is flexible, which is suitable for scenarios where the routing table is frequently changed in a highly dynamic weak link environment. The storage structure of new_router_list and old_router_list are both bidirectional ordered linked lists, arranged in ascending order of the destination MAC address. Under the premise of a bidirectional ordered linked list, the double pointer algorithm can be used to compare new_router_list and old_router_list to find the location of the modification and record it, with a time complexity of o(n). change_router_list is an array, in which the nodes are divided into three categories: add, delete and modify, and all of them are accompanied by the node information that needs to be changed. Select the operation mode according to the type, operate the FPGA, and realize the update and maintenance of the routing table. The routing table extraction module first stores the extracted source node list and routing nodes into the new_router_list table; secondly, it sorts the new_router_list; thirdly, if it is the first extraction, the entire table is sent to the FPGA; if not, the difference between the new table and the old table is compared and the changed table items are sent; the new_router_list and the old_router_list are exchanged, the new_router_list is released, and the extraction process of the batman-adv routing table is completed.

[0066] The linked list data structures for new_router_list and old_router_list are defined as:

[0067] typedef struct pml_batman_route_table {

[0068] struct list_head pml_batman_router;

[0069] u8 dst_mac[ETH_ALEN];

[0070] u8 router_mac[ETH_ALEN];

[0071] u8 ttvn;

[0072] } pml_batman_route_table_t;

[0073] Among them, pml_batman_router is the linked list pointer, dst_mac is the destination MAC address, router_mac is the next hop MAC address, and ttvn is the current routing table version number. change_router_list is an array data structure defined as:

[0074] typedef struct pml_batman_route_change {

[0075] u8 change_type;

[0076] u8 dst_mac[ETH_ALEN];

[0077] u8 router_mac[ETH_ALEN];

[0078] u8 ttvn;

[0079] } pml_batman_route_change_t;

[0080] Among them, dst_mac, router_mac, ttvn are the information that needs to be modified. Change_type is the operation type, which includes add, delete and modify. The design of the route extraction module interface is shown in Table 1 below:

[0081] Table 1

[0082]

[0083] The switch kernel module that reads and writes registers in the CPU opens the switch driver interface. Batman-adv and other kernel modules can call the switch interface to read and write data to the specified area of ​​FPGA, thereby realizing data interaction between the CPU and FPGA.

[0084] The configuration in the register is shown in Table 2 below. The switch module writes data to the specified location in the register according to the following format:

[0085] Table 2

[0086]

[0087] In this embodiment, the central processing unit extracts the routing table information contained in the source node list in the target control message corresponding to the verified target data message, and writes it into a new routing table as the current routing table in a bidirectional linked list format; wherein, the source node list records all other networking nodes that have established connections with the current networking node, and the data structure of each current networking node stores the best networking node to reach the current networking node.

[0088] The route extraction module is used to maintain and update the routing table. When the batman-adv protocol is running, a source node list is maintained, which includes all other batman-adv nodes that can establish links with the current networking node, and each node data structure stores the best routing node that can reach the node. The route extraction module monitors the source node list of the batman-adv protocol and the changes in the best routing nodes of each node in real time. Once the source node list is sent or the routing node of a source node changes, the changed node information is sent to the routing table stored in the register. The register in the FPGA opens up an area to store the routing table information sent by the CPU. There is a mapping relationship between the source node MAC address of the table and the register address. The register address corresponding to the source node can be found through mapping. The register stores the best routing node of the source node. For the FPGA, when it is necessary to forward a data message, the register corresponding to the destination MAC address in the batman-adv message header is searched, and the routing node MAC address in the register is taken out, which is the next hop node address that the FPGA needs to forward. Design the switch driver, compile it into a kernel module, and load the switch kernel module on the CPU to read and write registers, so that the CPU and FPGA have a data exchange channel. The switch module interface can be used by other kernel modules. For the batman-adv protocol, the switch driver interface can be called to write routing table information into the register, so that the FPGA can find the node MAC address of the next hop networking node when forwarding the message.

[0089] Step S15: rate configure the target data message to modify the message header of the target data message to obtain the target data message to be forwarded, and send the target data message to be forwarded to the node MAC address to complete message forwarding of the target data message to be forwarded.

[0090] In this embodiment, the initial transmission rate is set according to the node performance parameters of the current networking node; the initial transmission rate is adjusted according to the external communication environment factors between the current networking node and the next hop networking node to determine the target transmission rate; the target data message is rate configured according to the target transmission rate to modify the message header of the target data message to obtain the target data message to be forwarded. It can be understood that when the FPGA forwards the target data message, it is necessary to select a suitable target transmission rate for hardware forwarding. Specifically, the message rate control module of the FPGA dynamically adjusts the initial transmission rate stored in the message rate control module of the FPGA according to the external communication environment factors such as the distance between the perceived networking nodes and the electromagnetic environment to obtain the final target transmission rate, wherein the initial transmission rate is set according to the node performance parameter information such as the current networking node transmission power, the frequency band used, the throughput rate, and whether the packet is successfully sent and received. The PHY and control information required for forwarding the batman-adv message are shown in Table 3 below:

[0091] Table 3

[0092]

[0093]

[0094] The basic algorithm of the message rate control module can be described as follows: First, the rate control module chooses to start sending at an initial rate. If two replies or successful messages are not received in succession, the subsequent packets are sent at a lower rate. If 10 successful replies are received in succession, the subsequent messages are sent at an increased rate. The advantage of this algorithm is that it has low computational complexity, low performance requirements, and is easy to implement in firmware. However, the disadvantage of this algorithm is that it cannot respond to changes in channel conditions in a timely manner and cannot quickly adjust to the optimal rate. Therefore, in the forwarding rate control module in the FPGA of the present invention, parameters such as distance and electromagnetic environment are added as channel state measurement indicators for adjustment and improvement. Set the channel state indicator threshold gear. If the gear threshold is exceeded and 10 successful replies are maintained, the rate gear is increased by one gear. If it is lower than the gear threshold, the rate gear is reduced by one gear. The sending rate is adjusted in time according to the environment.

[0095] Reference Figure 4 As shown, the present invention discloses a method for improving a flight ad hoc network routing protocol based on batman-adv. The overall operation process of the new batman-adv routing protocol supporting hardware forwarding is:

[0096] According to the batman-adv protocol principle, the routing extraction module decouples the processing flow of data messages and control messages, extracts the routing table used by the batman-adv data message, and updates the change table items of the routing table in real time; the routing extraction module calls the switch module interface to send the updated table items to the register in the FPGA for storage; after receiving the batman-adv data message, the FPGA parses the batman-adv data message that can be directly forwarded, and determines the next hop MAC address of the forwarded message according to the batman-adv routing table saved in the register; the FPGA modifies the destination MAC address in the 802.11 protocol of the message, selects the best rate according to the forwarding rate control module, and finally sends the modified forwarding message to the RF chip for transmission. It can be seen that by using the computing power of the FPGA, the processing flow of some batman-adv data messages that need to be forwarded is moved down to the FPGA, and the FPGA module directly processes and forwards them instead of sending them to the CPU for processing, thereby speeding up the batman-adv protocol message processing speed, thereby reducing the forwarding delay, and adapting to the high-dynamic, weak-link flying ad hoc network environment.

[0097] Among them, the operation process in FPGA is as follows: after receiving the message, FPGA parses the message and first determines whether it is a batman-adv protocol data message. Specifically, it determines whether the value of the type field of the LLC frame (Logical Link Control) is 0xc4305. If so, it enters the next type field check process, and if not, it sends it to the CPU; then, it checks whether the type field of the Batman frame is 0x40. If so, FPGA performs format check and verification on the received Batman data message, and performs the batman-adv frame processing process after passing; if not, it directly sends it to the CPU; again, it determines whether the destination MAC address of the data message is the current node. If not, it enters the forwarding process, and if so, it sends it to the CPU for processing; after entering the forwarding process, FPGA searches for the MAC address of the next-hop routing node in the register according to the destination MAC address. If it is found, it starts forwarding, otherwise it discards the message; when forwarding, the data message is frame modified, the mac address is re-filled, the appropriate transmission rate is selected, and hardware forwarding is performed.

[0098] Operation process in the CPU: The batman-adv protocol stack in the CPU processes the control message after receiving it, and updates the routing table and source node list; the routing extraction module extracts the changed routing table items; the routing extraction module calls the switch module interface to update the routing table items to the specified address of the register in the FPGA.

[0099] The routing table extraction module running in the batman-adv protocol extracts the routing table in the batman-adv protocol and maintains it in real time, compares the table items of each routing table change, and sends them to the FPGA as the destination address of the batman-adv data message forwarded by the FPGA.

[0100] The switch kernel module that reads and writes registers in the CPU opens the switch driver interface. Batman-adv and other kernel modules can call the switch interface to read and write data to the specified area of ​​FPGA, thereby realizing data interaction between the CPU and FPGA.

[0101] The FPGA module processes the message. For the received data packets, it parses the message header, distinguishes the protocol type and message type, and directly forwards them if the conditions are met, otherwise it sends them to the CPU for processing. For the sent data packets, it modifies the message header information, configures the rate, and completes the sending.

[0102] After receiving the message, FPGA parses the message and first determines whether it is a batman-adv protocol data message. If not, it sends it to the CPU. Secondly, FPGA performs format check and verification on the received batman data message. If it passes, it performs batman-adv frame processing. Thirdly, it determines whether the destination MAC address of the data message is this node. If not, it enters the forwarding process. If so, it sends it to the CPU for processing. After entering the forwarding process, FPGA searches for the MAC address of the next routing node in the register according to the destination MAC address. If it is found, it starts forwarding, otherwise it discards the message. When forwarding, the data message is frame modified, the MAC address is re-filled, the appropriate transmission rate is selected, and hardware forwarding is performed.

[0103] The FPGA forwarding rate control module dynamically adjusts the FPGA forwarding rate based on the perceived distance, electromagnetic environment, etc., and selects the optimal transmission rate.

[0104] It can be seen that the present application discloses a data routing method for flying self-organizing networks, including: receiving a target routing protocol message sent by a networking node, and decoupling the target routing protocol message to extract a target data message; judging whether the destination MAC address of the target data message corresponds to the current networking node; if the destination MAC address corresponds to the current networking node, uploading the target data message to the central processor of the current networking node for processing; if the destination MAC address does not correspond to the current networking node, extracting the currently changed routing table entry as the node MAC address of the next-hop networking node of the target data message through the central processor; performing rate configuration on the target data message to modify the message header of the target data message to obtain a target data message to be forwarded, and sending the target data message to be forwarded to the node MAC address to complete the message forwarding of the target data message to be forwarded. It can be seen that by decoupling the control message and data message of the flight ad hoc network routing protocol, the delay and waiting time in data transmission are reduced by quickly and accurately judging the destination MAC address and performing corresponding processing, and the data processing and forwarding path are determined according to the judgment of the destination MAC address. It is not necessary to upload all messages to the central processor for parsing and judgment processing. Instead, when judging the destination MAC address, the data message that needs to be directly forwarded is judged and forwarded accordingly, so that network resources can be allocated more efficiently and the burden on the central processor is reduced. Energy consumption is reduced, and it is more suitable for deployment and optimization under conditions of insufficient resources and harsh energy constraints of drone terminals. The rate configuration and message header modification of the target data message help ensure the stability and accuracy of data transmission between different nodes. When the network environment of the drone terminal is unstable, the rate can be adjusted to reduce the packet loss rate.

[0105] Reference Figure 5 As shown, the embodiment of the present invention discloses a data routing device for a flying ad hoc network, comprising:

[0106] The message decoupling module 11 is used to receive the target routing protocol message sent by the networking node, and perform decoupling processing on the target routing protocol message to extract the target data message;

[0107] An address determination module 12 is used to determine whether the destination MAC address of the target data message corresponds to the current networking node;

[0108] The first processing module 13 is used to upload the target data message to the central processor of the current networking node for processing if the destination MAC address corresponds to the current networking node;

[0109] The second processing module 14 is used for extracting the currently changed routing table entry as the node MAC address of the next hop networking node of the target data message through the central processor if the destination MAC address does not correspond to the current networking node;

[0110] The message forwarding module 15 is used to configure the rate of the target data message to modify the message header of the target data message to obtain the target data message to be forwarded, and send the target data message to be forwarded to the node MAC address to complete the message forwarding of the target data message to be forwarded.

[0111] It can be seen that the present application discloses receiving a target routing protocol message sent by a networking node, and decoupling the target routing protocol message to extract a target data message; judging whether the destination MAC address of the target data message corresponds to the current networking node; if the destination MAC address corresponds to the current networking node, uploading the target data message to the central processor of the current networking node for processing; if the destination MAC address does not correspond to the current networking node, extracting the currently changed routing table entry as the node MAC address of the next-hop networking node of the target data message through the central processor; performing rate configuration on the target data message to modify the message header of the target data message to obtain a target data message to be forwarded, and sending the target data message to be forwarded to the node MAC address to complete the message forwarding of the target data message to be forwarded. It can be seen that by decoupling the control message and data message of the flight ad hoc network routing protocol, the delay and waiting time in data transmission are reduced by quickly and accurately judging the destination MAC address and performing corresponding processing, and the data processing and forwarding path are determined according to the judgment of the destination MAC address. It is not necessary to upload all messages to the central processor for parsing and judgment processing. Instead, when judging the destination MAC address, the data message that needs to be directly forwarded is judged and forwarded accordingly, so that network resources can be allocated more efficiently and the burden on the central processor is reduced. Energy consumption is reduced, and it is more suitable for deployment and optimization under conditions of insufficient resources and harsh energy constraints of drone terminals. The rate configuration and message header modification of the target data message help ensure the stability and accuracy of data transmission between different nodes. When the network environment of the drone terminal is unstable, the rate can be adjusted to reduce the packet loss rate.

[0112] Furthermore, the present application also discloses an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0113] Figure 6A schematic diagram of the structure of an electronic device 20 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 data routing method for the flight ad hoc network disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0114] 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.

[0115] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0116] 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 can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0117] 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 massive data 223 in the memory 22 by the processor 21, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the data routing method of the flight ad hoc network performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can 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 electronic device, the data 223 can also include data collected by its own input and output interface 25, etc.

[0118] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the data routing method of the flight ad hoc network disclosed above is implemented. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.

[0119] Furthermore, an embodiment of the present invention also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the data routing method for the flying ad hoc network disclosed in any of the aforementioned embodiments.

[0120] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0121] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application. The steps of the method or algorithm described in conjunction with the embodiments disclosed herein can be implemented directly with hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory RAM (Random Access Memory), memory, read-only memory ROM (Read Only Memory), electrically programmable EPROM (Electrically Programmable Read Only Memory), electrically erasable programmable EEPROM (ElectricErasable Programmable Read Only Memory), register, hard disk, removable disk, CD-ROM (CompactDisc-Read Only Memory), or any other form of storage medium known in the technical field.

[0122] 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.

[0123] The scheme provided by the present invention is introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation mode 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 those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A data routing method for a flying ad hoc network, characterized in that: include: Receive a target routing protocol message sent by a networking node, and perform decoupling processing on the target routing protocol message to extract a target data message; Determine whether the destination MAC address of the target data message corresponds to the current networking node; If the destination MAC address corresponds to the current networking node, uploading the target data message to the central processor of the current networking node for processing; If the destination MAC address does not correspond to the current networking node, extracting the currently changed routing table entry as the node MAC address of the next hop networking node of the target data message through the central processor; The target data message is rate configured to modify the message header of the target data message to obtain the target data message to be forwarded, and the target data message to be forwarded is sent to the node MAC address to complete the message forwarding of the target data message to be forwarded.

2. The data routing method for a flying ad hoc network according to claim 1, characterized in that: The receiving a target routing protocol message sent by the networking node, and performing decoupling processing on the target routing protocol message to extract a target data message, includes: Receiving routing protocol messages sent by networking nodes through a field programmable logic gate array; Determining whether the routing protocol message is a flight ad hoc network routing protocol message; If not, uploading the routing protocol message as a non-target routing protocol message to the central processor for parsing and processing; If yes, the routing protocol message is used as the target routing protocol message, and the target routing protocol message is decoupled to extract the target data message and the target control message, and the target control message is sent to the central processor for routing table entry extraction processing; Correspondingly, the determining whether the destination MAC address of the target data message corresponds to the current networking node includes: Perform message format check and message integrity check on the target data message, and determine whether the destination MAC address of the target data message after verification corresponds to the current networking node.

3. The data routing method for a flying ad hoc network according to claim 2, characterized in that: If the destination MAC address corresponds to the current networking node, uploading the target data message to the central processor of the current networking node for processing includes: If the destination MAC address of the verified target data message corresponds to the current networking node, the verified target data message is uploaded to the central processor of the current networking node for parsing and processing.

4. The data routing method for a flying ad hoc network according to claim 2, characterized in that: Also includes: Extracting, by the central processor, routing table information in the target control message corresponding to the verified target data message as the current routing table; Query the table entry information corresponding to the addition, deletion, and modification between the current routing table and the historical routing table to obtain the current changed routing table entry, and update the table entry information in the historical routing table to obtain the updated routing table, and use the updated routing table as the historical routing table when the next control message queries the table entry; The currently changed routing table entry is used as the node MAC address of the next hop networking node of the verified target data message.

5. The data routing method for a flying ad hoc network according to claim 4, characterized in that: The extracting, by the central processor, routing table information in the target control message corresponding to the verified target data message as the current routing table includes: The central processing unit extracts the routing table information contained in the source node list in the target control message corresponding to the verified target data message, and writes it into a new routing table as the current routing table in a bidirectional linked list format; wherein the source node list records all other networking nodes that have established connections with the current networking node, and the data structure of each current networking node stores the best networking node to reach the current networking node.

6. The data routing method for a flying ad hoc network according to any one of claims 1 to 5, characterized in that: The configuring the rate of the target data message to modify the message header of the target data message to obtain the target data message to be forwarded includes: Set the initial transmission rate according to the node performance parameters of the current networking nodes; The initial transmission rate is adjusted according to external communication environment factors between the current networking node and the next hop networking node to determine a target transmission rate; The target data message is rate-configured according to the target transmission rate to modify the message header of the target data message to obtain the target data message to be forwarded.

7. A data routing device for a flying ad hoc network, characterized in that: include: A message decoupling module is used to receive a target routing protocol message sent by a networking node, and perform decoupling processing on the target routing protocol message to extract a target data message; An address determination module is used to determine whether the destination MAC address of the target data message corresponds to the current networking node; A first processing module, configured to upload the target data message to a central processor of the current networking node for processing if the destination MAC address corresponds to the current networking node; A second processing module is used for extracting the currently changed routing table entry as the node MAC address of the next hop networking node of the target data message through the central processor if the destination MAC address does not correspond to the current networking node; The message forwarding module is used to configure the rate of the target data message to modify the message header of the target data message to obtain the target data message to be forwarded, and send the target data message to be forwarded to the node MAC address to complete the message forwarding of the target data message to be forwarded.

8. 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 steps of the data routing method for a flying ad hoc network as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the data routing method for a flying ad hoc network as described in any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the data routing method for a flying ad hoc network described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • On-demand routing mechanism of unmanned aerial vehicle ad hoc network based on combination of content identification and node identification

    CN114071638A

  • Multi-objective optimization routing algorithm based on Q learning

    CN114401540A

  • Distributed routing protocol method suitable for large-scale unmanned aerial vehicle cluster network

    CN116545923A

  • DSDV routing protocol method adaptive to different scenes

    CN117135713A

  • Routing collaboration using mobile ad-HOC networks

    WO2024114933A1

Cited By

  • Ad hoc network routing component consistency test method, system and device and storage medium

    CN116346664A

  • Ad hoc network routing component consistency test method, system, device and storage medium

    CN116346664B