Cross-chain data access device and system supporting supervision

文档序号:291279 发布日期:2021-11-23 浏览:2次 中文

阅读说明:本技术 一种支持监管的跨链数据访问装置及系统 (Cross-chain data access device and system supporting supervision ) 是由 谢志勇 李仁刚 张闯 孙颉 于 2021-07-31 设计创作,主要内容包括:本发明公开了一种支持监管的跨链数据访问装置及系统,包括第一跨链网关及第二跨链网关。第一跨链网关用于将所连接的联盟链的接口协议与跨链网关总线对应的通用链间通信协议相互转换,以实现各联盟链之间的数据访问;第二跨链网关用于将所连接的监管系统的接口协议与通用链间通信协议相互转换,以借助第一跨链网关实现各监管系统访问并监管各联盟链的数据。可见,本申请在第一跨链网关的建立下,即使各联盟链基于不同底层技术平台,也可实现各联盟链之间的数据访问;且在第二跨链网关的建立下,与第一跨链网关配合可实现各监管系统访问并监管各联盟链的数据,以及时发现联盟链存在的风险,有助于联盟链的健康发展。(The invention discloses a monitoring-supported cross-link data access device and a monitoring-supported cross-link data access system. The first inter-link gateway is used for converting an interface protocol of the connected alliance link and a universal inter-link communication protocol corresponding to a cross-link gateway bus to each other so as to realize data access among all the alliance links; the second cross-link gateway is used for converting the interface protocol of the connected monitoring systems and the communication protocol between the universal links into each other so as to realize that each monitoring system accesses and monitors the data of each alliance link by means of the first cross-link gateway. Therefore, under the establishment of the first cross-link gateway, even if all the alliance links are based on different bottom-layer technical platforms, data access among all the alliance links can be achieved; and under the establishment of the second cross-link gateway, the cooperation with the first cross-link gateway can realize that each monitoring system accesses and monitors the data of each alliance chain, and finds the risks existing in the alliance chain in time, thereby being beneficial to the healthy development of the alliance chain.)

1. An apparatus for supporting policing of cross-chain data access, comprising:

the first cross-link gateways are connected with all the alliance links one by one; each first cross-link gateway is connected to the same cross-link gateway bus and used for converting an interface protocol of a connected alliance chain and a universal inter-chain communication protocol corresponding to the cross-link gateway bus to each other so as to realize data access among the alliance chains;

the second cross-link gateways are connected with the monitoring systems one by one; each second cross-link gateway is connected to the cross-link gateway bus and used for converting an interface protocol of the connected monitoring systems and the universal inter-link communication protocol into each other so as to realize that each monitoring system accesses and monitors data of each alliance link by means of the first cross-link gateway.

2. The curated cross-chain data access apparatus in support of claim 1, wherein the first cross-chain gateway and the second cross-chain gateway each comprise:

the first communication module is connected with the alliance chain or the supervision system, and a self communication protocol is compatible with the connected alliance chain or the supervision system;

the second communication module is connected with the cross-link gateway bus, and a communication protocol of the second communication module is compatible with the cross-link gateway bus;

and the control module is respectively connected with the first communication module and the second communication module and used for determining an interface protocol of a alliance chain or a monitoring system connected with the cross-chain gateway based on a received protocol selection instruction so as to perform interconversion between the determined interface protocol and the communication protocol between the universal chains, and realizing data access between the alliance chains or data access of each monitoring system and monitoring of each alliance chain by means of the first communication module and the second communication module.

3. The curated cross-chain data access apparatus according to claim 2, wherein the control module comprises:

the storage module is used for storing a cross-link resource database containing the resource routing address information of each alliance link;

a alliance link resource database management module connected with the storage module;

a federation link resource routing synchronization module respectively connected to the first communication module, the second communication module, and the federation link resource database management module, and configured to synchronize resource routing address information of all federation links in the system with the aid of the first communication module and the second communication module, and update the cross-link resource database with the aid of the federation link resource database management module based on the resource routing address information of all federation links;

and the protocol conversion module is respectively connected with the first communication module, the second communication module and the alliance chain resource database management module, and is used for determining an interface protocol of an alliance chain or a monitoring system connected with the cross-chain gateway based on a received protocol selection instruction so as to perform mutual conversion between the determined interface protocol and the communication protocol between the universal chains, inquiring resource routing address information of any alliance chain by virtue of the alliance chain resource database management module, and realizing data access between the alliance chains or data access and monitoring of each alliance chain by virtue of the first communication module and the second communication module based on the inquired resource routing address information.

4. The curated cross-chain data access apparatus according to claim 3, wherein the protocol conversion module comprises:

the protocol selection module is used for determining an interface protocol of an alliance chain or a monitoring system connected with the cross-chain gateway based on the received protocol selection instruction;

the alliance link protocol adaptation module is in one-to-one correspondence with the interface protocol of each alliance link and is used for converting the alliance link interface protocol corresponding to the alliance link protocol and the communication protocol between the universal links;

the monitoring system protocol adaptation module is in one-to-one correspondence with the interface protocol of each monitoring system and is used for converting the monitoring system interface protocol corresponding to the monitoring system protocol and the communication protocol between the universal chains;

and the protocol conversion starting module is respectively connected with the protocol selection module, the alliance link protocol adaptation module and the supervision system protocol adaptation module and is used for starting the corresponding alliance link protocol adaptation module or the supervision system protocol adaptation module to enter protocol conversion work according to the interface protocol determined by the protocol selection module.

