CN113938371A - Node monitoring method, system and equipment based on block chain - Google Patents

Node monitoring method, system and equipment based on block chain Download PDF

Info

Publication number
CN113938371A
CN113938371A CN202111216143.2A CN202111216143A CN113938371A CN 113938371 A CN113938371 A CN 113938371A CN 202111216143 A CN202111216143 A CN 202111216143A CN 113938371 A CN113938371 A CN 113938371A
Authority
CN
China
Prior art keywords
node
abnormal
voting
nodes
peer
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.)
Granted
Application number
CN202111216143.2A
Other languages
Chinese (zh)
Other versions
CN113938371B (en
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.)
China South Power Grid International Co ltd
Original Assignee
China South Power Grid International 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 China South Power Grid International Co ltd filed Critical China South Power Grid International Co ltd
Priority to CN202111216143.2A priority Critical patent/CN113938371B/en
Publication of CN113938371A publication Critical patent/CN113938371A/en
Application granted granted Critical
Publication of CN113938371B publication Critical patent/CN113938371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a node monitoring method, a system and equipment based on a block chain, wherein the method comprises the following steps: the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether abnormal nodes exist in other peer nodes or not according to the state information of other peer nodes, and votes for the abnormal nodes in other peer nodes when judging that the abnormal nodes exist in other peer nodes; the data acquisition service sends the voting result of each peer node to the intelligent contract, so that the intelligent contract carries out voting consensus according to the voting result to determine whether the voted abnormal node is really abnormal or not, and the technical problem that in the prior art, when other nodes tamper the service state of the respective node and then carry out state sharing, the other nodes cannot acquire the real state of the node, and the reliability of the monitoring result is low is solved.

Description

Node monitoring method, system and equipment based on block chain
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method, a system, and a device for monitoring nodes based on blockchains.
Background
The blockchain network service program is a 7 x 24 hour software job, with each node being distributed among hosts in different networks. The operation and maintenance personnel need to pay attention to whether the service of each node works normally, including whether data in the service can be synchronized normally, whether a software process is alive normally, whether the space for storing data is sufficient, whether the service of other nodes is normal, and the like. Therefore, each node in the blockchain network needs to be monitored.
The traditional monitoring scheme is directed at monitoring of a server, and as a blockchain network is generally a network built by all alliances, a single node cannot accurately know whether the service of other nodes works normally, although other nodes can share the service state of each node, when a node fakes the state of the node, other nodes cannot acquire the real state of the node, and the reliability of a monitoring result is low.
Disclosure of Invention
The application provides a node monitoring method, a node monitoring system and a node monitoring device based on a block chain, which are used for improving the technical problem that in the prior art, aiming at the monitoring of a server, a single node cannot accurately know whether the service of other nodes works normally, although other nodes can share the service state of the respective node, when a certain node fakes the state of the node, other nodes cannot acquire the real state of the node, and the reliability of a monitoring result is low.
In view of this, a first aspect of the present application provides a node monitoring method based on a block chain, including:
the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether abnormal nodes exist in other peer nodes or not according to the state information of other peer nodes, and votes for the abnormal nodes in other peer nodes when judging that the abnormal nodes exist in other peer nodes;
and the data acquisition service sends the voting result of each peer node to an intelligent contract, so that the intelligent contract carries out voting consensus according to the voting result to determine whether the voted abnormal node is really abnormal or not.
Optionally, the data collection service obtains the state information of other peer nodes in the block chain through the API of each peer node, and before that, the data collection service further includes:
the data acquisition service inquires timing execution time through the intelligent contract;
the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, and specifically includes:
and the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node at regular time according to the timing execution time.
Optionally, the status information includes: network state, hardware state, or internal service state.
Optionally, the data collection service sends the voting result of each peer node to the intelligent contract, and before the sending, the method further includes:
and the data acquisition service inquires the current voting turns of the abnormal nodes through the intelligent contract.
Optionally, the intelligent contract performs voting consensus according to the voting result to determine whether the voted abnormal node is really abnormal, and specifically includes:
and the intelligent contract inserts the voting result into a voting record table, inquires whether the voting number of the voted abnormal node in the current abnormal node voting turn meets a preset condition through the voting record table, judges that the abnormal node is abnormal if the voting number meets the preset condition, modifies the current abnormal node voting turn after inserting a consensus result into the voting consensus table, and judges that the abnormal node is not abnormal if the voting number does not meet the preset condition.
A second aspect of the present application provides a node monitoring system based on a block chain, including:
the data acquisition service is used for acquiring the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether abnormal nodes exist in other peer nodes or not according to the state information of other peer nodes, and votes for the abnormal nodes in other peer nodes when judging that the abnormal nodes exist in other peer nodes;
the data acquisition service is also used for sending the voting results of the peer nodes to an intelligent contract;
and the intelligent contract is used for voting consensus according to the voting result so as to determine whether the voted abnormal node is really abnormal or not.
Optionally, the status information includes: network state, hardware state, or internal service state.
Optionally, the data collection service is further configured to:
and inquiring the current voting round of the abnormal nodes through the intelligent contract.
Optionally, the intelligent contract is specifically configured to:
and inserting the voting result into a voting record table, inquiring whether the voting number of the voted abnormal node in the current abnormal node voting turn meets a preset condition through the voting record table, if so, judging that the abnormal node is abnormal, and after inserting a consensus result into a voting consensus table, modifying the current abnormal node voting turn, and if not, judging that the abnormal node is not abnormal.
A third aspect of the application provides an electronic device comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the method for monitoring a node based on a blockchain according to any one of the first aspect according to instructions in the program code.
According to the technical scheme, the method has the following advantages:
the application provides a node monitoring method based on a block chain, which comprises the following steps: the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether abnormal nodes exist in other peer nodes or not according to the state information of other peer nodes, and votes for the abnormal nodes in other peer nodes when judging that the abnormal nodes exist in other peer nodes; and the data acquisition service sends the voting result of each peer node to an intelligent contract, so that the intelligent contract carries out voting consensus according to the voting result to determine whether the voted abnormal node is really abnormal or not.
In the method, the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node can vote for abnormal nodes in other peer nodes according to the state information, after the data acquisition service sends the voting result to the intelligent contract, the intelligent contract identifies the voting result of each node, determines whether the voted abnormal node is abnormal or not, monitors the node state of the block chain, avoids state sharing caused by tampering with the respective node service state of other nodes, and ensures that other nodes cannot acquire the true state of the node, thereby causing the technical problem of lower reliability of the monitoring result.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a node monitoring method based on a block chain according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
For convenience of understanding, referring to fig. 1, an embodiment of the present application provides a node monitoring method based on a block chain, including:
step 101, the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether an abnormal node exists in other peer nodes according to the state information of other peer nodes, and votes for the abnormal node in other peer nodes when judging that the abnormal node exists in other peer nodes.
The data acquisition service acquires state information of other peer nodes in the block chain through the API of each peer node, and specifically, the data acquisition service sequentially takes a certain peer node in the block chain as a current peer node and acquires other peer nodes (i.e., peer nodes except the current peer node in the block chain) through the API of the current peer node. Assuming that there are 5 peer nodes in a block chain, which are P1, P2, P3, P4 and P5, respectively, the data acquisition service takes the node P1 as the current peer node, and acquires the state information of the nodes P2, P3, P4 and P5 through the API of the node P1; the data acquisition service takes the node P2 as a current peer node, and acquires the state information of the nodes P1, P3, P4 and P5 through the API of the node P2; the data acquisition service takes the node P3 as a current peer node, and acquires the state information of the nodes P1, P2, P4 and P5 through the API of the node P3; the data acquisition service takes the node P4 as a current peer node, and acquires the state information of the nodes P1, P2, P3 and P5 through the API of the node P4; the data collection service takes the node P5 as the current peer node, and acquires the state information of the nodes P1, P2, P3 and P4 through the API of the node P5.
Further, before the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, the data acquisition service can also inquire the timing execution time through an intelligent contract; correspondingly, when the data acquisition service detects that the peer node is started, the data acquisition service can acquire the state information of other peer nodes in the block chain through the API of each peer node at regular time according to the timing execution time.
And each peer node judges whether other peer nodes are abnormal or not according to the state information of each node acquired by the data acquisition service, wherein the state information of the nodes comprises the network state, the hardware state or the internal service state of the nodes. And when judging that the other peer nodes have abnormal nodes, each peer node votes for the abnormal nodes in the other peer nodes. Specifically, following the above example, after the data collection service acquires the state information of other peer nodes through the API of each node, assuming that the node P1 determines that the nodes P2 and P4 are abnormal according to the state information of the nodes P2, P3, P4, and P5, the node P1 may vote for the nodes P2 and P4, and assuming that the node P2 determines that the nodes P1 and P4 are abnormal according to the state information of the nodes P1, P3, P4, and P5, the node P2 may vote for the nodes P1 and P4.
In the embodiment of the application, two types of account numbers are provided, including a contract account and a node voting account number, wherein the contract account number is an account trusted by all nodes, and the contract account is used for creating a contract and storing voting content and voting consensus results of the node voting account number; the node voting accounts are used for voting the abnormal nodes, the node voting accounts correspond to the block chain peer nodes one to one, and are the own account numbers of each peer node so as to ensure the voting of each peer node to be real and credible.
And 102, the data acquisition service sends the voting results of the peer nodes to an intelligent contract, so that the intelligent contract carries out voting consensus according to the voting results to determine whether the voted abnormal nodes are really abnormal or not.
And the data acquisition service sends the voting result of each peer node to an intelligent contract, and voting consensus is carried out according to the voting result through the intelligent contract so as to determine whether the voted abnormal node is really abnormal or not.
Further, before the data acquisition service sends the voting result of each peer node to the intelligent contract, the current voting round of the abnormal node can be inquired through the intelligent contract. After inquiring the current voting round of the abnormal nodes, the data acquisition service sends the voting results of each peer node to the intelligent contract; the intelligent contract inserts the voting result into a voting record table in a block chain database, and inquires whether the voting number of the voted abnormal node in the current abnormal node voting turn meets a preset condition through the voting record table, if so, the abnormal node is judged to be abnormal, after the consensus result is inserted into the voting consensus table, the current abnormal node voting turn is modified, and if not, the abnormal node is judged not to be abnormal. In the embodiment of the application, each peer node has a voting turn, and if one peer node is abnormal, other peer nodes vote for the current turn of the abnormal node, and the intelligent dating consensus identifies the votes of the abnormal node in the same turn. If there is no round of voting, the smart contract does not know which votes to agree on.
After the intelligent contract inserts the voting content in the voting result into the voting record table, the historical voting record of the node can be inquired, and the voting result is analyzed. When the current abnormal node voting round is not finished, the intelligent contract inquires whether the voting number of the voted abnormal node in the current abnormal node voting round reaches 2/3 of the total voting node number, if so, all the nodes reach consensus, the abnormal node is real and abnormal, and the consensus result is inserted into a voting consensus table in a block chain database and the current abnormal node voting round is modified. If the voting number of the voted abnormal nodes in the current voting round of the abnormal nodes does not reach 2/3 of the total number of the voting nodes, the abnormal nodes are judged not to be really abnormal.
In the embodiment of the application, the characteristics of the block chain, multi-node participation, collective consensus, tamper resistance and the like are utilized to monitor the characteristics of the nodes of the block chain, so that not only can the network state, the hardware state and the like of the nodes be monitored, but also the state information of other nodes can be obtained through a node API (application programming interface), and then the states of other nodes are monitored in a collective voting and intelligent contract mode; the method adopts a mode of separating the data acquisition and data analysis processes, votes for other abnormal nodes through the fixed account corresponding to each node, ensures the reliability of data sources, and identifies the voting results of all nodes together through an intelligent contract, thereby ensuring the fairness and the justness of the voting results; and moreover, uplink processing is carried out on the voting data of all the nodes, and the uplink data can be traced and verified by utilizing the characteristics of non-tampering and time stamps of the block chains.
In the embodiment of the application, the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node can vote on abnormal nodes in other peer nodes according to the state information, after the data acquisition service sends the voting result to the intelligent contract, the intelligent contract identifies the voting result of each node, determines whether the voted abnormal node is really abnormal or not, and completes monitoring the node state of the block chain, thereby avoiding the problem that the other nodes cannot acquire the real state of the node due to tampering with the respective node service state and then perform state sharing, and further solving the technical problem that the reliability of the monitoring result is low.
The above is an embodiment of a node monitoring method based on a blockchain provided by the present application, and the following is an embodiment of a node monitoring system based on a blockchain provided by the present application.
An embodiment of the present application provides a node monitoring system based on a block chain, including:
the data acquisition service is used for acquiring the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether abnormal nodes exist in other peer nodes or not according to the state information of other peer nodes, and votes for the abnormal nodes in other peer nodes when judging that the abnormal nodes exist in other peer nodes;
the data acquisition service is also used for sending the voting results of the peer nodes to an intelligent contract;
and the intelligent contract is used for carrying out voting consensus according to the voting result so as to determine whether the voted abnormal node is really abnormal or not.
As a further improvement, the status information includes: network state, hardware state, or internal service state.
As a further improvement, the data collection service is further configured to:
and inquiring the current voting round of the abnormal nodes through the intelligent contract.
As a further improvement, smart contracts are specifically used for:
inserting the voting result into a voting record table, inquiring whether the voting number of the voted abnormal node in the current abnormal node voting turn meets the preset condition through the voting record table, if so, judging that the abnormal node is abnormal, and after inserting the consensus result into the voting consensus table, modifying the current abnormal node voting turn, and if not, judging that the abnormal node is not abnormal.
In the embodiment of the application, the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node can vote on abnormal nodes in other peer nodes according to the state information, after the data acquisition service sends the voting result to the intelligent contract, the intelligent contract identifies the voting result of each node, determines whether the voted abnormal node is really abnormal or not, and completes monitoring the node state of the block chain, thereby avoiding the problem that the other nodes cannot acquire the real state of the node due to tampering with the respective node service state and then perform state sharing, and further solving the technical problem that the reliability of the monitoring result is low.
The embodiment of the application also provides electronic equipment, which comprises a processor and a memory;
the memory is used for storing the program codes and transmitting the program codes to the processor;
the processor is configured to execute the block chain based node monitoring method in the foregoing method embodiment according to instructions in the program code.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The terms "first," "second," "third," "fourth," and the like in the description of the application and the above-described figures, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for executing all or part of the steps of the method described in the embodiments of the present application through a computer device (which may be a personal computer, a server, or a network device). And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A node monitoring method based on a block chain is characterized by comprising the following steps:
the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether abnormal nodes exist in other peer nodes or not according to the state information of other peer nodes, and votes for the abnormal nodes in other peer nodes when judging that the abnormal nodes exist in other peer nodes;
and the data acquisition service sends the voting result of each peer node to an intelligent contract, so that the intelligent contract carries out voting consensus according to the voting result to determine whether the voted abnormal node is really abnormal or not.
2. The method for monitoring nodes based on block chains according to claim 1, wherein the data collection service obtains the status information of other peer nodes in the block chain through an API of each peer node, and the method further comprises:
the data acquisition service inquires timing execution time through the intelligent contract;
the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node, and specifically includes:
and the data acquisition service acquires the state information of other peer nodes in the block chain through the API of each peer node at regular time according to the timing execution time.
3. The method according to claim 1, wherein the status information comprises: network state, hardware state, or internal service state.
4. The method for monitoring nodes based on block chains according to claim 1, wherein the data collection service sends the voting results of each peer node to an intelligent contract, and the method further comprises the following steps:
and the data acquisition service inquires the current voting turns of the abnormal nodes through the intelligent contract.
5. The node monitoring method based on the block chain as claimed in claim 4, wherein the intelligent contract performs voting consensus according to the voting result to determine whether the voted abnormal node is really abnormal, specifically comprising:
and the intelligent contract inserts the voting result into a voting record table, inquires whether the voting number of the voted abnormal node in the current abnormal node voting turn meets a preset condition through the voting record table, judges that the abnormal node is abnormal if the voting number meets the preset condition, modifies the current abnormal node voting turn after inserting a consensus result into the voting consensus table, and judges that the abnormal node is not abnormal if the voting number does not meet the preset condition.
6. A node monitoring system based on a blockchain, comprising:
the data acquisition service is used for acquiring the state information of other peer nodes in the block chain through the API of each peer node, so that each peer node judges whether abnormal nodes exist in other peer nodes or not according to the state information of other peer nodes, and votes for the abnormal nodes in other peer nodes when judging that the abnormal nodes exist in other peer nodes;
the data acquisition service is also used for sending the voting results of the peer nodes to an intelligent contract;
and the intelligent contract is used for voting consensus according to the voting result so as to determine whether the voted abnormal node is really abnormal or not.
7. The blockchain-based node monitoring system of claim 6, wherein the status information includes: network state, hardware state, or internal service state.
8. The blockchain-based node monitoring system of claim 6, wherein the data collection service is further configured to:
and inquiring the current voting round of the abnormal nodes through the intelligent contract.
9. The blockchain-based node monitoring system of claim 8, wherein the smart contract is specifically configured to:
and inserting the voting result into a voting record table, inquiring whether the voting number of the voted abnormal node in the current abnormal node voting turn meets a preset condition through the voting record table, if so, judging that the abnormal node is abnormal, and after inserting a consensus result into a voting consensus table, modifying the current abnormal node voting turn, and if not, judging that the abnormal node is not abnormal.
10. An electronic device, comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the blockchain-based node monitoring method of any one of claims 1 to 5 according to instructions in the program code.
CN202111216143.2A 2021-10-19 2021-10-19 Node monitoring method, system and equipment based on blockchain Active CN113938371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111216143.2A CN113938371B (en) 2021-10-19 2021-10-19 Node monitoring method, system and equipment based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111216143.2A CN113938371B (en) 2021-10-19 2021-10-19 Node monitoring method, system and equipment based on blockchain

Publications (2)

Publication Number Publication Date
CN113938371A true CN113938371A (en) 2022-01-14
CN113938371B CN113938371B (en) 2023-05-23

Family

ID=79280527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111216143.2A Active CN113938371B (en) 2021-10-19 2021-10-19 Node monitoring method, system and equipment based on blockchain

Country Status (1)

Country Link
CN (1) CN113938371B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN111786818A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain consensus node state monitoring method and device
CN112187476A (en) * 2020-09-28 2021-01-05 北京八分量信息科技有限公司 Method and device for synchronizing block chain state based on trusted computing and related product
CN113472825A (en) * 2020-03-30 2021-10-01 中国移动通信集团设计院有限公司 NB-IoT (NB-IoT) terminal transaction processing method and device based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506203A (en) * 2016-10-25 2017-03-15 杭州云象网络技术有限公司 A kind of monitoring nodes system for being applied to block chain
CN113472825A (en) * 2020-03-30 2021-10-01 中国移动通信集团设计院有限公司 NB-IoT (NB-IoT) terminal transaction processing method and device based on block chain
CN111786818A (en) * 2020-06-16 2020-10-16 杭州溪塔科技有限公司 Block chain consensus node state monitoring method and device
CN112187476A (en) * 2020-09-28 2021-01-05 北京八分量信息科技有限公司 Method and device for synchronizing block chain state based on trusted computing and related product

Also Published As

Publication number Publication date
CN113938371B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN106682984A (en) Block chain-based transaction business processing method and system
CN108737182A (en) The processing method and system of system exception
CN110784355A (en) Fault identification method and device
CN103428042A (en) Method and system for carrying out stress test on server
CN107483381A (en) The monitoring method and device of interlock account
CN108052358A (en) A kind of system and method for distributed deployment
CN109753401A (en) Monitoring method, collection terminal, control end, monitoring system and device
CN105187554A (en) Method and system for monitoring server performance
CN112613724A (en) Compliance assessment method and device for enterprise, storage medium and electronic equipment
CN102866932A (en) Method and device for providing and collecting data related to abnormal terminal
CN114757639A (en) Data processing method, device, equipment and storage medium
CN110580556B (en) Data processing method and system and processor
CN111932126B (en) Intelligent manufacturing production management method based on big data
CN114416490A (en) Monitoring alarm method and device based on block chain, electronic equipment and storage medium
CN104536926B (en) The control method and device of serial equipment
CN109446807A (en) The method, apparatus and electronic equipment of malicious robot are intercepted for identification
CN111343212B (en) Message processing method, device, equipment and storage medium
CN113938371A (en) Node monitoring method, system and equipment based on block chain
CN107908544A (en) A kind of use-case test method and terminal device
CN108289035B (en) Method and system for visually displaying running states of network and business system
CN115801538A (en) Site server application asset deep identification method, system and equipment
CN106959903A (en) Trap instruction Trap processing method and processing device
CN115967523A (en) Black product user identification method and device
CN114969530A (en) Service data processing method and device and server
CN110197061B (en) Service data monitoring method, device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant