Blockchain system, data transmission method and storage medium based on data link layer

By adopting the data link layer routing protocol and NSAP address identification in the blockchain system, the data encapsulation and decapsulation process is simplified, the problem of large performance loss in the existing blockchain system is solved, and efficient data transmission is achieved.

CN115714779BActive Publication Date: 2025-09-30PURPLE MOUNTAIN LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211406396.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2025-09-30
Estimated Expiration
2042-11-10

AI Technical Summary

Technical Problem

The existing blockchain system uses complex TCP/IP protocols during data transmission, which results in large performance loss and complex processing, affecting network performance.

Method used

The blockchain system adopts the data link layer, directly transmits data information at the data link layer through the routing protocol, simplifies the encapsulation and decapsulation process, and uses the NSAP address identifier and PDU message format to realize data transmission between nodes.

Benefits of technology

It improves the network performance of the blockchain system, reduces performance loss, realizes the complete transmission of data information between different nodes, and simplifies the processing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115714779B_ABST
    Figure CN115714779B_ABST
Patent Text Reader

Abstract

The present invention provides a data link layer-based blockchain system, data transmission method, and storage medium. The system includes multiple blockchain nodes and a target router. A first blockchain node is configured to generate first data information corresponding to a first data message format; based on a routing protocol, the first data information is sent to the target router, where the first blockchain node is any one of the multiple blockchain nodes; the target router is configured to receive the first data information sent by the first blockchain node; the first data information is sent to a second blockchain node, where the second blockchain node is any one of the multiple blockchain nodes; the second blockchain node is configured to receive the first data information sent by the target router; and based on the first data information, second data information corresponding to a second data message format is determined. This blockchain system can operate directly at the data link layer, reducing performance loss and enabling complete transmission of data information between different blockchain nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a blockchain system, a data transmission method, and a storage medium based on a data link layer. Background Art

[0002] Blockchain has the characteristics of being distributed, decentralized, tamper-proof, open and transparent. In recent years, it has received widespread attention in various fields. The tamper-proof nature of blockchain is a key feature that enables various businesses and systems. But in essence, it is the result of the combined effect of the blockchain's distributed and decentralized network structure and the consensus mechanism.

[0003] Blockchain systems are considered distributed and decentralized because they operate as peer-to-peer networks. The primary function of peer-to-peer networks in blockchain systems is node discovery and data synchronization. Blockchain systems employ both purely distributed and structured peer-to-peer networks. These differ in their implementation, such as node addressing, but these differences do not affect the underlying network's operational mechanisms.

[0004] Existing blockchain systems use the Transmission Control Protocol (TCP) / Internet Protocol (IP) protocol suite to transmit data between blockchain nodes. To address common issues such as message loss and message disarray in blockchain networks, the TCP and IP protocols incorporate complex mechanisms within the blockchain system. However, blockchain systems are inherently prone to discovering and processing missing and out-of-order data, rendering the TCP and IP protocols' related services unnecessary when transmitting data. Furthermore, the complex mechanisms within these systems lead to performance disadvantages. Based on these complex mechanisms, the data encapsulation and decapsulation process within the blockchain network is complex, resulting in significant performance losses. Summary of the Invention

[0005] The present invention provides a blockchain system, data transmission method and storage medium based on a data link layer, which are used to solve the performance disadvantages highlighted by the complex mechanism in the existing blockchain system. Based on the complex mechanism, the blockchain system has a relatively complex process of encapsulating / unsealing data information in the blockchain network, which causes a large performance loss of the blockchain system. The blockchain system can be directly operated at the data link layer, further improving the performance of the blockchain system at the network performance level, simplifying the data information processing process of the blockchain system, and reducing the performance loss of the blockchain system. In addition, the blockchain system does not need to rely on protocols in other link layers to achieve complete transmission of data information between different blockchain nodes.

[0006] The present invention provides a blockchain system based on a data link layer, comprising: multiple blockchain nodes and a target router,

[0007] A first blockchain node is configured to generate first data information corresponding to a first data message format; and send the first data information to the target router based on a routing protocol, wherein the first blockchain node is any node among the multiple blockchain nodes;

