A trustworthy assessment method based on challenge-response model in distributed environment

By adopting the challenge-response model's trustworthiness assessment method in the distributed network, the initial trust value of the node is obtained and managed in clusters, which solves the problem of inaccurate initial trust value in the trust model and improves the detection rate of malicious nodes and the network. Security.

CN114363904BActive Publication Date: 2024-08-23CHONGQING UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210037620.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-13
Publication Date
2024-08-23
Estimated Expiration
2042-01-13

AI Technical Summary

Technical Problem

In distributed networks, it is difficult for existing trust models to obtain reliable initial trust values ​​of nodes, resulting in inaccurate predictions of the trust values ​​of malicious nodes and selfish nodes, and unable to effectively ensure network security.

Method used

Adopt a trustworthy assessment method based on the challenge-response model to obtain the initial trust value of the node through clustering, direct trust value calculation, recommended trust value calculation and trust value update, and use these trust values ​​for cluster management and trust value update , predict malicious nodes and selfish nodes, and improve network security.

Benefits of technology

This method can obtain the initial trust value that is closer to the real behavior of the node, improve the detection rate of malicious nodes, enhance network security, reduce energy overhead and ensure the accuracy of the trust value, and avoid malicious nodes deliberately devaluing the trust value of normal nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114363904B
    Figure CN114363904B
Patent Text Reader

Abstract

The present invention relates to a trusted evaluation method based on a challenge-response model in a distributed environment, and belongs to the field of communication technology. The challenge-response model is used to obtain a reliable initial trust value of a node, and the initial trust value is used to complete a complete trusted evaluation process in a distributed network environment, accurately predict the trust values ​​of malicious nodes and selfish nodes, and improve the security of the entire network. The present invention flexibly selects a comprehensive trust value calculation method based on the number of communications between the evaluation node and the evaluated node, which not only reduces the energy consumption of the network but also ensures the accuracy of the comprehensive trust value. The trust value update follows the principle of rapid decline and slow rise, which avoids the situation where malicious nodes deliberately devalue normal nodes and raise the trust values ​​of their accomplices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of communication technology and relates to a trust evaluation method based on a challenge-response model in a distributed environment. Background Art

[0002] In recent years, the Internet has gradually evolved from centralized network modes such as traditional client / server and browser / server to distributed network modes. Distributed networks are a kind of robust mesh network formed by connecting nodes deployed in different locations. In distributed networks, data transmission can be achieved through multiple paths, so compared with centralized networks, distributed networks can effectively avoid the problem of affecting the operation of the entire network due to the failure of a single important node. Currently, mature distributed application scenarios include: P2P networks, grids, distributed Adhoc networks, distributed wireless sensor networks, etc. With the continuous improvement of the efficiency and reliability requirements of the Internet of Things, medical, industrial, financial and other industries for the network, various distributed application scenarios are widely used in these industries. This means that distributed networks need to carry more and more services to make people's lives more convenient.

[0003] In this context, distributed network scenarios are becoming more and more open and the network is becoming increasingly complex, heterogeneous, and dynamic. At the same time, traditional network security measures such as identity authentication and access control technologies are too dependent on central nodes and lack scalability, and are not suitable for distributed networks. This makes it extremely challenging to ensure the security of distributed networks. Therefore, how to establish an active defense system in distributed networks to achieve endogenous network security has become an urgent problem to be solved.

[0004] In order to solve the above problems, the use of trust models in distributed networks for trusted assessment is a "soft security" technology with good flexibility and scalability, and has attracted more and more attention from the industry. By introducing trust models into the trusted assessment process of distributed networks, the behavior of nodes in the network is monitored to discover real-time changes in the behavior of nodes in the network. According to the changes in node behavior, the network management strategy can be flexibly adjusted to achieve the purpose of ensuring network security.

[0005] The prior art has the following disadvantages:

[0006] The existing methods of using trust models for trust evaluation in distributed networks mainly focus on studying how to collect more complete trust evidence and how to use some new methods such as machine learning and blockchain to evaluate node trust values, but rarely consider obtaining reliable initial trust values ​​of nodes. In practical applications, many trust models proposed for distributed networks rely on historical trust evidence, but there is no relevant historical information when the network is first trusted. Most of the existing trust models use a solution that uniformly sets the initial trust value for all nodes in the network, but the uniformly set initial trust value does not represent the true behavior of the node. Therefore, a method for obtaining a reliable initial trust value is needed, which can complete the entire trust evaluation process and accurately predict the trust values ​​of malicious nodes and selfish nodes. Summary of the invention

