Safe and trusted communication method and system of wireless ad hoc network
By performing node verification and legality judgment in the wireless ad hoc network, and using hybrid encryption mechanisms and energy consumption optimization, the problems of network security and resource consumption are solved, and secure and trustworthy communication and energy efficiency improvement of the wireless ad hoc network are achieved. .
Patent Information
- Application Number
- CN202410712951.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-03
AI Technical Summary
Due to the lack of central nodes in wireless self-organizing networks, it is difficult to achieve effective node verification and data security, and the high dynamics and energy constraints of nodes make communication security difficult to guarantee.
By initializing the system network, physical contact or established node trust relationships are used to exchange preliminary communication data and distribution keys between nodes, perform node verification and legality judgment, and use a hybrid encryption mechanism in the data transmission process while optimizing node performance. consumption, dynamically adjust encryption strength and data transmission frequency to ensure security and resource efficiency.
It realizes secure and trusted communication of wireless self-organizing networks without the support of central nodes, enhances data confidentiality and integrity, reduces communication energy consumption, simplifies network management and maintenance, and improves network reliability.
Smart Images

Figure CN118590874A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a secure and reliable communication method and system for a wireless self-organizing network. Background Art
[0002] Wireless ad hoc networks, due to their flexibility and self-organizing characteristics, have become an important component of modern communication systems. These networks do not rely on fixed network infrastructure, but communicate and transmit data directly through individual nodes in the network. Since each node can act as both a host and a router, this allows the network to be quickly deployed without the need to pre-establish infrastructure, which is particularly suitable for scenarios with high temporary communication needs, such as disaster response, military operations, and temporary meetings.
[0003] However, the openness and dynamically changing topology of this network also bring many security challenges. First, due to the lack of a control center, the maintenance and management of the network becomes complicated, especially in terms of node verification and data security. Second, the nodes in the network may change their locations frequently due to their high mobility, which leads to the instability of network links and the constant changes in routing paths, increasing the difficulty of ensuring trusted communications. Existing mechanisms for ensuring communication security, such as static key distribution and centralized authentication services, are difficult to implement in networks without central node support. In addition, the energy and computing resource limitations of nodes require that security protocols must minimize resource consumption while ensuring security. Therefore, it is particularly important to propose a secure and trusted communication method that can adapt to this highly dynamic and low-security environment. Summary of the invention
[0004] In view of the problems existing in the existing secure and reliable communication methods for wireless self-organizing networks, the present invention is proposed. Therefore, the problem to be solved by the present invention is how to provide a secure and reliable communication method and system for wireless self-organizing networks.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] In the first aspect, the present invention provides a secure and trusted communication method for a wireless self-organizing network, which includes initializing the system network, exchanging preliminary communication data and distributing keys between nodes through physical contact or an established node trust relationship; when a new node joins, the system network performs node verification, checks the identity information data of the new node, and calculates the legitimacy index of the new node; determines whether the new node has joined the network based on the legitimacy index of the new node, and dynamically adjusts the network settings of the new node that has joined the network based on the real-time status of the network; during the data transmission process, a hybrid encryption mechanism is used to encrypt the transmission data, and at the same time, the energy consumption of the network nodes is optimized to perform secure and trusted communication in the wireless self-organizing network.
[0007] As a preferred solution of the secure and trusted communication method for the wireless self-organizing network described in the present invention, the initial communication data and distribution key between the nodes include the following steps: each node generates its own asymmetric key pair; when physical contact is used to exchange the initial communication data between the nodes, the nodes directly exchange public keys through USB, NFC and Bluetooth short-range communication technology; when exchanging public keys, each node calculates the legitimacy index of the received node and verifies the legitimacy of the received public key; when the node has the public key of other nodes, it generates a temporary session key, and encrypts it with the other party's public key and passes it to the other party; the receiver uses the private key generated by itself to decrypt the session key, and the two nodes share the session key for subsequent symmetric encryption communication; when the initial communication data between nodes is exchanged using an established node trust relationship, the new node first passes the authentication of one or more trusted nodes, and a public key certificate is issued for the new node by the trusted node, and the certificate includes the public key of the new node and the digital signature of the trusted node; the new node distributes the certificate to other nodes in the network, and other nodes use the public key of the trusted node to verify the validity of the certificate, and the nodes exchange session keys through an encrypted communication channel.
[0008] As a preferred solution of the secure and trusted communication method for the wireless self-organizing network described in the present invention, wherein: the identity information data of the new node includes node hardware feature data, node historical behavior data, node topology data, and node energy consumption data; the node hardware feature data includes the device MAC address, and the node historical behavior data includes the number of node startups, fault history, and node communication history; the node topology data includes the importance index of the node in the network structure and the node energy consumption data.
[0009] As a preferred solution of the secure and trusted communication method of the wireless self-organizing network described in the present invention, wherein: the calculation of the legitimacy index of the new node includes the following steps: collecting the identity information data of the new node and preprocessing the collected data; using a hash function to hash the node MAC address to obtain a numerical representation, calculating the average response time, data transmission rate, topological importance index and average value and standard deviation of energy consumption data of all nodes in the network; constructing an identity information data evaluation function, assigning and evaluating the identity information data of the new node, and calculating the evaluation score of the identity information data. The relevant calculation formula is as follows:
[0010]
[0011]
[0012] Where H(x) is the hash value of the MAC address of node i, H(0) is the average hash value of known legal nodes in the network, and y iis the historical behavior data of the node, is the average value of historical behavior data, σ b is the standard deviation of the node's historical behavior data, n is the number of data points, z i is the topological importance index of node i, z max is the maximum topological importance index in the network, σ st is the number of shortest paths from node s to node t in the network, σ st (i) is the number of paths passing through node i in the shortest path; v is the energy consumption data of the new node, v0 is the average energy consumption of nodes in the network, σ v It is the standard deviation of node energy consumption in the network; the legitimacy index of the new node is calculated according to the evaluation score of the identity information data, and the legitimacy of the new node is judged according to the legitimacy index of the new node.
[0013] As a preferred solution of the secure and trusted communication method of the wireless self-organizing network of the present invention, the legitimacy index of the new node includes obtaining the calculated evaluation score Fi, and for each assigned evaluation, calculating the weight of the identity information data, and the relevant calculation formula is as follows:
[0014]
[0015] Where n is the number of types of identity information data assigned for evaluation; each calculated evaluation score is standardized to eliminate the influence of different dimensions. The relevant calculation formula is as follows:
[0016]
[0017] In the formula, μ i is the average score of the evaluation score of the ith identity information data assignment, σ i is the standard deviation of the evaluation score assigned to the ith identity information data; calculate the intermediate comprehensive legitimacy index, and the relevant calculation formula is as follows:
[0018]
[0019] W i,s =W i ·F i,n
[0020] Where, L i is the intermediate comprehensive legitimacy index; the dynamic adjustment weight factor is introduced to reflect the dynamic changes in the evaluation of different identity information data. The relevant calculation formula is:
[0021]
[0022] In the formula, ρ iTo dynamically adjust the weight factor; calculate the legitimacy index of the final new node, the relevant calculation formula is:
[0023]
[0024] Where L is the legitimacy index of the new node.
[0025] As a preferred solution of the secure and trusted communication method for the wireless self-organizing network of the present invention, wherein: the judging the legitimacy of the new node according to the legitimacy index of the new node includes calculating the legitimacy index limit of the new node, judging whether the new node joins the network according to the legitimacy index limit of the new node, and the calculation formula of the legitimacy index division limit of the new node is as follows:
[0026]
[0027] Where, L t Set limits for the legitimacy index of new nodes, E j is the legitimacy index value calculated when the jth node joins, w j is the weight factor when the jth node joins, R1 is the number of nodes joining; when the legitimacy index L of the new node is within the legitimacy index division limit L of the new node t When the legitimacy index L of the new node is greater than the legitimacy index division limit L of the new node, the system allows the new node to join the node network and dynamically adjusts the network settings for the new node according to the real-time status of the network. t When the legality of the current new node is judged to be illegal, the system refuses the new node to join the node network, performs a security check on the new node, checks the identity information and communication protocol of the new node, records the illegal status of the new node, and notifies the network administrator.
[0028] As a preferred solution of the secure and trusted communication method for the wireless self-organizing network described in the present invention, wherein: the optimization of network node energy consumption includes dynamically adjusting the encryption strength and dynamically adjusting the data transmission frequency; dynamically adjusting the encryption strength includes dynamically adjusting the encryption strength according to the security requirements of the network and the energy status of the node, and when the network security requirements are not high or the node power is less than 20%, reducing the encryption strength to save energy, and reducing the encryption strength is achieved by adjusting the key length to reduce the length of the key; dynamically adjusting the data transmission frequency includes reducing the working time of the node for non-real-time data transmission by delaying the transmission, collecting data at one time within a certain period of time and sending it, and setting the device to low power mode or sleep mode when data is not transmitted.
[0029] In a second aspect, the present invention provides a secure and trusted communication system for a wireless self-organizing network, which includes: a distribution module, which is used to initialize the system network, exchange preliminary communication data and distribution keys between nodes through physical contact or an established node trust relationship; a verification module, which is used to verify the node when a new node joins the system network, check the identity information data of the new node, and calculate the legitimacy index of the new node; an adjustment module, which is used to determine whether the new node has joined the network based on the legitimacy index of the new node, and dynamically adjust the network settings of the new node joining the network based on the real-time status of the network; an optimization module, which is used to encrypt the transmission data using a hybrid encryption mechanism during the data transmission process, and at the same time optimize the energy consumption of the network nodes, so as to perform secure and trusted communication in the wireless self-organizing network.
[0030] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the processor executes the computer program, the steps of a secure and trusted communication method for a wireless self-organizing network are implemented.
[0031] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program is executed by a processor, the steps of a method for secure and trusted communication in a wireless ad hoc network are implemented.
[0032] The beneficial effects of the present invention are that a hybrid encryption mechanism is used to enhance the confidentiality and integrity of data; at the same time, through the energy consumption optimization of nodes, communication energy consumption is reduced as much as possible while ensuring communication security; through the adaptive configuration of nodes and trust-based node management, the establishment and maintenance of the network are simplified, which can effectively improve the data security and network reliability of wireless self-organizing networks without the support of security infrastructure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flow chart of a secure and trusted communication method for a wireless ad hoc network.
[0035] Figure 2 A schematic diagram is implemented for the node verification phase of a secure and trusted communication method for wireless ad hoc networks.
[0036] Figure 3 Schematic diagram of node energy consumption optimization for a secure and trusted communication method for wireless ad hoc networks. DETAILED DESCRIPTION
[0037] In order to make the above-mentioned purposes, features and advantages of the present invention more understandable, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0039] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0040] Example 1
[0041] Reference Figure 1 , which is the first embodiment of the present invention, and which provides a secure and trusted communication method for a wireless ad hoc network, comprising:
[0042] S1: Initialize the system network, exchange preliminary communication data and distribute keys between nodes through physical contact or established node trust relationship;
[0043] Specifically, a node must be authenticated by at least one trusted network member before it can join the network; when a new node is ready to join the network, it first needs to exchange keys and authenticate its identity. The key exchange process uses asymmetric encryption technology to generate a pair of public and private keys from a known trusted node in the existing network, and transmit the public key to the new node through a secure channel. The new node uses this public key to encrypt information, thereby completing the key exchange. The secure channel can be through direct physical contact or an encrypted communication channel. Use quantum key distribution technology. Quantum key distribution uses the principles of quantum mechanics to securely share keys between two nodes. This method has the advantage of being unbreakable because any attempt to eavesdrop will change the quantum state and be detected. Combining traditional asymmetric encryption and quantum key distribution can greatly improve the security of the key exchange process.
[0044] Each node generates its own asymmetric key pair. When physical contact is used to exchange preliminary communication data between nodes, the nodes directly exchange public keys through USB, NFC and Bluetooth short-range communication technology. When exchanging public keys, each node calculates the legitimacy index of the received node and verifies the legitimacy of the received public key.
[0045] When a node has the public key of another node, it generates a temporary session key, encrypts it with the other node's public key, and passes it to the other node;
[0046] The receiver uses the private key it generates to decrypt the session key, and the two nodes share the session key for subsequent symmetric encryption communications;
[0047] When using the established node trust relationship to exchange preliminary communication data between nodes, the new node is first authenticated by one or more trusted nodes, and a public key certificate is issued to the new node by the trusted node. The certificate includes the public key of the new node and the digital signature of the trusted node;
[0048] The new node distributes the certificate to other nodes in the network. Other nodes use the public key of the trusted node to verify the validity of the certificate. The nodes exchange session keys through an encrypted communication channel.
[0049] S2: When a new node joins, the system network performs node verification, checks the identity information data of the new node, and calculates the legitimacy index of the new node;
[0050] Specifically, the identity information data of the new node includes node hardware feature data, node historical behavior data, node topology data, and node energy consumption data; Node hardware feature data: MAC address: the physical address of each network device, used to identify the unique device in the network. Node historical behavior data: Node historical operation records: including the number of node startups, maintenance records, fault history, etc., these data can be used to evaluate the reliability of the node. Node communication history: record the communication mode and data exchange history of the node to detect any abnormal behavior. Node performance data: Response time: the response time of the node to the network request, used to evaluate the activity and processing power of the node. Data transmission rate: the data transmission rate of the node in the network, used to evaluate the communication capability of the node. Node topology data: the location of the node in the network, used to analyze the role and importance of the node in the network structure. Node energy consumption data.
[0051] When a new node joins, the network is in the node verification phase. At this time, the node must be authenticated by at least one trusted network member before joining the network.
[0052] The node verification phase includes two steps: node identity verification and adaptive configuration. Each newly joined node must be verified by at least one trusted node in the network. This verification is similar to friend recommendations in social networks. New nodes must be introduced by at least one trusted node before they can join the network.
[0053] Node verification verifies the legitimacy of new nodes by checking their identity information. Each node in the network has dynamic routing and adaptive configuration capabilities. When a new node joins, its network settings can be dynamically adjusted according to the real-time status of the network, including IP address allocation and routing table updates.
[0054] Collect identity information data of new nodes and pre-process the collected data;
[0055] Use a hash function to hash the node MAC address to obtain a numerical representation, and calculate the average response time, data transmission rate, topology importance index, and average and standard deviation of energy consumption data of all nodes in the network;
[0056] Construct an identity information data evaluation function, assign and evaluate the identity information data of the new node, and calculate the evaluation score of the identity information data. The relevant calculation formula is as follows:
[0057]
[0058] Where H(x) is the hash value of the MAC address of node i, H(0) is the average hash value of known legal nodes in the network, and y i is the historical behavior data of the node, is the average value of historical behavior data, σ b is the standard deviation of the node's historical behavior data, n is the number of data points, z i is the topological importance index of node i, z max is the maximum topological importance index in the network, σ st is the number of shortest paths from node s to node t in the network, σ st (i) is the number of paths passing through node i in the shortest path; v is the energy consumption data of the new node, v0 is the average energy consumption of nodes in the network, σ v is the standard deviation of node energy consumption in the network;
[0059] The legitimacy index of the new node is calculated according to the evaluation score of the identity information data, and the legitimacy of the new node is judged according to the legitimacy index of the new node.
[0060] Get the calculated evaluation score F i , for each assignment evaluation, calculate the weight of the identity information data, and the relevant calculation formula is as follows:
[0061]
[0062] Where n is the number of types of identity information data assigned for evaluation;
[0063] Each calculated evaluation score is standardized to eliminate the influence of different dimensions. The relevant calculation formula is as follows:
[0064]
[0065] In the formula, μ i is the average score of the evaluation score of the ith identity information data assignment, σ i is the standard deviation of the evaluation score assigned to the i-th identity information data;
[0066] Calculate the intermediate comprehensive legitimacy index, the relevant calculation formula is as follows:
[0067]
[0068] W i,s =W i ·F i,n
[0069] Where, L i is the intermediate comprehensive legitimacy index;
[0070] The dynamic adjustment weight factor is introduced to reflect the dynamic changes in the evaluation of different identity information data. The relevant calculation formula is:
[0071]
[0072] In the formula, ρ i To dynamically adjust the weight factor;
[0073] Calculate the legitimacy index of the final new node. The relevant calculation formula is:
[0074]
[0075] Where L is the legitimacy index of the new node.
[0076] S3: Determine whether a new node joins the network based on its legitimacy index, and dynamically adjust network settings for new nodes that join the network based on the real-time status of the network;
[0077] Specifically, in the data transmission stage, a hybrid encryption mechanism is used to encrypt the transmitted data to ensure the security of the data transmission process; data communication based on symmetric keys. Once the key exchange is completed, all inter-node communications use symmetric encryption technology. The symmetric key is generated by the asymmetric key exchange process and securely transmitted within the network. Symmetric encryption ensures the confidentiality and integrity of the transmitted data and combats potential man-in-the-middle attacks and data eavesdropping. In the data transmission stage, in addition to the hybrid encryption mechanism, homomorphic encryption technology is used. Homomorphic encryption allows users to perform calculations on encrypted data without decrypting it first. This means that data processing and analysis can be performed while the data is encrypted, thereby protecting the privacy of the data.
[0078] Calculate the legitimacy index limit of the new node, and determine whether the new node joins the network based on the legitimacy index limit of the new node. The calculation formula for the legitimacy index division limit of the new node is as follows:
[0079]
[0080] Where, L t Set limits for the legitimacy index of new nodes, E j is the legitimacy index value calculated when the jth node joins, w j is the weight factor when the jth node joins, and R1 is the number of nodes joining;
[0081] When the legitimacy index L of the new node is greater than the legitimacy index division limit L of the new node t When the following conditions are met, the legitimacy of the current new node is judged to be legal, and the system allows the new node to join the node network, and dynamically adjusts the network settings of the new node according to the real-time status of the network;
[0082] When the legitimacy index L of the new node is greater than the legitimacy index division limit L of the new node t When the legality of the current new node is judged to be illegal, the system refuses the new node to join the node network, performs a security check on the new node, checks the identity information and communication protocol of the new node, records the illegal status of the new node, and notifies the network administrator.
[0083] S4: A hybrid encryption mechanism is used to encrypt the transmitted data during the data transmission process, while optimizing the energy consumption of network nodes to achieve secure and trusted communication in wireless ad hoc networks.
[0084] Specifically, the energy consumption of network nodes is optimized to reduce network consumption as much as possible while ensuring secure communication. Node energy consumption optimization. Given that nodes in a self-organizing network may be energy-constrained devices, it is necessary to reduce communication energy consumption as much as possible while ensuring communication security.
[0085] Energy consumption optimization includes the following two aspects:
[0086] (1) Dynamically adjust encryption strength. Dynamically adjust encryption strength according to network security requirements and node energy status. When network security requirements are not high or node power is less than 20%, reduce encryption strength to save energy. Reducing encryption strength is achieved by adjusting the key length. While ensuring basic security, the key length is reduced, thereby reducing the amount of calculation and energy consumption.
[0087] (2) Dynamically adjust the data transmission frequency. For non-real-time or non-critical data transmission, reduce the working time of the node by delaying the transmission, collect the data within a certain period of time, and then send it all at once. When the data is not transmitted, set the device to low power mode or sleep state, greatly reducing the energy consumption in the idle state.
[0088] Furthermore, the present embodiment also provides a secure and trusted communication system for a wireless self-organizing network, including: a distribution module, used to initialize the system network, exchange preliminary communication data and distribution keys between nodes through physical contact or an established node trust relationship; a verification module, used to verify the node when a new node joins the system network, check the identity information data of the new node, and calculate the legitimacy index of the new node; an adjustment module, used to determine whether the new node has joined the network based on the legitimacy index of the new node, and dynamically adjust the network settings of the new node joining the network based on the real-time status of the network; an optimization module, used to encrypt the transmission data using a hybrid encryption mechanism during data transmission, and at the same time optimize the energy consumption of network nodes to perform secure and trusted communication in the wireless self-organizing network.
[0089] This embodiment also provides a computer device, which is suitable for the case of a secure and trusted communication method for a wireless self-organizing network, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute computer-executable instructions to implement all or part of the steps of the method described in the embodiment of the present invention as proposed in the above embodiment.
[0090] This embodiment also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method in any optional implementation of the above embodiment is executed. Wherein, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk.
[0091] The storage medium proposed in this embodiment and the data storage method proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0092] Example 2
[0093] Reference Figure 2 and Figure 3 , which is the second embodiment of the present invention, and this embodiment provides a secure and trusted communication method for a wireless self-organizing network. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0094] Table 1 Technical characteristics comparison table
[0095]
[0096] From the above, it can be seen that the present invention adopts a hybrid encryption mechanism to enhance the confidentiality and integrity of data; at the same time, through the energy consumption optimization of nodes, while ensuring communication security, the communication energy consumption is reduced as much as possible; through the adaptive configuration of nodes and trust-based node management, the establishment and maintenance of the network are simplified, which can effectively improve the data security and network reliability of wireless self-organizing networks without the support of security infrastructure.
[0097] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A secure and trusted communication method for a wireless ad hoc network, characterized in that: include, Initialize the system network, exchange preliminary communication data and distribute keys between nodes through physical contact or established node trust relationship; When a new node joins, the system network performs node verification, checks the identity information data of the new node, and calculates the legitimacy index of the new node; Determine whether a new node joins the network based on its legitimacy index, and dynamically adjust network settings for new nodes that join the network based on the real-time status of the network; During the data transmission process, a hybrid encryption mechanism is used to encrypt the transmitted data, while the energy consumption of network nodes is optimized to achieve secure and reliable communication in the wireless self-organizing network.
2. The secure and trusted communication method for a wireless ad hoc network as claimed in claim 1, characterized in that: The preliminary communication data and distribution key between the switching nodes include the following steps: Each node generates its own asymmetric key pair. When physical contact is used to exchange preliminary communication data between nodes, the nodes directly exchange public keys through USB, NFC and Bluetooth short-range communication technology. When exchanging public keys, each node calculates the legitimacy index of the received node and verifies the legitimacy of the received public key. When a node has the public key of another node, it generates a temporary session key, encrypts it with the other node's public key, and passes it to the other node; The receiver uses the private key it generates to decrypt the session key, and the two nodes share the session key for subsequent symmetric encryption communications; When using the established node trust relationship to exchange preliminary communication data between nodes, the new node is first authenticated by one or more trusted nodes, and a public key certificate is issued to the new node by the trusted node. The certificate includes the public key of the new node and the digital signature of the trusted node; The new node distributes the certificate to other nodes in the network. Other nodes use the public key of the trusted node to verify the validity of the certificate. The nodes exchange session keys through an encrypted communication channel.
3. The secure and trusted communication method for a wireless ad hoc network as claimed in claim 2, characterized in that: The identity information data of the new node includes node hardware feature data, node historical behavior data, node topology data, and node energy consumption data; The node hardware feature data includes the device MAC address, the node historical behavior data includes the number of node startups, fault history, and node communication history; the node topology data includes the importance index of the node in the network structure and the node energy consumption data.
4. The secure and trusted communication method for a wireless ad hoc network as claimed in claim 3, characterized in that: The calculation of the legitimacy index of the new node includes the following steps: Collect identity information data of new nodes and pre-process the collected data; Use a hash function to hash the node MAC address to obtain a numerical representation, and calculate the average response time, data transmission rate, topology importance index, and average and standard deviation of energy consumption data of all nodes in the network; Construct an identity information data evaluation function, assign and evaluate the identity information data of the new node, and calculate the evaluation score of the identity information data. The relevant calculation formula is as follows: Where H(x) is the hash value of the MAC address of node i, H(0) is the average hash value of known legal nodes in the network, and y i is the historical behavior data of the node, is the average value of historical behavior data, σ b is the standard deviation of the node's historical behavior data, n is the number of data points, z i is the topological importance index of node i, z max is the maximum topological importance index in the network, σ st is the number of shortest paths from node s to node t in the network, σ st (i) is the number of paths passing through node i in the shortest path; v is the energy consumption data of the new node, v0 is the average energy consumption of nodes in the network, σ v is the standard deviation of node energy consumption in the network; The legitimacy index of the new node is calculated according to the evaluation score of the identity information data, and the legitimacy of the new node is judged according to the legitimacy index of the new node.
5. The secure and trusted communication method for a wireless ad hoc network as claimed in claim 4, characterized in that: The legitimacy index of the new node includes obtaining the calculated evaluation score F i , for each assignment evaluation, calculate the weight of the identity information data, and the relevant calculation formula is as follows: Where n is the number of types of identity information data assigned for evaluation; Each calculated evaluation score is standardized to eliminate the influence of different dimensions. The relevant calculation formula is as follows: In the formula, μ i is the average score of the evaluation score of the ith identity information data assignment, σ i is the standard deviation of the evaluation score assigned to the i-th identity information data; Calculate the intermediate comprehensive legitimacy index, the relevant calculation formula is as follows: W i,s =W i ·F i,n Where, L i is the intermediate comprehensive legitimacy index; The dynamic adjustment weight factor is introduced to reflect the dynamic changes in the evaluation of different identity information data. The relevant calculation formula is: In the formula, ρ i To dynamically adjust the weight factor; Calculate the legitimacy index of the final new node. The relevant calculation formula is: Where L is the legitimacy index of the new node.
6. The secure and trusted communication method for a wireless ad hoc network as claimed in claim 5, characterized in that: The method of judging the legitimacy of the new node according to the legitimacy index of the new node includes calculating the legitimacy index limit of the new node, and judging whether the new node joins the network according to the legitimacy index limit of the new node. The calculation formula of the legitimacy index division limit of the new node is as follows: Where, L t Set limits for the legitimacy index of new nodes, E j is the legitimacy index value calculated when the jth node joins, w j is the weight factor when the jth node joins, and R1 is the number of nodes joining; When the legitimacy index L of the new node is greater than the legitimacy index division limit L of the new node t When the following conditions are met, the legitimacy of the current new node is judged to be legal, and the system allows the new node to join the node network, and dynamically adjusts the network settings of the new node according to the real-time status of the network; When the legitimacy index L of the new node is greater than the legitimacy index division limit L of the new node t When the legality of the current new node is judged to be illegal, the system refuses the new node to join the node network, performs a security check on the new node, checks the identity information and communication protocol of the new node, records the illegal status of the new node, and notifies the network administrator.
7. The secure and trusted communication method for a wireless ad hoc network as claimed in claim 6, characterized in that: The optimization of network node energy consumption includes dynamically adjusting encryption strength and dynamically adjusting data transmission frequency; Dynamically adjusting encryption strength includes dynamically adjusting encryption strength according to network security requirements and node energy status. When network security requirements are not high or node power is less than 20%, encryption strength is reduced to save energy. Reducing encryption strength is achieved by adjusting key length to reduce key length. Dynamically adjusting the data transmission frequency includes reducing the working time of the node by delaying the transmission for non-real-time data transmission, collecting data and sending it all at once within a certain period of time, and setting the device to low power mode or sleep state when data is not transmitted.
8. A secure and trusted communication system for a wireless self-organizing network, based on the secure and trusted communication method for a wireless self-organizing network according to any one of claims 1 to 7, characterized in that: include, A distribution module, used to initialize the system network, exchange preliminary communication data and distribution keys between nodes through physical contact or established node trust relationships; The verification module is used to verify the node when a new node joins the system network, check the identity information data of the new node, and calculate the legitimacy index of the new node; The adjustment module is used to determine whether a new node joins the network based on the legitimacy index of the new node, and dynamically adjust the network settings of the new node joining the network according to the real-time status of the network; The optimization module is used to encrypt the transmitted data using a hybrid encryption mechanism during the data transmission process, while optimizing the energy consumption of network nodes to achieve secure and reliable communication in the wireless self-organizing network.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the secure and trusted communication method for a wireless ad hoc network according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the secure and trusted communication method for a wireless ad hoc network according to any one of claims 1 to 7 are implemented.