5. The curated cross-chain data access apparatus according to claim 4, wherein said protocol conversion module further comprises:

the Mercker certification verification module is used for confirming whether the transaction on the alliance chain really occurs or not and obtaining a transaction result when the cross-chain gateway initiates the transaction to the connected alliance chain.

6. The curated cross-chain data access apparatus in support of claim 3, the control module further comprising:

and the upgrading module is respectively connected with the first communication module, the second communication module, the storage module, the alliance link resource database management module, the alliance link resource routing synchronization module and the protocol conversion module and is used for upgrading the firmware of the connected modules.

7. The curated cross-chain data access apparatus according to any of the claims 2 to 6, wherein the first communications module comprises:

the first data receiving module is used for receiving data transmitted by a connected alliance chain or a monitoring system and transferring the data to the control module for protocol conversion operation;

and the first data sending module is used for receiving the data after the protocol conversion transmitted by the control module and transmitting the data to the connected alliance chain or the connected monitoring system.

8. The curated cross-chain data access apparatus according to any of the claims 2 to 6, wherein the second communication module comprises:

the second data receiving module is used for receiving the data transmitted by the cross-link gateway bus and transferring the data to the control module for protocol conversion operation;

and the second data sending module is used for receiving the data after the protocol conversion transmitted by the control module and sending the data out through the cross-link gateway bus.

9. The curated cross-chain data access apparatus according to any of claims 2 to 6, wherein the first cross-chain gateway and the second cross-chain gateway further comprise:

the protocol selection dial switch is connected with the control module;

the control module is specifically used for acquiring a target dialing value of the protocol selection dialing switch, determining a target interface protocol corresponding to the target dialing value according to a one-to-one correspondence relationship between the dialing value and an interface protocol, and determining the target interface protocol as an interface protocol of an alliance chain or a supervisory system connected with a cross-chain gateway where the target interface protocol is located.

10. An administration-enabled, cross-chain data access system comprising a plurality of federation chains, a plurality of administration systems, and an administration-enabled, cross-chain data access apparatus as claimed in any one of claims 1 to 9.

Technical Field

The invention relates to the technical field of alliance chains, in particular to a monitoring-supporting cross-chain data access device and system.

Background

With the rapid development of the alliance chain technology, the alliance chain is widely applied to a plurality of fields such as finance, law, medical treatment and the like. A federation chain refers to a chain of blocks that are commonly managed by several enterprises or organizations, with data in the federation chain nodes only allowing the enterprises or organizations within the system to read and send transactions.

Currently, the alliance chain has the following problems: 1) in the process of continuous development of alliance chains, a plurality of underlying technology platforms with different forms appear, but the alliance chains based on different underlying technology platforms have different communication protocols, so that the alliance chains are difficult to communicate, recognize, trust and access. 2) While the application of the alliance chain is continuously and deeply expanded, a series of risk challenges are brought, but at present, the alliance chain supervision still lacks a supervision technical solution, a plurality of technical problems to be solved exist, and the alliance chain healthy development is not facilitated.

Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.

Disclosure of Invention

The invention aims to provide a monitoring-supported cross-link data access device and a monitoring-supported cross-link data access system, which can realize data access among all alliance links even if all the alliance links are based on different bottom-layer technical platforms under the establishment of a first cross-link gateway; and under the establishment of the second cross-link gateway, the cooperation with the first cross-link gateway can realize that each monitoring system accesses and monitors the data of each alliance chain, and finds the risks existing in the alliance chain in time, thereby being beneficial to the healthy development of the alliance chain.

In order to solve the above technical problem, the present invention provides a monitoring-supported cross-link data access device, including:

the first cross-link gateways are connected with all the alliance links one by one; each first cross-link gateway is connected to the same cross-link gateway bus and used for converting an interface protocol of a connected alliance chain and a universal inter-chain communication protocol corresponding to the cross-link gateway bus to each other so as to realize data access among the alliance chains;

the second cross-link gateways are connected with the monitoring systems one by one; each second cross-link gateway is connected to the cross-link gateway bus and used for converting an interface protocol of the connected monitoring systems and the universal inter-link communication protocol into each other so as to realize that each monitoring system accesses and monitors data of each alliance link by means of the first cross-link gateway.

Preferably, the first cross-link gateway and the second cross-link gateway each include:

the first communication module is connected with the alliance chain or the supervision system, and a self communication protocol is compatible with the connected alliance chain or the supervision system;

the second communication module is connected with the cross-link gateway bus, and a communication protocol of the second communication module is compatible with the cross-link gateway bus;

and the control module is respectively connected with the first communication module and the second communication module and used for determining an interface protocol of a alliance chain or a monitoring system connected with the cross-chain gateway based on a received protocol selection instruction so as to perform interconversion between the determined interface protocol and the communication protocol between the universal chains, and realizing data access between the alliance chains or data access of each monitoring system and monitoring of each alliance chain by means of the first communication module and the second communication module.

Preferably, the control module comprises:

the storage module is used for storing a cross-link resource database containing the resource routing address information of each alliance link;

a alliance link resource database management module connected with the storage module;

a federation link resource routing synchronization module respectively connected to the first communication module, the second communication module, and the federation link resource database management module, and configured to synchronize resource routing address information of all federation links in the system with the aid of the first communication module and the second communication module, and update the cross-link resource database with the aid of the federation link resource database management module based on the resource routing address information of all federation links;

and the protocol conversion module is respectively connected with the first communication module, the second communication module and the alliance chain resource database management module, and is used for determining an interface protocol of an alliance chain or a monitoring system connected with the cross-chain gateway based on a received protocol selection instruction so as to perform mutual conversion between the determined interface protocol and the communication protocol between the universal chains, inquiring resource routing address information of any alliance chain by virtue of the alliance chain resource database management module, and realizing data access between the alliance chains or data access and monitoring of each alliance chain by virtue of the first communication module and the second communication module based on the inquired resource routing address information.

Preferably, the protocol conversion module includes:

the protocol selection module is used for determining an interface protocol of an alliance chain or a monitoring system connected with the cross-chain gateway based on the received protocol selection instruction;

the alliance link protocol adaptation module is in one-to-one correspondence with the interface protocol of each alliance link and is used for converting the alliance link interface protocol corresponding to the alliance link protocol and the communication protocol between the universal links;

the monitoring system protocol adaptation module is in one-to-one correspondence with the interface protocol of each monitoring system and is used for converting the monitoring system interface protocol corresponding to the monitoring system protocol and the communication protocol between the universal chains;

and the protocol conversion starting module is respectively connected with the protocol selection module, the alliance link protocol adaptation module and the supervision system protocol adaptation module and is used for starting the corresponding alliance link protocol adaptation module or the supervision system protocol adaptation module to enter protocol conversion work according to the interface protocol determined by the protocol selection module.

Preferably, the protocol conversion module further includes:

the Mercker certification verification module is used for confirming whether the transaction on the alliance chain really occurs or not and obtaining a transaction result when the cross-chain gateway initiates the transaction to the connected alliance chain.

Preferably, the control module further comprises:

and the upgrading module is respectively connected with the first communication module, the second communication module, the storage module, the alliance link resource database management module, the alliance link resource routing synchronization module and the protocol conversion module and is used for upgrading the firmware of the connected modules.

Preferably, the first communication module includes:

the first data receiving module is used for receiving data transmitted by a connected alliance chain or a monitoring system and transferring the data to the control module for protocol conversion operation;

and the first data sending module is used for receiving the data after the protocol conversion transmitted by the control module and transmitting the data to the connected alliance chain or the connected monitoring system.

Preferably, the second communication module includes:

the second data receiving module is used for receiving the data transmitted by the cross-link gateway bus and transferring the data to the control module for protocol conversion operation;

and the second data sending module is used for receiving the data after the protocol conversion transmitted by the control module and sending the data out through the cross-link gateway bus.

Preferably, the first cross-link gateway and the second cross-link gateway further include:

the protocol selection dial switch is connected with the control module;

the control module is specifically used for acquiring a target dialing value of the protocol selection dialing switch, determining a target interface protocol corresponding to the target dialing value according to a one-to-one correspondence relationship between the dialing value and an interface protocol, and determining the target interface protocol as an interface protocol of an alliance chain or a supervisory system connected with a cross-chain gateway where the target interface protocol is located.

In order to solve the above technical problem, the present invention further provides a monitoring-supported cross-link data access system, which includes a plurality of alliance links, a plurality of monitoring systems, and any one of the above monitoring-supported cross-link data access devices.

The invention provides a cross-link data access device supporting supervision, which comprises first cross-link gateways and second cross-link gateways, wherein the first cross-link gateways are connected with all alliance links one by one, and the second cross-link gateways are connected with all supervision systems one by one. And each first cross-link gateway and each second cross-link gateway are connected to the same cross-link gateway bus. The first inter-link gateway is used for converting an interface protocol of the connected alliance link and a universal inter-link communication protocol corresponding to a cross-link gateway bus to each other so as to realize data access among all the alliance links; the second cross-link gateway is used for converting the interface protocol of the connected monitoring systems and the communication protocol between the universal links into each other so as to realize that each monitoring system accesses and monitors the data of each alliance link by means of the first cross-link gateway. Therefore, under the establishment of the first cross-link gateway, even if all the alliance links are based on different bottom-layer technical platforms, data access among all the alliance links can be achieved; and under the establishment of the second cross-link gateway, the cooperation with the first cross-link gateway can realize that each monitoring system accesses and monitors the data of each alliance chain, and finds the risks existing in the alliance chain in time, thereby being beneficial to the healthy development of the alliance chain.

The invention also provides a cross-chain data access system supporting supervision, which has the same beneficial effects as the cross-chain data access device.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

Fig. 1 is a schematic structural diagram of a monitoring-supported cross-chain data access apparatus according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a first/second cross-link gateway according to an embodiment of the present invention;

fig. 3 is a schematic structural diagram of a first/second cross-link gateway according to an embodiment of the present invention;

FIG. 4 is a flowchart of data access between federation chains, according to an embodiment of the present invention;

fig. 5 is a flowchart of data access between a monitoring system and a federation chain according to an embodiment of the present invention.

Detailed Description

The core of the invention is to provide a cross-link data access device and a system supporting supervision, under the establishment of a first cross-link gateway, even if each alliance link is based on different bottom layer technical platforms, the data access between the alliance links can be realized; and under the establishment of the second cross-link gateway, the cooperation with the first cross-link gateway can realize that each monitoring system accesses and monitors the data of each alliance chain, and finds the risks existing in the alliance chain in time, thereby being beneficial to the healthy development of the alliance chain.

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1, fig. 1 is a schematic structural diagram of a monitoring-supported cross-link data access apparatus according to an embodiment of the present invention.

The supervision-supporting cross-chain data access device comprises:

a first inter-link gateway 100 connected to each of the federation links one by one; each first inter-link gateway 100 is accessed to the same inter-link gateway bus, and is configured to convert an interface protocol of a connected alliance link and a universal inter-link communication protocol corresponding to the inter-link gateway bus to each other, so as to implement data access between the alliance links;

a second cross-link gateway 200 connected to each monitoring system one by one; each second inter-link gateway 200 is connected to the inter-link gateway bus, and is configured to convert an interface protocol of a connected monitoring system and a universal inter-link communication protocol to each other, so as to enable each monitoring system to access and monitor data of each alliance link by means of the first inter-link gateway 100.

Specifically, the cross-link data access device of the present application includes a first cross-link gateway 100 and a second cross-link gateway 200, and the working principle thereof is as follows:

the first cross-link gateway 100 is connected to federation chains (specifically, service federation chains, which are instantiations of block chains in different application scenarios) in the system one by one (as shown in fig. 1, the first cross-link gateway a is connected to the federation chain a, the first cross-link gateway B is connected to the federation chain B … …, and the first cross-link gateway N is connected to the federation chain N), that is, the first cross-link gateway 100 is the same as the number of federation chains in the system; the second inter-link gateways 200 are connected to the monitoring systems one by one (as shown in fig. 1, the second inter-link gateway 1 is connected to the monitoring system 1, the second inter-link gateway 2 is connected … … to the monitoring system 2, and the second inter-link gateway M is connected to the monitoring system M), that is, the number of the second inter-link gateways 200 is the same as that of the monitoring systems. Each of the first inter-link gateway 100 and the second inter-link gateway 200 is connected to the same inter-link gateway bus, that is, a general inter-link communication protocol is adopted between the inter-link gateways, so that the expansibility is good and the networking is convenient.

Take data transmission between federation chain a and federation chain B as an example: federation chain A sends a first cross-chain access request to a first cross-chain gateway A. The first cross-link gateway A is used for receiving a first cross-link access request which is transmitted by the alliance link A and is pre-sent to the alliance link B, converting the first cross-link access request into a first general cross-link access request supporting a general inter-link communication protocol corresponding to a cross-link gateway bus, and transmitting the first general cross-link access request to the first cross-link gateway B through the cross-link gateway bus. The first cross-link gateway B is configured to receive a first generic cross-link access request transmitted through a cross-link gateway bus, convert the first generic cross-link access request into a second cross-link access request supporting an interface protocol of the federation chain B (the second generic cross-link access request is the same as the first cross-link access request in terms of the actual request content, but different from the supported protocol), and transmit the second cross-link access request to the federation chain B. And the federation chain B returns the first data to the first cross-chain gateway B according to the second cross-chain access request. The first cross-link gateway B is used for receiving first data which are transmitted by the alliance link B and are pre-sent to the alliance link A, converting the first data into first general data supporting a general inter-link communication protocol, and transmitting the first general data to the first cross-link gateway A through a cross-link gateway bus. The first inter-link gateway a is configured to receive first general data transmitted through an inter-link gateway bus, convert the first general data into second data (the same as the actual data content corresponding to the first data, but different from the supported protocol) supporting an interface protocol of the federation link a, and transmit the second data to the federation link a, so as to enable the federation link a to access data from the federation link B (the same applies to federation link B to access data from the federation link a, and details of the application are not described herein). As can be seen, under the establishment of the first cross-link gateway 100, even if the federation chain a and the federation chain B are based on different underlying technology platforms, data access between the federation chain a and the federation chain B can be realized, and the problems of difficult intercommunication, difficult mutual recognition, difficult mutual trust and difficult mutual access of cross-link data access are solved.

Take the example that the supervisory system 1 accesses and supervises the data of the federation chain a: the second inter-link gateway 1 is configured to receive a first data access request which is transmitted by the monitoring system 1 and is pre-sent to the alliance link a, convert the first data access request into a first general data access request supporting a general inter-link communication protocol, and transmit the first general data access request to the first inter-link gateway a via the inter-link gateway bus. The first cross-link gateway A is used for receiving a first general data access request transmitted from a cross-link gateway bus, converting the first general data access request into a second data access request supporting an interface protocol of the federation link A (the content of a substantial request corresponding to the first data access request is the same, and only the supported protocol is different), and transmitting the second data access request to the federation link A. And the federation chain A returns the third data to the first cross-chain gateway A according to the second data access request. The first cross-link gateway a is configured to receive third data that is transmitted by the alliance link a and is pre-sent to the monitoring system 1, convert the third data into third general data that supports a universal inter-link communication protocol, and transmit the third general data to the second cross-link gateway 1 through the cross-link gateway bus. The second inter-link gateway 1 is configured to receive third general data transmitted by the inter-link gateway bus, convert the third general data into fourth data (the same as the actual data content corresponding to the third data, and only different protocols are supported) supporting an interface protocol of the monitoring system 1, and transmit the fourth data to the monitoring system 1, so that the monitoring system 1 can access and monitor the data of the federation chain a, thereby timely discovering risks (e.g., illegal risks) existing in the federation chain, and facilitating the healthy development of the federation chain.

The invention provides a cross-link data access device supporting supervision, which comprises first cross-link gateways and second cross-link gateways, wherein the first cross-link gateways are connected with all alliance links one by one, and the second cross-link gateways are connected with all supervision systems one by one. And each first cross-link gateway and each second cross-link gateway are connected to the same cross-link gateway bus. The first inter-link gateway is used for converting an interface protocol of the connected alliance link and a universal inter-link communication protocol corresponding to a cross-link gateway bus to each other so as to realize data access among all the alliance links; the second cross-link gateway is used for converting the interface protocol of the connected monitoring systems and the communication protocol between the universal links into each other so as to realize that each monitoring system accesses and monitors the data of each alliance link by means of the first cross-link gateway. Therefore, under the establishment of the first cross-link gateway, even if all the alliance links are based on different bottom-layer technical platforms, data access among all the alliance links can be achieved; and under the establishment of the second cross-link gateway, the cooperation with the first cross-link gateway can realize that each monitoring system accesses and monitors the data of each alliance chain, and finds the risks existing in the alliance chain in time, thereby being beneficial to the healthy development of the alliance chain.

On the basis of the above-described embodiment:

referring to fig. 2, fig. 2 is a schematic structural diagram of a first/second cross-link gateway according to an embodiment of the present invention.

As an alternative embodiment, the first cross-link gateway 100 and the second cross-link gateway 200 each include:

a first communication module 101 connected with a alliance chain or a supervision system and compatible with the connected alliance chain or the supervision system in self communication protocol;

the second communication module 102 is connected with the cross-link gateway bus, and the communication protocol of the second communication module is compatible with the cross-link gateway bus;

the control module 103 is connected to the first communication module 101 and the second communication module 102, and configured to determine, based on the received protocol selection instruction, an interface protocol of a federation chain or a supervisory system connected to the inter-chain gateway where the inter-chain gateway is located, so as to perform interconversion between the determined interface protocol and a communication protocol between universal chains, and implement, by means of the first communication module 101 and the second communication module 102, data access between federation chains or access of each supervisory system and supervision of data of each federation chain.

Specifically, the first cross-link gateway 100 and the second cross-link gateway 200 of the present application have the same structure, and both include the first communication module 101, the second communication module 102 and the control module 103, and the working principle thereof is as follows:

for the first cross-link gateway 100: the first communication module 101 is connected to a federation chain, and the communication protocol of the first communication module 101 is compatible with the interface protocol of the connected federation chain (including the case where the communication protocol of the first communication module 101 is the same as the interface protocol of the connected federation chain). The second communication module 102 is connected to the cross-link gateway bus, and the communication protocol of the second communication module 102 is compatible with the interface protocol of the cross-link gateway bus (including the case where the communication protocol of the second communication module 102 is the same as the interface protocol of the cross-link gateway bus). The control module 103 is connected to the first communication module 101 and the second communication module 102, respectively, and the control module 103 is configured to receive a protocol selection instruction, and determine, based on the received protocol selection instruction, an interface protocol (referred to as a first interface protocol) of a federation chain connected to a cross-chain gateway where the control module is located, so as to perform mutual conversion between the first interface protocol and a communication protocol between general chains, and implement data access between federation chains by means of the first communication module 101 and the second communication module 102.

For the second cross-link gateway 200: the first communication module 101 is connected to a supervisory system, and the communication protocol of the first communication module 101 is compatible with the interface protocol of the connected supervisory system (including the case where the communication protocol of the first communication module 101 is the same as the interface protocol of the connected supervisory system). The second communication module 102 is connected to the cross-link gateway bus, and the communication protocol of the second communication module 102 is compatible with the interface protocol of the cross-link gateway bus (including the case where the communication protocol of the second communication module 102 is the same as the interface protocol of the cross-link gateway bus). The control module 103 is connected to the first communication module 101 and the second communication module 102, respectively, and the control module 103 is configured to receive a protocol selection instruction, and determine, based on the received protocol selection instruction, an interface protocol (referred to as a second interface protocol) of a monitoring system connected to a cross-link gateway where the control module is located, so as to perform mutual conversion between the second interface protocol and a communication protocol between the universal links, and implement that each monitoring system accesses and monitors data of each alliance link by means of the first communication module 101 and the second communication module 102.

Referring to fig. 3, fig. 3 is a schematic structural diagram of a first/second cross-link gateway according to an embodiment of the present invention.

As an alternative embodiment, the control module 103 comprises:

a storage module 1031, configured to store a cross-link resource database that includes resource routing address information of each federation link;

a federation chain resource database management module 1032 connected to the storage module 1031;

a federation link resource routing synchronization module 1033 connected to the first communication module 101, the second communication module 102, and the federation link resource database management module 1032 respectively, and configured to synchronize resource routing address information of all federation links in the system with the first communication module 101 and the second communication module 102, and update the cross-link resource database with the federation link resource database management module 1032 based on the resource routing address information of all federation links;

the protocol conversion module 1034 is connected to the first communication module 101, the second communication module 102, and the alliance chain resource database management module 1032, and configured to determine, based on the received protocol selection instruction, an interface protocol of an alliance chain or a monitoring system connected to the inter-chain gateway where the alliance chain is located, to perform mutual conversion between the determined interface protocol and a communication protocol between the universal chains, and query, by using the alliance chain resource database management module 1032, resource routing address information of any alliance chain, so as to implement, based on the queried resource routing address information, data access between alliance chains or data access and monitoring of each alliance chain by using the first communication module 101 and the second communication module 102.

Specifically, the control module 103 of the present application includes a storage module 1031, a federation resource database management module 1032, a federation resource routing synchronization module 1033, and a protocol conversion module 1034, and the working principle thereof is as follows:

the storage module 1031 is configured to store a cross-link resource database, where the cross-link resource database is configured to store resource routing address information of all federation links in the system. Federation chain resource database management module 1032 is for managing a cross-chain resource database stored by storage module 1031.