[0007] In view of this, the purpose of the present invention is to provide a trusted assessment method based on a challenge-response model in a distributed environment, which can use the challenge-response model to obtain a reliable initial trust value of a node, and use this initial trust value to complete a complete trusted assessment process in a distributed network environment, accurately predict the trust values ​​of malicious nodes and selfish nodes, and improve the security of the entire network.

[0008] In order to achieve the above object, the present invention provides the following technical solutions:

[0009] A trust evaluation method based on a challenge-response model in a distributed environment, the method comprising the following steps:

[0010] S1: Clustering: Several nodes with the highest initial trust values ​​are selected as cluster head nodes, responsible for cluster management and data processing, and the remaining nodes are randomly and evenly distributed to each cluster;

[0011] S2: Direct trust value calculation: The direct trust value is calculated based on the communication behavior between the evaluation node A and the evaluated node B and the residual energy of node B;

[0012] S3: Calculation of recommended trust value: If there is little communication between node A and node B, a group of recommended nodes {C1, C2, ..., C Z}Give the recommended trust value;

[0013] S4: Calculation of comprehensive trust value: If there is no recommended trust value, the direct trust value is equal to the comprehensive trust value; if there is a recommended trust value, the comprehensive trust value is obtained by weighting the direct trust value and the recommended trust value;

[0014] S5: Trust value update: Adopt the trust value update mechanism based on the sliding window of new records and follow the trust value update principle of fast decrease and slow increase;

[0015] After obtaining a reliable initial trust value, this initial trust value is used for clustering, trust value calculation, and trust value update, with the goal of predicting malicious nodes and selfish nodes to improve network security.

[0016] Optionally, in S1, clustering includes obtaining the initial trust value of the node, selecting the node with the initial trust value not less than 0.95 as the cluster head node, responsible for cluster management and data processing; the remaining nodes will be randomly and evenly distributed to each cluster to form a hierarchical management structure.

[0017] Optionally, S2 is specifically:

[0018] 1) Calculate the trust value based on communication behavior: Introduce the trust triple {b, d, u}, where b, d and u correspond to trust, distrust and uncertainty respectively, b, d, u ∈ [0, 1] and b + d + u = 1, then:

[0019]

[0020] s and f refer to the number of successful and unsuccessful communications, λ represents the penalty factor for unsuccessful communications, λ>1; u is the uncertainty factor in the network, u=δ c (s+f), where δ c ∈(0,1) is the control factor of uncertain factors; the trust value based on communication behavior is expressed as:

[0021] 2) Calculate the energy-based trust value: The nodes in the distributed network depend on the energy they have; θ is the energy threshold, and the energy trust value is defined by the ratio of the remaining energy to the initial energy:

[0022]

[0023] 3) Calculate direct trust value: based on the communication trust value T com and energy trust value T ene The direct trust value between two nodes can be obtained: T direct =ω com T com +ω ene T ene ; Among them, ω com and ω ene are the weights of the communication behavior trust evidence and the energy trust evidence, respectively, and ω com +ω ene =1.

[0024] Optionally, the S3 is specifically:

[0025] When evaluating node A wants to obtain the recommended trust value of the evaluated node B, it will select the node with the higher initial trust value from a group of common neighbor nodes of nodes A and B as the recommended node C. i , i=1,2,...,Z; after receiving the request information from node A, the recommendation node feeds back the recommendation value of node B to node A; when node A receives multiple recommendation values, it calculates the weight of each recommendation value by detecting its consistency: in, It is the recommended node C i Recommended values ​​for Node B, is the average value of all recommended nodes for node B; based on the recommended value Recommended weight And the number of recommended nodes Z, the recommended trust value is calculated as follows:

[0026]

[0027] Optionally, the S4 is specifically:

[0028] According to the communication data packet cp between the evaluation node A and the evaluated node B AB The communication packet threshold Th num The size is:

[0029]

[0030] Among them, ω direct and ω recom are the weights of direct trust value and recommended trust value, ω direct +ω recom =1.

