CN113032474A - Block chain cross-chain monitoring method and device - Google Patents

Block chain cross-chain monitoring method and device Download PDF

Info

Publication number
CN113032474A
CN113032474A CN202110395583.2A CN202110395583A CN113032474A CN 113032474 A CN113032474 A CN 113032474A CN 202110395583 A CN202110395583 A CN 202110395583A CN 113032474 A CN113032474 A CN 113032474A
Authority
CN
China
Prior art keywords
cross
chain
module
index data
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110395583.2A
Other languages
Chinese (zh)
Inventor
奚海峰
曹恒
胡智威
霍达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bianjie Intelligent Technology Co ltd
Original Assignee
Shanghai Bianjie Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bianjie Intelligent Technology Co ltd filed Critical Shanghai Bianjie Intelligent Technology Co ltd
Priority to CN202110395583.2A priority Critical patent/CN113032474A/en
Publication of CN113032474A publication Critical patent/CN113032474A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Alarm Systems (AREA)

Abstract

The invention discloses a block chain cross-chain monitoring method, which comprises the following steps: step one, a block chain node is operated; step two, operating a cross-chain relay responsible for cross-chain communication between the block chains, wherein the cross-chain relay comprises an interface used for collecting operation index data; step three, acquiring operation index data of the block chain nodes and the cross-chain communication modules which are responsible for the cross-chain relay; and fourthly, analyzing, displaying, alarming and processing the running states of the block chain and the cross-chain communication based on the running index data. The monitoring related interface is added in the cross-chain communication module to acquire cross-chain operation data, the operation data is processed, and the global network condition of a user under a multi-chain and cross-chain view angle can be displayed in real time; the running state of the cross-chain key module can be monitored in real time and prompted in time. Meanwhile, automatic intervention and processing can be performed on the discovered abnormal conditions of the cross-chain, and the safety event on one chain is prevented from being spread to other block chains in an expanded mode.

Description