[0008] The target router is configured to receive the first data information sent by the first blockchain node; and send the first data information to a second blockchain node, where the second blockchain node is any node among the multiple blockchain nodes, and the second blockchain node is different from the first blockchain node.

[0009] The second blockchain node is used to receive the first data information sent by the target router; based on the first data information, determine the second data information corresponding to the second data message format.

[0010] According to a blockchain system provided by the present invention, the first blockchain node corresponds to a first network service access point NSAP address identifier; the second blockchain node corresponds to a second NSAP address identifier.

[0011] According to the present invention, a blockchain system is provided, including: the first blockchain node, specifically used to generate third data information through a first blockchain program; using the first protocol stack, the third data information is encapsulated in a first data message format to obtain the first data information.

[0012] According to a blockchain system provided by the present invention, when the number of target routers is one, the first blockchain node is specifically used to send the first data information to the target router based on the first terminal system-intermediate system ES-IS routing protocol; the target router is specifically used to send the first data information to the second blockchain node based on the second terminal system-intermediate system ES-IS routing protocol.

[0013] According to a blockchain system provided by the present invention, when there are multiple target routers, the first data information is transmitted between the target routers based on the Intermediate System-Intermediate System (IS-IS) routing protocol.

[0014] According to a blockchain system provided by the present invention, the second blockchain node is specifically configured to utilize a second protocol stack and a second data message format to decapsulate the first data information to obtain fourth data information; and to inspect the fourth data information through a second blockchain program to obtain the second data information.

[0015] According to a blockchain system provided by the present invention, the first data message format includes a protocol number field and / or a protocol data unit PDU message format, and the second data message format includes the protocol number field and / or the PDU message format.

[0016] A blockchain system provided according to the present invention includes: the PDU message format includes: a consensus message PDU format, a block data PDU format, and a transaction data PDU format.

[0017] The present invention also provides a data transmission method, which is applied to any of the above-mentioned blockchain systems based on the data link layer, and the method comprises:

[0018] Generate first data information corresponding to a first data message format using a first blockchain node; send the first data information to the target router based on a routing protocol, where the first blockchain node is any one of the multiple blockchain nodes;

[0019] Receive, using the target router, the first data information sent by the first blockchain node; and send the first data information to a second blockchain node, where the second blockchain node is any one of the multiple blockchain nodes, and the second blockchain node is different from the first blockchain node.

[0020] The first data information sent by the target router is received by the second blockchain node; based on the first data information, second data information corresponding to the second data message format is determined.

[0021] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned data transmission method when executed by a processor.

[0022] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the above-mentioned data transmission method.

[0023] The present invention provides a data link layer-based blockchain system, data transmission method, and storage medium. The blockchain system includes: multiple blockchain nodes and a target router, a first blockchain node, configured to generate first data information corresponding to a first data message format; based on a routing protocol, sending the first data information to the target router, the first blockchain node being any one of the multiple blockchain nodes; the target router being configured to receive the first data information sent by the first blockchain node; sending the first data information to a second blockchain node, the second blockchain node being any one of the multiple blockchain nodes, the second blockchain node being different from the first blockchain node; the second blockchain node being configured to receive the first data information sent by the target router; and determining second data information corresponding to a second data message format based on the first data information. This blockchain system is used to solve the performance disadvantages highlighted by the complex mechanism in the existing blockchain system. Based on this complex mechanism, the blockchain system has a relatively complex process of encapsulating / unsealing data information in the blockchain network, which makes the performance loss of the blockchain system also relatively large. The blockchain system can be directly operated at the data link layer, further improving the performance of the blockchain system at the network performance level, simplifying the blockchain system's data information processing process, making the performance loss of the blockchain system smaller, and the blockchain system does not need to rely on protocols in other link layers to achieve complete transmission of data information between different blockchain nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0025] Figure 1 This is one of the structural diagrams of the blockchain system based on the data link layer provided by the present invention;

[0026] Figure 2a This is the second structural diagram of the blockchain system based on the data link layer provided by the present invention;

[0027] Figure 2b Schematic diagram of a scenario of the data transmission method provided by the present invention;

[0028] Figure 3 It is a flow chart of the data transmission method provided by the present invention. DETAILED DESCRIPTION

[0029] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0030] like Figure 1 The figure is a schematic diagram of the structure of the blockchain system based on the data link layer provided by the present invention. Figure 1 In the data link layer, the blockchain system 10 may include: multiple blockchain nodes 101 and a target router 102,

[0031] The first blockchain node 1011 is configured to generate first data information corresponding to a first data message format; and send the first data information to a target router 102 based on a routing protocol. The first blockchain node 1011 is any one of the multiple blockchain nodes 101.

[0032] The target router 102 is configured to receive the first data information sent by the first blockchain node 1011; and send the first data information to the second blockchain node 1012, where the second blockchain node 1012 is any node among the plurality of blockchain nodes 101, and the second blockchain node 1012 is different from the first blockchain node 1011;

[0033] The second blockchain node 1012 is used to receive the first data information sent by the target router 102; based on the first data information, determine the second data information corresponding to the second data message format.

[0034] The blockchain node 101 may also be referred to as a network node, which refers to a computer in the blockchain network that is capable of sending, receiving, and processing data information;

[0035] Optionally, the computer may include but is not limited to: a mobile device, a mining machine, a desktop computer, and a server.

[0036] The target router 102 can forward data information between each blockchain node 101;

[0037] Data information refers to the information assets under the blockchain network;

[0038] The data message format refers to a data format corresponding to the blockchain system data.

[0039] Optionally, there is at least one data in a data message format, and the data message format may include a first data message format and a second data message format, etc., wherein the first data message format refers to a data format corresponding to the first data information in the first blockchain node 1011, and the second data message format refers to a data format corresponding to the second data information in the second blockchain node 1012.

[0040] Optionally, the data information in different blockchain nodes may correspond to the same data message format or different data message formats. That is, the first data message format and the second data message format may be the same or different, and no specific limitation is given here.

[0041] The blockchain system 10 defines the data information in different blockchain nodes as corresponding data message formats so that all data in the blockchain system 10 can be directly carried in the data link layer.

[0042] Among them, the routing protocol can run directly in the data link layer to establish routes for intermediate nodes in the blockchain network (for example, the target router 102) and terminal nodes in the blockchain network (for example, multiple blockchain nodes 101).

[0043] Optionally, the routing protocol may include: End System-Intermediate System (ES-IS) routing protocol, Intermediate System-Intermediate System (IS-IS) routing protocol, etc.

[0044] The ES-IS routing protocol refers to a routing addressing protocol between multiple blockchain nodes 101 and the target router 102; the IS-IS routing protocol refers to a routing addressing protocol between each router in the target router 102.

[0045] The blockchain system 10 adopts a routing protocol to implement routing addressing in the blockchain network.

[0046] In an embodiment of the present invention, in the blockchain system 10, the first blockchain node 1011 can first generate first data information, which corresponds to a first data message format. Then, because the blockchain system 10 adopts a routing protocol to implement routing addressing in the blockchain network, the first blockchain node 1011 can accurately send the first data information to the target router 102 based on the routing protocol. Next, the second blockchain node 1012 can directly receive the first data information forwarded by the target router 102, and process the first data message format corresponding to the first data information to determine the second data information corresponding to the second data message format. In this way, since the data information transmission process in the blockchain system 10 can be entirely operated in the data link layer, there is no need to rely on other link layer protocols in the blockchain system 10. This simplifies the blockchain system's processing of the first data information, effectively improves the data information transmission performance of the blockchain system 10 at the blockchain network performance level, and reduces the performance loss of the blockchain system 10. Therefore, the blockchain system 10 can effectively ensure the integrity of the data information throughout the entire data information transmission process.

[0047] In some embodiments, the first data message format may include a protocol number field and / or a protocol data unit (PDU) message format; the second data message format may include a protocol number field and / or a PDU message format.

[0048] The protocol number field may also be referred to as a dedicated protocol number field, which refers to a protocol field including different bytes.

[0049] PDU refers to a data unit with a specific format;

[0050] The PDU message format refers to the message format corresponding to the data unit with the specific format mentioned above. The PDU message can be a character string composed of the numbers "0-9" and the letters "AF" in the blockchain system 10.

