Commodity traceability system based on blockchain and big data technology
I. Short answer questions
What parts does the data collection and query module of this system consist of? What are their functions? (2-3 sentences)
What kind of blockchain architecture does the blockchain traceability system in this system use? Why choose this architecture? (2-3 sentences)
What does the data layer of the blockchain traceability system in this system contain? What are their functions? (2-3 sentences)
Briefly describe the characteristics of the network layer, consensus layer, contract layer, and application layer of the blockchain traceability system in this system. (2-3 sentences)
What types of nodes does the blockchain traceability system in this system contain? (2-3 sentences)
How does this system improve the transmission efficiency of transaction requests? (2-3 sentences)
How does this system improve the efficiency of the master node in verifying the validity of transactions? (2-3 sentences)
How does this system solve the problem of invalid transactions occupying storage space? (2-3 sentences)
Why is it recommended to deploy endorsement nodes and accounting nodes on different hosts respectively? (2-3 sentences)
How does this system achieve high availability of the big data cluster service environment? (2-3 sentences)
II. Answers to short-answer questions
The data collection and query module includes the commodity supply chain system, data collection unit, data center, and traceability query unit. The data collection unit obtains the commodity traceability information data from the commodity supply chain system and transmits it to the data center, and the traceability query unit obtains the commodity traceability information data from the data center.
The system adopts the Hyperledger Fabric alliance chain system architecture. The alliance chain is chosen because it can control the access and exit of nodes, which is suitable for cooperation between merchants.
The data layer includes blockchain ledgers and identity registration and authentication units. The blockchain ledger is used to store commodity traceability information, and the identity registration and authentication unit is used to ensure the security of transactions.
The network layer adopts P2P, Gossip and gRPC protocols; the consensus layer adopts the Raft algorithm; the contract layer uses smart contracts to implement business logic; the application layer provides Fabric SDK and API for developers to use.
The system includes client nodes, Peer nodes (including master nodes, endorsement nodes and accounting nodes), sorting nodes and certificate authorities.
When the client submits a transaction request to the sorting node, only the transaction summary is transmitted instead of the entire transaction content, thereby reducing the amount of data transmission and improving efficiency.
The master node verifies the validity of the transaction in parallel processing during the accounting process to improve verification efficiency.
When verifying the validity of the transaction, the master node will filter out invalid transactions and not store them in the blockchain ledger, thereby reducing storage space waste.
Transaction endorsement and transaction submission are performed on the endorsement node and the accounting node respectively. If they are deployed on the same host, they will rob each other of resources, affecting efficiency.
The system adopts cluster deployment, and achieves high availability by deploying multiple NameNodes and ResourceManagers, and deploying JournalNode, DataNode, NodeManager and Zookeeper on different hosts.
III. Discussion questions
Detailed explanation of how the product traceability system uses blockchain technology to ensure the authenticity and reliability of product traceability information.
Analyze the advantages of storing the core data of the product in the blockchain and storing the product details in the big data cluster service environment in the system.
Combined with actual cases, explore the application prospects of the product traceability system in combating counterfeit and shoddy products and safeguarding consumer rights.
Analyze the advantages and disadvantages of this commodity traceability system compared with the traditional commodity traceability system, and look forward to its future development trend.
Discuss the security challenges that this commodity traceability system may face in practical applications and the corresponding solutions.
IV. Key Glossary
Term Explanation Blockchain (Blockchain) A decentralized distributed ledger technology used to record transaction information, which is tamper-proof, transparent and secure. Consortium Blockchain (Consortium Blockchain) A semi-private blockchain whose node joining and exiting requires permission control and is suitable for cooperation between institutions. Hyperledger Fabric An open source enterprise-level consortium chain platform that provides modular architecture, pluggable consensus mechanism and other features. Data collection and query module A module responsible for collecting commodity traceability information data and providing query functions. Blockchain traceability system A system that uses blockchain technology to implement commodity traceability functions. Big data cluster service environment A distributed system for storing and processing massive commodity detail data. Commodity core data The pre-set core part of the commodity traceability information data is stored on the blockchain. Commodity details The entire content of the commodity traceability information data is stored in the big data cluster service environment. Node: A participant in a blockchain network, which can be a client, peer node, sorting node, etc. Transaction: An operation that changes the state of a blockchain ledger, such as adding, modifying, or deleting data. Smart Contract: Code stored on the blockchain that is used to define and execute business logic.