Block chain cross-chain monitoring method and device
Technical Field
The invention relates to the technical field of block chains, in particular to a block chain cross-chain monitoring method and device.
Background
In recent years, with the increase of the landed block chains, the application scenarios of the block chains across the chains are increasing, that is, a single block chain needs to perform data interaction with other block chains to realize service requirements. Some cross-chain solutions need to rely on good functioning of cross-chain components. For example, the information transfer and interaction between heterogeneous blockchain systems can be realized by adopting an inter-chain communication protocol (IBC) mode, and the IBC is designed in a bottom-up mode similar to TCP/IP. The cross-link information is responsible for passing information between links by cross-link relays. Only the validity and validity of cross-link transmission information need to be checked between different block chains, cross-link relay does not need to be trusted, and at least one cross-link relay process which normally runs needs to be relied on.
Most of the monitoring of the current blockchain is related to the running state of the blockchain, such as the active nodes of the blockchain, whether the blockchain is normally out, the transaction execution result, the running state of the intelligent contract and the like, and the current chain and the cross-chain running related monitoring under the view of multi-chain are lacked.
In a cross-chain implementation, monitoring for cross-chains is also lacking. Various abnormal conditions may occur in the cross-link relay process, such as process downtime, lack of handling fees of the relay account, and the like, and although the safety of transaction data is not affected, the overall activity of the cross-link system is affected.
In addition, although the blockchain can automatically judge and detect whether the transaction to be transmitted across the chain is legal and effective, for example, the transaction format is illegal, the transaction information conflicts with other current legal transactions, and the like, the transaction is generally processed only, and the overall global response is lacked; when the security of the opposite side chain has problems, the data needs to be found in time and processed in real time according to the existing data conditions, such as disconnection, rollback transaction and the like, so as to ensure the running security of the chain.
Disclosure of Invention
The invention aims to provide a block chain cross-chain monitoring method. To solve the problems of the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a method for monitoring a blockchain cross-link, the method comprising the steps of: step one, an operation block chain node comprises an interface for collecting operation index data;
step two, operating a cross-chain relay responsible for cross-chain communication between the block chains, wherein the cross-chain relay comprises an interface used for collecting operation index data;
step three, acquiring operation index data of the block chain nodes and the cross-chain communication modules which are responsible for the cross-chain relay;
and fourthly, analyzing, displaying, alarming and processing the running states of the block chain and the cross-chain communication based on the running index data.
The cross-chain index in the block chain cross-chain monitoring method is subjected to generalized design according to cross-chain communication specifications, and can be popularized to the realization of various cross-chain technical schemes;
the communication module responsible for the cross-link communication comprises cross-link relay, cross-link gateway and cross-link hub technical modes;
the inter-link communication module comprises an interface for collecting operation index data, can acquire the operation index data of inter-link communication which is responsible for the block link nodes and the inter-link relays, and is realized in the development process by the inter-link communication module;
and monitoring and alarming the running state of the block chain and the cross-chain communication in real time based on the running index data, and designing and realizing the running state based on a Prometheus protocol.
An apparatus for monitoring inter-chain blockchain, the apparatus comprising:
the acquisition module is used for acquiring operation index data and acquiring the operation index data of the block chain nodes and the cross-chain relay responsible for cross-chain communication;
the analysis module is used for setting data reading rules, rules of subsequent processing and the like; reading index data acquired by an acquisition module for analysis and processing; providing the analysis processing result to a display module; providing the information to an alarm/notification module according to a preset rule;
the display module is used for displaying various index data visually according to the analysis module;
the alarm/notification module is used for sending a notification to a user when an abnormal condition is found according to the indication of the analysis module;
and the processing module is used for processing the data according to the instruction of the analysis module. And realizing a processing interface which can be called by the processing module by the blockchain node in the development process.
The abnormal conditions at least comprise that the cross-link communication module stops running unexpectedly, a certain amount of cross-link data which are not in accordance with the transaction format are received, and a certain amount of cross-link data which are in accordance with the transaction format but conflict with the existing ledger data are received.
The display module can be realized according to Grafana and other protocols, and can customize panel contents such as block chains, visual display of cross-chain index data, notification alarm information and the like.
Wherein, the processing mode of the processing module at least comprises that the cross-chain communication module is stopped unexpectedly, and then the cross-chain communication module is tried to be restarted; and receiving a certain amount of cross-chain data which accords with the transaction format but conflicts with the existing ledger data, and disconnecting the cross-chain connection with the blockchain.
Compared with the prior art, the invention has the beneficial effects that: 1. the monitoring related interface is added in the cross-chain communication module to acquire cross-chain operation data, the operation data is processed, and the global network condition of a user under a multi-chain and cross-chain view angle can be displayed in real time;
2. the running state of the cross-chain key module can be monitored in real time and prompted in time.
3. Meanwhile, automatic intervention and processing can be performed on the discovered abnormal conditions of the cross-chain, and the safety event on one chain is prevented from being spread to other block chains in an expanded mode.
Drawings
FIG. 1 is a schematic diagram illustrating a flow structure of a block chain cross-chain monitoring method according to the present invention;
fig. 2 is a schematic structural diagram of monitoring of inter-chain block chaining according to the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Example (b):
referring to fig. 1, an embodiment of the present invention provides a method for monitoring a block chain crossing chain, where the method includes running a block chain node, where the block chain node includes an interface for collecting operation index data; a cross-chain communication module (such as a cross-chain relay) between the operation responsible block chains comprises an interface for acquiring operation index data; acquiring operation index data of the block chain nodes and the cross-chain relay responsible for cross-chain communication; and monitoring, alarming and processing the running states of the block chain and the cross-chain communication based on the running index data.
The embodiment of the invention provides a block chain cross-chain monitoring device, which comprises an index analysis processor and is used for executing a block chain cross-chain monitoring method.
In this embodiment, a developer adds an API for acquiring cross-link relay operation information to an existing cross-link relay to acquire various indexes of cross-link relay operation;
these indices may be classified into real-time values, cumulative values, histogram statistics, and the like,
in an embodiment of the invention, a developer may implement a monitoring device based on Prometheus.
Referring to fig. 2, the monitoring apparatus includes: the acquisition module is used for acquiring operation index data and acquiring the operation index data of the block chain nodes and the cross-chain relay responsible for cross-chain communication;
the analysis module is used for setting data reading rules, rules of subsequent processing and the like; reading index data acquired by an acquisition module for analysis and processing; providing the analysis processing result to a display module; providing the information to an alarm/notification module according to a preset rule;
the display module is used for displaying various index data visually according to the analysis module;
the alarm/notification module is used for sending a notification to a user when an abnormal condition is found according to the indication of the analysis module;
the processing module is used for processing the data according to the instruction of the analysis module; realizing a processing interface which can be called by a processing module by the block chain node in the development process;
the abnormal conditions at least comprise that the cross-link communication module stops running unexpectedly, a certain amount of cross-link data which are not in accordance with the transaction format are received, a certain amount of cross-link data which are in accordance with the transaction format but conflict with the existing ledger data are received, and the like.
The display module can be realized according to protocols such as Grafana and the like, and can customize panel contents such as visual display of block chains and cross-chain index data, notification alarm information and the like.
The processing mode of the processing module at least comprises that if the cross-chain communication module is stopped unexpectedly, the cross-chain communication module is tried to be restarted; and if a certain amount of cross-link data which accords with the transaction format but conflicts with the existing ledger data is received, the cross-link connection with the blockchain is disconnected.
Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes in the embodiments and/or modifications of the invention can be made, and equivalents and modifications of some features of the invention can be made without departing from the spirit and scope of the invention.