[0051] Exemplarily, the first blockchain node 1011 encapsulates the generated first data information based on the 2-byte protocol field in Ethernet to obtain the first data information; the second blockchain node 1012 decapsulates the received first data information based on the 2-byte protocol field in Ethernet to obtain the second data information.

[0052] Both the protocol number field and the PDU message format can correspond to relatively accurate data information.

[0053] Optionally, the PDU message format may include but is not limited to: consensus message PDU format, block data PDU format, and transaction data PDU format.

[0054] Among them, the consensus message PDU format is used to reach consensus on the blockchain node 101;

[0055] The block data PDU format is used to synchronize blocks on the blockchain node 101;

[0056] The transaction data PDU format is used to synchronize transactions with the blockchain node 101.

[0057] Optionally, the PDU message format may adopt a fixed data header and type, length, value (Tag, Length, Value, TLV) format, etc.

[0058] The TLV format is mainly used in the field of data communications.

[0059] For example, Table 1 is a table of the PDU message format corresponding to the blockchain system data based on the data link layer provided by the present invention:

[0060] Table 1

[0061]

[0062]

[0063] As can be seen from Table 1, the data header may include: blockchain message identification code, blockchain message type, message length block hash, block transaction root hash, total number of block transactions, and number of transactions in this PDU. Transactions between blocks in the blockchain system 10 may be placed in corresponding transaction TLVs with fixed sequence numbers. The above-mentioned PDU message format facilitates the second blockchain program in the second blockchain node 1012 to find missing transaction data in the first data message when receiving the first data message sent by the first blockchain node 1011, and to request it from neighboring blockchain nodes. In addition, the above-mentioned PDU message format can also flexibly fragment the first data message to ensure that the blockchain system 10 can fully transmit the first data message even when the blockchain network's maximum transmission unit (MTU) is limited.

[0064] In some embodiments, the first blockchain node 1011 corresponds to a first Network Service Access Point (NSAP) address identifier; the second blockchain node 1012 corresponds to a second NSAP address identifier.

[0065] The NSAP address identifier can also be called the blockchain node address identifier. This NSAP address identifier is different from the IP address in the existing TCP / IP protocol stack and is an address format defined by the Open System Interconnection (OSI).

[0066] The NSAP address identifier is used to represent a node in the blockchain network, that is, to identify the blockchain node 101. Since the NSAP address identifier has a maximum of a preset number of bytes of data and each field in the data has a clear definition, the NSAP address identifier can replace the existing IP address so that each blockchain node 101 can discover each other in the blockchain network.

[0067] Among them, the preset quantity is set before the blockchain system 10 leaves the factory.

[0068] Exemplarily, the preset number is 20, that is, the NSAP address identifier has a maximum of 20 bytes of data.

[0069] Optionally, each of the multiple NSAP address identifiers is different. That is, the first NSAP address identifier is different from the second NSAP address identifier, which facilitates distinguishing between the first blockchain node 1011 and the second blockchain node 1012. In other words, because the first NSAP address identifier is different from the second NSAP address identifier, the blockchain system 10 facilitates accurate addressing of the blockchain nodes 101 corresponding to different NSAP address identifiers.

[0070] In some embodiments, the first blockchain node 1011 is specifically used to generate third data information through the first blockchain program; utilize the first protocol stack and the first data message format to encapsulate the third data information to obtain the first data information.

[0071] The first blockchain program refers to the program algorithm corresponding to the first blockchain node 1011;

[0072] The first protocol stack refers to the sum of the data link layer protocols of the first blockchain node 1011 in the blockchain network.

[0073] Instead of relying on other link layer protocols, the first blockchain node 1011 can utilize the first protocol stack in the data link layer and employ the first data message format to encapsulate the third data information required to be sent by the first blockchain program, thereby obtaining first data information with fewer errors. Furthermore, since the blockchain system 10 simplifies the encapsulation process for the third data information, the performance loss of the blockchain system 10 can be effectively reduced.

