A material import and export network supervision system
By using blockchain technology to connect to customs clearance process nodes in the material import and export customs clearance system, the problem of difficulty in tampering and traceability of customs clearance data is solved, and distributed recording and traceability of data is realized to ensure the accuracy and completeness of customs clearance data.
Patent Information
- Application Number
- CN202311607254.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-06
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2043-09-06
AI Technical Summary
During the customs clearance process of import and export of materials, there may be tampering or data security issues in customs clearance data, and each customs clearance process only stores data generated by the corresponding customs clearance process, and the complete customs clearance data of the materials cannot be recorded or traced, resulting in difficulty in data sharing and traceability.
Design a material import and export customs correlation network supervision system, and use blockchain technology to connect customs clearance process nodes into a blockchain network. Each customs clearance process node has at least one blockchain node, and collects, pre-processes and The hash value calculation generates blocks and broadcasts to all nodes for verification. The exception handling module processes exception signals to ensure the integrity and consistency of blockchain data.
It realizes distributed recording and traceability of material import and export customs clearance data, ensures that data is not easily lost and tampered, and provides real-time sharing and subsequent traceability functions to ensure the accuracy and completeness of customs clearance data.
Smart Images

Figure CN117853125B_ABST
Abstract
Description
[0001] This application is a divisional application of the application filed on September 6, 2023, with application number 202311145236.X and invention name “A material import and export online supervision system”. Technical Field
[0002] The present invention belongs to the field of material import and export customs clearance, relates to blockchain technology, and is specifically an online supervision system for material import and export customs clearance. Background Art
[0003] Material import and export customs clearance refers to the various administrative procedures and legal procedures that need to be carried out when materials enter from one country or region to another country or region to ensure that the goods enter and exit legally and comply with trade laws and policies.
[0004] At present, in the process of customs clearance of imported and exported materials, by collecting customs clearance electronic data and using technologies such as Internet transmission, the customs clearance data generated by each customs clearance process involved can be shared, thereby realizing online supervision of the customs clearance data of imported and exported materials.
[0005] However, during the data collection and transmission process, the customs clearance data obtained may be tampered with or have other data security issues. In addition, each customs clearance process may only store the customs clearance data generated by the corresponding customs clearance process, and cannot record all customs clearance processes of the corresponding materials. As a result, when the required customs clearance data needs to be retrieved or traced, only a request to retrieve the data can be sent to the corresponding customs clearance process, delaying the work progress. Summary of the invention
[0006] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a material import and export customs clearance network supervision system, which solves the problem of how to process the customs clearance data of material import and export, avoid tampering or other data security issues when storing customs clearance data, and facilitate the subsequent tracing of the complete customs clearance data of the corresponding materials.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A material import and export customs clearance network supervision system includes: a plurality of customs clearance process nodes and an exception handling module; each customs clearance process node is connected according to the process sequence, and each customs clearance process node is provided with at least one blockchain node, and the blockchain nodes included in all customs clearance process nodes are interconnected to form a blockchain network, and each blockchain node generates at least one block;
[0009] The blockchain node is used to collect, pre-process and calculate the hash value of the corresponding customs clearance data to generate a new block, and broadcast it to all blockchain nodes. Each blockchain node verifies the new block. If the verification fails, a block exception signal is generated and a timestamp and blockchain node number are added to send it to the exception handling module; the blockchain node is provided with a customs clearance data collection unit, a block generation unit, a block verification unit and a distributed storage unit;
[0010] The exception handling module is used to process the acquired block exception signal, determine whether it is necessary to clear and regenerate a new block according to the number of blockchain nodes that send the block exception signal, and analyze whether all blockchain nodes are abnormal when the number of blockchain nodes that send the block exception signal is greater than 0 and less than the total number of blockchain nodes. Finally, the blockchain stored in the normal blockchain node is spliced into the abnormal blockchain node, so that each blockchain node stores accurate and complete block data.
[0011] Furthermore, the customs clearance process nodes include: export material declaration node, export customs approval and inspection node, cargo transportation node, import material declaration node, import customs approval and inspection node and material delivery node.
[0012] Furthermore, the customs clearance data collection unit is used to collect the corresponding customs clearance data in the corresponding customs clearance process node, and send the collected corresponding customs clearance data to the block generation unit; the block generation unit is used to pre-process the obtained customs clearance data, and calculate the hash value of the current block according to the pre-processed customs clearance data and the hash value of the previous block, thereby generating a new block and broadcasting it to all blockchain nodes; the block verification unit is used to verify the obtained block, and compare the hash value of the previous block contained in the header data of the obtained block with the hash value of the previous block stored in the distributed storage unit of the blockchain node. If they are consistent, the obtained block is stored in the distributed storage unit of the current blockchain node. If they are inconsistent, the current blockchain node refuses to receive the block, and generates a block exception signal with a timestamp and blockchain node number and sends it to the exception handling module; the distributed storage unit is used to store the block data of all blockchain nodes in the blockchain network.
[0013] Furthermore, after the customs clearance data of the export material declaration node is collected, the block generation unit pre-processes the first data signal collected by the export material declaration node, and calculates the corresponding hash value according to the specific customs clearance data content of the data signal, and marks the obtained customs clearance data as the first block data and stores it in the block of the current hash value, thereby constructing the first block of the target material; and when the current blockchain node obtains the second data signal, the hash value of the first block is extracted, the specific customs clearance data content contained in the pre-processed second data signal and the hash value of the first block are combined to calculate the hash value of the second block, and the obtained customs clearance data is marked as the second block data and stored in the block of the current hash value, thereby obtaining the second block.
[0014] Furthermore, the blockchain node number is a unique identification number representing a blockchain node.
[0015] Furthermore, the processing process of the exception handling module is as follows:
[0016] Step S1: Obtain block anomaly signals, and count the number of blockchain nodes i that send block anomaly signals within the same unit verification time; i = 0, 1, 2...n, where n represents the total number of all blockchain nodes in the system;
[0017] If i=0, there is no block anomaly at present, and the block enters the state of waiting for analysis for the next unit verification time;
[0018] If i=n, the new block is cleared and a recalculation signal is sent to the blockchain node that generated the block;
[0019] If 0<i<n, obtain the hash value of the last block stored by all blockchain nodes, and compare the obtained hash values with each other to determine whether they are the same; including:
[0020] If they are the same, the new block is cleared and a recalculation signal is sent to the blockchain node that generated the block; if there is a difference, go to step S2;
[0021] Step S2: Obtain the hash value of the previous block of each blockchain node, and further compare them with each other until the comparison result shows that the hash value of the same block stored by all blockchain nodes is the same, mark all subsequent blocks with the same comparison hash value as pending, and generate a query signal of whether the blockchain node is safe to the administrator backend of the customs clearance process node to which each compared blockchain node belongs; go to step S3;
[0022] Step S3: Obtaining a feedback signal on whether the blockchain node is safe;
[0023] Mark the blockchain nodes that are reported as safe as normal blockchain nodes to be confirmed, mark the blockchain nodes that are reported as unsafe as abnormal blockchain nodes, and send a command signal to clear the pending state blocks to the abnormal blockchain nodes;
[0024] Compare the hash values of the same block of the normal blockchain node to be confirmed; if they are the same, mark the normal blockchain node to be confirmed as a normal blockchain node; go to step S4; if they are different, go to step S2;
[0025] Step S4: Obtain the IP address of the abnormal blockchain node and the IP address of the normal blockchain node;
[0026] According to the principle of shortest distance, the normal blockchain node closest to the IP address of the abnormal blockchain node is used as the blockchain transmission object; and the blockchain splicing instruction signal is sent to the corresponding abnormal blockchain node and the corresponding normal blockchain node respectively; when all abnormal blockchain nodes return to normal, go to step S1.
[0027] Furthermore, the administrator backend is authorized and managed by professional technicians. When the administrator backend receives the inquiry signal, it uses network security analysis technology to analyze and determine whether information security problems occur in the corresponding blockchain node, and sends a feedback signal of the judgment result to the exception handling module.
[0028] Furthermore, after the abnormal blockchain node and the normal blockchain node receive the instruction signal for blockchain splicing, according to the hash value of the last block of the abnormal blockchain node, the subsequent blockchains in the normal blockchain node with the same hash value as the block are spliced to the back end of the last block of the abnormal blockchain node, so that the complete blockchain data stored in the abnormal blockchain node is normal.
[0029] Compared with the prior art, the present invention has the following beneficial effects:
[0030] 1. In the present invention, at least one blockchain node is set for each customs clearance process of material import and export. Each blockchain node collects, pre-processes and calculates the hash value of the corresponding customs clearance data to generate a new block, and broadcasts it to all blockchain nodes. Each blockchain node verifies the new block. If the verification fails, a block exception signal is generated and timestamped with the blockchain node number and sent to the exception handling module; it can ensure that the customs clearance data of each customs clearance process of material import and export is recorded in a distributed manner, which is not easy to be lost or tampered with, so that the authorized user end can share the customs clearance data of material import and export in real time, and it can facilitate authorized tracing when the corresponding customs clearance data needs to be retrieved later.
[0031] 2. In the present invention, the acquired block exception signal is processed by the exception processing module, and whether the new block needs to be cleared and regenerated is determined according to the number of blockchain nodes that send the block exception signal, and when the number of blockchain nodes that send the block exception signal is greater than 0 and less than the total number of blockchain nodes, whether all blockchain nodes are abnormal is analyzed, and finally the blockchain stored in the normal blockchain node is spliced into the abnormal blockchain node, so that each blockchain node stores accurate and complete block data, so that when there are lawless elements invading the system and trying to tamper with the block data, it can be discovered and processed in time, so as to prevent it in time, so that the customs clearance data of the import and export of materials remains accurate, complete and fair. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a block diagram of a material import and export network supervision system of the present invention;
[0033] Figure 2 It is a schematic diagram of the structure of the blockchain node of the present invention. DETAILED DESCRIPTION
[0034] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0035] like Figure 1-2 As shown, a material import and export customs clearance network supervision system includes: a number of customs clearance process nodes and an exception handling module;
[0036] Each customs clearance process node is connected in the order of the process, and each customs clearance process node is provided with at least one blockchain node. The blockchain nodes contained in all customs clearance process nodes are interconnected to form a blockchain network, and each blockchain node generates at least one block;
[0037] In a blockchain network, each blockchain node is an independent computer or device that exchanges data and information through peer-to-peer communication;
[0038] Among them, the customs clearance process nodes include: export material declaration node, export customs approval and inspection node, cargo transportation node, import material declaration node, import customs approval and inspection node, material delivery node, etc.;
[0039] Each customs clearance process node generates customs clearance data, among which, the customs clearance data of the export material declaration node includes the export declaration form of the target material, including the detailed information of the material and the country of origin and destination, etc.; the customs clearance data of the export customs approval and inspection node includes whether the export declaration information of the target material is accurate and compliant, as well as the inspection information of the target material; the customs clearance data of the cargo transportation node includes the transportation method, transportation order number and transportation route, etc. of the target material; the customs clearance data of the import material declaration node includes the import declaration form of the target material, including the detailed information of the material and the country of origin and destination, etc.; the customs clearance data of the import customs approval and inspection node includes whether the import declaration information of the target material is accurate and compliant, as well as the inspection information of the target material; the customs clearance data of the material delivery node includes whether the target material has arrived at the corresponding location and been delivered;
[0040] In the present application, the blockchain node is provided with a customs clearance data collection unit, a block generation unit, a block verification unit and a distributed storage unit;
[0041] The customs clearance data collection unit is used to collect corresponding customs clearance data in the corresponding customs clearance process node, and send the collected corresponding customs clearance data to the block generation unit;
[0042] It is understandable that one or more blockchain nodes are set in the same customs clearance process node, and different blockchain nodes correspond one-to-one to the corresponding customs clearance data;
[0043] The block generation unit is used to pre-process the acquired customs clearance data, and calculate the hash value of the current block according to the pre-processed customs clearance data and the hash value of the previous block, thereby generating a new block;
[0044] The pre-processing includes data cleaning of the acquired customs clearance data and processing of duplicate, missing and abnormal customs clearance data;
[0045] For example, after the customs clearance data of the export material declaration node is collected, the block generation unit pre-processes the first data signal collected and obtained by the export material declaration node, and calculates the corresponding hash value according to the specific customs clearance data content of the data signal, and marks the obtained customs clearance data as the first block data and stores it in the block of the current hash value, thereby constructing the first block of the target material; and when the current blockchain node obtains the second data signal, the hash value of the first block is extracted, the specific customs clearance data content contained in the pre-processed second data signal and the hash value of the first block are combined to calculate the hash value of the second block, and the obtained customs clearance data is marked as the second block data and stored in the block of the current hash value, thereby obtaining the second block; wherein, the specific hash value calculation is a prior art and will not be elaborated on here;
[0046] After obtaining a new block, the block generation unit broadcasts the new block to all blockchain nodes;
[0047] The block verification unit is used to verify the acquired block, that is, to compare the hash value of the previous block contained in the header data of the acquired block with the hash value of the previous block stored in the distributed storage unit of the blockchain node. If they are consistent, the acquired block is stored in the distributed storage unit of the current blockchain node. If they are inconsistent, the current blockchain node refuses to receive the block, and generates a block exception signal with a timestamp and blockchain node number and sends it to the exception handling module; wherein the blockchain node number is a unique identification number representing the blockchain node;
[0048] In this embodiment, at least one blockchain node is set for each customs clearance process of material import and export. Each blockchain node generates a new block after collecting, preprocessing and calculating the hash value of the corresponding customs clearance data, and broadcasts it to all blockchain nodes. Each blockchain node verifies the new block. If the verification fails, a block exception signal is generated and timestamped with the blockchain node number and sent to the exception handling module; it can ensure that the customs clearance data of each customs clearance process of material import and export is recorded in a distributed manner, which is not easy to be lost or tampered with, so that the authorized user end can share the customs clearance data of material import and export in real time, and it can facilitate authorization tracing when the corresponding customs clearance data needs to be retrieved later;
[0049] The distributed storage unit is used to store block data of all blockchain nodes in the blockchain network;
[0050] In this application, the exception handling module is used to process the acquired block exception signal, and the processing process is as follows:
[0051] Step S1: Obtain block anomaly signals, and count the number of blockchain nodes i that send block anomaly signals within the same unit verification time; i = 0, 1, 2...n, where n represents the total number of all blockchain nodes in the system;
[0052] If i=0, there is no block anomaly at present, and the block enters the state of waiting for analysis for the next unit verification time;
[0053] If i=n, the new block is cleared and a recalculation signal is sent to the blockchain node that generated the block;
[0054] If 0<i<n, obtain the hash value of the last block stored by all blockchain nodes, and compare the obtained hash values with each other to determine whether they are the same; including:
[0055] If they are the same, the new block is cleared and a recalculation signal is sent to the blockchain node that generated the block;
[0056] If there is a difference, go to step S2;
[0057] Step S2: Obtain the hash value of the previous block of each blockchain node, and further compare them with each other until the comparison result shows that the hash value of the same block stored by all blockchain nodes is the same, mark all subsequent blocks with the same comparison hash value as pending, and generate a query signal of whether the blockchain node is safe to the administrator backend of the customs clearance process node to which each compared blockchain node belongs; go to step S3;
[0058] Among them, the administrator backend is authorized and managed by professional technicians. When the administrator backend receives the inquiry signal, it uses network security analysis technology to analyze and judge whether there is an information security problem in the corresponding blockchain node, and sends the feedback signal of the judgment result to the exception handling module;
[0059] Step S3: Obtaining a feedback signal on whether the blockchain node is safe;
[0060] Mark the blockchain nodes that are reported as safe as normal blockchain nodes to be confirmed, mark the blockchain nodes that are reported as unsafe as abnormal blockchain nodes, and send a command signal to clear the pending state blocks to the abnormal blockchain nodes;
[0061] Compare the hash values of the same block of the normal blockchain nodes to be confirmed;
[0062] If they are the same, the normal blockchain node to be confirmed is marked as a normal blockchain node; go to step S4;
[0063] If there is a difference, go to step S2;
[0064] Step S4: Obtain the IP address of the abnormal blockchain node and the IP address of the normal blockchain node;
[0065] According to the principle of shortest distance, the normal blockchain node closest to the IP address of the abnormal blockchain node is used as the blockchain transmission object; and the blockchain splicing instruction signal is sent to the corresponding abnormal blockchain node and the corresponding normal blockchain node respectively;
[0066] After the corresponding abnormal blockchain node and normal blockchain node receive the instruction signal of blockchain splicing, according to the hash value of the last block of the abnormal blockchain node, the subsequent blockchain with the same hash value as the block in the normal blockchain node is spliced to the back end of the last block of the abnormal blockchain node, so that the complete blockchain data stored in the abnormal blockchain node is normal;
[0067] When all abnormal blockchain nodes return to normal, go to step S1;
[0068] In this embodiment, the acquired block exception signal is processed by the exception processing module, and whether the new block needs to be cleared and regenerated is determined according to the number of blockchain nodes that send the block exception signal. When the number of blockchain nodes that send the block exception signal is greater than 0 and less than the total number of blockchain nodes, all blockchain nodes are analyzed to see if they are abnormal. Finally, the blockchain stored in the normal blockchain node is spliced into the abnormal blockchain node, so that each blockchain node stores accurate and complete block data, so that when there are criminals invading the system and trying to tamper with the block data, it can be discovered and processed in time, so as to prevent it in time, so that the customs clearance data of the import and export of materials remains accurate, complete and fair.
[0069] In the embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation; the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the method of this embodiment.
[0070] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A material import and export network supervision system, characterized by: include: Several customs clearance process nodes and exception handling modules; Each customs clearance process node is connected in accordance with the process sequence, and each customs clearance process node is provided with at least one blockchain node. The blockchain nodes contained in all customs clearance process nodes are interconnected to form a blockchain network, and each blockchain node generates at least one block; The blockchain node is used to collect, pre-process and calculate the hash value of the corresponding customs clearance data to generate a new block, and broadcast it to all blockchain nodes. Each blockchain node verifies the new block. If the verification fails, a block exception signal is generated and a timestamp and blockchain node number are added to send it to the exception handling module; the blockchain node is provided with a customs clearance data collection unit, a block generation unit, a block verification unit and a distributed storage unit; The exception handling module is used to process the acquired block exception signal, determine whether it is necessary to clear and regenerate a new block according to the number of blockchain nodes that send the block exception signal, and analyze whether all blockchain nodes are abnormal when the number of blockchain nodes that send the block exception signal is greater than 0 and less than the total number of blockchain nodes, and finally splice the blockchain stored in the normal blockchain node to the abnormal blockchain node, so that each blockchain node stores accurate and complete block data; The processing process of the exception handling module is as follows: Step S1: Obtain block anomaly signals and count the number of blockchain nodes i that send block anomaly signals within the same unit verification time; i=0,1,2...n, n represents the total number of all blockchain nodes in the system; If i=0, there is no block anomaly at present, and the block enters the state of waiting for analysis for the next unit verification time; If i=n, the new block is cleared and a recalculation signal is sent to the blockchain node that generated the block; If 0<i<n, obtain the hash value of the last block stored by all blockchain nodes, and compare the obtained hash values with each other to determine whether they are the same; including: If they are the same, the new block is cleared and a recalculation signal is sent to the blockchain node that generated the block; if there is a difference, go to step S2; Step S2: Obtain the hash value of the previous block of each blockchain node, and further compare them with each other until the comparison result shows that the hash value of the same block stored by all blockchain nodes is the same, mark all subsequent blocks with the same comparison hash value as pending, and generate a query signal of whether the blockchain node is safe to the administrator backend of the customs clearance process node to which each compared blockchain node belongs; go to step S3; Step S3: Obtaining a feedback signal on whether the blockchain node is safe; Mark the blockchain nodes that are reported as safe as normal blockchain nodes to be confirmed, mark the blockchain nodes that are reported as unsafe as abnormal blockchain nodes, and send a command signal to clear the pending state blocks to the abnormal blockchain nodes; Compare the hash values of the same block of the normal blockchain node to be confirmed; if they are the same, mark the normal blockchain node to be confirmed as a normal blockchain node; go to step S4; if they are different, go to step S2; Step S4: Obtain the IP address of the abnormal blockchain node and the IP address of the normal blockchain node; According to the principle of shortest distance, the normal blockchain node closest to the IP address of the abnormal blockchain node is used as the blockchain transmission object; and the instruction signal of blockchain splicing is sent to the corresponding abnormal blockchain node and the corresponding normal blockchain node respectively; when all abnormal blockchain nodes return to normal, go to step S1; The blockchain node number is a unique identification number representing a blockchain node; The administrator backend is managed by authorized professional technicians. When the administrator backend receives the inquiry signal, it uses network security analysis technology to analyze and determine whether there is an information security problem in the corresponding blockchain node, and sends the feedback signal of the judgment result to the exception handling module; After the abnormal blockchain node and the normal blockchain node receive the instruction signal for blockchain splicing, according to the hash value of the last block of the abnormal blockchain node, the subsequent blockchains in the normal blockchain node with the same hash value as the block are spliced to the back end of the last block of the abnormal blockchain node, so that the complete blockchain data stored in the abnormal blockchain node is normal.
2. A material import and export network supervision system according to claim 1, characterized in that: The customs clearance process nodes include: export material declaration node, export customs approval and inspection node, cargo transportation node, import material declaration node, import customs approval and inspection node and material delivery node.
3. A material import and export network supervision system according to claim 2, characterized in that: The customs clearance data collection unit is used to collect corresponding customs clearance data in the corresponding customs clearance process node, and send the collected corresponding customs clearance data to the block generation unit; The block generation unit is used to pre-process the acquired customs clearance data, and calculate the hash value of the current block according to the pre-processed customs clearance data and the hash value of the previous block, thereby generating a new block and broadcasting it to all blockchain nodes; The block verification unit is used to verify the acquired block, and compares the hash value of the previous block contained in the header data of the acquired block with the hash value of the previous block stored in the distributed storage unit of the blockchain node. If they are consistent, the acquired block is stored in the distributed storage unit of the current blockchain node. If they are inconsistent, the current blockchain node refuses to receive the block, and generates a block exception signal with a timestamp and blockchain node number and sends it to the exception handling module; the distributed storage unit is used to store the block data of all blockchain nodes in the blockchain network.
4. A material import and export network supervision system according to claim 2, characterized in that: After the customs clearance data of the export material declaration node is collected, the block generation unit pre-processes the first data signal collected and obtained by the export material declaration node, calculates the corresponding hash value according to the specific customs clearance data content of the data signal, and marks the obtained customs clearance data as the first block data and stores it in the block of the current hash value, thereby constructing the first block of the target material; When the current blockchain node obtains the second data signal, the hash value of the first block is extracted, the specific customs clearance data content contained in the preprocessed second data signal and the hash value of the first block are combined to calculate the hash value of the second block, and the obtained customs clearance data is marked as the second block data and stored in the block of the current hash value, thereby obtaining the second block.
Citation Information
Patent Citations
Block chain-based real estate information on-chain organization method and historical state tracing method and device
CN111461751A
Electronic evidence management method based on blockchain and cloud computing platform
CN111506931A