Claims (8)

1. A block chain cross-chain monitoring method is characterized in that: the method comprises the following steps:
step one, an operation block chain node comprises an interface for collecting operation index data;
step two, operating a cross-chain relay responsible for cross-chain communication between the block chains, wherein the cross-chain relay comprises an interface used for collecting operation index data;
step three, acquiring operation index data of the block chain nodes and the cross-chain communication modules which are responsible for the cross-chain relay;
and fourthly, analyzing, displaying, alarming and processing the running states of the block chain and the cross-chain communication based on the running index data.
2. The method of claim 1, wherein: the communication module responsible for the cross-link communication comprises cross-link relay, cross-link gateway and cross-link hub technical modes.
3. The method of claim 1, wherein: the communication module in charge of cross-link comprises an interface for collecting operation index data, can obtain the operation index data of the cross-link communication in charge of the block link nodes and the cross-link relays, and is realized by the cross-link communication module in the development process.
4. The method of claim 1, wherein: and the operation index data is used for monitoring and alarming the operation states of the block chain and the cross-chain communication in real time, and is designed and realized based on a Prometheus protocol.
5. A block chain cross-chain monitoring device is characterized in that: the device comprises: the acquisition module is used for acquiring operation index data and acquiring the operation index data of the block chain nodes and the cross-chain relay responsible for cross-chain communication;
the analysis module is used for setting data reading rules, rules of subsequent processing and the like; reading index data acquired by an acquisition module for analysis and processing; providing the analysis processing result to a display module; providing the information to an alarm/notification module according to a preset rule;
the display module is used for displaying various index data visually according to the analysis module;
the alarm/notification module is used for sending a notification to a user when an abnormal condition is found according to the indication of the analysis module;
and the processing module is used for realizing a processing interface which can be called by the processing module in the development process by the block chain node according to the indication of the analysis module.
6. The device according to claim 5, wherein: the abnormal conditions at least comprise that the cross-link communication module stops running unexpectedly, a certain amount of cross-link data which are not in accordance with the transaction format are received, and a certain amount of cross-link data which are in accordance with the transaction format but conflict with the existing ledger data are received.
7. The device according to claim 5, wherein: the display module is realized according to the Grafana protocol, and is used for customizing panel contents such as visualized display of the block chain and cross-chain index data, notification alarm information and the like.
8. The device according to claim 5, wherein: the processing mode of the processing module at least comprises that if the cross-chain communication module is stopped unexpectedly, the cross-chain communication module is tried to be restarted; and receiving a certain amount of cross-chain data which accords with the transaction format but conflicts with the existing ledger data, and disconnecting the cross-chain connection with the blockchain.
CN202110395583.2A 2021-04-13 2021-04-13 Block chain cross-chain monitoring method and device Pending CN113032474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110395583.2A CN113032474A (en) 2021-04-13 2021-04-13 Block chain cross-chain monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110395583.2A CN113032474A (en) 2021-04-13 2021-04-13 Block chain cross-chain monitoring method and device