[0074] In some embodiments, when the number of target routers 102 is one, the first blockchain node 1011 is specifically configured to send the first data information to the target router 102 based on the first end system-intermediate system ES-IS routing protocol;

[0075] The target router 102 is specifically configured to send the first data information to the second blockchain node 1012 based on the second end system-intermediate system ES-IS routing protocol.

[0076] Since there is only one target router 102, when the blockchain system 10 sends the first data information generated by the first blockchain node 1011 to the second blockchain node 1012, it can perform routing addressing based on the first ES-IS routing protocol, accurately determine the target router 102, and send the first data information to the target router 102. Then, the second blockchain node 1012 can receive the first data information forwarded by the target router 102. Compared with multiple target routers, a single target router can realize the forwarding of data information between different blockchain nodes 101, which can shorten the forwarding time of the data information and effectively improve the forwarding efficiency of the data information.

[0077] In some embodiments, when there are multiple target routers 102 , the target routers 102 transmit the first data information based on the Intermediate System-Intermediate System (IS-IS) routing protocol.

[0078] Exemplarily, there are two target routers 102, namely a first router 1021 and a second router 1022. When the blockchain system 10 transmits the first data information generated by the first blockchain node 1011 to the second blockchain node 1012, it can perform routing addressing based on the first ES-IS routing protocol, accurately identify the first router 1021, and transmit the first data information to the first router 1021. The first router 1021 then performs routing addressing based on the IS-IS routing protocol, accurately identifies the second router 1022, and transmits the first data information to the second router 1022. Subsequently, after receiving the first data information, the second router 1022 can perform routing addressing based on the second ES-IS routing protocol, accurately identify the second blockchain node 1012, and transmit the first data information to the second blockchain node 1012. In other words, the transmission of data information between different blockchain nodes 101 can be achieved not only through a single target router, but also through multiple target routers, thereby increasing the flexibility of the data information transmission path.

[0079] Similarly, the first data information generated by the first blockchain node 1011 can be forwarded to the second blockchain node 1012 via the first router 1021, the second router 1022, ..., and the Nth router 102N to achieve flexibility in data information transmission, where N is an integer greater than or equal to 2.

[0080] Optionally, when there are multiple target routers 102, there are multiple data information forwarding paths between the first blockchain node 1011 and the second blockchain node 1012.

[0081] Exemplarily, the target router 102 includes a first router 1021 and a second router 1022. The first blockchain node 1011 and the second blockchain node 1012 can transmit data information through the first router 1021, and at the same time, can transmit data information through the second router 1022. In addition, the first router 1021 and the second router 1022 are also addressable based on the IS-IS routing protocol.

[0082] At this time, in the process of sending the first data information generated by the first blockchain node 1011 to the second blockchain node 1012, routing addressing can be performed based on the first ES-IS routing protocol to accurately determine the first router 1021, and the first data information is sent to the first router 1021. Then, the second blockchain node 1012 can receive the first data information forwarded by the first router 1021. That is, the first transmission path of the first data information is: first blockchain node 1011→first router 1021→second blockchain node 1012; or,

[0083] Routing addressing can be performed based on the first ES-IS routing protocol to accurately determine the second router 1022, and the first data information can be sent to the second router 1022. Then, the second blockchain node 1012 can receive the first data information forwarded by the second router 1022. That is, the second transmission path of the first data information is: first blockchain node 1011 → second router 1022 → second blockchain node 1012; or,

[0084] The first blockchain node 1011 sends the first data information to the first router 1021. Then, the first router 1021 performs routing addressing based on the IS-IS routing protocol and accurately determines the second router 1022. The second router 1022 performs routing addressing based on the second ES-IS routing protocol and accurately determines the second blockchain node 1012, and sends the first data information to the second blockchain node 1012. That is, the third transmission path of the first data information is: first blockchain node 1011 → first router 1021 → second router 1022 → second blockchain node 1012; or,

[0085] Similarly, the fourth transmission path of the first data information is: first blockchain node 1011 → second router 1022 → first router 1021 → second blockchain node 1012.

[0086] In summary, there are four effective forwarding paths for the first data information between the first blockchain node 1011 and the second blockchain node 1012. That is, the first blockchain node 1011 can transmit the first data information to the second blockchain node 1012 through any forwarding path.