The federation link resource routing synchronization module 1033 is connected to the first communication module 101, the second communication module 102, and the federation link resource database management module 1032, respectively. The federation link resource routing synchronization module 1033 is configured to synchronize resource routing address information of all federation links in the system via the first communication module 101 and the second communication module 102, and update the cross-link resource database via the federation link resource database management module 1032 based on the resource routing address information of all federation links. Specifically, for the first cross-link gateway 100, the federation link resource routing synchronization module 1033, via the first communication module 101 and the second communication module 102, synchronizes resource routing address information of all federation links in the system into three cases: 1) in the process of power-on initialization of the first cross-link gateway 100, the alliance-link resource routing synchronization module 1033 traverses all resources of the connected alliance link by using the first communication module 101, so as to store all resource routing address information corresponding to the connected alliance link in the cross-link resource database, and notifies other cross-link gateways in the network by using the second communication module 102 to read the resource routing address information, so that the resource routing address information of all alliance links is stored in the cross-link resource database of all cross-link gateways in the network, that is, the resource routing address information of all alliance links in the synchronization system is realized. 2) In the working process of the first inter-link gateway 100, the federation link resource routing synchronization module 1033 periodically notifies other inter-link gateways in the network to read the resource routing address information by means of the second communication module 102, that is, the resource routing address information of all federation links in the periodic synchronization system is realized. 3) When a new resource is deployed in a federation chain, the federation chain notifies a first cross-link gateway 100 connected to the federation chain, the first cross-link gateway 100 updates and stores resource routing address information of the newly deployed resource into a cross-link resource database, and notifies other cross-link gateways in the network to read the resource routing address information and synchronize resource routing address information of all federation chains in the system by means of the second communication module 102.

The protocol conversion module 1034 is connected to the first communication module 101, the second communication module 102, and the federation chain resource database management module 1032, respectively. For the first cross-link gateway 100: the protocol conversion module 1034 is configured to receive a protocol selection instruction, determine, based on the received protocol selection instruction, an interface protocol (referred to as a third interface protocol) of a federation chain connected to the inter-chain gateway where the protocol conversion module is located, perform mutual conversion between the third interface protocol and a universal chain communication protocol, query resource routing address information of any federation chain by using the federation chain resource database management module 1032, and implement data access between federation chains by using the first communication module 101 and the second communication module 102 based on the queried resource routing address information. For the second cross-link gateway 200: the protocol conversion module 1034 is configured to receive the protocol selection instruction, determine, based on the received protocol selection instruction, an interface protocol (referred to as a fourth interface protocol) of the monitoring system connected to the inter-link gateway where the monitoring system is located, perform mutual conversion between the fourth interface protocol and the universal link communication protocol, query resource routing address information of any one of the federation links by using the federation link resource database management module 1032, and implement, based on the queried resource routing address information, access and monitoring of data of each federation link by each monitoring system by using the first communication module 101 and the second communication module 102.

It should be noted that the principle of setting the resource routing address information is as follows: resources on different alliance chains are various and comprise intelligent contracts, assets, channels, data tables and the like, the resources on a single alliance chain can be located and accessed through contract addresses or names, and a higher-level resource locating protocol is needed among different alliance chains and between the alliance chains and a supervision system. In order to enable a user to access resources of the alliance chain without being concerned about which region, mechanism or machine room the resources are located in and the specific implementation of the alliance chain, the resource location and access can be realized only by providing resource routing address information (resource addresses and related parameters). The application adopts a uniform resource addressing protocol to intelligently locate the required resources.

More specifically, the storage module 1031 of the present application may include a memory and a hard disk, where the memory may temporarily store the cross-chain resource database, and the hard disk may permanently store the cross-chain resource database.

As an alternative embodiment, the protocol conversion module 1034 includes:

a protocol selection module 1041, configured to determine, based on the received protocol selection instruction, an interface protocol of the alliance chain or the monitoring system connected to the inter-chain gateway where the alliance chain or the monitoring system is located;

the alliance chain protocol adapting module 1042 corresponding to the interface protocol of each alliance chain one by one is used for converting the alliance chain interface protocol corresponding to the module and the communication protocol between the universal chains;

the supervision system protocol adaptation modules 1043, which correspond to the interface protocols of the supervision systems one to one, are used for converting the supervision system interface protocol corresponding to the supervision system protocol and the universal inter-link communication protocol to each other;

a protocol conversion starting module 1044 connected to the protocol selecting module 1041, the alliance chain protocol adapting module 1042 and the monitoring system protocol adapting module 1043 respectively, configured to start the corresponding alliance chain protocol adapting module 1042 or the monitoring system protocol adapting module 1043 to enter into a protocol conversion operation according to the interface protocol determined by the protocol selecting module 1041.

Specifically, the protocol conversion module 1034 of the present application includes a protocol selection module 1041, a alliance link protocol adaptation module 1042, a monitoring system protocol adaptation module 1043, and a protocol conversion start module 1044, and its working principle is:

the alliance chain protocol adaptation modules 1042 are in one-to-one correspondence with the interface protocols of the alliance chains supported by the cross-chain gateway, that is, the number of the alliance chain protocol adaptation modules 1042 is equal to the number of the alliance chains supported by the cross-chain gateway. Taking the first interface protocol as an example, the alliance link protocol adapting module 1042 corresponding to the first interface protocol is configured to convert the first interface protocol and the universal inter-link communication protocol into each other.

The monitoring system protocol adaptation modules 1043 correspond to the interface protocols of the monitoring systems supported by the inter-link gateway one to one, that is, the number of the monitoring system protocol adaptation modules 1043 is equal to the number of the monitoring systems supported by the inter-link gateway. Taking the second interface protocol as an example, the monitoring system protocol adaptation module 1043 corresponding to the second interface protocol is configured to convert the second interface protocol and the universal inter-link communication protocol into each other.

Based on this, for the first cross-link gateway 100: the protocol selection module 1041 determines, based on the received protocol selection instruction, an interface protocol of the alliance chain connected to the inter-chain gateway where the protocol selection module is located. The protocol conversion initiating module 1044 is configured to initiate the corresponding alliance link protocol adapting module 1042 to enter a protocol conversion task according to the interface protocol determined by the protocol selecting module 1041, and if the protocol selecting module 1041 determines that the interface protocol of the alliance link connected to the inter-link gateway where the protocol selecting module itself is located is the first interface protocol, the protocol conversion initiating module 1044 initiates the alliance link protocol adapting module 1042 for mutually converting the first interface protocol and the universal inter-link communication protocol, so that the alliance link protocol adapting module 1042 enters a protocol conversion task, and adapts to the connected alliance link. For the second cross-link gateway 200: the protocol selection module 1041 determines, based on the received protocol selection instruction, an interface protocol of the monitoring system connected to the inter-link gateway where the protocol selection module is located. The protocol conversion starting module 1044 is configured to start the corresponding monitoring system protocol adaptation module 1043 to enter a protocol conversion operation according to the interface protocol determined by the protocol selection module 1041, and if the protocol selection module 1041 determines that the interface protocol of the monitoring system connected to the inter-link gateway where the protocol selection module is located is the second interface protocol, the protocol conversion starting module 1044 starts the monitoring system protocol adaptation module 1043 which is configured to convert the second interface protocol and the universal inter-link communication protocol to each other, so that the monitoring system protocol adaptation module 1043 enters a protocol conversion operation, thereby adapting to the connected monitoring system.

As can be seen, the first cross-link gateway 100 can be adapted to different alliance links, and the second cross-link gateway 200 can be adapted to different supervisory systems, so that the communication performance is better.

As an alternative embodiment, the protocol conversion module 1034 further includes:

the mercker certification verification module 1045 is configured to, when the located inter-chain gateway initiates a transaction to the connected federation chain, confirm whether the transaction actually occurs on the federation chain and obtain a transaction result.

Further, the protocol conversion module 1034 of the present application further includes a mercker proof verification module 1045, which operates according to the following principle:

the mercker proof verification module 1045 is configured to, when the inter-link gateway where the mercker proof verification module is located initiates a transaction to the connected federation chain, determine whether the transaction really occurs on the federation chain and obtain a transaction result, so as to perform trusted verification of inter-link data access.

As an alternative embodiment, the control module 103 further comprises:

and an upgrade module 1035 respectively connected to the first communication module 101, the second communication module 102, the storage module 1031, the federation chain resource database management module 1032, the federation chain resource routing synchronization module 1033, and the protocol conversion module 1034, and configured to perform a firmware upgrade operation on the connected modules.

Further, the control module 103 of the present application further includes an upgrade module 1035, which operates according to the following principle:

the upgrade module 1035 is configured to perform firmware upgrade operations on the first communication module 101, the second communication module 102, the storage module 1031, the alliance link resource database management module 1032, the alliance link resource routing synchronization module 1033, and the protocol conversion module 1034, for example, when a cross-link gateway needs to add and adapt to a new alliance link protocol or a new monitoring system protocol, or needs to correct an existing system defect, the system may be upgraded by the upgrade module 1035 to adapt to a new change.

As an alternative embodiment, the first communication module 101 includes:

a first data receiving module 1011, configured to receive data transmitted by a connected alliance chain or a connected monitoring system, and deliver the data to the control module 103 for performing a protocol conversion operation;

a first data sending module 1012, configured to receive the data after protocol conversion transmitted by the control module 103, and transmit the data to a connected alliance chain or a connected monitoring system.

This embodiment is described in detail with reference to the following embodiments, which are not too extensive herein.

As an alternative embodiment, the second communication module 102 includes:

a second data receiving module 1021, configured to receive data transmitted across the link gateway bus, and deliver the data to the control module 103 for protocol conversion;

the second data sending module 1022 is configured to receive the data after the protocol conversion transmitted by the control module 103, and send the data via the inter-link gateway bus.

Specifically, the first communication module 101 of the present application includes a first data receiving module 1011 and a first data sending module 1012, and the second communication module 102 includes a second data receiving module 1021 and a second data sending module 1022, and the working principle thereof is as follows:

the first communication module 101 is responsible for interfacing with the connected supervisory system or business federation chain, and the second communication module 102 is responsible for communication between cross-chain gateways. The first data receiving module 1011 is configured to receive data transmitted from the connected alliance chain or supervisory system, and deliver the data to the control module 103 for performing a protocol conversion operation. The control module 103 transmits the protocol-converted data to the second data transmitting module 1022. The second data sending module 1022 is configured to receive the data after the protocol conversion transmitted by the control module 103, and send the data via the inter-link gateway bus. The second data receiving module 1021 is configured to receive data transmitted across the chain gateway bus, and deliver the data to the control module 103 for performing a protocol conversion operation. The control module 103 transmits the data after the protocol conversion to the first data transmitting module 1012. The first data sending module 1012 is configured to receive the data after protocol conversion transmitted by the control module 103, and transmit the data to the connected alliance chain or monitoring system.

