CN110958161A - Block link point monitoring method and device - Google Patents

Block link point monitoring method and device Download PDF

Info

Publication number
CN110958161A
CN110958161A CN201911216139.9A CN201911216139A CN110958161A CN 110958161 A CN110958161 A CN 110958161A CN 201911216139 A CN201911216139 A CN 201911216139A CN 110958161 A CN110958161 A CN 110958161A
Authority
CN
China
Prior art keywords
block
uplink data
block chain
data block
node
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
CN201911216139.9A
Other languages
Chinese (zh)
Other versions
CN110958161B (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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201911216139.9A priority Critical patent/CN110958161B/en
Publication of CN110958161A publication Critical patent/CN110958161A/en
Application granted granted Critical
Publication of CN110958161B publication Critical patent/CN110958161B/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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Mining & Analysis (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a block chain link point monitoring method and device, relates to the technical field of communication, and is used for determining an operation index of a block chain system according to transmission parameters of a cochain data block, so that the operation state of the block chain system can be visually and conveniently embodied. The method comprises the following steps: acquiring transmission parameters of an uplink data block, wherein the transmission parameters comprise an identifier of the uplink data block, a sending time of the uplink data block, an identifier of at least one block chain node, an identifier of a first block chain node and a receiving time of the first block chain node for receiving the uplink data block. Determining an operation index of the block chain system according to the transmission parameters of the uplink data block, wherein the operation index comprises at least one of uplink success rate and average transmission duration. And if the operation index meets a second preset condition, determining that the block chain system is abnormal.

Description

Block link point monitoring method and device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and an apparatus for monitoring a block link point.
Background
With the development of information technology, blockchain technology is increasingly applied to banking systems. The bank system has the characteristics of large transaction amount, strong real-time performance and the like, so when the block chain technology is applied to the bank system, a plurality of block chain nodes are generally required to be arranged. In the existing block chain monitoring technology, a monitoring unit is usually deployed on each block chain link point, all block chain nodes are linked to a monitoring processing module in an upper computer, and the monitoring processing module can only analyze and locate abnormal nodes by using collected monitoring data of each block chain node, but cannot intuitively and conveniently represent the running state of a block chain system.
Disclosure of Invention
The application provides a method and a device for monitoring block chain link points, wherein the operation indexes of a block chain system are obtained by analyzing transmission parameters of a cochain data block, and the operation indexes can intuitively and conveniently represent the operation state of the block chain system.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method for monitoring a blockchain node, which is applied to a blockchain system, where the blockchain system includes at least one blockchain node and a blockchain node monitoring device. The method comprises the following steps: acquiring transmission parameters of an uplink data block, wherein the transmission parameters comprise an identifier of the uplink data block, a sending time of the uplink data block, an identifier of at least one block chain node, an identifier of a first block chain node, and a receiving time of the first block chain node for receiving the uplink data block. The uplink data block is a data block generated according to uplink data sent to a blockchain node, and the first blockchain node is a blockchain node of at least one blockchain node receiving the uplink data block. Then, according to the transmission parameters of the uplink data block, determining an operation index of the block chain system, wherein the operation index includes at least one item of uplink success rate and average transmission duration. The uplink success rate is the number of normal block chain nodes, that is, the ratio of the number of first block chain nodes meeting a first preset condition to the total number of block chain nodes, and the average transmission duration is the average value of the difference between the transmission time and the reception time of the uplink data block. And finally, if the operation index meets a second preset condition, determining that the block chain system is abnormal.
In a second aspect, the present application provides a block link point monitoring device, which is applied to a block link system, where the block link system includes at least one block link node and the block link point monitoring device. The device comprises an acquisition unit and a determination unit. An obtaining unit, configured to obtain transmission parameters of an uplink data block, where the transmission parameters include an identifier of the uplink data block, a sending time of the uplink data block, an identifier of at least one block chain node, an identifier of a first block chain node, and a receiving time when the first block chain node receives the uplink data block. The uplink data block is a data block generated according to uplink data sent to a blockchain node, and the first blockchain node is a blockchain node of at least one blockchain node receiving the uplink data block. A determining unit, configured to determine an operation indicator of the block chain system according to a transmission parameter of the uplink data block, where the operation indicator includes at least one of an uplink success rate and an average transmission duration. The uplink success rate is the number of normal block chain nodes, that is, the ratio of the number of first block chain nodes meeting a first preset condition to the total number of block chain nodes, and the average transmission duration is the average value of the difference between the transmission time and the reception time of the uplink data block. And the determining unit is further used for determining that the block chain system is abnormal if the operation index meets a second preset condition.
In a third aspect, the present application provides a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer, cause the computer to perform the block link point monitoring method of the first aspect and any of its various alternative implementations.
In a fourth aspect, the present application provides a computer program product comprising instructions that, when run on a computer, cause the computer to perform the block link point monitoring method of the first aspect and any of its various alternative implementations.
In a fifth aspect, the present application provides a block link point monitoring device, comprising: a processor, a memory, and a communication interface. Wherein the communication interface is adapted to communicate with other devices or a communication network, and the memory is adapted to store one or more programs, the one or more programs including computer executable instructions, which when executed by the apparatus, the processor executes the computer executable instructions stored in the memory to cause the apparatus to perform the block link node monitoring method according to the first aspect and any one of its various alternative implementations.
An embodiment of the present application provides a method and an apparatus for monitoring block link points, where transmission parameters of an uplink data block are obtained, and the transmission parameters include an identifier of the uplink data block, a sending time of the uplink data block, an identifier of at least one block link node, an identifier of a first block link node, and a receiving time when the first block link point receives the uplink data block. The uplink data block is a data block generated according to uplink data sent to a blockchain node, and the first blockchain node is a blockchain node of at least one blockchain node receiving the uplink data block. Then, according to the transmission parameters of the uplink data block, determining an operation index of the block chain system, wherein the operation index includes at least one item of uplink success rate and average transmission duration. The uplink success rate is the number of normal block chain nodes, that is, the ratio of the number of first block chain nodes meeting a first preset condition to the total number of block chain nodes, and the average transmission duration is the average value of the difference between the transmission time and the reception time of the uplink data block. And finally, if the operation index meets a second preset condition, determining that the block chain system is abnormal. The method and the device can analyze the transmission parameters of the uplink data block to obtain the operation index of the block chain system, so that the operation state of the block chain system can be intuitively and conveniently embodied through the operation index, and the method and the device have important theoretical significance and practical application value.
Drawings
Fig. 1 is a first schematic view of a block link point monitoring device according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a block link point monitoring method according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a block link point monitoring device according to an embodiment of the present disclosure;
fig. 4 is a third schematic view of a block link point monitoring device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present application are described in detail below with reference to the accompanying drawings.
The embodiment of the application provides a method and a device for monitoring block chain link points, which can be applied to a block chain system to monitor the running state of the block chain system. The block chain system comprises one or more block chain nodes and a block chain node monitoring device. In a blockchain system, one or more blockchain nodes are physical devices, such as cloud servers, for communicating, forwarding and/or storing data. The block chain link point monitoring device is used for monitoring block chain link points in the block chain system, monitoring the running state of the block chain system in real time, and sending alarm information to the alarm system when the block chain system is abnormal. The block link point monitoring device is located on any one of the one or more block link nodes, or the block link point monitoring device is independent of the block link node.
Referring to fig. 1, an embodiment of the present application provides a block link point monitoring device, which is applied to a block link system, where the block link system includes n block link points and the block link point monitoring device, and a value of n is an integer greater than 0. This block chain link point monitoring device includes: an uplink data transmitting module 101, a monitoring module 102, and an uplink data receiving module 103.
The uplink data sending module 101 receives uplink data generated by the uplink data generating system, generates an uplink data block according to the received uplink data, and determines an identifier of the uplink data block. Subsequently, the uplink data sending module 101 sends the uplink data block to all or part of the blockchain nodes in the blockchain system, and generates a sending record of the uplink data block, where the sending record includes part of the transmission parameters of the uplink data block, that is, the time when the uplink data sending module 101 sends the uplink data block to the blockchain nodes, the identifier of the uplink data block, and the identifier of at least one blockchain node. The first blockchain node is a blockchain node of the n blockchain nodes which receives the uplink data block. Finally, the uplink data transmission module 101 records the generated transmission record in the transmission log.
For example, the uplink data received by the uplink data sending module 101 may be transaction data, such as transaction data generated by a user completing a transaction such as international remittance through a banking application app (application) on the terminal device. The transaction data includes information such as the transferor identification, the money transfer amount, the money transfer account, the transferor identification, the remittance receiving account, etc. The terminal equipment, i.e., the equipment generating the uplink data, is located in the uplink data generating system. Subsequently, the uplink data sending module 101 generates a corresponding uplink data block according to the received transaction data, and an identifier of the uplink data block, for example, the identifier of the uplink data block is a hash value in the block.
For example, after receiving the uplink data, the uplink data generating module 101 generates an uplink data block a according to the uplink data, where the uplink data block is identified as a. The uplink data generation module 101 sends the generated uplink data block a to all blockchain nodes in the blockchain system. For example, there are 3 blockchain nodes in the blockchain system, and the 3 blockchain nodes are respectively identified as b, c, and d. The sending time of the uplink data block a sent by the uplink data generating module 101 is 2019, 8, 21: 00. therefore, the transmission record of the uplink data block a transmitted by the uplink data generating module 101 to the block link points b, c, d can be recorded in the transmission log in the form of table 1.
TABLE 1
Figure BDA0002299570040000031
Optionally, the transmission record may further include an identifier of the apparatus generating the uplink data, a transmission status of the uplink data block, and the like. The sending status includes successful sending, non-sending, sending failure, etc.
Optionally, the uplink data sending module 101 may also directly send part of the transmission parameters of the uplink data block to the monitoring module 102 without recording in the sending log.
Optionally, the uplink data block and the identifier of the uplink data block may also be generated by the uplink data generating system according to uplink data. Then, the uplink data generating system directly sends information such as the uplink data block and the identifier of the uplink data block to the uplink data sending module 101, instead of the uplink data sending module 101 generating the uplink data block and determining the identifier of the uplink data block according to the received uplink data.
Optionally, the uplink data sending module 101 may directly receive a sending log of a device that generates an uplink data block in the uplink data generating system, where the sending log includes a plurality of sending records, and the sending records include a time when the device that generates the uplink data block sends the uplink data block, an identifier of the uplink data block, and an identifier of at least one block link node.
The uplink data receiving module 103 obtains received data generated after the block link node receives the uplink data block, and generates a receiving record according to the obtained received data. Of course, in the case where all the block link points in the block chain system are abnormal, the reception record cannot be generated. The receiving record includes an identifier of an uplink data block received by a block link point, an identifier of a first block link node receiving the uplink data block, and a receiving time of the uplink data block received by the first block link point, that is, a part of parameters in a transmission record of the uplink data block. Finally, the uplink data receiving module 103 records the generated receiving record into the receiving log.
For example, taking table 1 as an example, the block chain system receiving the uplink data block a includes 3 block chain nodes, where the 3 block chain nodes are b, c, and d, respectively. The 3 block nodes receive the uplink data block a at the time of 2019, 8 month, 8 day 21: 01. 8 month and 8 days 21 in 2019: 01. 8 month and 8 days 21 in 2019: 03. therefore, the uplink data receiving module 103 generates 3 receiving records of the block-connected nodes b, c, d receiving the uplink data block a, and records the 3 receiving records into the receiving log in the form of table 2.
TABLE 2
Figure BDA0002299570040000041
Optionally, the receiving record may further include an identifier of an apparatus for generating uplink data corresponding to the uplink data block, and information such as a receiving status of the uplink data block at a block link point, where the receiving status includes non-reception, successful reception, reception failure, and the like. Correspondingly, the transmission parameters of the uplink data block may also include an identifier of the uplink data device corresponding to the uplink data block, and information such as a reception status of the uplink data block at the block link point. Of course, the uplink data receiving module 103 can also send the related uplink data block containing uplink data to the uplink data querying system in response to the request of the uplink data querying system.
Optionally, the uplink data receiving module 103 may also directly send part of the transmission parameters of the uplink data block, the identifier of the uplink data block received by the block link point, the identifier of the first block link node receiving the uplink data block, and the receiving time of the uplink data block received by the first block link point to the monitoring module 102, instead of recording in the receiving log.
Optionally, the uplink data receiving module 103 may also directly obtain a receiving log of a blockchain node that receives the uplink data block, where the receiving log includes one or more receiving records. Of course, in the case where all the blockchain link points in the blockchain system are abnormal, the received log may also be empty or have no received log. At this time, there may be a plurality of reception logs received by the uplink data receiving module 103, and the uplink data receiving module may combine the plurality of reception logs into one reception log, or may directly send the obtained plurality of reception logs to the monitoring module 102. In the following embodiments, the technical solution of the present application is described by taking an example in which the receive log received by the uplink data receiving module 103 is integrated to obtain one receive log.
Optionally, taking the uplink data as the transaction data as an example, the receiving record and/or the sending record may further include an identifier of an apparatus that generates uplink data corresponding to the uplink data block, and the uplink data querying system may further determine the apparatus that completes the transaction corresponding to the transaction data after receiving the transaction data queried by the user, so as to improve user experience.
After obtaining the above-mentioned sending log and receiving log, the monitoring module 102 analyzes the sending record and the receiving record recorded in the sending log and the receiving log to determine the operation index of the blockchain system. And then, judging according to the operation index of the block chain system and a preset threshold corresponding to the operation index to determine whether the block chain system is abnormal. Optionally, the monitoring module 102 may also be configured to configure a monitoring rule, and for the description of the monitoring rule, reference may be made to the following embodiments, which are not described herein again. And if the block chain system is abnormal, sending alarm information to the alarm system so that the alarm system can maintain and process the block chain system according to the received alarm information, or a user can correspondingly maintain and process the block chain system according to the alarm information received by the alarm system.
Generally, the number of blockchain nodes in a blockchain system is not unique, and when the number of blockchain nodes in the blockchain system is large, even if one node in the blockchain system is abnormal, the operation of the blockchain system is not affected. In order to avoid inconvenience brought by suspending a service of the whole blockchain system or sending alarm information to a corresponding alarm system or a user due to an abnormal node in the blockchain system, based on the device, the embodiment of the application provides a method for monitoring blockchain link points. The method is applied to the block chain system, whether the running state of the block chain system is normal or not can be intuitively and conveniently reflected, and the execution main body is a server or the block chain node monitoring device and the like. For example, when the uplink data transmission module 101 transmits uplink data blocks to all blockchain nodes in the blockchain system, as shown in fig. 2, the method includes steps S201 to S203:
s201, obtaining transmission parameters of the uplink data block.
Optionally, the block link point monitoring apparatus may directly obtain transmission parameters of an uplink data block in a first preset time period, where the transmission parameters include an identifier of the uplink data block, a sending time of the uplink data block, an identifier of at least one block link node, an identifier of a first block link node that receives the uplink data block, and a receiving time when the first block link node receives the uplink data block. For the description of the uplink data block, reference is made to the above description, and further description is omitted here. Of course, the transmission parameters of one or more uplink data blocks may be acquired within the first predetermined time period, and the following embodiments all take the transmission parameters of one uplink data block acquired within the first predetermined time period as an example to introduce the technical solution of the present application. The first preset time period may be preset, or may be determined by the user according to the requirement. For example, the first preset time period may be 9 a.m.: 00-9: 10, or 11 months, 9 days-11 months, 10 days, etc.
Optionally, the sending log and the receiving log in the first preset time period are obtained. The transmission log includes one or more transmission records, and the transmission records include the identifier of the uplink data block transmitted to the block chain node, the identifiers of all block chain nodes in the block chain system, the transmission time of the uplink data block, and the like. The receiving log includes one or more receiving records, where the receiving records include an identifier of a uplink data block received by a first block link point, an identifier of a first block link node that received the uplink data block, and a receiving time when the first block link point received the uplink data block. The information items contained in the sending record and the receiving record, i.e. the transmission parameters of the uplink data block. Alternatively, the uplink data block may be sent in a broadcast to all blockchain nodes in the blockchain system. For a detailed description of the sending record and the receiving record, reference is made to the above description, which is not repeated herein. Since a block chaining point may require a certain time interval to receive an uplink data block after the uplink data block is transmitted. Therefore, the sending log and the receiving log are acquired in the same time period, which may cause the receiving log received by the block chain node to be incomplete, thereby reducing the accuracy of determining the abnormal block chain node. In order to solve the problem, the present application further provides a possible implementation manner, in which a transmission log of a transmission record of an uplink data block in a first preset time period is obtained, and a reception log of a block chain node in a second preset time period is obtained. The starting time of the first preset time period is the same as the starting time of the second preset time period, the ending time of the first preset time period is different from the ending time of the second preset time period, and the time length difference between the first preset time period and the second preset time period is the first preset time length or is larger than the first preset time length. The first preset time length is used for determining a corresponding relationship between the sending record and the receiving record, and specific description about the first preset time length may be referred to the following, which is not described herein. Illustratively, the first predetermined time period is 9 a.m.: 00-9: 10, the first preset time period is 1min (minute), and the second preset time period is 9 a.m.: 00-9: 11.
optionally, there is a corresponding relationship between the sending record in the sending log and the receiving record in the receiving log. Specifically, in the sending record and the receiving record, the identifiers of the uplink data blocks are the same, the identifiers of the block chain nodes receiving the uplink data blocks are the same, the sending time in the sending record is located after the receiving time in the receiving record, and the difference between the sending time in the sending record and the receiving time in the receiving record does not exceed a first preset time length. Then the transmission record corresponds to the reception record. The first preset time period may be preset or may be determined by the user. If the uplink data block is sent to the block link node and the abnormal condition that the data cannot be received does not occur at the block link node, the block link node receives the uplink data block and generates corresponding received data, such as receiving time, receiving state and the like, within a first preset time length.
Based on the same reason, when directly acquiring the transmission parameters of the uplink data block, the block link point monitoring apparatus may acquire the identifier of the uplink data block, the transmission time of the uplink data block, and the identifier of at least one block link node in the transmission parameters of the uplink data block in a first preset time period, and acquire the identifier of the first block link node that receives the uplink data block and the reception time of the uplink data block that is received by the first block link node in a second preset time period.
S202, determining an operation index of the block chain system according to the transmission parameters of the uplink data block.
Optionally, the operation index of the block chain system includes at least one of a uplink success rate and an average transmission duration, and for the introduction of the uplink success rate and the average transmission duration, reference may be made to the following description, which is not repeated herein.
In one possible implementation, the operation index of the blockchain system is the uplink success rate, i.e. the ratio of the number of normal blockchain nodes to the total number of blockchain nodes in the blockchain system. The normal blockchain node is a first blockchain node meeting a first preset condition, the first blockchain node is a blockchain node capable of receiving an uplink data block in a blockchain system, and other blockchain nodes except the normal blockchain node in the blockchain system are abnormal blockchain nodes.
For example, taking 10 blockchain nodes in the blockchain system as an example, the blockchain node monitoring apparatus sends the uplink data block a to all blockchain nodes in the blockchain system, and 6 blockchain nodes in the 10 blockchain nodes receive the uplink data block a. Then the number of normal blockchain nodes in the blockchain system is 6, the number of abnormal blockchain nodes is 4, and the uplink success rate of the blockchain system is 60%.
In another possible implementation manner, the first block link points of the received uplink data block are screened, and the first block link node meeting the first preset condition is determined to be a normal block link node. The first preset condition is that the difference between the receiving time of the uplink data block received by the first block link point and the sending time of the uplink data block does not exceed a first preset time length. Specifically, if the difference between the receiving time of the uplink data block received by the first block link node and the sending time of the uplink data block exceeds a first preset time length, it is determined that the first block link node is an abnormal block link node, and data transmission between the abnormal block link node and the device sending the uplink data block is slow. Otherwise, if the difference between the receiving time of the uplink data block received by the first block link node and the sending time of the uplink data block does not exceed the first preset time length, the first block link node is determined to be a normal block link node.
For example, taking 10 blockchain nodes in the blockchain system as an example, the blockchain node monitoring apparatus sends the uplink data block a to all blockchain nodes in the blockchain system, and 6 blockchain nodes in the 10 blockchain nodes receive the uplink data block a. Among the 6 blockchain nodes, there are 3 blockchain nodes that have a difference between the receiving time of the uplink data block a and the sending time of the uplink data block a exceeding a first preset time duration. Then, in the blockchain system, there are 3 normal blockchain nodes and 7 abnormal blockchain nodes, and the uplink success rate of the blockchain system is 30%.
In another possible implementation, the transmission parameters of the uplink data block further include a reception duration of the uplink data block received by the first blockchain node, i.e., a duration taken by the first blockchain node from the start of receiving the uplink data block to the completion of the reception of the uplink data block. At this time, the first block link point may be screened by using the receiving duration of the uplink data block received by the first block link point. Or after the first block link point is screened for one time by using the difference between the receiving time of the uplink data block received by the first block link point and the sending time of the uplink data block and the first preset time length, the first block link point is further screened by using the receiving time length of the uplink data block received by the first block link point. If the receiving time length exceeds a third preset time length, the first block chain node is an abnormal block chain node, otherwise, the first block chain node is a normal block chain node.
Illustratively, in the above example, after the first block link points are screened by using the difference between the receiving time of the first block link point for receiving the uplink data block and the sending time of the uplink data block and the first preset time length, 3 normal block link nodes are obtained. The receiving duration of the uplink data block a received by the 3 normal blockchain nodes can be reused to further screen the 3 normal blockchain nodes. If there are 1 of the 3 normal blockchain nodes, the receiving duration of the uplink data block a received by the blockchain node exceeds a third preset duration. Then, in the blockchain system, there are 2 normal blockchain nodes and 8 abnormal blockchain nodes, and the uplink success rate of the blockchain system is 20%.
Illustratively, the block link points are at 9: 10 start receiving uplink data block, 9: 11 receives the complete uplink data block, the duration of uplink data block reception by the block node is 1 min. And if the third preset time length is 0.5min, the block chain link point is an abnormal block chain node.
Or, in a possible implementation manner, the above 3 implementation manners are used to determine the abnormal blockchain node and the normal blockchain node, and a union set or an intersection set is taken for the normal blockchain nodes obtained in the 3 implementation manners, or the number of the normal blockchain nodes obtained in the 3 implementation manners is averaged, and then the number of the blockchain nodes in the union set or the intersection set is determined, or the average value is the number of the normal blockchain nodes in the blockchain system, and finally the uplink success rate of the blockchain system is determined.
In another possible implementation, the operation index of the blockchain system is an average transmission duration, i.e., an average value of differences between a receiving time of a first blockchain node in the blockchain system for receiving an uplink data block and a transmitting time of the uplink data block. Specifically, a plurality of transmission durations, that is, differences between the receiving time of the uplink data block received by the first block link node in the block chain system and the transmitting time of the uplink data block, are determined, and then the average transmission duration is obtained by averaging the plurality of transmission durations.
In another possible implementation, the operation index of the block chain system includes uplink success rate and average transmission duration. For determining the uplink success rate and the average transmission duration, reference may be made to the above description, and details are not repeated here.
In another possible implementation manner, the transmission parameters of the uplink data block further include a reception duration for the first blockchain node to receive the uplink data block. In this case, the operation index of the blockchain may further include an average received duration, i.e. an average value of all received durations in the blockchain system.
In another possible implementation manner, the transmission parameters of the uplink data block further include a reception duration for the first blockchain node to receive the uplink data block. In this case, the operation index of the block chain may further include at least one of an uplink success rate, an average transmission duration, an average reception duration, and the like.
It should be noted that, if there are multiple uplink data blocks acquired by the block link point in the block chain system within the first preset time period, the operation indexes of the block chain system may be obtained for each uplink data block, and the same operation index is averaged, and the obtained average value is used as the operation index of the block chain system.
In a possible implementation manner, after step S201, the bmc apparatus may further configure a monitoring rule, wherein the monitoring rule may be used to determine an operation index of the bmc system and determine whether the bmc system is abnormal according to the transmission parameters of the uplink data block. Optionally, the monitoring rule may be an algorithm for determining an operation index of the blockchain system, a second preset condition corresponding to the operation index of the blockchain system, and the like.
And S203, if the operation index meets a second preset condition, determining that the block chain system is abnormal.
Optionally, in step S202, the operation indicator of the block chain system is the uplink success rate. Then, if the uplink success rate of the blockchain system exceeds a preset success rate threshold, the blockchain system is normal. If the uplink success rate of the blockchain system does not exceed the preset success rate threshold, the blockchain system is abnormal. The preset success rate threshold may be preset or may be determined by the user.
Optionally, in step S202, the operation index of the blockchain system is the average transmission duration. Then, if the average transmission duration of the blockchain system exceeds a second preset duration, the blockchain system is abnormal. If the average transmission time of the block chain system does not exceed the second preset time, the block chain system is normal. The second preset time period may be the same as or different from the first preset time period. The second preset time period may be preset or may be determined by the user.
Optionally, in step S202, if the receiving record further includes a receiving duration, the operation index of the blockchain system may be an average receiving duration. Then, if the average receiving duration of the blockchain system exceeds the preset receiving duration, the blockchain system is abnormal. If the average receiving duration of the blockchain system does not exceed the average receiving duration, the blockchain system is normal.
Optionally, the operation index of the block chain system includes one or more of an uplink success rate, an average transmission duration, an average reception duration, and the like. And if the block chain system is determined to be abnormal according to one or more of the operation indexes, determining that the block chain system is abnormal. And if the blockchain system is determined to be normal according to all the items in the operation indexes, determining that the blockchain system is normal.
It should be noted that, if there are multiple uplink data blocks acquired by the block link point in the block chain system within the first preset time period, the operation indexes of the block chain system may be obtained for each uplink data block, and the average value of the same operation indexes is taken as the operation index of the block chain system. Then, in the same manner as described above in step S203, it is determined whether the blockchain system is abnormal. Or, after the operation indexes of the block chain system are respectively obtained for each uplink data block, the block chain system is determined for multiple times in the same manner according to the operation indexes. In the multiple determinations, if the determination result indicates that the number of times of the block chain system abnormality exceeds a preset number of times, the block chain system is abnormal.
Optionally, after step S203, the block link point monitoring device may send alarm information to the alarm system according to the abnormality of the block link point, where the alarm information may include an identifier of an abnormal block link node, an abnormal operation index of the block link system, and the like. The alarm system can maintain the block chain system and the block chain link points in the block chain system according to the received alarm information. Optionally, after receiving the alarm information, the alarm system performs sound alarm or short message alarm and other modes to remind the user to maintain the block chain system and the block chain link points in the block chain system.
An embodiment of the present application provides a block link point monitoring method, which obtains transmission parameters of an uplink data block, where the transmission parameters include an identifier of the uplink data block, a sending time of the uplink data block, an identifier of at least one block link node, an identifier of a first block link node, and a receiving time when the first block link point receives the uplink data block. The uplink data block is a data block generated according to uplink data sent to a blockchain node, and the first blockchain node is a blockchain node of at least one blockchain node receiving the uplink data block. Then, according to the transmission parameters of the uplink data block, determining an operation index of the block chain system, wherein the operation index includes at least one item of uplink success rate and average transmission duration. The uplink success rate is the number of normal block chain nodes, that is, the ratio of the number of first block chain nodes meeting a first preset condition to the total number of block chain nodes, and the average transmission duration is the average value of the difference between the transmission time and the reception time of the uplink data block. And finally, if the operation index meets a second preset condition, determining that the block chain system is abnormal. The method and the device can analyze the transmission parameters of the uplink data block to obtain the operation index of the block chain system, so that the operation state of the block chain system can be intuitively and conveniently embodied through the operation index, and the method and the device have important theoretical significance and practical application value.
The embodiment of the application also provides a block link point monitoring device which can be used for executing the block link point monitoring method. As shown in fig. 3, the block link point monitoring apparatus includes an obtaining unit 301 and a determining unit 302:
an obtaining unit 301 is configured to obtain transmission parameters of an uplink data block. The transmission parameters of the uplink data block include an identifier of the uplink data block, a transmission time of the uplink data block, an identifier of at least one block chain node, an identifier of a first block chain node, and a reception time when the first block chain node receives the uplink data block. The uplink data block is a data block generated according to uplink data sent to a blockchain node, and the first blockchain node is a blockchain node of the at least one blockchain node which receives the uplink data block.
A determining unit 302 is configured to determine an operation index of the blockchain system according to the transmission parameters of the uplink data block. The operation index of the block chain system includes at least one of a uplink success rate and an average transmission duration. The uplink success rate is the number of normal block chain nodes, that is, the ratio of the number of first block chain nodes meeting a first preset condition to the total number of block chain nodes, and the average transmission duration is the average value of the difference between the transmission time and the reception time of the uplink data block.
Optionally, the first preset condition is that a difference between a receiving time of the uplink data block received by the first block link node and a sending time of the block link node does not exceed a first preset time duration.
Optionally, the operation index of the block chain system is an average transmission duration, and the determining unit 302 is further configured to determine a plurality of transmission durations, and then average the plurality of transmission durations to obtain the average transmission duration. The transmission duration is a difference between a sending time of the uplink data block and a receiving time of the uplink data block received by the first block link point.
The determining unit 302 is further configured to determine that the blockchain system is abnormal if the operation index meets a second preset condition.
Specifically, the determining unit 302 is further configured to determine that the block chain system is abnormal if the uplink success rate does not exceed the preset success rate threshold and/or the average transmission duration exceeds a second preset duration.
An embodiment of the present application provides a block link point monitoring apparatus, which obtains transmission parameters of an uplink data block, where the transmission parameters include an identifier of the uplink data block, a sending time of the uplink data block, an identifier of at least one block link node, an identifier of a first block link node, and a receiving time when the first block link point receives the uplink data block. The uplink data block is a data block generated according to uplink data sent to a blockchain node, and the first blockchain node is a blockchain node of at least one blockchain node receiving the uplink data block. Then, according to the transmission parameters of the uplink data block, determining an operation index of the block chain system, wherein the operation index includes at least one item of uplink success rate and average transmission duration. The uplink success rate is the number of normal block chain nodes, that is, the ratio of the number of first block chain nodes meeting a first preset condition to the total number of block chain nodes, and the average transmission duration is the average value of the difference between the transmission time and the reception time of the uplink data block. And finally, if the operation index meets a second preset condition, determining that the block chain system is abnormal. The method and the device can analyze the transmission parameters of the uplink data block to obtain the operation index of the block chain system, so that the operation state of the block chain system can be intuitively and conveniently embodied through the operation index, and the method and the device have important theoretical significance and practical application value.
Referring to fig. 4, the present application further provides a block link point monitoring apparatus, which includes a memory 401, a processor 402, a communication interface 403 and a bus 404. Processor 402 is used for supervisory control of device actions and/or other processes for performing the techniques described herein. The communication interface 403 is used to support communication of the device with other network entities. The memory 401 is used to store program codes and data of the apparatus.
The processor 402 (or alternatively described as a controller) may implement or execute various illustrative logical blocks, unit modules, and circuits described in connection with the disclosure herein. The processor or controller may be a central processing unit, general purpose processor, digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, unit modules, and circuits described in connection with the disclosure herein. The processor 402 may also be a combination of computing functions, e.g., comprising one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
The communication interface 403 may be a transceiver circuit.
Memory 401 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The bus 404 may be an Extended Industry Standard Architecture (EISA) bus or the like. The bus 404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
For the specific working process of the server and the apparatus described above, reference may be made to the corresponding process in the following method embodiments, which is not described herein again.
The present embodiments provide a computer-readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by a computer, cause the computer to perform the block link point monitoring method described in steps S201-S203 of the above embodiments.
The embodiments of the present application further provide a computer program product containing instructions, which when executed on a computer, enable the computer to execute the method performed by the block chain node monitoring apparatus in steps S201 to S203 in the foregoing embodiments.
Through the description of the above embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system, 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 modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be 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 is implemented in the form of a software functional unit and may be stored in a computer readable storage medium when it is sold or used as a stand-alone product. Based on such understanding, the technical solutions of the embodiments of the present application, or portions thereof, which substantially contribute to the prior art, may be embodied in the form of a software product, where the computer software product is stored in a storage medium and includes several instructions for enabling a device (which may be a personal computer, a server, a network device, a single chip or a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application.

Claims (11)

1. A block chain node monitoring method is characterized in that the method is applied to a block chain system, wherein the block chain system comprises at least one block chain node and a block chain node monitoring device; the method comprises the following steps:
acquiring transmission parameters of an uplink data block, wherein the transmission parameters include an identifier of the uplink data block, a sending time of the uplink data block, an identifier of the at least one block chain node, an identifier of a first block chain node, and a receiving time when the first block chain node receives the uplink data block; the uplink data block is a data block generated according to uplink data sent to a block chain node; the first blockchain node is a blockchain link node of the at least one blockchain node, at which the uplink data block is received;
determining an operation index of the block chain system according to the transmission parameters of the uplink data block; the operation index comprises at least one of a chaining success rate and an average transmission time length, the chaining success rate is the ratio of the number of normal block chain nodes to the total number of the block chain nodes, and the normal block chain nodes are first block chain nodes meeting a first preset condition; the average transmission duration is an average value of a difference between the sending time and the receiving time of the uplink data block;
and if the operation index meets a second preset condition, determining that the block chain system is abnormal.
2. The method of claim 1, wherein the first predetermined condition is that a difference between a receiving time of the first block node receiving the uplink data block and a transmitting time of the uplink data block does not exceed a first predetermined duration.
3. The method according to claim 1, wherein the operation index of the blockchain system is an average transmission duration; the determining an operation index of the block chain system according to the transmission parameter of the uplink data block specifically further includes:
determining a plurality of transmission durations; the transmission duration is a difference value between the sending time of the uplink data block and the receiving time of the uplink data block received by the first block link point;
and averaging the plurality of transmission durations to obtain an average transmission duration.
4. A block link point monitoring method according to any one of claims 1 to 3, wherein the determining that the block link system is abnormal if the operation index satisfies a second preset condition specifically includes:
and if the uplink success rate does not exceed a preset success rate threshold and/or the average transmission time length exceeds a second preset time length, determining that the block chain system is abnormal.
5. A block chain node monitoring device is characterized in that the block chain node monitoring device is applied to a block chain system, wherein the block chain system comprises at least one block chain node and the block chain node monitoring device; the device comprises:
an obtaining unit, configured to obtain transmission parameters of an uplink data block, where the transmission parameters include an identifier of the uplink data block, a sending time of the uplink data block, an identifier of the at least one block link node, an identifier of a first block link node, and a receiving time when the first block link node receives the uplink data block; the uplink data block is a data block generated according to uplink data sent to a block chain node; the first blockchain node is a blockchain link node of the at least one blockchain node, at which the uplink data block is received;
a determining unit, configured to determine an operation indicator of the block chain system according to a transmission parameter of the uplink data block; the operation index comprises at least one of a chaining success rate and an average transmission time length, the chaining success rate is the ratio of the number of normal block chain nodes to the total number of the block chain nodes, and the normal block chain nodes are first block chain nodes meeting a first preset condition; the average transmission duration is an average value of a difference between the sending time and the receiving time of the uplink data block;
the determining unit is further configured to determine that the block chain system is abnormal if the operation index meets a second preset condition.
6. The apparatus of claim 5, wherein the first predetermined condition is that a difference between a receiving time of the first blockchain node receiving the uplink data block and a transmitting time of the blockchain node does not exceed a first predetermined duration.
7. The block link point monitoring device of claim 5, wherein the operation index of the block link system is an average transmission time length;
the determining unit is specifically configured to determine a plurality of transmission durations; the transmission duration is a difference value between the sending time of the uplink data block and the receiving time of the uplink data block received by the first block link point;
the determining unit is specifically further configured to average the multiple transmission durations to obtain an average transmission duration.
8. A block link point monitoring device according to any one of claims 5 to 7,
the determining unit is specifically configured to determine that the block chain system is abnormal if the uplink success rate does not exceed a preset success rate threshold and/or the average transmission duration exceeds a second preset duration.
9. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer, cause the computer to perform the block link point monitoring method of any of claims 1-4.
10. A computer program product comprising instructions which, when run on a computer, cause the computer to perform a block link point monitoring method according to any one of claims 1 to 4.
11. A block link point monitoring device, comprising: a processor, a memory, and a communication interface; wherein the communication interface is for communicating with other devices or a communication network, the memory is for storing one or more programs, the one or more programs including computer executable instructions which, when the apparatus is run, the processor executes the computer executable instructions stored by the memory to cause the apparatus to perform the block link point monitoring method according to any one of claims 1 to 4.
CN201911216139.9A 2019-12-02 2019-12-02 Block chain link point monitoring method and device and storage medium Active CN110958161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911216139.9A CN110958161B (en) 2019-12-02 2019-12-02 Block chain link point monitoring method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911216139.9A CN110958161B (en) 2019-12-02 2019-12-02 Block chain link point monitoring method and device and storage medium

Publications (2)

Publication Number Publication Date
CN110958161A true CN110958161A (en) 2020-04-03
CN110958161B CN110958161B (en) 2021-11-19

Family

ID=69979441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911216139.9A Active CN110958161B (en) 2019-12-02 2019-12-02 Block chain link point monitoring method and device and storage medium

Country Status (1)

Country Link
CN (1) CN110958161B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915325A (en) * 2020-06-24 2020-11-10 普华云创科技(北京)有限公司 Tracing method and system for block chain transaction information and computer readable storage medium
CN112184438A (en) * 2020-09-27 2021-01-05 北京金山云网络技术有限公司 Block chain transaction monitoring method and device and block chain link points
CN113469814A (en) * 2021-07-27 2021-10-01 中国银行股份有限公司 Method and device for determining transaction duration data
CN114422967A (en) * 2020-10-28 2022-04-29 中国联合网络通信集团有限公司 Short message processing method, device and equipment
CN115062274A (en) * 2022-08-17 2022-09-16 深圳市一航网络信息技术有限公司 Data monitoring processing method and device of associated block chain network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170286880A1 (en) * 2012-09-28 2017-10-05 Rex Wiig System and method of a requirement, compliance and resource management
CN109639521A (en) * 2018-12-05 2019-04-16 北京京东金融科技控股有限公司 Test method, device, equipment and the storage medium of block chain performance
CN110061889A (en) * 2019-04-01 2019-07-26 北京众享比特科技有限公司 Block chain performance test methods, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170286880A1 (en) * 2012-09-28 2017-10-05 Rex Wiig System and method of a requirement, compliance and resource management
CN109639521A (en) * 2018-12-05 2019-04-16 北京京东金融科技控股有限公司 Test method, device, equipment and the storage medium of block chain performance
CN110061889A (en) * 2019-04-01 2019-07-26 北京众享比特科技有限公司 Block chain performance test methods, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PEILIN ZHENG 等: "A Detailed and Real-Time Performance Monitoring Framework for Blockchain Systems", 《2018 IEEE/ACM 40TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN PRACTICE(ICSE-SEIP)》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111915325A (en) * 2020-06-24 2020-11-10 普华云创科技(北京)有限公司 Tracing method and system for block chain transaction information and computer readable storage medium
CN111915325B (en) * 2020-06-24 2024-04-26 云南花伍科技有限公司 Method, system and computer readable storage medium for tracing blockchain transaction information
CN112184438A (en) * 2020-09-27 2021-01-05 北京金山云网络技术有限公司 Block chain transaction monitoring method and device and block chain link points
CN114422967A (en) * 2020-10-28 2022-04-29 中国联合网络通信集团有限公司 Short message processing method, device and equipment
CN114422967B (en) * 2020-10-28 2023-06-02 中国联合网络通信集团有限公司 Short message processing method, device and equipment
CN113469814A (en) * 2021-07-27 2021-10-01 中国银行股份有限公司 Method and device for determining transaction duration data
CN115062274A (en) * 2022-08-17 2022-09-16 深圳市一航网络信息技术有限公司 Data monitoring processing method and device of associated block chain network

Also Published As

Publication number Publication date
CN110958161B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN110958161B (en) Block chain link point monitoring method and device and storage medium
CN106548402B (en) Resource transfer monitoring method and device
CN110830577B (en) Service request call tracking method and device, computer equipment and storage medium
CN112801666B (en) Monitoring management method, system, medium and equipment based on enterprise service bus
CN110213068B (en) Message middleware monitoring method and related equipment
CN108038130B (en) Automatic false user cleaning method, device, equipment and storage medium
CN112311617A (en) Configured data monitoring and alarming method and system
EP3258653A1 (en) Message pushing method and device
CN112737800B (en) Service node fault positioning method, call chain generating method and server
CN109218407B (en) Code management and control method based on log monitoring technology and terminal equipment
CN108418859B (en) Method and device for writing data
CN112835885B (en) Processing method, device and system for distributed form storage
CN107729213B (en) Background task monitoring method and device
US11930292B2 (en) Device state monitoring method and apparatus
CN111628903B (en) Monitoring method and monitoring system for transaction system running state
CN110333984B (en) Interface abnormality detection method, device, server and system
CN102986151A (en) Monitoring system and data transfer device and method thereof
CN109308219B (en) Task processing method and device and distributed computer system
CN113434604B (en) Time sequence database synchronization method, system, equipment and storage medium
CN112214437B (en) Storage device, communication method and device and computer readable storage medium
CN112668998B (en) Flow implementation method, device, system, electronic equipment and readable storage medium
CN111291127B (en) Data synchronization method, device, server and storage medium
CN114371980A (en) Call link performance monitoring method and device, computer equipment and storage medium
CN109508356B (en) Data abnormality early warning method, device, computer equipment and storage medium
CN109067620A (en) The monitoring method and device of gateway

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