Disclosure of Invention
In order to solve the problems, the invention provides an agricultural data transaction security assessment method based on the Internet of things, which comprises the following steps:
acquiring the bandwidths of all Internet agricultural data nodes and each Internet agricultural data node during agricultural data transaction;
generating a position information point diagram according to all internet agricultural data nodes during agricultural data transaction; acquiring a data transmission shortest path in agricultural data transaction and all internet agricultural data nodes in the data transmission shortest path in the agricultural data transaction according to the position information point diagram;
acquiring a bandwidth difference weight of each Internet agricultural data node in the shortest data transmission path for data transmission according to the bandwidths of all Internet agricultural data nodes in the shortest data transmission path for agricultural data transaction; acquiring the bandwidth matching rate of each Internet agricultural data node in the shortest data transmission path during agricultural data transaction according to the bandwidth difference weight of each Internet agricultural data node in the shortest data transmission path during data transmission during agricultural data transaction; acquiring the reliability of each Internet agricultural data node in the shortest data transmission path during agricultural data transaction according to the bandwidth matching rate of each Internet agricultural data node in the shortest data transmission path during data transmission during agricultural data transaction;
Acquiring security parameters of agricultural data transaction according to the reliability of each Internet agricultural data node in the shortest data transmission path during the agricultural data transaction; acquiring a security evaluation coefficient of the agricultural data transaction according to the security parameters of the agricultural data transaction; and carrying out safety evaluation on the agricultural data transaction according to the safety evaluation coefficient of the agricultural data transaction.
Preferably, the method for obtaining all internet agriculture data nodes and the bandwidth of each internet agriculture data node during the agriculture data transaction includes the following specific steps:
the method comprises the steps of collecting crop related agricultural data corresponding to each Internet agricultural data node in the Internet of things through edge equipment or an acquisition system corresponding to the Internet of things node of a transaction party, obtaining crop related agricultural data corresponding to each Internet agricultural data node in the Internet of things, cleaning the crop related agricultural data corresponding to each node in the Internet of things, correcting the cleaned crop related agricultural data corresponding to each node in the Internet of things, finally performing format conversion to obtain crop related agricultural data corresponding to each node in the Internet of things without noise and missing values, storing the crop related agricultural data corresponding to each node in the Internet of things to storage equipment of the corresponding Internet of things node, and further obtaining all Internet agricultural data nodes in agricultural data transaction and bandwidths of all Internet agricultural data nodes in agricultural data transaction, wherein all Internet agricultural data nodes in agricultural data transaction comprise Internet agricultural data selling nodes in agricultural data transaction and Internet agricultural data purchasing nodes in agricultural data transaction.
Preferably, the method for generating the location information point diagram according to all internet agricultural data nodes during the agricultural data transaction includes the following specific steps:
for any agricultural data transaction, taking the geographic position of the storage equipment corresponding to each Internet agricultural data node during the agricultural data transaction as the geographic position of each Internet agricultural data node during the agricultural data transaction, and generating a position information dot diagram according to the geographic positions of all Internet agricultural data nodes during the agricultural data transaction.
Preferably, the method for acquiring the shortest data transmission path in the agricultural data transaction according to the location information point diagram and all internet agricultural data nodes in the shortest data transmission path in the agricultural data transaction includes the following specific steps:
setting an Internet agricultural data selling node as an initial node and an Internet agricultural data purchasing node as a termination node during agricultural data transaction; connecting the initial node and the termination node in a straight line in a position information dot diagram, and marking the straight line as a first straight line;
acquiring Euclidean distance between an initial node and each other Internet agricultural data node in the position information point diagram, and recording the Euclidean distance as a first distance of each Internet agricultural data node; obtaining the distance between each Internet agricultural data node except the initial node and the first straight line from the position information diagram, and recording the distance as the second distance of each Internet agricultural data node; for each Internet agriculture data node except the initial node in the position information diagram, marking the product of the first distance and the second distance of each Internet agriculture data node as a first weight of each Internet agriculture data node, and taking the Internet agriculture data node corresponding to the first weight of the smallest Internet agriculture data node as the first Internet agriculture data node in the shortest data transmission path in agriculture data transaction;
Marking a first Internet agricultural data node in a data transmission shortest path during agricultural data transaction as a target node, acquiring Euclidean distance between the target node and each other Internet agricultural data node in a position information diagram, and marking the Euclidean distance as a third distance of each Internet agricultural data node; obtaining the distance between each Internet agricultural data node except the target node and the first straight line from the position information diagram, and recording the distance as a fourth distance of each Internet agricultural data node; for each Internet agriculture data node except the target node in the position information diagram, marking the product of the third distance and the fourth distance of each Internet agriculture data node as a second weight of each Internet agriculture data node, and taking the Internet agriculture data node corresponding to the second weight of the smallest Internet agriculture data node as the second Internet agriculture data node in the shortest data transmission path in agriculture data transaction;
marking a second internet agricultural data node in a data transmission shortest path during agricultural data transaction as a target node, acquiring Euclidean distance between the target node and each other internet agricultural data node in a position information diagram, and marking the Euclidean distance as a fifth distance of each internet agricultural data node; obtaining the distance between each Internet agricultural data node except the target node and the first straight line from the position information diagram, and recording the distance as a sixth distance of each Internet agricultural data node; for each Internet agriculture data node except the target node in the position information diagram, marking the product of the fifth distance and the sixth distance of each Internet agriculture data node as a third weight of each Internet agriculture data node, and taking the Internet agriculture data node corresponding to the third weight of the smallest Internet agriculture data node as the third Internet agriculture data node in the shortest data transmission path in agriculture data transaction;
And so on untilObtain the firstThe Internet agricultural data node is taken as a termination node, and the first Internet agricultural data node is taken as the first Internet agricultural data node to the +.>The internet agriculture data nodes are used as all internet agriculture data nodes in the shortest data transmission path when the agriculture data is transacted, and form an agriculture data transaction sequence.
Preferably, the specific formula for obtaining the bandwidth difference weight of each internet agricultural data node in the shortest data transmission path when carrying out data transmission according to the bandwidth of all internet agricultural data nodes in the shortest data transmission path when carrying out agricultural data transaction is:
。
in the method, in the process of the invention,representing the first +.in the shortest data transmission path for agricultural data transactions>Bandwidth difference weight when the internet agricultural data nodes perform data transmission; />Representing the first +.in the shortest data transmission path for agricultural data transactions>The bandwidths of the internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions>Internet agricultural data nodeA bandwidth; />Is a linear normalization function.
Preferably, the specific formula for obtaining the bandwidth matching rate of each internet agricultural data node in the shortest data transmission path when the data transmission is performed according to the bandwidth difference weight of each internet agricultural data node in the shortest data transmission path when the data transmission is performed in the agricultural data transaction is:
。
In the method, in the process of the invention,representing the first +.in the shortest data transmission path for agricultural data transactions>Bandwidth matching rate when the individual internet agricultural data nodes perform data transmission; />Representing the first +.in the shortest data transmission path for agricultural data transactions>Bandwidth difference weights of the internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions>The bandwidths of the internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions>The bandwidths of the internet agricultural data nodes; />Is a preset parameter; />An exponential function based on a natural constant is represented.
Preferably, the specific formula for obtaining the reliability of each internet agricultural data node in the shortest data transmission path when the agricultural data transaction is performed according to the bandwidth matching rate when each internet agricultural data node in the shortest data transmission path performs data transmission in the agricultural data transaction is:
。
in the method, in the process of the invention,representing the first +.in the shortest data transmission path for agricultural data transactions>Reliability of individual internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions>Bandwidth matching rate when the individual internet agricultural data nodes perform data transmission; / >Representing the total number of all internet agricultural data nodes in a data transmission shortest path in agricultural data transaction; />Representing the first +.in the shortest data transmission path for agricultural data transactions>A serial number of each internet agricultural data node in the agricultural data transaction sequence; />An exponential function based on a natural constant is represented.
Preferably, the method for obtaining the security parameter of the agricultural data transaction according to the reliability of each internet agricultural data node in the shortest data transmission path during the agricultural data transaction includes the following specific steps:
the Internet agricultural data node with the highest reliability is recorded as a first Internet agricultural data node; the computational expression of the security parameters for the agricultural data transaction is:
。
in the method, in the process of the invention,a security parameter representing an agricultural data transaction; />Representing the first +.in the shortest data transmission path for agricultural data transactions>Reliability of individual internet agricultural data nodes; />Representing the total number of all internet agricultural data nodes in a data transmission shortest path in agricultural data transaction; />Representing the reliability of a first Internet agricultural data node in a data transmission shortest path during agricultural data transaction; />The representation takes absolute value.
Preferably, the specific formula for acquiring the safety evaluation coefficient of the agricultural data transaction according to the safety parameter of the agricultural data transaction is as follows:
。
in the method, in the process of the invention,safety evaluation coefficient representing an agricultural data transaction, +.>A security parameter representing an agricultural data transaction; />Representing the reliability of a first Internet agricultural data node in a data transmission shortest path during agricultural data transaction;representing the maximum value of the security parameters of the Internet agricultural data nodes in the corresponding transaction process when all agricultural data are transacted on the Internet of things; />Is a linear normalization function.
Preferably, the method for performing security evaluation on the agricultural data transaction according to the security evaluation coefficient of the agricultural data transaction includes the following specific steps:
for any agricultural data transaction on the Internet of things, if the safety evaluation coefficient of the agricultural data transaction is greater than or equal to a preset threshold valueThe agricultural data transaction is marked as a safe transaction; if the safety evaluation coefficient of the agricultural data transaction is smaller than a preset threshold value +.>The agricultural data transaction is marked as unsafeIs easy to use.
The technical scheme of the invention has the beneficial effects that: aiming at the problems that the security of agricultural data transaction is often reduced when the reliability of data transmission of nodes in the process of carrying out the transaction of the agricultural data is insufficient, so that the transacted agricultural data is revealed, tampered and lost; according to the method, based on quantification of the nodes of the Internet of things of the agricultural data transmission path to be transacted among transaction nodes, reliability quantification of each data transmission is carried out on the nodes in the data transmission path, and then safety evaluation of overall agricultural data transaction is carried out through reliability in the transmission path; and further, the safety, the reliability and the compliance of the agricultural data transaction are improved, and the agricultural data privacy is protected and the agricultural data falsification and counterfeiting are prevented.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the following detailed description is given below of the specific implementation, structure, characteristics and effects of the agricultural data transaction security assessment method based on the internet of things according to the invention by combining the accompanying drawings and the preferred embodiment. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The invention provides a specific scheme of an agricultural data transaction security assessment method based on the Internet of things, which is specifically described below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart illustrating steps of an agricultural data transaction security assessment method based on internet of things according to an embodiment of the present invention is shown, the method includes the following steps:
step S001: all internet agricultural data nodes in the agricultural data transaction are acquired.
In the process of carrying out agricultural data transaction on the internet of things, since the agricultural data often contains sensitive agricultural information and, for example, accurate positions of farmlands, crop growth conditions and the like, in order to prevent leakage of the agricultural data, the safety of the overall agricultural data transaction needs to be evaluated. Especially in the internet of things, the reliability of data transmission between different nodes is an important criterion for the security assessment of agricultural data transactions. When the reliability of data transmission of nodes is insufficient in the process of carrying out the transaction of the agricultural data, the security of the transaction of the agricultural data is often reduced, so that the transacted agricultural data is revealed, tampered and lost.
Specifically, in order to implement the agricultural data transaction security assessment method based on the internet of things provided in this embodiment, agricultural data of each node in the internet needs to be collected first, and the specific process is as follows:
the method comprises the steps of collecting crop related agricultural data corresponding to each Internet agricultural data node in the Internet of things through edge equipment or an acquisition system corresponding to the Internet of things node of a transaction party, wherein the crop growth environment, weather, soil and growth data are collected by utilizing a soil sensor acquisition device, a miniature weather collection device and a remote sensing technology, and are converted into a digital form, so that the crop related agricultural data corresponding to each Internet agricultural data node in the Internet of things are obtained.
The collected agricultural data needs to be preprocessed before being stored because the collected agricultural data contains a certain noise data and a missing value.
In this embodiment, the data preprocessing process adopted is: firstly, cleaning crop-related agricultural data corresponding to each node in the Internet of things, secondly, correcting the cleaned crop-related agricultural data corresponding to each node in the Internet of things, finally converting the format into a general format TXT, obtaining the crop-related agricultural data corresponding to each node in the Internet of things with unified format and no noise or missing value, and storing the crop-related agricultural data to storage equipment of the corresponding Internet of things node, thereby obtaining all Internet agricultural data nodes during agricultural data transaction and the bandwidth of each Internet agricultural data node, wherein all Internet agricultural data nodes during agricultural data transaction comprise Internet agricultural data selling nodes during agricultural data transaction and Internet agricultural data purchasing nodes during agricultural data transaction.
So far, all internet agricultural data nodes during agricultural data transaction are obtained through the method.
Step S002: and acquiring a shortest data transmission path in the agricultural data transaction and all Internet agricultural data nodes on the shortest path.
It should be noted that, the number of internet agriculture data nodes in the whole agriculture data transaction internet is quite large, but in the actual agriculture data transaction process, all internet agriculture data nodes are often not required to transmit agriculture data, so before the agriculture data transaction is performed, a data transmission path between an internet agriculture data selling node and an internet agriculture data purchasing node is firstly required to be planned, in order to save resources, reduce delay and improve network reliability in this embodiment, the shortest transmission path is used as a basis for planning a path corresponding to the shortest data transmission path when the agriculture data transaction is performed between the internet agriculture data selling node and the internet agriculture data purchasing node.
Specifically, for any one agricultural data transaction, first, an internet agricultural data selling node at the time of the agricultural data transaction is set as an initial node, and an internet agricultural data purchasing node at the time of the agricultural data transaction is set as a terminating node.
Secondly, taking the geographic position of the storage device corresponding to each internet agricultural data node during the agricultural data transaction as the geographic position of each internet agricultural data node during the agricultural data transaction, generating a position information point diagram according to the geographic positions of all internet agricultural data nodes during the agricultural data transaction, connecting an initial node and a termination node in the position information point diagram in a straight line mode, and marking the straight line as a first straight line.
Finally, euclidean distance between the initial node and each other Internet agricultural data node is obtained from the position information diagram and is recorded as a first distance of each Internet agricultural data node; obtaining the distance between each Internet agricultural data node except the initial node and the first straight line from the position information diagram, and recording the distance as the second distance of each Internet agricultural data node; for each Internet agriculture data node except the initial node in the position information diagram, marking the product of the first distance and the second distance of each Internet agriculture data node as a first weight of each Internet agriculture data node, and taking the Internet agriculture data node corresponding to the first weight of the smallest Internet agriculture data node as the first Internet agriculture data node in the shortest data transmission path in agriculture data transaction;
Marking a first Internet agricultural data node in a data transmission shortest path during agricultural data transaction as a target node, acquiring Euclidean distance between the target node and each other Internet agricultural data node in a position information diagram, and marking the Euclidean distance as a third distance of each Internet agricultural data node; obtaining the distance between each Internet agricultural data node except the target node and the first straight line from the position information diagram, and recording the distance as a fourth distance of each Internet agricultural data node; for each Internet agriculture data node except the target node in the position information diagram, marking the product of the third distance and the fourth distance of each Internet agriculture data node as a second weight of each Internet agriculture data node, and taking the Internet agriculture data node corresponding to the second weight of the smallest Internet agriculture data node as the second Internet agriculture data node in the shortest data transmission path in agriculture data transaction;
marking a second internet agricultural data node in a data transmission shortest path during agricultural data transaction as a target node, acquiring Euclidean distance between the target node and each other internet agricultural data node in a position information diagram, and marking the Euclidean distance as a fifth distance of each internet agricultural data node; obtaining the distance between each Internet agricultural data node except the target node and the first straight line from the position information diagram, and recording the distance as a sixth distance of each Internet agricultural data node; for each Internet agriculture data node except the target node in the position information diagram, marking the product of the fifth distance and the sixth distance of each Internet agriculture data node as a third weight of each Internet agriculture data node, and taking the Internet agriculture data node corresponding to the third weight of the smallest Internet agriculture data node as the third Internet agriculture data node in the shortest data transmission path in agriculture data transaction;
And so on until the firstThe Internet agricultural data node is taken as a termination node, and the first Internet agricultural data node is taken as the first Internet agricultural data node to the +.>The internet agriculture data nodes are used as all internet agriculture data nodes in the shortest data transmission path when the agriculture data is transacted, and form an agriculture data transaction sequence.
So far, the shortest data transmission path in the agricultural data transaction and all Internet agricultural data nodes in the shortest data transmission path in the agricultural data transaction are obtained through the method.
Step S003: and obtaining the reliability of each Internet agricultural data node in the shortest path by obtaining the bandwidth matching rate of each Internet agricultural data node in the shortest path when data transmission is carried out.
It should be noted that, when data transmission is performed between the nodes of the internet agricultural data, the reliability of the nodes is analyzed based on the transmission accuracy, where the accuracy is mainly reflected in whether the transmission node is complete for the transmission of the transaction agricultural data, and has a great influence on the accuracy of the transmission of the agricultural data between the nodes, generally, congestion of the network environment causes delay in the transmission process, and in the whole delay process, loss of the data transmission is very easy to be caused, where the most main reason for influencing the transmission delay is that the difference of edge devices of the nodes causes mismatching of bandwidths between the nodes, so that the embodiment calculates the reliability of each internet agricultural data node in the shortest path by using the bandwidths between the nodes.
It should be further noted that, in the shortest data transmission path in the agricultural data transactionThe internet agricultural data node is transmitted to +.>In the process of the internet agriculture data nodes, in the prior known knowledge, the closer the bandwidth between two internet agriculture data nodes is, the +.>The individual node is about>The less likely the data is that an abnormal transmission occurs when the data transmitted by the individual nodes is received. However, in the nodes of the actual agricultural Internet of things, edge devices of different nodes are uneven, so that certain difference exists in the bandwidths of the edge devices of different nodes, and when +.>Bandwidth and->When the bandwidth of the individual nodes is relatively small, the agricultural data must be at +.>The backlog in the receiving buffer area of each node causes overflow of the buffer area, thus possibly causing data loss, so that the reliability in the data transmission process of the two nodes is reduced, and the data transmission reliability is not obviously influenced when the data is transmitted from the low-bandwidth node to the high-bandwidth node, so that the description is omitted.
The present embodiment uses the shortest data transmission path in the agricultural data transaction Bandwidth and +.>The bandwidth of the Internet agricultural data node is logically calculated, when +.>The bandwidth of the individual node is smaller than +.>When the bandwidth of each node is the same, then->The larger the bandwidth matching rate of each internet agricultural data node is, the opposite is true. Wherein the +.sup.th can be eliminated by setting the bandwidth difference weight>The bandwidth of the individual node is smaller than +.>In the case of individual nodes, and for bandwidth differences between two nodesAnd (5) amplifying. By the logic, the +.h in the shortest data transmission path during agricultural data transaction is obtained>The larger the bandwidth matching rate of the internet agricultural data nodes is, the better the bandwidth matching between the two nodes is, the smaller the possibility of losing data during data transmission is, namely the higher the reliability of the corresponding nodes is.
1. And acquiring the bandwidth matching rate of each Internet agricultural data node in the shortest data transmission path during agricultural data transaction during data transmission.
Presetting a parameterWherein the present embodiment is +.>Examples are described, the present embodiment is not particularly limited, wherein +.>Depending on the particular implementation.
In particular, the shortest data transmission path for agricultural data transaction The calculation expression of the bandwidth matching rate of each internet agricultural data node is as follows:
。
in the method, in the process of the invention,representing the first +.in the shortest data transmission path for agricultural data transactions>Bandwidth difference weight when the internet agricultural data nodes perform data transmission; />Representing the first +.in the shortest data transmission path for agricultural data transactions>The bandwidths of the internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions>The bandwidths of the internet agricultural data nodes; />Is a linear normalization function.
According to the shortest data transmission path in agricultural data transactionBandwidth difference weight when individual internet agricultural data nodes perform data transmission is obtained, and the +.f in the shortest data transmission path during agricultural data transaction is obtained>The calculation expression of the bandwidth matching rate when the internet agricultural data nodes perform data transmission is as follows:
。
in the method, in the process of the invention,representing the first +.in the shortest data transmission path for agricultural data transactions>Bandwidth matching rate when the individual internet agricultural data nodes perform data transmission; />Representing the number of agricultural data transactionsAccording to the (th) of the shortest transmission path>Bandwidth matching rate of individual internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions >The bandwidths of the internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions>The bandwidths of the internet agricultural data nodes; />Is a preset parameter; />Representing an exponential function based on natural constants, this embodiment uses +.>The functions are presented with inverse proportion relation and normalization processing, and an implementer can select the inverse proportion function and the normalization function according to actual conditions.
So far, the bandwidth matching rate of each internet agricultural data node in the shortest data transmission path in the agricultural data transaction is obtained.
2. And acquiring the reliability of each Internet agricultural data node in the shortest data transmission path during agricultural data transaction.
In the transmission process of different nodes in the shortest data transmission path in the agricultural data transaction, the firstDistance between individual nodesThe farther the distance from the transaction node is, the lower the fault tolerance rate of the node in the whole data transmission path is, because more nodes need to transmit data in the follow-up process, when the data transmission of the node is lost, the lower the whole fault tolerance rate of the follow-up node is, otherwise, the opposite is, so the embodiment calculates by taking the sequence of the nodes in the transmission path as the weight, thereby obtaining the reliability of each internet agricultural data node in the shortest data transmission path in the agricultural data transaction process.
In particular, according to the shortest data transmission path in agricultural data transactionThe bandwidth matching rate of each Internet agricultural data node during data transmission obtains the +.>The calculation expression of the reliability of the individual internet agricultural data nodes:
。
in the method, in the process of the invention,representing the first +.in the shortest data transmission path for agricultural data transactions>Reliability of individual internet agricultural data nodes; />Representing the first +.in the shortest data transmission path for agricultural data transactions>Bandwidth matching rate when the individual internet agricultural data nodes perform data transmission; />Representing agricultural data transactionsThe total number of all Internet agricultural data nodes in the shortest data transmission path; />Representing the first +.in the shortest data transmission path for agricultural data transactions>A serial number of each internet agricultural data node in the agricultural data transaction sequence; />Representing an exponential function based on natural constants, this embodiment uses +.>The functions are presented with inverse proportion relation and normalization processing, and an implementer can select the inverse proportion function and the normalization function according to actual conditions.
Thus, the reliability of each Internet agricultural data node in the shortest data transmission path in the agricultural data transaction is obtained.
Step S004: and acquiring the security parameters of the agricultural data transaction according to the reliability of each Internet agricultural data node in the shortest path, and performing security evaluation on the agricultural data transaction by acquiring the security evaluation coefficients of the agricultural data transaction through the security parameters of the agricultural data transaction.
1. And acquiring the security parameters of the agricultural data transaction.
In the process of carrying out the transaction of the agricultural data between the initial node and the termination node, the agricultural data related to the corresponding crops at the termination node needs to be sequentially transmitted to the termination node by taking the initial node as a basis through all nodes in the transmission path, and the reliability parameters of the corresponding nodes of the agricultural data at the termination node to be transacted are different when each node in the transmission path carries out the transmission, so that the embodiment selects the maximum reliability parameter in all the nodes in the whole transmission path as the measurement standard of the transmission, then calculates the average value of the actual difference value of the reliability parameter and the maximum reliability parameter when each node carries out the data transmission, and the value is larger compared with the maximum reliability parameter in the transaction, and shows that the more reliable when each node carries out the data transmission in the process of the transaction, and vice versa.
Specifically, the reliability of all internet agriculture data nodes in a data transmission shortest path in agriculture data transaction is obtained, and the internet agriculture data node with the highest reliability is recorded as a first internet agriculture data node; the computational expression of the security parameters for the agricultural data transaction is:
。
in the method, in the process of the invention,a security parameter representing an agricultural data transaction; />Representing the first +.in the shortest data transmission path for agricultural data transactions>Reliability of individual internet agricultural data nodes; />Representing the total number of all internet agricultural data nodes in a data transmission shortest path in agricultural data transaction; />Representing the reliability of a first Internet agricultural data node in a data transmission shortest path during agricultural data transaction; />The representation takes absolute value.
So far, the security parameters of the agricultural data transaction are obtained.
2. And acquiring a security evaluation coefficient of the agricultural data transaction.
It should be noted that, for the calculation of the security parameters of the agricultural data transaction, the transaction security assessment is obtained based on the maximum security parameters transmitted by the node in the present agricultural data transaction, but the maximum security parameters in the transmission path selected in the present transaction are in a smaller condition in the data transmission of the node in the whole, so the present embodiment uses the average value of the maximum security parameters in the historical transaction data to quantify the maximum security parameters of the present transaction, and the larger the value, the security assessment coefficient of the obtained agricultural data transaction is smaller than the historical data transaction, so that the amplification adjustment is needed, otherwise, the contrary is needed.
Specifically, the calculation expression for acquiring the safety evaluation coefficient of the agricultural data transaction according to the safety parameter of the agricultural data transaction is as follows:
。
in the method, in the process of the invention,safety evaluation coefficient representing an agricultural data transaction, +.>A security parameter representing an agricultural data transaction; />Representing the reliability of a first Internet agricultural data node in a data transmission shortest path during agricultural data transaction;representing the maximum value of the security parameters of the Internet agricultural data nodes in the corresponding transaction process when all agricultural data are transacted on the Internet of things; />Is a linear normalization function.
Presetting a parameterWherein the present embodiment is +.>Examples are described, the present embodiment is not particularly limited, wherein +.>Depending on the particular implementation.
For any agricultural data transaction on the Internet of things, if the safety evaluation coefficient of the agricultural data transaction is greater than or equal to a preset threshold valueThe agricultural data transaction is marked as a safe transaction; if the safety evaluation coefficient of the agricultural data transaction is smaller than a preset threshold value +.>And marking the agricultural data transaction as unsafe transaction, and selecting path nodes needing to be subjected to data transmission again in the subsequent transaction process.
This embodiment is completed.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.