[0031] Optionally, the S5 is specifically:

[0032] When a new trust value is generated, the sliding window moves and the old trust value is removed from the window; an adjustment factor γ is introduced, 0<γ<1 to control the speed of trust value update: Among them, T new is the trust value in the latest record, T old is the historical trust value.

[0033] Optionally, the challenge-response model includes:

[0034] Super nodes: reliable nodes with sufficient energy, mainly responsible for implementing a challenge-response model with ordinary nodes;

[0035] Ordinary nodes: a large number of nodes in a distributed network i ∈N, i=1,2,...,M;

[0036] A pseudo-random number generation algorithm is introduced into the super node to generate a unique challenge number for each node;

[0037] Using the RSA public key cryptographic algorithm principle, the node set N = {n1, n2, n3, ..., n M}Perform the pre-key operation. The node pre-key pair includes the following steps:

[0038] S11: Find the product R of two prime numbers: generate prime numbers p and q using a pseudo-random number generator, and obtain R=p×q;

[0039] S12: Find L: Find L that satisfies the condition L=lcm(p-1,q-1), where lcm(p-1,q-1) is the least common multiple of p-1 and q-1;

[0040] S13: Find the public key E: Find the public key E that meets the condition gcd(E,L)=1, where gcd(E,L) is the greatest common divisor of E and L;

[0041] S14: Find the private key D: Find the private key D that meets the conditions 1<D<L and E×DmodL=1;

[0042] S15: For each node n i Pre-set key pair (E i ,R i ),(D i ,R i );

[0043] After the node completes the pre-keying, the super node and the ordinary node implement a challenge-response model to obtain the node n i Response result: number of successful challenges Number of challenge failures

[0044] In the network, the response result and the Bayesian criterion are combined to obtain the initial trust value of the node. The specific process includes the following steps:

[0045] S21: Introduce the Bayesian criterion to measure the uncertainty probability x of node behavior; first assign a prior distribution p(x) to x, p(x) is taken from the Beta function family:

[0046]

[0047] S22: r represents the response result after a round of challenge. When r = 1, it means that the node's response to the super node is the expected response. When r = 0, it means that the node's response to the super node is an unexpected response. The probability of r occurring after each round of challenge-response combined with the given unknown probability x is expressed as: p(r|x) = x r (1-x)1-r ;

[0048] S23: After a round of challenge-response is completed, the total probability formula and the conditional probability formula are combined to update the posterior distribution p(x|r) of x using the Bayesian criterion:

[0049]

[0050] S24: Arrange the above formula to get:

[0051]

[0052] From the above formula, we know that the posterior distribution of x is also Beta distribution, and its parameters are (α+r) and (β+1-r);

[0053] S25: In c num After a round of challenge-response, the posterior distribution of x is p(x|r1r2...r cnum ), whose parameters are and c num After the challenge-response round, the expected value of the posterior distribution of x is:

[0054]

[0055] in, When Beta distribution is used to obtain the node trust value, the expected value of the posterior distribution of x is represents its trust value; the response result is mapped to the initial trust value T initial Get:

[0056]

[0057] The beneficial effects of the present invention are:

[0058] (1) The challenge-response model for obtaining a reliable initial trust value of a node in the present invention provides a solution to the problem of lack of historical trust evidence when using a trust model for trust evaluation in a distributed network. Compared with the method of using a unified initial trust value in most trust models, the initial trust value obtained using the challenge-response model is closer to the actual behavior of the node.

[0059] (2) The challenge-response model for obtaining a reliable initial trust value of a node in the present invention can make advance predictions of malicious nodes and selfish nodes in a distributed network, and also help improve the detection rate of malicious nodes in the network.

[0060] (3) The method of the present invention uses the obtained initial trust value to complete the complete trust evaluation process in the distributed network. Cluster management provides a platform for trust evaluation. The direct trust value obtained from the communication behavior and energy is more accurate. The recommended trust value obtained by selecting nodes with high initial trust values ​​as recommended nodes and introducing recommendation consistency is also more reliable.

[0061] (4) The method of using the obtained initial trust value to complete the complete trust evaluation process in the distributed network in the present invention flexibly selects the comprehensive trust value calculation method according to the number of communications between the evaluation node and the evaluated node, which not only reduces the energy consumption of the network but also ensures the accuracy of the comprehensive trust value. The trust value update follows the principle of rapid decline and slow increase, avoiding the situation where malicious nodes deliberately devalue normal nodes and raise the trust value of their accomplices.

[0062] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:

[0064] Figure 1 This is a diagram of the operating mechanism of the challenge-response model;

[0065] Figure 2 Provides hierarchical management structure diagram for distributed networks;

[0066] Figure 3 It is a flowchart of the trust value calculation process in a distributed network;

[0067] Figure 4 Schematic diagram of sliding window. DETAILED DESCRIPTION

[0068] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.

[0069] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.

[0070] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0071] Figure 1 This is a diagram of the operating mechanism of the challenge-response model, which includes:

[0072] Super node: A reliable node with sufficient energy, mainly responsible for implementing a challenge-response model with ordinary nodes.

[0073] Ordinary nodes: a large number of nodes in a distributed network i ∈N(i=1,2,...,M).

[0074] After the pre-set key pair operation is completed between the super node and the ordinary node, the specific steps of implementing the challenge-response model are as follows:

[0075] 1) Node n i Send [ID i ,(E i ,R i )] to the super node, and the super node records this correspondence in the table.

[0076] 2) The super node generates a challenge number Nonce i And send the challenge number to node n i .

[0077] 3) Node n i After receiving the challenge, use the identifier ID i 、Challenge number Nonce i And whether it senses the state h of the programming board being connected (0 means connected state, 1 means disconnected state), using the key pair (D i ,R i) Generate a response i =Nonce i ||ID i ||h and (ID i ,Response i ) is sent to the super node.

[0078] 4) When the super node receives the response, it uses the pre-stored key (E i ,R i ) i Decrypt to get the message sequence Is i , according to the message sequence Is i The response results of this round are divided into the following three cases:

[0079]

[0080] In the first case, the super node believes that the node has not been captured; in the second case, node n i There is a high possibility that the attacker's programming board is connected, the challenge fails, and the cumulative number of challenge failures is c num / 3 times(c num is the total number of challenge rounds); the third case indicates that these nodes may be selfish nodes with low cooperation willingness, and the challenge fails and the cumulative challenge failure count is one.

[0081] Figure 2 It is a distributed network hierarchical management structure diagram, which specifically includes:

[0082] After implementing the challenge-response model between super nodes and ordinary nodes, the ordinary node with the highest initial trust value is selected as the cluster head node. The cluster head node will be allocated more resources and energy to be responsible for cluster management and data processing; the remaining nodes are randomly and evenly distributed to each cluster, forming a Figure 2 The hierarchical management structure shown in Figure 1. Clustering provides a platform for trust evaluation. The trust value calculation and trust value update in the trust evaluation process are all performed within the cluster.

[0083] Figure 3 It is a flowchart of the trust value calculation process in a distributed network, which specifically includes:

[0084] Evaluation Node A: The node that initiates the trusted evaluation.

[0085] Evaluated node B: The node whose trust value is evaluated in the trusted evaluation.

[0086] Recommended Node C i : The set of nodes that have communication records with both nodes A and B.

[0087] When node A wants to obtain the trust value of node B, the specific steps are as follows:

[0088] 1) Calculate the direct trust value based on the communication behavior between the two nodes and the residual energy of node B, including:

[0089] Calculate the trust value based on communication behavior: Introduce the trust triple {b, d, u}, where b, d and u correspond to trust, distrust and uncertainty respectively, b, d, u ∈ [0, 1] and b + d + u = 1, then:

[0090]

[0091] s and f refer to the number of successful and unsuccessful communications, and λ (λ>1) represents the penalty factor for unsuccessful communications. u is the uncertainty factor in the network, u = δ c (s+f), where δ c ∈(0,1) is the control factor of uncertain factors. The trust value based on communication behavior can be expressed as:

[0092] Calculating energy-based trust values: Nodes in a distributed network rely on the energy they possess. θ is the energy threshold, and the energy trust value is defined by the ratio of the remaining energy to the initial energy:

[0093]

[0094] Calculate direct trust value: based on communication trust value T com and energy trust value T ene The direct trust value between two nodes can be obtained: T direct =ω com T com +ω ene T ene Among them, ω com and ω ene are the weights of the communication behavior trust evidence and the energy trust evidence, respectively, and ω com +ω ene =1.

[0095] 2) If there is little communication between node A and node B, a set of recommended nodes {C1, C2, ..., C Z} Give the recommended trust value, including:

[0096] When evaluating node A wants to obtain the recommended trust value of the evaluated node B, it will select the node with the higher initial trust value from a group of common neighbor nodes of nodes A and B as the recommended node C. i(i=1,2,...,Z). After receiving the request information from node A, the recommendation node feeds back the recommendation value of node B to node A. When node A receives multiple recommendation values, it calculates the weight of each recommendation value by detecting its consistency: in, It is the recommended node C i Recommended values ​​for Node B, It is the average value of all recommended nodes' recommendation value for node B. Based on the recommended value Recommended weight And the number of recommended nodes Z, the recommended trust value is calculated as follows:

[0097]

[0098] 3) If there is a recommended trust value, the direct trust value and the recommended trust value need to be weighted to obtain a comprehensive trust value:

[0099]

[0100] Among them, cp AB is the number of communication packets between the evaluating node A and the evaluated node B, Th num is the threshold value that defines the communication data packet; ω direct and ω recom are the weights of direct trust value and recommended trust value, ω direct +ω recom =1.

[0101] Figure 4 This is a schematic diagram of the sliding window when the trust value is updated, including:

[0102] A trust value update mechanism based on a new record sliding window is adopted. The principle of trust value update based on new record triggering is that when a new trust record is generated, the sliding window moves and the old trust record is removed from the window. Figure 4 The window shown stores the trust records of the node. The leftmost window records the oldest historical trust record, and the rightmost window records the latest trust record. After the trust value update starts, the window moves from left to right as new records are generated, and the historical records are cleared regularly.

[0103] The trust value update follows the principle of fast decrease and slow increase, and the speed of trust value update is controlled by introducing the adjustment factor γ (0<γ<1): Among them, T new is the trust value in the latest record, T old is the historical trust value.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution 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 solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.

Claims

1. A trust evaluation method based on a challenge-response model in a distributed environment, characterized by: In a distributed network environment, a challenge-response model is used to obtain the initial trust value of a node and complete the entire trust evaluation process. The method includes the following steps: S1: Clustering: Select the top nodes with the highest initial trust values ​​from high to low as cluster head nodes, which are responsible for cluster management and data processing. The remaining nodes are randomly and evenly distributed to each cluster. S2: Direct trust value calculation: The direct trust value is calculated based on the communication behavior between the evaluation node A and the evaluated node B and the residual energy of node B; S3: Calculation of recommended trust value: If the communication behavior between node A and node B is less than a certain value, a group of recommended nodes {C1, C2, ..., C Z }Give the recommended trust value; S4: Calculation of comprehensive trust value: If there is no recommended trust value, the direct trust value is equal to the comprehensive trust value; if there is a recommended trust value, the comprehensive trust value is obtained by weighting the direct trust value and the recommended trust value; S5: Trust value update: Adopt the trust value update mechanism based on the sliding window of new records and follow the trust value update principle of fast decrease and slow increase; After obtaining a reliable initial trust value, this initial trust value is used for clustering, trust value calculation, and trust value update, with the goal of predicting malicious nodes and selfish nodes to improve network security; The challenge-response model includes: Super nodes: reliable nodes with sufficient energy, responsible for implementing a challenge-response model with ordinary nodes; Ordinary nodes: a large number of nodes in a distributed network j ∈N, j=1,2,...,M; A pseudo-random number generation algorithm is introduced into the super node to generate a unique challenge number for each node; Using the RSA public key cryptographic algorithm principle, the node set N = {n1, n2, n3, ..., n M }Perform the pre-key operation. The node pre-key pair includes the following steps: S11: Find the product R of two prime numbers: generate prime numbers p and q using a pseudo-random number generator, and obtain R=p×q; S12: Find L: Find L that satisfies the condition L=lcm(p-1,q-1), where lcm(p-1,q-1) is the least common multiple of p-1 and q-1; S13: Find the public key E: Find the public key E that meets the condition gcd(E,L)=1, where gcd(E,L) is the greatest common divisor of E and L; S14: Find the private key D: Find the private key D that meets the conditions 1<D<L and E×DmodL=1; S15: For each node n j Pre-set key pair (E j ,R j ),(D j ,R j ); After the node completes the pre-keying, the super node and the ordinary node implement a challenge-response model to obtain the node n j Response result: number of successful challenges Number of challenge failures In the network, the response result and the Bayesian criterion are combined to obtain the initial trust value of the node. The specific process includes the following steps: S21: Introduce the Bayesian criterion to measure the uncertainty probability x of node behavior; first assign a prior distribution p(x) to x, p(x) is taken from the Beta function family: S22: r represents the response result after a round of challenge. When r = 1, it means that the node's response to the super node is the expected response. When r = 0, it means that the node's response to the super node is an unexpected response. The probability of r occurring after each round of challenge-response combined with the given unknown probability x is expressed as: p(r|x) = x r (1-x) 1-r ; S23: After a round of challenge-response is completed, the total probability formula and the conditional probability formula are combined to update the posterior distribution p(x|r) of x using the Bayesian criterion: S24: Arrange the above formula to get: From the above formula, we know that the posterior distribution of x is also Beta distribution, and its parameters are (α+r) and (β+1-r); S25: In c num The posterior distribution of x after a round of challenge-response is Its parameters are and c num After the challenge-response round, the expected value of the posterior distribution of x is: in, When Beta distribution is used to obtain the node trust value, the expected value of the posterior distribution of x is represents its trust value; the response result is mapped to the initial trust value T initial Get: In S1, clustering includes obtaining the initial trust value of the node, selecting the node with the initial trust value not less than 0.95 as the cluster head node, which is responsible for cluster management and data processing; the remaining nodes will be randomly and evenly distributed to each cluster to form a hierarchical management structure; In S2, the direct trust value calculation is to obtain the direct trust value by weighting the communication trust value and the energy trust value. The specific contents are as follows: 1) Calculate the trust value based on communication behavior: Introduce the trust triple {b, d, u}, where b, d and u correspond to trust, distrust and uncertainty factors respectively, b, d, u ∈ [0, 1] and b + d + u = 1, then: s and f refer to the number of successful and unsuccessful communications, λ represents the penalty factor for unsuccessful communications, λ>1; u is the uncertainty factor, u=δ c (s+f), where δ c ∈(0,1) is the control factor of uncertain factors; the trust value based on communication behavior is expressed as: 2) Calculate the energy-based trust value: The nodes in the distributed network depend on the energy they have; θ is the energy threshold, and the energy trust value is defined by the ratio of the remaining energy to the initial energy: 3) Calculate direct trust value: based on the communication trust value T com and energy trust value T ene Get the direct trust value between two nodes: T direct =ω com T com +ω ene T ene ; Among them, ω com and ω ene are the weights of the communication behavior trust evidence and the energy trust evidence, respectively, and ω com +ω ene =1; In S3, the recommended trust value is calculated by selecting nodes with higher initial trust values ​​to give recommended values ​​and performing weighted summation to obtain the recommended trust value. The specific contents are as follows: When evaluating node A wants to obtain the recommended trust value of the evaluated node B, it will select the node with the higher initial trust value from a group of common neighbor nodes of nodes A and B as the recommended node C. i , i=1,2,...,Z; after receiving the request information from node A, the recommendation node feeds back the recommendation value of node B to node A; when node A receives multiple recommendation values, it calculates the weight of each recommendation value by detecting its consistency: in, It is the recommended node C i Recommended values ​​for Node B, is the average value of all recommended nodes for node B; based on the recommended value Recommended weight And the number of recommended nodes Z, the recommended trust value is calculated as follows: In S4, the comprehensive trust value calculation is to obtain the comprehensive trust value by adding the direct trust value and the recommended trust value according to different weighting methods, and the specific contents are as follows: According to the communication data packet cp between the evaluation node A and the evaluated node B AB The communication packet threshold Th num The size is: Among them, ω direct and ω recom are the weights of direct trust value and recommended trust value, ω direct +ω recom =1 In S5, the trust value is updated by using a sliding window mechanism based on new records, and the specific contents are as follows: When a new trust value is generated, the sliding window moves and the old trust value is removed from the window; an adjustment factor γ is introduced, 0<γ<1 to control the speed of trust value update: Among them, T new is the trust value in the latest record, T old is the historical trust value.