Publications (1)

Publication Number Publication Date
CN113032474A true CN113032474A (en) 2021-06-25

Family

ID=76456642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110395583.2A Pending CN113032474A (en) 2021-04-13 2021-04-13 Block chain cross-chain monitoring method and device

Country Status (1)

Country Link
CN (1) CN113032474A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020191935A1 (en) * 2019-03-22 2020-10-01 深圳市网心科技有限公司 Method and system for blockchain cross-chain communication, and electronic device and storage medium
CN111741114A (en) * 2020-06-24 2020-10-02 陈鹏 System, method and equipment capable of monitoring cross-chain interaction based on block chain
CN111949487A (en) * 2020-08-14 2020-11-17 杭州溪塔科技有限公司 Block chain monitoring system and method with dynamically pluggable modules
CN112055002A (en) * 2020-08-24 2020-12-08 杭州云象网络技术有限公司 Cross-link network supervision method based on public governance link

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020191935A1 (en) * 2019-03-22 2020-10-01 深圳市网心科技有限公司 Method and system for blockchain cross-chain communication, and electronic device and storage medium
CN111741114A (en) * 2020-06-24 2020-10-02 陈鹏 System, method and equipment capable of monitoring cross-chain interaction based on block chain
CN111949487A (en) * 2020-08-14 2020-11-17 杭州溪塔科技有限公司 Block chain monitoring system and method with dynamically pluggable modules
CN112055002A (en) * 2020-08-24 2020-12-08 杭州云象网络技术有限公司 Cross-link network supervision method based on public governance link

Similar Documents

Publication Publication Date Title
US20200302054A1 (en) Method for detecting physical intrusion attack in industrial control system based on analysis of signals on serial communication bus
CN104461820B (en) A kind of method and device of monitoring of tools
CN109995555A (en) Monitoring method, device, equipment and medium
CN104104542B (en) A kind of real-time intelligent troubleshooting method based on RS485
CN111130912A (en) Anomaly positioning method for content distribution network, server and storage medium
CN107749778A (en) A kind of communications optical cable fault early warning method and device
CN105607615A (en) Fault diagnosis system
CN106506237B (en) A kind of Fault Locating Method and device of substation communication network
CN109218407A (en) Code management-control method and terminal device based on log monitoring technology
CN113656252B (en) Fault positioning method, device, electronic equipment and storage medium
CN113032474A (en) Block chain cross-chain monitoring method and device
EP2899918A1 (en) Method, apparatus and system for detecting network element load imbalance
CN110011872B (en) Method and device for monitoring state of streaming computing platform based on diagnostic message
CN112816933A (en) Maintenance diagnosis method and system for electric energy meter terminal
CN116148717A (en) Detection method and device of vehicle-mounted system, electronic equipment and storage medium
CN114884803B (en) Method, device, equipment and medium for processing multiple redundant states
CN108234162A (en) TDCS/CTC system early warning methods based on port data flow monitoring
CN106844078A (en) A kind for the treatment of method and apparatus of PCIE failures
CN110620813A (en) Equipment fault alarm system and method based on NBIoT
CN102833115B (en) A kind of alert processing method of port and system
CN116225817A (en) Monitoring method and device for database arbitration process
CN109803301B (en) Offline identification management system for wireless network
CN113765730A (en) Method and device for monitoring data link network
CN109671289A (en) A kind of road traffic signal controller system failure hierarchical control method
CN106326151A (en) Method and device for unplugging PCIe equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination