Artificial intelligence-based information trust distribution method and system
By selecting candidate nodes, constructing a trusted topology, and determining the distribution path in a distributed network, the problem of matching the information distribution path with the trusted state of the nodes is solved, improving the reliability and security of information transmission and ensuring the verifiability of the information distribution process.
Patent Information
- Application Number
- CN202611349539.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-01
- Publication Date
- 2026-11-27
AI Technical Summary
In distributed networks, it is difficult to match the information distribution path with the real-time trusted state of nodes, resulting in a mismatch between the information security level and the node state, which reduces the reliability and security of information transmission.
By acquiring the information to be allocated, information security level, sending node, target node, network topology and link status in the distributed network, candidate nodes are screened, node credibility is determined using a pre-trained decision tree model, a trusted topology is constructed and the distribution path is determined, the data is written to an isolated buffer and verification data is generated to control information delivery.
It improves the reliability and security of information distribution paths, ensures the trustworthiness and controllability of nodes during information distribution, reduces the possibility of incompatible nodes, and enhances the verifiability of the information distribution process.
Smart Images

Figure CN123185085A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of distributed network information distribution technology, and in particular to a reliable information distribution method and system based on artificial intelligence. Background Technology
[0002] Currently, business information in distributed networks typically needs to flow continuously between sending nodes, multiple forwarding nodes, and receiving nodes. As the number of network nodes and information forwarding layers increase, information allocation not only needs to determine the recipient of the information, but also needs to determine the nodes and corresponding paths involved in transmission based on the information security level, node carrying qualifications, and network operating status, in order to meet information security requirements.
[0003] In one existing technology, network nodes capable of carrying corresponding security level information are typically selected based on a pre-configured node permission table. The transmission path from the sending node to the receiving node is then determined according to routing rules or link status, primarily measured by link bandwidth or hop count. After the information arrives at the receiving node, the transmission result is confirmed through message digest comparison or node identity verification. Since node permissions and routing relationships are mainly determined by static configuration, when the transmission reliability, online status, or isolation status of network nodes changes, the original transmission path may still include nodes with reduced trust levels. Furthermore, since receiver verification occurs after the path is determined, the current trust level of the nodes is not involved in the generation of the transmission path, leading to a mismatch between the information security level and the actual state of the nodes involved in the transmission.
[0004] Existing technologies suffer from the problem of mismatch between information distribution paths and the real-time trusted status of nodes in distributed networks. Summary of the Invention
[0005] This invention provides an information trust allocation method and system based on artificial intelligence to solve the problem in the prior art that it is difficult to match the information allocation path with the real-time trust status of nodes in distributed networks.
[0006] Firstly, in order to solve the above-mentioned technical problems, the present invention provides an information trust allocation method based on artificial intelligence, comprising: Obtain the information to be allocated, information security level, sending node, target node, network topology, link status and node qualification data in the distributed network, and filter the nodes in the network topology according to the information security level and the node qualification data to obtain candidate nodes; The historical transmission records and operating status of the candidate nodes are obtained. Transmission features are extracted from the historical transmission records. The transmission features are input into a pre-trained decision tree model to obtain the node credibility. The candidate nodes are filtered according to the node credibility and the operating status to obtain a set of credible nodes. The network topology is constrained by the set of trusted nodes to obtain a trusted topology, and the distribution path connecting the sending node and the target node is determined from the trusted topology based on the link status. The information to be allocated is transmitted according to the distribution path, the arrival node of the information to be allocated is determined, the information to be allocated is written into the isolation buffer of the arrival node, verification data is generated according to the information to be allocated, the target node, the arrival node and the distribution path, the delivery of the information to be allocated is controlled according to the verification data, and a reliable information allocation result is generated.
[0007] Secondly, the present invention provides an information trust allocation system based on artificial intelligence, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described above.
[0008] Compared with the prior art, the present invention has the following beneficial effects: (1) This invention filters candidate nodes based on information security level and node qualification data, extracts transmission features from historical transmission records, and inputs the transmission features into a pre-trained decision tree model to obtain node credibility. Furthermore, it combines the node's operating status to form a set of credible nodes. This process uses the node's static admission criteria, historical transmission performance, and current operating status for node screening, ensuring that nodes participating in information transmission match the information security level and node credibility status, thus improving the rationality of distribution node selection.
[0009] (2) This invention constrains the network topology by using a set of trusted nodes, constructs a trusted topology that contains only trusted nodes and their corresponding links, and determines the distribution path from the sending node to the target node from the trusted topology based on the link status. This process excludes nodes that do not meet the trust conditions before the path is determined, limiting the information distribution path to trusted nodes, reducing the possibility of the information to be distributed passing through unsuitable nodes, and improving the reliability of the distribution path.
[0010] (3) This invention writes the information to be allocated received by the arrival node into an isolated buffer, generates verification data based on the information to be allocated, the target node, the arrival node, and the distribution path, and controls the subsequent delivery of the information to be allocated based on the verification data. This process separates network reception from service reading and performs correlation verification on the information content, the arrival node, and the actual transmission path, so that information with verification errors is blocked before entering the service storage area, thereby improving the verifiability and controllability of the information allocation process. Attached Figure Description
[0011] Figure 1 This is a schematic diagram of the information trust allocation method based on artificial intelligence provided in the first embodiment of the present invention. Detailed Implementation
[0012] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0013] Reference Figure 1 The first embodiment of the present invention provides an information trust allocation method based on artificial intelligence, comprising the following steps: S1, obtain the information to be allocated, information security level, sending node, target node, network topology, link status and node qualification data in the distributed network, and filter the nodes in the network topology according to the information security level and the node qualification data to obtain candidate nodes; S2, obtain the historical transmission records and running status of the candidate nodes, extract transmission features from the historical transmission records, input the transmission features into a pre-trained decision tree model to obtain node credibility, and filter the candidate nodes according to the node credibility and the running status to obtain a set of credible nodes; S3, constrain the network topology according to the set of trusted nodes to obtain a trusted topology, and determine the distribution path connecting the sending node and the target node from the trusted topology according to the link status; S4, transmit the information to be allocated according to the distribution path, determine the arrival node of the information to be allocated, write the information to be allocated into the isolation buffer of the arrival node, generate verification data according to the information to be allocated, the target node, the arrival node and the distribution path, control the delivery of the information to be allocated according to the verification data, and generate a reliable information allocation result.
[0014] In step S1, the information to be allocated, information security level, sending node, target node, network topology, link status and node qualification data in the distributed network are obtained. Based on the information security level and the node qualification data, the nodes in the network topology are filtered to obtain candidate nodes.
[0015] Among them, candidate nodes are obtained by filtering nodes in the network topology based on the information security level and the node qualification data, including: Extract the access security level corresponding to each node in the network topology from the node qualification data; The information security level is compared with each of the access security levels; Nodes whose access security level is not lower than the information security level are identified as candidate nodes.
[0016] In one implementation, the allocation request includes a transmission task identifier, an information content field, an information type field, an information security level field, a sending node identifier, and a target node identifier. The transmission task identifier is generated by the transmission service when it receives the allocation request and is associated with the transmission record, path record, and verification record corresponding to this information allocation process.
[0017] This embodiment parses the allocation request, reads the information to be allocated from the information content field, reads the information type from the information type field, reads the information security level from the information security level field, and determines the sending node and the target node according to the sending node identifier and the target node identifier, respectively.
[0018] The information types include text information and non-text information. In step S4, the information type serves as the basis for determining the reading method of the byte data to be allocated. Text information is converted into a byte stream according to a unified character encoding, while non-text information is formed into a byte stream according to the original binary byte order.
[0019] The information security level adopts an incremental encoding from level one to level four. Level one corresponds to identity authentication capability, level two corresponds to identity authentication capability and encrypted transmission capability, level three corresponds to identity authentication capability, encrypted transmission capability, and access control capability, and level four corresponds to identity authentication capability, encrypted transmission capability, access control capability, and isolated storage capability. The service terminal that generates the information to be allocated writes the corresponding information security level into the allocation request according to the combination of capabilities required by the node in this information allocation process.
[0020] The network topology includes node records and link records. The node records include node identifiers, and the link records include a first endpoint identifier, a second endpoint identifier, and the link direction. The network topology management module reads the currently active node registration records and link connection records to form the network topology.
[0021] The node registration record includes a node identifier and a node public key. When a node accesses the distributed network, it generates a signature key pair, writes the node public key into the node registration record, and stores the corresponding node private key locally on the node. Step S4 verifies the signature data in the transmitted message based on the node public key.
[0022] The link status includes the link delay and link load corresponding to each link in the network topology. Nodes at both ends of the link send probe messages and record the round-trip time between sending and receiving the probe message to obtain the link delay.
[0023] The network interface reads the cumulative number of transmitted bytes at two adjacent link state sampling times, and divides the difference between the two cumulative transmitted byte counts by the time interval between the two sampling times to obtain the current link transmission rate. The rated link transmission rate is read from the link configuration record maintained by the network topology management module, and the current link transmission rate is divided by the rated link transmission rate to obtain the link load. Each link state is associated with and stored with its corresponding first endpoint identifier and second endpoint identifier.
[0024] The node qualification data is generated by the node registration service, and each piece of node qualification data includes a node identifier and an access security level. The node registration service sequentially checks the node's identity authentication capability, encrypted transmission capability, access control capability, and isolated storage capability, and determines the access security level based on the highest consecutive detection level passed.
[0025] The identity authentication capability test includes sending random authentication data to the node and verifying the identity authentication capability based on the signature result returned by the node and the node's public key; the encrypted transmission capability test includes sending a test byte stream to the node and verifying the encrypted transmission capability based on the encrypted sending and decryption receiving results of the test byte stream; the access control capability test includes sending authorization requests and unauthorized requests to the node respectively and verifying the access control capability based on the corresponding allowed and denied states; the isolated storage capability test includes writing the test byte stream to the node's isolated storage area and verifying the isolated storage capability based on the read results of ordinary business processes.
[0026] Each capability check outputs a pass or fail status. If any check level results in a fail status, the access security level of the corresponding node will not be increased. Levels one through four correspond to the aforementioned four consecutive check levels, and the information security level and access security level use the same integer encoding.
[0027] In this embodiment, node identifiers in the network topology are read one by one, and the access security level corresponding to the same node identifier is retrieved from the node qualification data. Nodes for which no node qualification data is retrieved are not included in the candidate nodes.
[0028] For nodes with available qualification data, the numerical value corresponding to the access security level is compared with the numerical value corresponding to the information security level. When the numerical value corresponding to the access security level is not lower than the numerical value corresponding to the information security level, the corresponding node is identified as a candidate node; when the numerical value corresponding to the access security level is lower than the numerical value corresponding to the information security level, the corresponding node is not included in the candidate nodes.
[0029] For example, the network topology includes nodes N01, N02, N03, N04, N05, and N06, with their access security levels being Level 4, Level 3, Level 2, Level 4, Level 3, and Level 3, respectively. The information security level of this allocation request is Level 3, the sending node is node N01, and the target node is node N06. After completing the security level comparison, nodes N01, N02, N04, N05, and N06 are identified as candidate nodes.
[0030] It should be noted that the sending node and the target node participate in the same admission security level screening. If the sending node or the target node does not enter the candidate node list, this embodiment records the current allocation request as a node qualification failure and terminates the current allocation process.
[0031] In step S2, the historical transmission records and operating status of the candidate nodes are obtained, transmission features are extracted from the historical transmission records, the transmission features are input into a pre-trained decision tree model to obtain node credibility, and the candidate nodes are filtered according to the node credibility and the operating status to obtain a set of credible nodes.
[0032] Extracting transmission features from the historical transmission records includes: For any candidate node, the total number of transmitted data packets, the number of lost data packets, the number of data packets with verification failures, the total number of transmission tasks, and the number of abnormal interruption tasks are counted from the corresponding historical transmission records. Based on the total number of transmitted data packets, calculate the ratios corresponding to the number of lost data packets and the number of verification failed data packets to obtain the packet loss rate and the verification failure rate. The abnormal interruption rate is obtained by calculating the proportion of the number of abnormal interruption tasks based on the total number of transmission tasks. The packet loss rate, the verification failure rate and the abnormal interruption rate are combined to obtain the transmission characteristics of the candidate node.
[0033] In one implementation, the historical transmission records are generated by the transmission service, and each historical transmission record includes a node identifier, a transmission task identifier, a data packet sequence number, a data packet sending status, a data packet receiving status, a verification status, a task completion status, and a task completion time.
[0034] In this embodiment, based on the node identifier of the candidate nodes, the 100 most recently completed transmission tasks and their corresponding data packet records are read in order of task completion time from most recent to oldest. Both the model training and model execution phases use 100 transmission tasks to form a feature statistical segment, ensuring that the model training input and model execution input have the same statistical range.
[0035] The 100 transmission tasks correspond to a task-level statistical resolution of 1 percentage point, meaning that one abnormal interruption task causes a 1 percentage point change in the abnormal interruption rate. This number of tasks, while maintaining an integer percentage statistical resolution, limits the number of historical transmission records read for a single transmission feature calculation.
[0036] The total number of transmitted data packets is the number of data packets that the candidate nodes have sent or forwarded in the 100 transmission tasks. If a corresponding data packet exists in the sending record but no receiving acknowledgment record is found after the transmission task has ended, the data packet is recorded as a lost data packet. If the data packet digest recalculated by the receiving node is inconsistent with the data packet digest in the sending record, the data packet is recorded as a verification failure data packet.
[0037] The total number of transmission tasks is 100. When the task ends in a connection interruption, response timeout, or node offline state, the corresponding transmission task is recorded as an abnormal interruption task; when the task ends in a normal completion state, the corresponding transmission task is not recorded as an abnormal interruption task.
[0038] In this embodiment, the packet loss rate is obtained by dividing the number of lost data packets by the total number of transmitted data packets; the verification failure rate is obtained by dividing the number of failed verification data packets by the total number of transmitted data packets; and the abnormal interruption rate is obtained by dividing the number of abnormal interrupted tasks by the total number of transmission tasks. The transmission characteristics of the candidate node are obtained by combining these three ratios in the order of packet loss rate, verification failure rate, and abnormal interruption rate.
[0039] For nodes newly added to the distributed network with fewer than 100 completed transmission tasks, the node registration service invokes the transmission service to execute test transmission tasks. These test transmission tasks are executed between the node registration service and the test receiving node. The test receiving node is selected from the existing set of trusted nodes and only transmits the test byte stream generated by the node registration service; it does not carry any information to be allocated or write it to the business storage area. Test transmission tasks are executed between the node to be evaluated and the test receiving node until the sum of completed test transmission tasks and completed historical transmission tasks reaches 100. Before reaching 100 tasks, this embodiment records the corresponding node as having insufficient historical records, does not assign default node trust to the node, and does not include the node in the set of trusted nodes.
[0040] It is worth noting that if there are no trusted nodes in the system, such as when all nodes are new nodes during the initial deployment, the existing set of trusted nodes will be empty, and the test receiving node cannot be selected. In this scenario, at least one node can be pre-configured as a trusted node as a seed node, or the trusted node set can be copied from the test network to initialize the data.
[0041] For example, the most recent 100 transmission tasks of node N01 consist of 10,000 transmitted data packets, including 5 lost data packets, 1 parity failure data packet, and 2 abnormal interruption tasks. Dividing 5 by 10,000 gives a packet loss rate of 0.05%; dividing 1 by 10,000 gives a parity failure rate of 0.01%; and dividing 2 by 100 gives an abnormal interruption rate of 2.00%. Combining these three ratios yields the transmission characteristics of node N01.
[0042] The transmission features are input into a pre-trained decision tree model to obtain node credibility, including: The packet loss rate, the verification failure rate, and the abnormal interruption rate corresponding to the candidate node are input into the pre-trained decision tree model; Based on the feature splitting conditions corresponding to each internal node in the pre-trained decision tree model, the packet loss rate, the verification failure rate, and the abnormal interruption rate are determined layer by layer to identify the corresponding leaf nodes. Read the credibility score corresponding to the leaf node, and determine the credibility score as the node credibility of the candidate node.
[0043] In one implementation, the pre-trained decision tree model adopts a regression tree structure, including a root node, internal nodes, and leaf nodes. Each internal node records a transmission feature, a feature splitting value, and the correspondence between two child nodes, while each leaf node records a confidence score in the range of 0 to 100.
[0044] The pre-trained decision tree model is trained based on historical node samples. These historical node samples are derived from historical transmission records generated during the formal operation of the distributed network. During the initial system deployment, the historical node samples are derived from test network transmission records using the same transmission protocol, log fields, packet verification methods, and node program versions.
[0045] In this embodiment, transmission tasks of the same node are arranged from earliest to latest according to their completion time. Every 200 consecutive transmission tasks form a historical node sample, with the first 100 transmission tasks constituting the feature statistics segment and the last 100 transmission tasks constituting the result observation segment. Adjacent historical node samples do not contain duplicate transmission tasks, and transmission tasks with fewer than 200 remaining tasks are not included in the construction of the historical node sample.
[0046] Based on the aforementioned transmission feature extraction method, the packet loss rate, verification failure rate, and abnormal interruption rate are calculated from the feature statistics segment to obtain historical transmission features.
[0047] For the results observation segment, count the number of transmission tasks that were completed normally without lost data packets and without failed checksums. Divide this number by the total number of transmission tasks in the results observation segment, then multiply by 100. The resulting percentage is directly used as the sample reliability score. The sample reliability score is retained to two decimal places.
[0048] For example, the result observation segment includes 100 transmission tasks, of which 96 transmission tasks were completed normally with no lost data packets and no failed verification data packets. Dividing 96 by 100 and multiplying by 100 yields a sample confidence score of 96.00. Combining historical transmission characteristics and sample confidence scores yields historical node samples.
[0049] All historical node samples are arranged chronologically according to their formation time. The first 70% of historical node samples are used as the training set, the next 15% as the validation set, and the last 15% as the test set. The training set is used for internal node splitting and leaf node confidence score calculation, the validation set is used for model parameter selection, and the test set records the prediction bias of the final model on samples not used in the training.
[0050] The training set comprises the majority of all historical node samples, enabling the internal node splitting process to read a large number of training samples; the validation and test sets use the same sample ratio, ensuring that model parameter selection and independent prediction testing have a sample base of the same order of magnitude. There are no redundant transmission tasks between the datasets.
[0051] During training, the training samples entering the current node are arranged according to packet loss rate, verification failure rate, and abnormal interruption rate, and the median value of two adjacent feature values with different values is determined as the candidate split value.
[0052] For each candidate split value, the training samples are divided into a first sample group (not greater than the candidate split value) and a second sample group (greater than the candidate split value). The sum of squared deviations between the sample confidence scores and the corresponding average confidence scores in each of the two sample groups is calculated. The transmission feature and candidate split value with the smallest sum of squared deviations between the two sample groups are selected and written to the current internal node.
[0053] The candidate values for the maximum depth of the decision tree are integers ranging from 2 to 8 layers, and the candidate values for the minimum number of samples in a leaf node are 10, 20, and 30. The decision tree model includes three input features. When the maximum depth is less than 2 layers, it cannot form a continuous decision based on multiple transmission features; when the maximum depth is greater than 8 layers, the number of samples entering a single leaf node in the validation set continues to decrease. Therefore, 2 to 8 layers are determined as the candidate range for the maximum depth.
[0054] In this embodiment, decision tree models are trained separately for each parameter combination. The mean absolute deviation of the confidence score for each decision tree model on the validation set is calculated, and the parameter combination with the smallest mean absolute deviation is selected. When multiple parameter combinations have the same mean absolute deviation, the parameter combination with the smaller maximum depth is selected; when the maximum depths are the same, the parameter combination with the fewest leaf nodes and the largest number of samples is selected.
[0055] For example, the maximum depth corresponding to the parameter selection result is 5 layers, and the minimum number of samples for a leaf node is 20. The leaf node confidence score is the arithmetic mean of the confidence scores of the training samples entering the leaf node.
[0056] After the model training is completed, the historical transmission features in the test set are input into the decision tree model, the mean absolute deviation between the confidence score output by the model and the corresponding sample confidence score is calculated, and the mean absolute deviation is written into the model training record.
[0057] During model execution, this embodiment starts from the root node, compares the transmission features corresponding to the candidate nodes with the feature splitting values of the current internal nodes, enters the corresponding child nodes according to the comparison results, repeats the feature comparison until the leaf node is reached, and determines the node credibility by the credibility score recorded by the leaf node.
[0058] The candidate nodes are filtered based on the node trustworthiness and the running status to obtain a set of trustworthy nodes, including: For any of the candidate nodes, extract the online identifier and the isolation identifier from the corresponding running state; Candidate nodes whose node credibility is not lower than a preset credibility threshold, whose online status is online, and whose isolation status is not isolated are identified as trusted nodes. By summing up all the trusted nodes, a set of trusted nodes is obtained.
[0059] In one implementation, the operational status is determined by a node status monitoring service, including online and isolation identifiers. Candidate nodes send a heartbeat message to the node status monitoring service every 10 seconds, the 10-second interval coinciding with the network topology management module's cycle for updating node online status.
[0060] When the node status monitoring service receives a valid heartbeat message within the current 10-second period, it sets the online status to online; if no valid heartbeat message is received for three consecutive 10-second periods, it sets the online status to offline. Three consecutive periods form a 30-second offline determination interval. The loss of a single heartbeat message or two consecutive heartbeat messages does not directly result in an offline status.
[0061] The isolation identifier is read from the network access control table. If the node identifier of a candidate node does not appear in the currently effective isolation record, the isolation identifier is written as unisolated; if the node identifier of a candidate node appears in the currently effective isolation record, the isolation identifier is written as isolated.
[0062] The preset trust threshold is determined based on the validation set. The historical node samples in the validation set are derived from transmission task records that did not participate in the training of the decision tree model, and there are no overlapping transmission tasks between the validation set and the training set. The 100 historical node samples in the result observation segment that all transmission tasks were completed normally, had no lost data packets, and had no failed verification data packets are marked as actual trust samples, and the remaining historical node samples are marked as actual untrust samples.
[0063] In this embodiment, candidate thresholds are tested at 1-point intervals within the range of 0 to 100. For any candidate threshold, historical node samples whose model output is not lower than the candidate threshold are determined as reliable samples. The proportion of actually reliable samples that are correctly determined and the proportion of actually unreliable samples that are correctly determined are calculated respectively. The two proportions are added together, and the candidate threshold with the largest sum is selected.
[0064] When multiple candidate thresholds have the same sum, the candidate threshold with the larger value is selected to reduce the number of actual untrusted samples entering the trusted node set. For example, the preset trusted threshold obtained from the validation set is 82.
[0065] In this embodiment, candidate nodes with a node trustworthiness score of at least 82, an online status (marked as online), and an isolation status (marked as not isolated) are identified as trusted nodes. If any condition is not met, the corresponding candidate node is not included in the trusted node set.
[0066] For example, the node trust scores of nodes N01, N02, N04, N05, and N06 are 94, 88, 84, 78, and 91, respectively. All of these nodes are online and not isolated. The node trust score of node N05 is below 82, while the trust scores of the remaining nodes are not below 82. After filtering, nodes N01, N02, N04, and N06 are aggregated to obtain a set of trusted nodes.
[0067] In step S3, the network topology is constrained according to the set of trusted nodes to obtain a trusted topology, and the distribution path connecting the sending node and the target node is determined from the trusted topology according to the link status.
[0068] The trusted topology is obtained by constraining the network topology based on the trusted node set, including: The nodes in the set of trusted nodes are designated as reserved nodes; From the network topology, links whose two ends are both reserved nodes are selected to obtain reserved links; A trusted topology is constructed based on the reserved nodes and the reserved links.
[0069] In one implementation, this embodiment writes the node identifier of each node in the trusted node set into the reserved node table, traverses the link records in the network topology, and checks the first endpoint identifier and second endpoint identifier of each link respectively.
[0070] When both the first endpoint identifier and the second endpoint identifier exist in the reserved node table, the corresponding link is determined as a reserved link and written into the reserved link table; when neither endpoint identifier exists in the reserved node table, the corresponding link is not written into the reserved link table.
[0071] This embodiment establishes adjacency relationships based on a reserved node table and a reserved link table. Each reserved node and other reserved nodes directly connected to it are written into the adjacency table to obtain a trusted topology. The trusted topology preserves the original link directions in the network topology, forming the logical connection relationship corresponding to the current transmission task, without changing the physical connection relationship in the distributed network.
[0072] When neither the sending node nor the target node belongs to the trusted node set, this embodiment records the current processing state as "endpoint untrusted state". When both the sending node and the target node belong to the trusted node set, but there is no connectivity between the sending node and the target node in the trusted topology, the current processing state is recorded as "path unreachable state". Both of these states terminate the current information transmission.
[0073] For example, the trusted node set includes nodes N01, N02, N04, and N06. The two endpoints of links N01-N02, N01-N04, N02-N04, N02-N06, and N04-N06 in the network topology both belong to the trusted node set, and these five links are designated as reserved links. The link containing node N05 is not included in the trusted topology.
[0074] Determining the distribution path connecting the sending node and the target node from the trusted topology based on the link status includes: Extract the link latency and link load corresponding to each link in the trusted topology from the link status; The link delay and the link load are normalized by range to obtain normalized delay and normalized load; The normalized delay and the normalized load are weighted and calculated according to preset delay weights and preset load weights to obtain the link cost; Based on the node connection relationships of the trusted topology and the link cost, the Dijkstra algorithm is used to calculate the minimum cost path connecting the sending node and the target node, and the minimum cost path is determined as the distribution path.
[0075] In one implementation, this embodiment reads the link delay and link load corresponding to each reserved link from the link status based on the first endpoint identifier and the second endpoint identifier of the reserved link. For all reserved links, the minimum link delay, maximum link delay, minimum link load, and maximum link load are determined respectively. If the link delay or link load of a certain link deviates significantly from the corresponding values of the other links, for example, exceeding three times the standard deviation of the average value of the other links, the corresponding value of that link is truncated to the upper and lower boundaries of the other links before participating in the normalization calculation. For any reserved link, the link delay is subtracted from the minimum link delay, and then divided by the difference between the maximum link delay and the minimum link delay to obtain the normalized delay; the link load is subtracted from the minimum link load, and then divided by the difference between the maximum link load and the minimum link load to obtain the normalized load. Both the normalized delay and the normalized load are in the range of 0 to 1.
[0076] When the link delay of all reserved links is consistent, the normalized delay of each reserved link is recorded as 0; when the link load of all reserved links is consistent, the normalized load of each reserved link is recorded as 0.
[0077] The preset latency weight and the preset load weight are determined based on historical link state samples. These historical link state samples are derived from link latency and load records generated during the historical transmission record retention period used in S2. During the initial system deployment, the historical link state samples are derived from records generated by the test network using the same link state collection method as in S1.
[0078] In this embodiment, the link delay and link load in the historical link state samples are normalized by range to obtain the historical normalized delay sequence and the historical normalized load sequence. The standard deviation of the two sequences is calculated to obtain the discrete values of delay and load.
[0079] When both the time delay discrete value and the load discrete value are greater than 0, the load discrete value is divided by the sum of the time delay discrete value and the load discrete value to obtain the preset time delay weight; the time delay discrete value is divided by the sum of the time delay discrete value and the load discrete value to obtain the preset load weight.
[0080] This weighting calculation method ensures that the product of the preset delay weight and the delay discrete value is equal to the product of the preset load weight and the load discrete value, so that the two weighted components have consistent dispersion in the historical link state samples, and avoids one of them from continuously occupying the main link cost due to a large historical fluctuation range.
[0081] When the time delay discrete value is 0 and the load discrete value is greater than 0, the preset time delay weight is recorded as 0 and the preset load weight is recorded as 1; when the load discrete value is 0 and the time delay discrete value is greater than 0, the preset time delay weight is recorded as 1 and the preset load weight is recorded as 0; when both the time delay discrete value and the load discrete value are 0, both the preset time delay weight and the preset load weight are recorded as 0.5.
[0082] For example, the standard deviation of the historical normalized delay sequence is 0.20, and the standard deviation of the historical normalized load sequence is 0.30. Dividing 0.30 by 0.50 yields a preset delay weight of 0.60; dividing 0.20 by 0.50 yields a preset load weight of 0.40. The sum of the two weights is 1.
[0083] For any reserved link, this embodiment adds the value obtained by multiplying the normalized delay by a preset delay weight to the value obtained by multiplying the normalized load by a preset load weight to obtain the link cost.
[0084] This embodiment uses Dijkstra's algorithm to calculate the distribution path. The cumulative link cost of the sending node is initialized to 0, and the cumulative link cost of the remaining reserved nodes is initialized to infinity. The reserved nodes are visited in ascending order of cumulative link cost. The adjacent nodes and their corresponding predecessor nodes are updated based on the cumulative link cost of the current node and the link costs of the adjacent reserved links. After the target node has been visited, the path with the minimum cost is obtained by backtracking from the target node to the sending node based on the predecessor node.
[0085] In this embodiment, the node identifiers in the minimum cost path are arranged in order from the sending node to the target node to obtain the distribution path, and the transmission task identifier and the distribution path are associated and written into the path record. Step S4 reads the path record according to the transmission task identifier.
[0086] For example, the link delays of links N01-N02, N01-N04, N02-N06, and N04-N06 are 10 milliseconds, 18 milliseconds, 14 milliseconds, and 11 milliseconds, respectively, and the link loads are 30%, 20%, 40%, and 55%, respectively. The minimum link delay is 10 milliseconds, the maximum link delay is 18 milliseconds, the minimum link load is 20%, and the maximum link load is 55%.
[0087] Calculated using the aforementioned range normalization method and a latency weight of 0.60 and a load weight of 0.40, the link costs for links N01-N02, N01-N04, N02-N06, and N04-N06 are approximately 0.114, 0.600, 0.529, and 0.475, respectively. The cumulative link cost for path N01-N02-N06 is approximately 0.643, and the cumulative link cost for path N01-N04-N06 is approximately 1.075. Therefore, path N01-N02-N06 is determined as the distribution path.
[0088] It should be noted that when there are multiple minimum cost paths with the same cumulative link cost, this embodiment selects the path with fewer links; when the number of links is still the same, the distribution path is selected according to the encoding order of the predecessor node identifiers corresponding to the target node.
[0089] In step S4, the information to be allocated is transmitted according to the distribution path, the arrival node of the information to be allocated is determined, the information to be allocated is written into the isolation buffer of the arrival node, verification data is generated according to the information to be allocated, the target node, the arrival node and the distribution path, the delivery of the information to be allocated is controlled according to the verification data, and a reliable information allocation result is generated.
[0090] In one implementation, this embodiment transmits the information to be allocated hop-by-hop according to the node arrangement order in the distribution path. Each forwarding node sends a transmission message based on the next node identifier recorded in the distribution path, and the terminal node that completes the reception of the transmission message and the parsing of the payload is determined as the arrival node.
[0091] The arriving node is equipped with an isolation cache and a business storage area. After receiving the allocation information, the arriving node writes the allocation information into the isolation cache and records the corresponding access status as locked. Before the verification result is generated, the business process does not read the allocation information in the isolation cache.
[0092] The target node is the expected receiving node recorded in the allocation request, and the arrival node is the node that actually completes the reception of the transmitted message. The target node and arrival node are determined separately, and a node verification result is subsequently generated based on the corresponding node identifiers.
[0093] The verification data generated based on the information to be allocated, the target node, the arrival node, and the distribution path includes: Before transmitting the information to be allocated, a digest calculation is performed on the information to be allocated to obtain a source information digest, and a planned node sequence is extracted from the distribution path; The information to be allocated is encapsulated into a transmission message, and a routing record field is set in the transmission message; The sending node, the forwarding node in the distribution path, and the arriving node write their corresponding node identifiers into the routing record field according to the transmission order. The digest of the information to be allocated in the isolation buffer is calculated to obtain the received information digest, and the node identifiers of each node are extracted from the routing record field to obtain the actual node sequence; Extract the node identifier of the target node and the node identifier of the arrival node to obtain the target node identifier and the arrival node identifier. Combine the source information digest, the received information digest, the planned node sequence, the actual node sequence, the target node identifier and the arrival node identifier to obtain the verification data.
[0094] In one implementation, this embodiment forms a standard byte stream corresponding to the information to be allocated based on the information type field in the allocation request. When the information to be allocated is text information, the service terminal converts the information to be allocated into a standard byte stream according to UTF-8 encoding; when the information to be allocated is non-text information, the information to be allocated is read according to the original binary byte order to obtain the standard byte stream. After the standard byte stream is formed, character encoding conversion is not performed during transmission.
[0095] In this embodiment, the sending node reads all bytes of the standard byte stream and performs a digest calculation using the SHA-256 digest algorithm to obtain a 256-bit source information digest. The digest calculation does not include the transmitted message header, node identifier, and routing record fields.
[0096] In this embodiment, the path record formed by S3 is read based on the transmission task identifier, and the node identifiers in the distribution path are read in the order from the sending node to the target node to obtain the planned node sequence. The first node in the planned node sequence is the sending node, and the last node is the target node.
[0097] The sending node uses its locally stored private key to sign the byte stream formed by the transmission task identifier, source information digest, and planned node sequence in the aforementioned order, thus obtaining the source verification signature.
[0098] Subsequently, the standard byte stream is written into the payload field of the transmission message, and the transmission task identifier, information type, standard byte stream length, source information digest, planned node sequence and source verification signature are written into the corresponding fields of the transmission message, and the routing record field is set in the transmission message.
[0099] The routing record field includes node records arranged in transmission order. Each node record includes a node identifier and a node signature. The sending node reads the sending node identifier from the local node registration record, writes the sending node identifier into the first node record, and signs the byte stream formed by the transmission task identifier and the sending node identifier using the sending node's private key, writing the resulting node signature into the first node record.
[0100] After receiving a transmission message, any forwarding node reads all bytes of the existing routing record field, and combines the transmission task identifier, the existing routing record field, and the current forwarding node identifier into a byte stream to be signed in the aforementioned order. It then signs the message using the node private key corresponding to the current forwarding node and appends the current forwarding node identifier and the obtained node signature to the end of the routing record field. Each node's signature is linked hierarchically based on the existing routing record field. If the routing record or signature of any intermediate node is tampered with, all subsequent node signatures will become invalid.
[0101] After the arriving node completes the reception of the transmission message, it combines the transmission task identifier, the existing routing record field, and the arriving node identifier into a byte stream to be signed in the same way. It then signs the stream using the private key of the arriving node and appends the arriving node identifier and the obtained node signature to the end of the routing record field.
[0102] The transport service only appends to the end of the routing record field, without overwriting already written node records. When any existing node identifier or node signature changes, the byte stream to be signed corresponding to the subsequent node signatures changes accordingly.
[0103] The arriving node reads the sending node's public key from the node registration record based on the sending node's identifier and verifies the source verification signature. If the source verification signature verification passes, it continues to read the source message digest and planned node sequence; if the source verification signature verification fails, it records the message verification result and path verification result as inconsistent, and then continues to perform received message digest calculation and node signature verification to generate complete verification data.
[0104] Upon arrival at a node, the node reads the public key corresponding to each node identifier sequentially according to the order of the node records in the routing record field, and verifies the node signature according to the byte range used when generating the node signature. If all node signatures pass verification, the actual node sequence is extracted; if any node signature fails verification, the path verification result is recorded as inconsistent.
[0105] The arriving node reads the corresponding number of bytes from the payload field based on the information type and standard byte stream length recorded in the transmitted message, and writes the read bytes into the isolation buffer. Text information is kept in UTF-8 byte format until digest verification is completed, while non-text information is kept in its original binary byte format.
[0106] In this embodiment, the SHA-256 digest algorithm is used to calculate the received message digest for all standard byte streams in the isolation buffer. The source message digest is read from the digest field of the transmitted message. The sending node and the arriving node use the same digest algorithm and the same range of standard byte streams.
[0107] When all node signatures pass verification, this embodiment reads the node identifiers sequentially according to the order of node identifiers in the routing record field to obtain the actual node sequence. The target node identifier is read from the allocation request record based on the transmission task identifier, and the arrival node identifier is read from the local node registration record of the arrival node.
[0108] The source message digest, received message digest, planned node sequence, actual node sequence, target node identifier, and arrival node identifier are written into the same verification record to obtain verification data.
[0109] For example, the distribution path corresponding to the transmission task identifier includes nodes N01, N02, and N06, and the planned node sequence is nodes N01, N02, and N06. After the transmission is completed, the routing record field records nodes N01, N02, and N06 in sequence, and the corresponding node signatures are all verified, resulting in the same actual node sequence. The target node identifier and the actual arrived node identifier in the allocation request are both node N06.
[0110] The process of controlling the delivery of the information to be allocated based on the verification data and generating a reliable information allocation result includes: The source information digest is compared with the received information digest, the target node identifier is compared with the arrival node identifier, and the planned node sequence is compared with the actual node sequence to obtain the information verification result, the node verification result and the path verification result. A verification result is generated based on the information verification result, the node verification result, and the path verification result. If the information verification result, the node verification result, and the path verification result are all consistent, then the information to be allocated is transferred from the isolation cache to the business storage area of the arriving node, generating a trusted information allocation result containing the allocation completion status; If at least one of the information verification result, the node verification result, and the path verification result is inconsistent, the information to be allocated is deleted from the isolation cache, at least one anomaly type is determined based on the verification result, and a trusted information allocation result containing the blocking status and the anomaly type is generated.
[0111] In one implementation, if the source verification signature verification passes, this embodiment compares all digest bits of the source message digest and the received message digest. If all digest bits match, the information verification result is recorded as consistent; if at least one digest bit does not match, the information verification result is recorded as inconsistent. If the source verification signature verification fails, the information verification result is directly recorded as inconsistent.
[0112] This embodiment compares the encoded content of the target node identifier and the arrival node identifier. When the encoded content of the two node identifiers is the same, the node verification result is recorded as consistent; when the encoded content of the two node identifiers is inconsistent, the node verification result is recorded as inconsistent.
[0113] If both the source verification signature and all node signatures are verified, this embodiment first compares the number of nodes contained in the planned node sequence and the actual node sequence, and then compares the node identifiers at the corresponding positions according to the node arrangement order.
[0114] When the number of nodes is the same and the node identifiers at all corresponding positions are consistent, the path verification result will be recorded as consistent; when the number of nodes is different, the node identifiers at at least one corresponding position are inconsistent, the source verification signature verification fails, or the signature verification of any node fails, the path verification result will be recorded as inconsistent.
[0115] When the information verification result, node verification result, and path verification result are all consistent, this embodiment records the verification result as passed, creates a storage record in the business storage area of the arriving node, and writes the information to be allocated in the isolation cache into the storage record. After writing is completed, the corresponding copy in the isolation cache is deleted, the access status of the corresponding information in the business storage area is recorded as readable, and a trusted allocation result containing the allocation completion status, target node identifier, and arriving node identifier is generated.
[0116] If at least one of the three verification results is inconsistent, this embodiment records the verification result as failed. The system remains locked until the information to be allocated in the isolation cache is completely deleted, and the information to be allocated and its corresponding cache record are deleted. The information to be allocated is not written to the business storage area.
[0117] When the information verification results are inconsistent, the anomaly type is determined to be information anomaly; when the node verification results are inconsistent, the anomaly type is determined to be node anomaly; when the path verification results are inconsistent, the anomaly type is determined to be path anomaly. When multiple verification results are inconsistent simultaneously, the corresponding multiple anomaly types are written into the information trust allocation result, and an information trust allocation result containing the blocking status and the anomaly type is generated.
[0118] For example, the source verification signature and all node signatures pass verification, the source message digest matches the received message digest, the target node identifier matches the arriving node identifier, and the planned node sequence matches the actual node sequence. In this embodiment, the verification result is recorded as passed, the information to be allocated is transferred from the isolation cache to the business storage area, and a trusted allocation result containing the allocation completion status is generated.
[0119] When the planned node sequence is node N01, node N02, and node N06, and the actual node sequence is node N01, node N04, and node N06, this embodiment records the path verification result as inconsistent, records the verification result as failed, deletes the information to be allocated from the isolation buffer, and generates a reliable allocation result containing the blocking status and path anomaly information.
[0120] In summary, this invention achieves trusted association processing for node selection, path determination, and information delivery in a distributed network by screening candidate nodes based on information security level and node qualification data, forming a trusted node set by combining historical transmission records, node credibility, and operating status, constructing a trusted topology and determining the distribution path based on the trusted node set, and controlling the delivery of information to be allocated through the association verification of information digest, node identifier, and node sequence.
[0121] The second embodiment of the present invention provides an information trust allocation system based on artificial intelligence, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described above.
[0122] It should be noted that the information trust allocation system based on artificial intelligence provided in this embodiment of the invention is used to execute all the process steps of the information trust allocation method based on artificial intelligence in the above embodiment. The working principles and beneficial effects of the two are one-to-one, so they will not be described again.
[0123] It should be noted that the system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0124] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A method for trustworthy information allocation based on artificial intelligence, characterized in that, include: Obtain the information to be allocated, information security level, sending node, target node, network topology, link status and node qualification data in the distributed network, and filter the nodes in the network topology according to the information security level and the node qualification data to obtain candidate nodes; The historical transmission records and operating status of the candidate nodes are obtained. Transmission features are extracted from the historical transmission records. The transmission features are input into a pre-trained decision tree model to obtain the node credibility. The candidate nodes are then selected based on the node credibility and the operating status to obtain a set of credible nodes. The network topology is constrained by the set of trusted nodes to obtain a trusted topology, and the distribution path connecting the sending node and the target node is determined from the trusted topology based on the link status. The information to be allocated is transmitted according to the distribution path, the arrival node of the information to be allocated is determined, the information to be allocated is written into the isolation buffer of the arrival node, verification data is generated according to the information to be allocated, the target node, the arrival node and the distribution path, the delivery of the information to be allocated is controlled according to the verification data, and a reliable information allocation result is generated.
2. The information trust allocation method based on artificial intelligence according to claim 1, characterized in that, The step of filtering nodes in the network topology based on the information security level and the node qualification data to obtain candidate nodes includes: Extract the access security level corresponding to each node in the network topology from the node qualification data; The information security level is compared with each of the access security levels; Nodes whose access security level is not lower than the information security level are identified as candidate nodes.
3. The information trust allocation method based on artificial intelligence according to claim 1, characterized in that, Extracting transmission features from the historical transmission records includes: For any candidate node, the total number of transmitted data packets, the number of lost data packets, the number of data packets with verification failures, the total number of transmission tasks, and the number of abnormal interruption tasks are counted from the corresponding historical transmission records. Based on the total number of transmitted data packets, calculate the ratios corresponding to the number of lost data packets and the number of verification failed data packets to obtain the packet loss rate and the verification failure rate. The abnormal interruption rate is obtained by calculating the proportion of the number of abnormal interruption tasks based on the total number of transmission tasks. The packet loss rate, the verification failure rate and the abnormal interruption rate are combined to obtain the transmission characteristics of the candidate node.
4. The information trust allocation method based on artificial intelligence according to claim 3, characterized in that, The step of inputting the transmission features into a pre-trained decision tree model to obtain node credibility includes: The packet loss rate, the verification failure rate, and the abnormal interruption rate corresponding to the candidate node are input into the pre-trained decision tree model; Based on the feature splitting conditions corresponding to each internal node in the pre-trained decision tree model, the packet loss rate, the verification failure rate, and the abnormal interruption rate are determined layer by layer to identify the corresponding leaf nodes. Read the credibility score corresponding to the leaf node, and determine the credibility score as the node credibility of the candidate node.
5. The information trust allocation method based on artificial intelligence according to claim 4, characterized in that, The step of filtering candidate nodes based on node trustworthiness and operating status to obtain a set of trustworthy nodes includes: For any of the candidate nodes, extract the online identifier and the isolation identifier from the corresponding running state; Candidate nodes whose node credibility is not lower than a preset credibility threshold, whose online status is online, and whose isolation status is not isolated are identified as trusted nodes. By summing up all the trusted nodes, a set of trusted nodes is obtained.
6. The information trust allocation method based on artificial intelligence according to claim 1, characterized in that, The step of constraining the network topology based on the set of trusted nodes to obtain a trusted topology includes: The nodes in the set of trusted nodes are designated as reserved nodes; From the network topology, links whose two ends are both reserved nodes are selected to obtain reserved links; A trusted topology is constructed based on the reserved nodes and the reserved links.
7. The information trust allocation method based on artificial intelligence according to claim 6, characterized in that, Determining the distribution path connecting the sending node and the target node from the trusted topology based on the link state includes: Extract the link latency and link load corresponding to each link in the trusted topology from the link status; The link delay and the link load are normalized by range to obtain normalized delay and normalized load; The normalized delay and the normalized load are weighted and calculated according to preset delay weights and preset load weights to obtain the link cost; Based on the node connection relationships of the trusted topology and the link cost, the Dijkstra algorithm is used to calculate the minimum cost path connecting the sending node and the target node, and the minimum cost path is determined as the distribution path.
8. The information trust allocation method based on artificial intelligence according to claim 1, characterized in that, The step of generating verification data based on the information to be allocated, the target node, the arrival node, and the distribution path includes: Before transmitting the information to be allocated, a digest calculation is performed on the information to be allocated to obtain a source information digest, and a planned node sequence is extracted from the distribution path; The information to be allocated is encapsulated into a transmission message, and a routing record field is set in the transmission message; The sending node, the forwarding node in the distribution path, and the arriving node write their corresponding node identifiers into the routing record field according to the transmission order. The digest of the information to be allocated in the isolation buffer is calculated to obtain the received information digest, and the node identifiers of each node are extracted from the routing record field to obtain the actual node sequence; Extract the node identifier of the target node and the node identifier of the arrival node to obtain the target node identifier and the arrival node identifier. Combine the source information digest, the received information digest, the planned node sequence, the actual node sequence, the target node identifier and the arrival node identifier to obtain the verification data.
9. The information trust allocation method based on artificial intelligence according to claim 8, characterized in that, The step of controlling the delivery of the information to be allocated based on the verification data and generating a reliable information allocation result includes: The source information digest is compared with the received information digest, the target node identifier is compared with the arrival node identifier, and the planned node sequence is compared with the actual node sequence to obtain the information verification result, the node verification result and the path verification result. A verification result is generated based on the information verification result, the node verification result, and the path verification result. If the information verification result, the node verification result, and the path verification result are all consistent, then the information to be allocated is transferred from the isolation cache to the business storage area of the arriving node, generating a trusted information allocation result containing the allocation completion status; If at least one of the information verification result, the node verification result, and the path verification result is inconsistent, the information to be allocated is deleted from the isolation cache, at least one anomaly type is determined based on the verification result, and a trusted information allocation result containing the blocking status and the anomaly type is generated.
10. An information trust allocation system based on artificial intelligence, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method according to any one of claims 1 to 9.