[0087] Optionally, during the routing addressing process, the first blockchain node 1011 will determine the cost values ​​corresponding to different forwarding paths based on different routing protocols. Then, the first blockchain node 1011 determines the minimum cost value from these cost values, and determines the forwarding path corresponding to the minimum cost value as the target forwarding path. Then, the first blockchain node 1011 transmits the first data information to the second blockchain node 1012 based on the target forwarding path.

[0088] In some embodiments, the second blockchain node 1012 is specifically used to utilize the second protocol stack and the second data message format to decapsulate the first data information to obtain the fourth data information; and to check the fourth data information through the second blockchain program to obtain the second data information.

[0089] The second blockchain program refers to the program algorithm corresponding to the second blockchain node 1012;

[0090] The second protocol stack refers to the sum of the data link layer protocols of the second blockchain node 1012 in the blockchain network.

[0091] Since the first blockchain node 1011 and the second blockchain node 1012 are both in the data link layer, after receiving the first data message with less error data, the second blockchain node 1012 does not need to rely on protocols in other link layers. Instead, it can use the second protocol stack in the data link layer to decapsulate the first data message using the second data message format to obtain the fourth data message, and then send the fourth data message to the second blockchain program for processing to obtain a relatively complete second data message. In addition, since the decapsulation process of the blockchain system 10 for the first data message is simplified, the performance loss of the blockchain system 10 can be effectively reduced.

[0092] Optionally, the second blockchain node 1012 is specifically used to perform a format check on the fourth data information through the second blockchain program, discover missing or erroneous data by verifying the data in the PDU message header and assembling the PDU data, and then re-request the missing or erroneous part of the data to obtain the second data information.

[0093] In this way, after unsealing the first data information, the blockchain system 10 can determine relatively complete second data information.

[0094] For example, Figure 2a The figure is a schematic diagram of the structure of the blockchain system based on the data link layer provided by the present invention. Figure 2a In the data link layer, the blockchain system 10 may include a blockchain node 101 and a target router 102;

[0095] The number of blockchain nodes 101 is N, namely the first blockchain node 1011, ..., the i-th blockchain node 101i, ..., and the N-th blockchain node 101N;

[0096] The number of target routers 102 is M, namely the first router 1021, ..., the jth router 102j, ..., and the Mth router 102M.

[0097] Wherein, N is an integer greater than or equal to 2, M is an integer greater than or equal to 1, M and N may be the same or different, and are not specifically limited here.

[0098] Data information can be transmitted between N blockchain nodes through M routers.

[0099] For example, Figure 2b FIG. 1 is a schematic diagram of a scenario of the data transmission method provided by the present invention. Figure 2bIn the embodiment, the data transmission method is applied to a blockchain system 10 based on a data link layer. The blockchain system 10 may include: a first blockchain node 1011, a second blockchain node 1012, a first router 1021 and a second router 1022.

[0100] The first blockchain 1011 may include: a first blockchain program and a first protocol stack, the first protocol stack may adopt a first end system routing protocol (End System Routing Protocol), and the first blockchain node 1011 corresponds to a first NSAP address identifier;

[0101] The second blockchain node 1012 may include: a second blockchain program and a second protocol stack, the second protocol stack may use a second terminal system routing protocol, and the second blockchain node 1012 corresponds to a second NSAP address identifier;

[0102] The first router 1021 may use a first intermediate system routing protocol (Intermediate System Routing Protocol);

[0103] The second router 1022 may use a second intermediate system routing protocol.

[0104] In the blockchain system 10, the first blockchain node 1011 can generate third data information through the first blockchain program; use the first protocol stack and the first data message format to encapsulate the third data information to obtain the first data information;

[0105] The first blockchain node 1011 determines the first router 1021 based on the first ES-IS routing protocol, and sends the first data information to the first router 1021;

[0106] After receiving the first data information sent by the first blockchain node 1011, the first router 1021 may determine the second router 1022 based on the IS-IS routing protocol and send the first data information to the second router 1022;

[0107] After receiving the first data information forwarded by the first router 1021, the second router 1022 may perform routing addressing on the second NSAP address identifier based on the second ES-IS routing protocol to obtain the second blockchain node 1012, and send the first data information to the second blockchain node 1012;

[0108] After receiving the first data information forwarded by the second router 1022, the second blockchain node 1012 can use the second protocol stack and the second data message format to decapsulate the first data information to obtain the fourth data information; and check the fourth data information through the second blockchain program to obtain the second data information.

[0109] In this way, the second blockchain node 1012 can obtain a relatively complete second data information. In addition, since the first data information is completed in the data link layer during the transmission process, the first data information does not need to rely on protocols in other link layers, which simplifies the process of encapsulating and decapsulating the first data information, thereby reducing the performance loss of the blockchain system 10.

[0110] The data transmission method provided by the present invention is described below. The data transmission method described below and the blockchain system based on the data link layer described above can be referenced to each other.

[0111] like Figure 3 , which is a flow chart of a data transmission method provided by the present invention, and is applied to a blockchain system based on a data link layer. The method may include:

[0112] 301. Generate first data information corresponding to a first data message format using a first blockchain node; and send the first data information to a target router based on a routing protocol.

[0113] The first blockchain node is any one of the multiple blockchain nodes.

[0114] In some embodiments, the first blockchain node corresponds to a first network service access point NSAP address identifier.

[0115] In some embodiments, the first data message format may include a protocol number field and / or a protocol data unit (PDU) message format.

[0116] In some embodiments, using the first blockchain node to generate first data information corresponding to the first data message format may include: using the first blockchain node to generate third data information through the first blockchain program; using the first protocol stack to encapsulate the third data information in the first data message format to obtain the first data information.

[0117] In some embodiments, when the number of target routers is one, using the first blockchain node based on a routing protocol to send the first data information to the target router may include: using the first blockchain node based on a first terminal system-intermediate system ES-IS routing protocol to send the first data information to the target router.

[0118] 302. Receive the first data information sent by the first blockchain node using the target router; and send the first data information to the second blockchain node.

[0119] The second blockchain node is any one of the multiple blockchain nodes, and the second blockchain node is different from the first blockchain node.

[0120] In some embodiments, the second blockchain node corresponds to a second NSAP address identifier.

[0121] In some embodiments, when the number of target routers is one, using the target router to send the first data information to the second blockchain node may include: using the target router to send the first data information to the second blockchain node based on the second terminal system-intermediate system ES-IS routing protocol.

[0122] In some embodiments, when there are multiple target routers, the first data information is transmitted between the target routers based on an Intermediate System-Intermediate System (IS-IS) routing protocol.

[0123] 303. Receive the first data information sent by the target router using the second blockchain node; and determine the second data information corresponding to the second data message format based on the first data information.

[0124] In some embodiments, the second data message format may include a protocol number field and / or a protocol data unit (PDU) message format.

[0125] In some embodiments, the PDU message format includes: consensus message PDU format, block data PDU format and transaction data PDU format.

[0126] In some embodiments, using a second blockchain node to determine the second data information corresponding to the second data message format based on the first data information may include: using a second blockchain node, specifically for using a second protocol stack, to unseal the first data information using the second data message format to obtain fourth data information; and checking the fourth data information through a second blockchain program to obtain the second data information.

[0127] In an embodiment of the present invention, the method is used to solve the problem that the complex mechanism in the existing blockchain system highlights the performance disadvantage, simplifies the blockchain system's processing process of data information, and causes the performance loss of the blockchain system to be relatively large. The method enables the blockchain system to run directly on the data link layer, further improves the performance of the blockchain system at the network performance level, simplifies the blockchain system's processing process of data information, and causes the performance loss of the blockchain system to be relatively small. Moreover, the blockchain system does not need to rely on protocols in other link layers to achieve complete transmission of data information between different blockchain nodes.

[0128] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data transmission method provided by the above methods, which is applied to a blockchain system based on a data link layer, the method including: using a first blockchain node to generate first data information corresponding to a first data message format; based on a routing protocol, sending the first data information to the target router, the first blockchain node is any node among the multiple blockchain nodes; using the target router to receive the first data information sent by the first blockchain node; sending the first data information to a second blockchain node, the second blockchain node is any node among the multiple blockchain nodes, and the second blockchain node is different from the first blockchain node; using the second blockchain node to receive the first data information sent by the target router; based on the first data information, determining the second data information corresponding to the second data message format.

[0129] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the data transmission method provided by the above-mentioned methods, and is applied to a blockchain system based on a data link layer, the method comprising: using a first blockchain node to generate first data information corresponding to a first data message format; based on a routing protocol, sending the first data information to the target router, the first blockchain node being any node among the multiple blockchain nodes; using the target router to receive the first data information sent by the first blockchain node; sending the first data information to a second blockchain node, the second blockchain node being any node among the multiple blockchain nodes, the second blockchain node being different from the first blockchain node; using the second blockchain node to receive the first data information sent by the target router; and determining second data information corresponding to a second data message format based on the first data information.

[0130] The device 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, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

[0131] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.

[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A blockchain system based on the data link layer, characterized in that: include: Multiple blockchain nodes and target routers, A first blockchain node is configured to generate first data information corresponding to a first data message format; Based on a routing protocol, the first data information is sent to the target router, where the first blockchain node is any one of the multiple blockchain nodes; The target router is configured to receive the first data information sent by the first blockchain node; Sending the first data information to a second blockchain node, where the second blockchain node is any one of the multiple blockchain nodes, and the second blockchain node is different from the first blockchain node; The second blockchain node is configured to receive the first data information sent by the target router; Using a second protocol stack, the first data information is unpacked in a second data message format to obtain fourth data information; through a second blockchain program, the fourth data information is checked to obtain second data information; the second protocol stack is the sum of the data link layer protocols of the second blockchain node in the blockchain network.

2. The blockchain system according to claim 1, characterized in that: include: The first blockchain node corresponds to a first network service access point NSAP address identifier; the second blockchain node corresponds to a second NSAP address identifier.

3. The blockchain system according to claim 2, characterized in that: include: The first blockchain node is configured to generate third data information through a first blockchain program; The third data information is encapsulated using the first protocol stack and the first data message format to obtain the first data information.

4. The blockchain system according to any one of claims 1 to 3, characterized in that: When the number of the target router is one, The first blockchain node is configured to send the first data information to the target router based on a first end system-intermediate system ES-IS routing protocol; The target router is used to send the first data information to the second blockchain node based on the second end system-intermediate system ES-IS routing protocol.

5. The blockchain system according to any one of claims 1 to 3, characterized in that: In the case that there are multiple target routers, the target routers transmit the first data information based on an Intermediate System-Intermediate System (IS-IS) routing protocol.

6. The blockchain system according to any one of claims 1 to 3, characterized in that: The first data message format includes a protocol number field and / or a protocol data unit (PDU) message format; the second data message format includes the protocol number field and / or the PDU message format.

7. The blockchain system according to claim 6, characterized in that: include: The first data message format is a PDU message format, and the second data message format is a PDU message format; The first data message format is used to fragment the first data information so that the first data information can be transmitted completely; The second data message format is used to discover transaction data missing from the first data information and request it from a neighboring blockchain node.

8. The blockchain system according to claim 7, characterized in that: include: The PDU message formats include: consensus message PDU format, block data PDU format and transaction data PDU format.

9. A data transmission method, applied to the blockchain system based on the data link layer according to any one of claims 1 to 8, characterized in that: The method comprises: Generate first data information corresponding to a first data message format using a first blockchain node; send the first data information to the target router based on a routing protocol, where the first blockchain node is any one of the multiple blockchain nodes; Receive the first data information sent by the first blockchain node using the target router; send the first data information to a second blockchain node, where the second blockchain node is any one of the multiple blockchain nodes, and the second blockchain node is different from the first blockchain node; The first data information sent by the target router is received by the second blockchain node; the first data information is decapsulated by using a second protocol stack and a second data message format to obtain fourth data information; the fourth data information is checked by a second blockchain program to obtain second data information; the second protocol stack is the sum of the data link layer protocols of the second blockchain node in the blockchain network.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data transmission method according to claim 9 is implemented.