It should be noted that the first communication module 101 and the second communication module 102 may be the same or different, and the second communication modules 102 of the cross-link gateway of the same network must be the same or compatible. The first communication module 101 and the second communication module 102 can select one of the following communication units: an RS232 (RS: serial communication) bus communication unit, an RS485 communication unit, an RS422 communication unit, a WIFI (wireless communication technology) communication unit, a GPRS (General packet radio service)/3G (third generation mobile communication technology)/4G (fourth generation mobile communication technology)/5G (fifth generation mobile communication technology) communication unit, an ethernet communication unit, an optical Network communication unit, a CAN (Controller Area Network) bus communication unit, and the like. These communication units may be integrated on a motherboard of a computer, or may be extended by a GPMC (General-Purpose Memory Controller)/PCI (Peripheral Component Interconnect) standard)/PCIE (Peripheral Component Interconnect) standard)/USB (Universal Serial Bus) Bus or the like.

As an alternative embodiment, the first cross-link gateway 100 and the second cross-link gateway 200 further include:

a protocol selection dial switch connected to the control module 103;

the control module 103 is specifically configured to obtain a target dialing value of the protocol selection dialing switch, determine a target interface protocol corresponding to the target dialing value according to a one-to-one correspondence relationship between the dialing value and an interface protocol, and determine the target interface protocol as an interface protocol of an alliance chain or a supervisory system connected to a cross-chain gateway where the target interface protocol is located.

Further, the first cross-link gateway 100 and the second cross-link gateway 200 of the present application further include a protocol selection dial switch, and the working principle thereof is as follows:

the user can set the dial value of the protocol selection dial switch based on the specific interface protocol of the alliance chain or the monitoring system connected with the cross-link gateway where the protocol selection dial switch is located, and if the interface protocol of the alliance chain or the monitoring system connected with the cross-link gateway where the protocol selection dial switch is located is the first interface protocol, the dial value of the protocol selection dial switch is set to be the dial value corresponding to the first interface protocol.

Based on this, the control module 103 is configured to obtain a target dialing value of the protocol selection dial switch, and determine a target interface protocol corresponding to the target dialing value according to a one-to-one correspondence relationship between the dialing value and an interface protocol, where the target interface protocol is an interface protocol of an alliance chain or a supervisory system connected to a cross-chain gateway where the control module 103 is located.

It should be noted that the first cross-link gateway 100 and the second cross-link gateway 200 of the present application have a plug-and-play feature, and it is very simple and convenient to access to a new federation chain and a new supervision system. The functions of the federation link resource database management module 1032, the federation link resource route synchronization module 1033, the protocol conversion module 1034 and the upgrade module 1035 can be directly implemented by programming a Central Processing Unit (CPU).

Referring to fig. 4, fig. 4 is a flowchart illustrating a data access procedure between federation chains according to an embodiment of the present invention.

Different service alliance chains need to access each other and get through the intercommunication between service scenes. Thus, business federation chains rely on cross-chain solutions to connect trust islands. The data access process between the alliance chains designed by the application is shown in fig. 4, and a user invokes a cross-chain access intelligent contract of the alliance chain A through a client to initiate a transaction; the first cross-link gateway A inquires the resource routing address information of the alliance link B so as to convert the request data into a universal inter-link communication protocol and send the universal inter-link communication protocol to the first cross-link gateway B; after the first cross-link gateway B verifies the user identity and the authority information, initiating transaction uplink, receiving a transaction receipt, acquiring the Mercker certification of the transaction and the receipt, and finally sending the transaction receipt, the Mercker certification of the transaction and the receipt to the first cross-link gateway A through a universal inter-link communication protocol; the first cross-link gateway A verifies the Merck proof of the transaction and receipt, then returns the transaction receipt to the alliance link A, and finally returns the transaction receipt to the user through the client.

Referring to fig. 5, fig. 5 is a flowchart illustrating a data access between a monitoring system and a federation chain according to an embodiment of the present invention.

In order to ensure the healthy development of the alliance chain industry, organizations such as government departments, industry associations and the like need to supervise the business alliance chain. The data access process between the monitoring system and the alliance chain designed by the application is shown in fig. 5, a user calls a data access interface of the monitoring system 1 through a client to initiate a transaction, and the monitoring system 1 initiates a transaction request to the second inter-chain gateway 1; the second cross-link gateway 1 inquires the resource routing address information of the alliance link A so as to convert the data into a general inter-link communication protocol and send the general inter-link communication protocol to the first cross-link gateway A; after the first cross-link gateway A checks the user identity and the authority information, the first cross-link gateway A initiates a transaction uplink, receives a transaction receipt, acquires the Mercker certification of the transaction and the receipt, and finally sends the transaction receipt, the Mercker certification of the transaction and the receipt to the second cross-link gateway 1 through a universal inter-link communication protocol; the second cross-link gateway 1 verifies the merck proof of the transaction and receipt, then returns the transaction receipt to the supervisory system 1, and finally returns to the user through the client.

Therefore, the cross-link gateway transmits the transaction and receipt information and additionally transmits the Mercker certification of the transaction and the receipt, and a sender of the transaction uses the certifications to perform credible verification of cross-link data access, so that the sender of the transaction can confirm that the transaction really occurs on a target alliance link and obtain a result, and the authenticity and credibility of the transaction and the receipt are ensured.

The application also provides a cross-chain data access system supporting supervision, which comprises a plurality of alliance chains, a plurality of supervision systems and any one of the cross-chain data access devices supporting supervision.

For introduction of the cross-chain data access system provided in the present application, reference is made to the above-mentioned embodiment of the cross-chain data access device, and details of the cross-chain data access system are not described herein again.

It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种网络安全系统及安全方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类