Distributed ad hoc network communication system and method oriented to edge environment

By introducing secure address conversion module, flooder module, unicast controller module and encryption module in the distributed ad hoc network communication system, the problems of inflexible routing protocols, low data transmission efficiency and insufficient encryption algorithm selection in the edge environment are solved, and the stability, reliability and security of the network are improved.

CN120075131APending Publication Date: 2025-05-30GUILIN UNIV OF ELECTRONIC TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510234607.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing distributed ad hoc network communication system has problems such as inflexible routing protocols, low data transmission efficiency, insufficient encryption algorithm selection, and unoptimized routing and topology management in the edge environment, which has affected network stability and reliability.

Method used

By introducing secure address translation module, flooder module, unicast controller module and encryption module into router components, direct neighbor information determination between nodes, global topology information construction, packet routing decision-making and encrypted transmission are realized, and dependence on centralized network infrastructure is reduced.

Benefits of technology

It improves the stability and reliability of the network in the edge environment, enhances the security of data transmission and the flexibility of routing decisions, and reduces management costs and work difficulties.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075131A_ABST
    Figure CN120075131A_ABST
Patent Text Reader

Abstract

The invention discloses a distributed ad hoc network communication system and method oriented to an edge environment, and relates to the field of routing control in the edge environment, and the method comprises the steps: S1, determining direct neighbors in the range of a node itself and related information through a safety address conversion module of a router assembly; s2, a flooding device module broadcasts neighborhood information to distributed nodes through a media access control layer; s3, the unicast controller module of each distributed node organizes all the collected neighborhood information into global topological information to determine a route; step S6, the repeater module of the router component uses the global topology information to determine the next hop IP address of the data packet; and S7, the router component of the receiving node transmits the data to an application layer for processing. According to the invention, through cooperative work of the application command component and the router component, dependence on centralized network infrastructure is reduced, and stability and reliability of the network are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of routing control in edge environments, and particularly to a distributed ad-hoc communication system and method for edge environments. Background Art

[0002] A distributed ad-hoc communication system is a technology that enables communication between nodes in an edge environment without a central node. It allows nodes to dynamically establish and maintain network connections without fixed infrastructure. Such a network system is particularly suitable for scenarios such as mobile devices, remote monitoring, disaster recovery, and military communication, where centralized network infrastructure may be unavailable or inapplicable.

[0003] Due to the dynamic and decentralized nature of distributed ad-hoc networks, communication between nodes requires efficient routing protocols and data transmission mechanisms to ensure network stability and reliability. Distributed ad-hoc methods typically rely on centralized communication architectures that centralize data management and forwarding tasks at a central node. Although this approach performs well in some stable and fixed-node-number network environments, it has obvious limitations. Once the central node fails, the communication ability of the entire network will be severely affected, and communication may even be completely interrupted. In addition, the centralized architecture tends to be inflexible when faced with dynamic changes in nodes in edge environments, such as nodes frequently joining or leaving the network, and requires complex configuration and adjustment to adapt to these changes. In terms of data transmission, some systems may lack sufficient coordination between layers of the network protocol stack, resulting in low transmission efficiency. At the same time, there may be deficiencies in the selection of encryption algorithms and key management, unable to fully guarantee the security of data transmission. In terms of routing and topology management, the lack of effective global topology information integration and intelligent routing decision-making mechanisms makes the data transmission path less optimized, affecting the overall performance of the network and increasing management costs and work difficulties. Summary of the Invention

[0004] The purpose of the present invention is to provide a distributed ad-hoc communication system and method for edge environments to solve the problems raised in the above background art.

[0005] To achieve the above purpose, the present invention provides the following technical solution: A distributed ad-hoc communication method for edge environments, comprising the following steps:

[0006] Step S1: Regularly send and receive SARP requests and responses through the security address translation module of the router component to determine the direct neighbors within the node's own range and their related information;

[0007] Step S2: The flooder module will take over and broadcast the neighborhood information to other distributed nodes through the media access control layer;

[0008] Step S3: The unicast controller module of each distributed node sorts out all the collected neighborhood information into global topology information to determine the routing;

[0009] Step S4: The security address translation module continuously updates the neighbor information, and the unicast controller module has the latest global topology information;

[0010] Step S5: After determining the global topology information, the command client daemon module in the application command component of the application layer filters the generated user information to the router component through the kernel interface module;

[0011] Step S6: The forwarder module of the router component uses the global topology information to determine the next-hop IP address of the data packet and transmits it to the destination node one by one;

[0012] Step S7: After the datagram arrives at the destination node, the router component of the receiving node passes the data to the application layer for processing.

[0013] Preferably, when the command client daemon module in step S5 receives a transport layer datagram, the incoming data is processed in a separate concurrent routine to avoid losing connections, incoming datagrams when processing the previous connection, incoming datagrams, then decoding the packet payload, storing the data in the database, and notifying the user interface through server-side events.

[0014] Preferably, when the application command component in step S5 is the sender, it is used to send the packets encapsulated by the underlying network protocol stack. When the application command component is the receiver, it is used to receive the packets sent by the sender.

[0015] Preferably, in step S1, the router component encrypts the datagram encapsulating the user message with the symmetric key preset by the encryption module during the process of transmitting the datagram, and sends the encrypted datagram to other distributed nodes. The other distributed nodes use the preset symmetric key to decrypt the encrypted datagram to obtain the user message in text form.

[0016] Preferably, in step S2, the flooder module broadcasts the link state advertisement to other nodes in the network periodically. All nodes in the network will receive the updated data and use Dijkstra to calculate the best path from the data source to any reachable destination, and use this information to fill the forwarding table. The time complexity of the Dijkstra algorithm depends on the data structure used:

[0017] Using a simple array or linked list: O(V2), where V is the number of nodes in the graph:

[0018] Using a priority queue: O((V + E)logV), where E is the number of edges in the graph;

[0019] Using a Fibonacci heap: O(E + VlogV).

[0020] A distributed ad-hoc communication system for edge environments, including a network protocol stack, an application command component, a router component, and a driver module. The application command component and the router component communicate data through the network protocol stack. The network protocol stack is used to implement data transmission and reception in the communication system. The application command component is connected to the standard operating system interface, which is used to send messages to distributed nodes and receive data from distributed nodes. The router component is used to forward data packets at the network layer to implement the data packet forwarding function. The execution module is connected to the network protocol stack, the application command component, and the router component, and is used to store and execute system data.

[0021] Preferably, the network protocol stack includes:

[0022] The physical layer, which is used to transmit the original bit stream on the physical medium;

[0023] The media access control layer, which is used to control data transmission between multiple devices in the same network and is used for error detection and correction, frame delimitation, and flow control;

[0024] The network layer, which is used to forward and route data packets between different networks, provide management of logical addresses, and handle routing and forwarding of packets;

[0025] The transport layer, which is used to provide end-to-end communication services between hosts, provide flow control, error detection and repair, data segmentation, and recombination.

[0026] Preferably, the application command component is located at the network layer of the network protocol stack and includes:

[0027] The command client daemon module, which sends messages to other nodes through the network interface and receives messages from other nodes, runs a database to track all sent and received data, and connects to the user interface through the server;

[0028] The command client UI module, which is used to operate and visualize messages sent by other nodes and display the network topology of the ad-hoc network on the front-end UI interface. There is two-way communication between the command client UI module and the command client daemon module.

[0029] Preferably, the router component includes:

[0030] A kernel interface module, which is used to filter data packets above the network layer and screen out the data packets to be sent to other distributed nodes;

[0031] A secure address translation module, which is used to periodically send and receive SARP requests and responses to determine the direct neighbor nodes and their information within the node's own range, and is used to construct global topology information for subsequent route determination;

[0032] A unicast controller module, which determines the route by collecting all link state advertisements collected after broadcasting by the flooder module and organizing them into global topology information;

[0033] A forwarder module, which is used to listen for data packets from the network layer and data packets from the media access control layer, and find the next-hop node to the destination through the global topology information;

[0034] A flooder module, which is used to broadcast the neighbor table information generated during the operation of the secure address translation module;

[0035] An encryption module, which selects to use the 256-bit cipher block chaining mode of the Advanced Encryption Standard combined with a password-based key derivation function with a fixed salt to perform data encryption and decryption operations.

[0036] Preferably, the execution module includes:

[0037] A memory, which is a readable storage medium and is used to store the communication data of the network protocol stack;

[0038] A processor, which is used to control and execute the operation of the network protocol stack, the application command component, and the router component.

[0039] The technical effects and advantages of the present invention:

[0040] The distributed ad-hoc communication system for edge environments of the present invention includes a network protocol stack, an application command component, and a router component. The application command component is used to implement data transmission and reception in the communication system. The application command component is an application program that directly communicates with the standard operating system interface of the transport layer. It is used to send messages to other distributed nodes and receive data from other distributed nodes, and communicates with the router component through the transport layer. When the application command component is the sender, it is used to send the packets encapsulated by the bottom layer of the network protocol stack; when the application command component is the receiver, it is used to receive the packets sent by the sender. The router component, as a key device in the network, is used to forward data packets at the IP layer to implement the data packet forwarding function, ensuring that data can be efficiently and accurately transmitted in the network. Due to the dynamic and decentralized characteristics of the edge environment, the system reduces the dependence on centralized network infrastructure through the collaborative work of the application command component and the router component, ensuring the stability and reliability of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a schematic diagram of the framework of the distributed ad-hoc communication system for edge environments of the present invention.

[0042] Figure 2 It is a schematic diagram of the framework of the application command component of the present invention.

[0043] Figure 3 It is a schematic diagram of the framework of the command client daemon module of the present invention.

[0044] Figure 4 It is a schematic diagram of the framework of the router component of the present invention.

[0045] Figure 5 It is a schematic diagram of the working process of the security address translation module of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0046] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0047] The present invention provides as Figures 1-5A distributed ad-hoc communication system for edge environments, as shown, includes a network protocol stack, an application command component, a router component, and a driver module. The application command component and the router component communicate data through the network protocol stack. The network protocol stack is used to implement data transmission and reception in the communication system. The application command component is connected to the standard operating system interface, which is used to send messages to distributed nodes and receive data from distributed nodes. The router component is used to forward data packets at the network layer to implement the data packet forwarding function. As a key device in the network, the router component is used to forward data packets at the IP layer to implement the data packet forwarding function, ensuring that data can be efficiently and accurately transmitted in the network. The execution module is connected to the network protocol stack, the application command component, and the router component, and is used to store and execute processing of the system's data. Due to the dynamic and decentralized characteristics of the edge environment, the system reduces the dependence on centralized network infrastructure through the collaborative work of the application command component and the router component, ensuring the stability and reliability of the network.

[0048] The network protocol stack includes a physical layer, a media access control layer, a network layer, and a transport layer. The physical layer is used to transmit the original bit stream on the physical medium. The media access control layer is used to control data transmission between multiple devices in the same network and is used for error detection and correction, frame delimitation, and flow control. The network layer is used to forward and route data packets between different networks, provide management of logical addresses, and handle the routing and forwarding of packets. The transport layer is used to provide end-to-end communication services between hosts, providing flow control, error detection and repair, data segmentation, and reassembly.

[0049] The application command component is located at the network layer of the network protocol stack and includes a command client daemon module and a command client UI module. The command client daemon module sends messages to other nodes through the network interface and receives messages from other nodes, runs a database to track all sent and received data, and connects to the user interface through the server. The application command component is used to collect heartbeats and data to be sent in its own unit node and send this information to a specific target node in the cluster. The server runs in a concurrent routine and provides an interface for the user to collect and present the stored data. In addition, it also provides an interface for the user to send messages to other nodes. All sent and received data is stored in the database. Since the database is accessed through different concurrent subroutines, mutex technology is used to synchronize access to the database. The main routine reads any necessary configuration or command line parameters at startup, initializes the database, and then starts and orchestrates the above subroutines. The command client UI module is used to operate and visualize messages sent by other nodes and display the network topology of the ad-hoc network on the front-end UI interface.

[0050] The router component includes a kernel interface module, a network address translation (NAT) module, a unicast controller module, a forwarder module, a flooder module, and an encryption module. The kernel interface module is used to filter data packets above the network layer and screen out the data packets to be sent to other distributed nodes. The NAT module is used to periodically send and receive Security Address Resolution Protocol (SARP) requests and responses to determine the direct neighbor nodes and their information within the node's own range, for subsequent construction of the global topology information to determine the route. The NAT module will continuously update the neighbor information to ensure that the unicast controller module has the latest global topology information. The SARP datagram includes a header and a payload, and its header structure is shown in Table 1. Table 2 is an explanation of each field in Table 1.

[0051] Table 1 Header Structure of SARP Datagram

[0052]

[0053] Table 2 Explanation of Each Field in SARP Datagram

[0054]

[0055] SARP runs by sending SARP and receiving SARP through two concurrent routines.

[0056] The SARP sending routine first creates an SARP request, encodes it into binary, encrypts it through the encryption module, and then broadcasts the message to all nodes within the range through the media access control layer. Then, the routine waits for a period of time to give neighbors a chance to respond. The responses collected by the SARP receiving routine are used to update the neighbor table. Then, the routine waits again for the inter-request delay before sending the next request. The SARP sending routine also detects whether the neighbors have changed between subsequent requests by comparing the hash values of the node IDs in the neighbor table before and after collecting the responses.

[0057] The SARP receiving routine continuously listens for SARP data packets. When a data packet is received, it will be decrypted and decoded. Then, the delay between the current node and the sender is calculated. If the received data packet is an SARP response, it is collected for the operation of the SARP sending routine. Otherwise, if it is an SARP request, a response is created, encoded, encrypted, and sent to the sender through the media access control layer.

[0058] The unicast controller module sorts out all the link state advertisements collected after being broadcast by the flooder module into global topology information to determine the route; the forwarder module is used to listen for data packets from the network layer and data packets from the media access control layer, and find the next-hop node to the destination through the global topology information. The data packets from the network layer are the data packets from the current node, while the data packets from the media access control layer are the data packets from other nodes. These data packets can be sent to the current node or to other destinations. The forwarder is responsible for controlling the flow of these data packets; the flooder module is used to broadcast the neighbor table information generated by the broadcast security address conversion module during operation; the encryption module selects to use the 256-bit cipher block chaining mode of the Advanced Encryption Standard combined with a password-based key derivation function with a fixed salt to perform data encryption and decryption operations.

[0059] The execution module includes a memory and a processor. The memory is a readable storage medium, which is used to store the communication data of the network protocol stack; the processor is used to control the execution of the operation of the network protocol stack, the application command component, and the router component. The execution module contains several instructions to enable a computer device to execute all or part of the steps of the methods of the various embodiments of the present invention. The foregoing storage medium includes various media such as USB flash drives, mobile hard disks, read-only memories, random access memories, magnetic disks, or optical discs that can store program codes.

[0060] When the command client daemon module receives a transport layer datagram, the incoming data is processed in a separate concurrent routine to avoid losing a connection or an incoming datagram when processing the previous connection or incoming datagram. Then, the packet payload is decoded, the data is stored in the database, and the user interface is notified through a server-side event. There is two-way communication between the command client daemon module and the command client UI module.

[0061] The flooder module periodically broadcasts link state notifications to other nodes in the network. All nodes in the network will receive the updated data, calculate the best path from the data source to any reachable destination, and use this information to fill the forwarding table. In order to effectively avoid the transmission of duplicate data packets and prevent the same data packets from circulating infinitely in the system, a flood control method is required. Specifically, this method requires the router to remember the data packets it has processed and avoid repeated transmission. This is because if the router sends the data packet it has received again, the data packet will continue to circulate in the network and will never reach the destination. Therefore, the router needs to remember the data packets it has processed to avoid repeated transmission, and the data packet must have a sequence number higher than the latest stored by the source. In a distributed network, the sequence number mechanism ensures the order and consistency of the data packet, so that the destination can sort and reorganize the data packets according to the sequence number to ensure the integrity and accuracy of the data. At the same time, it prevents data packets from looping infinitely, because the sequence number does not change during the loop. If the router receives a data packet with a sequence number lower than or equal to the latest stored sequence number of the source node, it can be judged as a duplicate or outdated and discarded, thereby maintaining a stable and reliable network. Dijkstra is used to calculate the best path from the data source to any reachable destination, and this information is used to fill the forwarding table. The time complexity of the Dijkstra algorithm depends on the data structure used:

[0062] Using a simple array or linked list: O(V2), where V is the number of nodes in the graph:

[0063] Using a priority queue: O((V+E)logV), where E is the number of edges in the graph;

[0064] Using Fibonacci heap: O(E+VlogV).

[0065] When the application command component is a sending end, it is used to send messages encapsulated by the bottom layer of the network protocol stack. When the application command component is a receiving end, it is used to receive messages sent by the sending end.

[0066] During the datagram transmission process, the router component will use the symmetric key preset in the encryption module to encrypt the datagram encapsulating the user message, and send the encrypted datagram to other distributed nodes. Other distributed nodes use the preset symmetric key to decrypt the encrypted datagram to obtain the user message in text form. During the user message transmission process, the encryption module encrypts the datagram encapsulating the user message to ensure the security of the datagram during the routing process.

[0067] First, as a widely recognized symmetric encryption algorithm, the 256-bit key version of AES provides extremely high security, making it extremely difficult to crack the key. Even with the powerful computing capabilities of modern times, it would require an impractical time cost. The CFB mode converts this block encryption algorithm into a stream encryption algorithm. It can flexibly process data streams of any length and has good error propagation characteristics, which means that even if a part of the data in the data stream is tampered with, it will not cause a chain reaction to the decryption result of the entire data stream, thus ensuring the integrity and reliability of the data. In addition, as a password-based key derivation function, PBKDF2 significantly increases the difficulty of password cracking through multiple iterative hashing operations, effectively resisting common threats such as rainbow table attacks and brute-force cracking. The use of a fixed salt further enhances the complexity of the password. Even if two users use the same password, due to the addition of the salt value, the finally generated keys will be different, which adds an extra guarantee for the security of the system. In a distributed environment, this encryption scheme can not only efficiently process a large amount of data, reduce the latency in the encryption and decryption processes, and ensure the real-time nature of data transmission, but also, due to the wide application and good compatibility of AES and PBKDF2, it is convenient to implement unified encryption and decryption operations on different platforms and devices. At the same time, this encryption method can also effectively prevent data tampering and replay attacks during data transmission, ensuring the integrity and authenticity of the data. The method of generating keys from passwords through PBKDF2 simplifies the complexity of key management, making key updates more flexible and secure. Simply updating the password or salt value can regenerate new keys, providing strong support for the long-term stable operation of the system. In summary, the combination of AES256-CFB and PBKDF2 provides a secure and efficient encryption and decryption solution for this system, perfectly meeting the security requirements in a distributed network environment

[0068] A usage method of a distributed ad-hoc communication system for an edge environment, comprising the following steps:

[0069] Step S1: In a cluster installed with the system, the router component of each distributed node determines the direct neighbors within its own range and their related information by regularly sending and receiving SARP requests and responses through the secure address translation module of the router component;

[0070] Step S2: The flooder module will take over and broadcast the neighborhood information to other distributed nodes through the media access control layer;

[0071] Step S3: The unicast controller module of each distributed node will organize all the collected neighborhood information into global topology information to determine the route;

[0072] Step S4: The security address translation module continuously updates the neighbor information, and the unicast controller module has the latest global topology information;

[0073] Step S5: After determining the global topology information, the user information generated by the application command component in the application layer is filtered to the router component through the kernel interface module;

[0074] Step S6: The forwarder module of the router component uses the global topology information to determine the next-hop IP address of the data packet and transmits it to the destination node one by one;

[0075] Step S7: After the datagram arrives at the destination node, the router component of the receiving node passes the data to the application layer for processing.

[0076] The working principle of the present invention: The distributed ad-hoc communication system for edge environments of the present invention includes a network protocol stack, an application command component, and a router component. The application command component is used to implement data transmission and reception in the communication system. The application command component is an application program that directly communicates with the standard operating system interface of the transport layer, used to send messages to other distributed nodes and receive data from other distributed nodes, and communicates with the router component through the transport layer. When the application command component is the sender, it is used to send the packets encapsulated by the bottom layer of the network protocol stack; when the application command component is the receiver, it is used to receive the packets sent by the sender. The router component, as a key device in the network, is used to forward data packets at the IP layer to implement the data packet forwarding function, ensuring that data can be efficiently and accurately transmitted in the network. Due to the dynamic and decentralized characteristics of the edge environment, the system reduces the dependence on the centralized network infrastructure through the collaborative work of the application command component and the router component, ensuring the stability and reliability of the network.

[0077] Finally, it should be noted that the above are only the preferred embodiments of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A distributed self-organizing network communication method for edge environment, characterized in that: The following steps are involved: Step S1: periodically sending and receiving SARP requests and responses through the secure address translation module of the router component to determine the direct neighbors within the node's own range and their related information; Step S2: The flooder module will take over and broadcast the neighborhood information to other distributed nodes through the media access control layer; Step S3: The unicast controller module of each distributed node organizes all collected neighborhood information into global topology information to determine routing; Step S4: The secure address translation module will continuously update neighbor information, and the unicast controller module has the latest global topology information; Step S5: After determining the global topology information, the application command component of the application layer commands the client daemon module to filter the generated user information to the router component through the kernel interface module; Step S6: The forwarder module of the router component uses the global topology information to determine the next hop IP address of the data packet and transmits it to the destination node one by one; Step S7: After the datagram arrives at the destination node, the router component of the receiving node passes the data to the application layer for processing.

2. A distributed ad hoc network communication method for edge environments according to claim 1, characterized in that: When the client daemon module receives a transport layer datagram in step S5, the incoming data is processed in a separate concurrent routine to avoid losing the connection and incoming datagram when processing the previous connection and incoming datagram, and then the data packet payload is decoded, the data is stored in a database, and the user interface is notified through a server-side event.

3. A distributed ad hoc network communication method for edge environments according to claim 1, characterized in that: When the application command component in step S5 is a sending end, it is used to send messages encapsulated by the bottom layer of the network protocol stack. When the application command component is a receiving end, it is used to receive messages sent by the sending end.

4. The distributed ad hoc network communication method for edge environment according to claim 1, characterized in that: In step S1, the router component encrypts the datagram encapsulating the user message using the symmetric key preset in the encryption module during datagram transmission, and sends the encrypted datagram to other distributed nodes. Other distributed nodes use the preset symmetric key to decrypt the encrypted datagram to obtain the user message in text form.

5. The distributed ad hoc network communication method for edge environment according to claim 1, characterized in that: In step S2, the flooder module periodically broadcasts link state notifications to other nodes in the network. All nodes in the network receive the updated data and use Dijkstra to calculate the best path from the data source to any reachable destination, and use this information to fill the forwarding table. The time complexity of the Dijkstra algorithm depends on the data structure used: Using simple arrays and linked lists: O(V2), where V is the number of nodes in the graph: Using a priority queue: O((V+E)logV), where E is the number of edges in the graph; Using Fibonacci heap: O(E+VlogV).

6. The system architecture of a distributed ad hoc network communication method for edge environments according to claims 1-5, characterized in that: It includes a network protocol stack, an application command component, a router component and a driver module. The application command component and the router component communicate data through the network protocol stack. The network protocol stack is used to realize data transmission and reception in the communication system. The application command component is connected to the standard operating system interface and is used to send messages to distributed nodes and receive data from distributed nodes. The router component is used to forward data packets on the network layer to realize the data packet forwarding function. The execution module is connected to the network protocol stack, the application command component and the router component and is used to store and execute system data.

7. A distributed ad hoc network communication system for edge environments according to claim 6, characterized in that: The network protocol stack includes: A physical layer, which is used to transmit the original bit stream on a physical medium; A media access control layer, which is used to control data transmission between multiple devices in the same network and is used for error detection and correction, frame delimitation and flow control; The network layer is used to forward and route data packets between different networks, provide management of logical addresses, and handle routing and forwarding of packets; The transport layer is used to provide end-to-end communication services between hosts, and provides flow control, error detection and correction, data segmentation and reassembly.

8. The distributed ad hoc network communication system for edge environments according to claim 6, characterized in that: The application command component is located in the network layer of the network protocol stack, including: a command client daemon module that sends messages to and receives messages from other nodes via a network interface, runs a database to track all sent and received data, and connects to a user interface via a server; The command client UI module is used to operate and visualize messages sent from other nodes and display the network topology of the ad hoc network on the front-end UI interface. There is two-way communication between the command client UI module and the command client daemon module.

9. The distributed ad hoc network communication system for edge environments according to claim 6, characterized in that: The router component includes: A kernel interface module, which is used to filter data packets above the network layer and select data packets to be sent to other distributed nodes; A secure address translation module, which is used to periodically send and receive SARP requests and responses to determine direct neighbor nodes and their information within the node's own range, and to subsequently construct global topology information to determine routing; A unicast controller module, which collects all link state notifications broadcast by the flooder module and organizes them into global topology information to determine routing; A forwarder module, the forwarder module is used to monitor the data packets from the network layer and the data packets from the media access control layer, and find the next hop node to reach the destination through the global topology information; A flooder module, the flooder module is used to broadcast neighbor table information generated by the secure address translation module during operation; The encryption module selects to use the Advanced Encryption Standard 256-bit cipher block chaining mode combined with a fixed-salt cipher base key derivation function to perform data encryption and decryption operations.

10. The distributed ad hoc network communication system for edge environment according to claim 6, characterized in that: The execution module includes: A memory, wherein the memory is a readable storage medium, which is used to store communication data of the network protocol stack; A processor is used to control and execute the operation of a network protocol stack, an application command component, and a router component.