[go: up one dir, main page]

CN111478829B - Stress testing method, device and system for blockchain network - Google Patents

Stress testing method, device and system for blockchain network Download PDF

Info

Publication number
CN111478829B
CN111478829B CN202010586356.3A CN202010586356A CN111478829B CN 111478829 B CN111478829 B CN 111478829B CN 202010586356 A CN202010586356 A CN 202010586356A CN 111478829 B CN111478829 B CN 111478829B
Authority
CN
China
Prior art keywords
transaction
blockchain
service
business
pressure measurement
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.)
Active
Application number
CN202010586356.3A
Other languages
Chinese (zh)
Other versions
CN111478829A (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.)
Ant Blockchain Technology Shanghai Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010586356.3A priority Critical patent/CN111478829B/en
Priority to CN202011416443.0A priority patent/CN112486830B/en
Publication of CN111478829A publication Critical patent/CN111478829A/en
Application granted granted Critical
Publication of CN111478829B publication Critical patent/CN111478829B/en
Priority to PCT/CN2021/100605 priority patent/WO2021259131A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

One or more embodiments of the present specification provide a method, an apparatus, and a system for testing a pressure of a blockchain network; the method is applied to a service blockchain node in a service blockchain network in a production state, and can comprise the following steps: identifying the transaction type of the blockchain transaction initiated by the service terminal; forwarding the pressure measurement transaction to a pressure measurement blockchain network which is equivalent to the service blockchain network under the condition that the blockchain transaction is the pressure measurement transaction; and executing the business transaction under the condition that the blockchain transaction is a business transaction.

Description

区块链网络的压力测试方法及装置、系统Stress testing method, device and system for blockchain network

技术领域technical field

本说明书一个或多个实施例涉及区块链技术领域,尤其涉及一种区块链网络的压力测试方法及装置、系统。One or more embodiments of this specification relate to the field of blockchain technology, and in particular, to a method, device, and system for stress testing of a blockchain network.

背景技术Background technique

区块链技术(也被称之为,分布式账本技术)是一种去中心化的分布式数据库技术,具有去中心化、公开透明、不可篡改、可信任等多种特点,适用于诸多对数据可靠性具有高需求的应用场景中。Blockchain technology (also known as distributed ledger technology) is a decentralized distributed database technology with many characteristics such as decentralization, openness, transparency, non-tampering, and trustworthiness. In application scenarios with high demands on data reliability.

通过向区块链网络导入压力测试流量,可以获知区块链网络的负载能力、数据吞吐量上限等各项性能指标,从而据此维护区块链网络的正常运行,或者针对区块链网络进行优化。By importing stress test traffic into the blockchain network, various performance indicators such as the load capacity and the upper limit of data throughput of the blockchain network can be obtained, so as to maintain the normal operation of the blockchain network, or conduct the test for the blockchain network. optimization.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本说明书一个或多个实施例提供一种区块链网络的压力测试方法及装置、系统。In view of this, one or more embodiments of this specification provide a stress testing method, device, and system for a blockchain network.

为实现上述目的,本说明书一个或多个实施例提供技术方案如下:To achieve the above purpose, one or more embodiments of this specification provide the following technical solutions:

根据本说明书一个或多个实施例的第一方面,提出了一种区块链网络的压力测试系统,包括:According to the first aspect of one or more embodiments of this specification, a stress testing system for a blockchain network is proposed, including:

业务端,向处于生产状态的业务区块链网络发起区块链交易;On the business side, initiate blockchain transactions to the business blockchain network in the production state;

业务区块链网络,所述业务区块链网络中的业务区块链节点在所述区块链交易为压测交易的情况下,向与所述业务区块链网络对等的压测区块链网络转发所述压测交易,在所述区块链交易为业务交易的情况下,执行所述业务交易;A business blockchain network, in which a business blockchain node in the business blockchain network sends a stress test area equivalent to the business blockchain network when the blockchain transaction is a stress test transaction The blockchain network forwards the pressure measurement transaction, and in the case that the blockchain transaction is a business transaction, executes the business transaction;

压测区块链网络,所述压测区块链网络中的压测区块链节点执行所述压测交易。A stress-testing blockchain network is performed, and a stress-testing blockchain node in the stress-testing blockchain network executes the stress-testing transaction.

根据本说明书一个或多个实施例的第二方面,提出了一种区块链网络的压力测试方法,应用于处于生产状态的业务区块链网络中的业务区块链节点,所述方法包括:According to a second aspect of one or more embodiments of the present specification, a stress testing method for a blockchain network is proposed, which is applied to a business blockchain node in a business blockchain network in a production state, the method comprising: :

识别业务端发起的区块链交易的交易类型;Identify the transaction type of the blockchain transaction initiated by the business side;

在所述区块链交易为压测交易的情况下,向与所述业务区块链网络对等的压测区块链网络转发所述压测交易;If the blockchain transaction is a stress testing transaction, forward the stress testing transaction to a stress testing blockchain network equivalent to the business blockchain network;

在所述区块链交易为业务交易的情况下,执行所述业务交易。If the blockchain transaction is a business transaction, the business transaction is executed.

根据本说明书一个或多个实施例的第三方面,提出了一种区块链网络的压力测试方法,应用于与处于生产状态的业务区块链网络对等的压测区块链网络中的压测区块链节点,所述方法包括:According to a third aspect of one or more embodiments of this specification, a stress testing method for a blockchain network is proposed, which is applied to a stress testing blockchain network equivalent to a business blockchain network in a production state. For stress testing blockchain nodes, the method includes:

接收所述业务区块链网络中的业务区块链节点转发的压测交易,所述压测交易由所述业务区块链节点在业务端发起的区块链交易为压测交易的情况下转发;Receive a stress test transaction forwarded by a business block chain node in the business block chain network, and the stress test transaction initiated by the business block chain node at the service end is a stress test transaction. Forward;

执行所述压测交易;其中,在所述区块链交易为业务交易的情况下,所述业务交易被所述业务区块链节点执行。Execute the pressure measurement transaction; wherein, in the case that the blockchain transaction is a business transaction, the business transaction is executed by the business blockchain node.

根据本说明书一个或多个实施例的第四方面,提出了一种区块链网络的压力测试装置,应用于处于生产状态的业务区块链网络中的业务区块链节点,所述装置包括:According to a fourth aspect of one or more embodiments of this specification, a stress testing device for a blockchain network is proposed, which is applied to a business blockchain node in a business blockchain network in a production state, the device comprising: :

识别单元,识别业务端发起的区块链交易的交易类型;The identification unit identifies the transaction type of the blockchain transaction initiated by the business end;

转发单元,在所述区块链交易为压测交易的情况下,向与所述业务区块链网络对等的压测区块链网络转发所述压测交易;A forwarding unit, in the case that the blockchain transaction is a stress testing transaction, forwarding the stress testing transaction to a stress testing blockchain network equivalent to the business blockchain network;

执行单元,在所述区块链交易为业务交易的情况下,执行所述业务交易。The execution unit executes the business transaction if the blockchain transaction is a business transaction.

根据本说明书一个或多个实施例的第五方面,提出了一种区块链网络的压力测试装置,应用于与处于生产状态的业务区块链网络对等的压测区块链网络中的压测区块链节点,所述装置包括:According to a fifth aspect of one or more embodiments of the present specification, a stress testing device for a blockchain network is proposed, which is applied to a stress testing blockchain network equivalent to a business blockchain network in a production state. For stress testing blockchain nodes, the device includes:

接收单元,接收所述业务区块链网络中的业务区块链节点转发的压测交易,所述压测交易由所述业务区块链节点在业务端发起的区块链交易为压测交易的情况下转发;A receiving unit that receives the stress testing transaction forwarded by the business blockchain node in the business blockchain network, where the stress testing transaction is a stress testing transaction initiated by the business blockchain node at the service end forwarded in the event of

执行单元,执行所述压测交易;其中,在所述区块链交易为业务交易的情况下,所述业务交易被所述业务区块链节点执行。The execution unit executes the pressure measurement transaction; wherein, in the case that the blockchain transaction is a business transaction, the business transaction is executed by the business blockchain node.

根据本说明书一个或多个实施例的第六方面,提出了一种电子设备,包括:According to a sixth aspect of one or more embodiments of the present specification, an electronic device is proposed, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器通过运行所述可执行指令以实现如上述实施例中任一所述的方法。Wherein, the processor executes the executable instructions to implement the method described in any one of the foregoing embodiments.

根据本说明书一个或多个实施例的第七方面,提出了一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如上述实施例中任一所述方法的步骤。According to a seventh aspect of one or more embodiments of the present specification, a computer-readable storage medium is provided, which has computer instructions stored thereon, and when the instructions are executed by a processor, implement the method according to any one of the foregoing embodiments. step.

附图说明Description of drawings

图1是一示例性实施例提供的一种网络架构的示意图。FIG. 1 is a schematic diagram of a network architecture provided by an exemplary embodiment.

图2是一示例性实施例提供的一种区块链网络的压力测试方法的流程图。FIG. 2 is a flowchart of a method for stress testing a blockchain network provided by an exemplary embodiment.

图3是一示例性实施例提供的一种区块链网络的压力测试系统的示意图。FIG. 3 is a schematic diagram of a stress testing system for a blockchain network provided by an exemplary embodiment.

图4是一示例性实施例提供的另一种区块链网络的压力测试系统的示意图。FIG. 4 is a schematic diagram of another stress testing system of a blockchain network provided by an exemplary embodiment.

图5是一示例性实施例提供的一种设备的结构示意图。FIG. 5 is a schematic structural diagram of a device provided by an exemplary embodiment.

图6是一示例性实施例提供的一种区块链网络的压力测试装置的框图。FIG. 6 is a block diagram of a stress testing apparatus for a blockchain network provided by an exemplary embodiment.

图7是一示例性实施例提供的另一种区块链网络的压力测试装置的框图。FIG. 7 is a block diagram of another stress testing apparatus for a blockchain network provided by an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with one or more embodiments of this specification. Rather, they are merely examples of apparatus and methods consistent with some aspects of one or more embodiments of this specification, as recited in the appended claims.

需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.

图1是一示例性实施例提供的一种网络架构的示意图。如图1所示,业务端11产生处理请求后,将该处理请求发送至区块链网关12,由区块链网关12针对该处理请求创建区块链交易,并将区块链交易提交至区块链网络13,使得区块链网络13上的区块链节点执行该区块链交易。当针对区块链网络13存在压力测试(简称“压测”)需求时,业务端11可以生成压测请求类型的处理请求(包含用于压力测试的数据),而区块链网关12可以针对这些压测请求创建相应的区块链交易,并由区块链网络13执行这些区块链交易以对区块链网络13进行压力测试;以及,区块链网关12将区块链网络13执行区块链交易而产生的交易回执反馈至业务端11,以由业务端11对交易回执进行分析后,确定区块链网络13的压测结果。而在生产环境下,业务端11、区块链网关12和区块链网络13之间的交互过程,与上述的压测过程类似:业务端11生成业务请求类型的处理请求,区块链网关12针对这些业务请求创建相应的区块链交易,并由区块链网络13执行这些区块链交易;以及,区块链网关12将区块链网络13执行区块链交易而产生的交易回执反馈至业务端11。FIG. 1 is a schematic diagram of a network architecture provided by an exemplary embodiment. As shown in FIG. 1 , after the service terminal 11 generates a processing request, it sends the processing request to the blockchain gateway 12, and the blockchain gateway 12 creates a blockchain transaction for the processing request, and submits the blockchain transaction to The blockchain network 13 enables the blockchain nodes on the blockchain network 13 to execute the blockchain transaction. When there is a need for stress testing (referred to as “stress testing”) for the blockchain network 13, the service end 11 can generate a processing request of the stress testing request type (including data for stress testing), and the blockchain gateway 12 can These stress testing requests create corresponding blockchain transactions, and these blockchain transactions are executed by the blockchain network 13 to stress test the blockchain network 13; and, the blockchain gateway 12 executes the blockchain network 13 The transaction receipt generated by the blockchain transaction is fed back to the business end 11, so that after the business end 11 analyzes the transaction receipt, the pressure test result of the blockchain network 13 is determined. In the production environment, the interaction process between the business end 11, the blockchain gateway 12 and the blockchain network 13 is similar to the above-mentioned stress measurement process: the business end 11 generates a processing request of the business request type, and the blockchain gateway 12 creates corresponding blockchain transactions for these business requests, and executes these blockchain transactions by the blockchain network 13; and, the blockchain gateway 12 sends the transaction receipts generated by the blockchain network 13 to execute the blockchain transactions Feedback to the service end 11 .

在全链路压测场景下,涉及到生产环境中的压力测试。为了避免上述的压测请求与业务请求之间产生相互干扰,业务端11可以在业务请求中添加压测标签以区分于业务请求;当然,也可以在业务请求中添加业务标签以区分于压测请求。但是,区块链网关12在创建区块链交易时,由于需要遵守现有的交易格式等相关规定,因而无法针对不同处理请求对应的区块链交易予以区分,即无法将上述的压测标签或业务标签等特征标签带入到区块链网络13中,造成区块链网络13产生的交易回执同样无法携带上述的特征标签,使得业务端11无法有效区分交易回执的来源,无法据此准确获知区块链网络13的压测结果。In the full-link stress testing scenario, it involves stress testing in the production environment. In order to avoid mutual interference between the above-mentioned stress test request and service request, the service terminal 11 can add a stress test label to the service request to distinguish it from the service request; of course, it can also add a service label to the service request to distinguish it from the stress test ask. However, when the blockchain gateway 12 creates a blockchain transaction, since it needs to abide by the relevant regulations such as the existing transaction format, it cannot distinguish the blockchain transactions corresponding to different processing requests, that is, the above pressure measurement label cannot be used. or business tags and other characteristic tags are brought into the blockchain network 13, so that the transaction receipts generated by the blockchain network 13 cannot carry the above-mentioned characteristic tags, so that the business end 11 cannot effectively distinguish the source of the transaction receipts, and cannot be accurate accordingly. Obtain the pressure test results of the blockchain network 13.

下面结合实施例对本说明书的压力测试方案进行描述。The stress testing scheme of this specification will be described below with reference to the embodiments.

在本说明书的区块链网络的压力测试系统中,包括业务端、业务区块链网络和压测区块链网络。其中,业务端向处于生产状态的业务区块链网络发起区块链交易;业务区块链网络中的业务区块链节点在该区块链交易为压测交易的情况下,向与业务区块链网络对等的压测区块链网络转发该压测交易,在区块链交易为业务交易的情况下,执行该业务交易;压测区块链网络中的压测区块链节点执行业务区块链节点转发的压测交易。The stress testing system of the blockchain network in this specification includes the business end, the business blockchain network and the stress testing blockchain network. Among them, the business end initiates a blockchain transaction to the business blockchain network in the production state; when the business blockchain node in the business blockchain network is a stress test transaction, it sends a transaction to the business area. The peer-to-peer stress testing blockchain network forwards the stress testing transaction, and executes the business transaction if the blockchain transaction is a business transaction; the stress testing blockchain node in the stress testing blockchain network executes The stress test transaction forwarded by the business blockchain node.

下面对区块链网络的压力测试系统中各方执行的操作进行详细说明。The operations performed by all parties in the stress testing system of the blockchain network are described in detail below.

请参见图2,图2是一示例性实施例提供的一种区块链网络的压力测试方法的流程图。如图2所示,该方法应用于处于生产状态的业务区块链网络中的业务区块链节点,可以包括以下步骤:Please refer to FIG. 2, which is a flowchart of a method for stress testing a blockchain network provided by an exemplary embodiment. As shown in Figure 2, the method is applied to a business blockchain node in a business blockchain network in a production state, and may include the following steps:

步骤202,识别业务端发起的区块链交易的交易类型。Step 202, identifying the transaction type of the blockchain transaction initiated by the service end.

在本实施例中,区块链客户端用于创建区块链交易,并向业务区块链网络提交创建的区块链交易。因此,业务端可通过区块链客户端向业务区块链网络发起区块链交易。In this embodiment, the blockchain client is used to create a blockchain transaction and submit the created blockchain transaction to the business blockchain network. Therefore, the business end can initiate blockchain transactions to the business blockchain network through the blockchain client.

在一种情况下,区块链客户端可部署于业务端上,由业务端通过区块链客户端直接与业务区块链网络进行交互,创建相应的区块链交易提交至业务区块链网络来满足实际需求。当针对业务区块链网络存在压测需求时,业务端可通过区块链客户端创建压测类型的区块链交易(即压测交易,包含用于压力测试的数据),当针对业务区块链网络存在业务需求时,业务端可通过区块链客户端创建业务类型的区块链交易(即业务交易,包含用于实现业务的数据)。In one case, the blockchain client can be deployed on the business end, and the business end directly interacts with the business blockchain network through the blockchain client to create corresponding blockchain transactions and submit them to the business blockchain network to meet actual needs. When there is a stress test requirement for the business blockchain network, the business side can create a stress test type blockchain transaction (ie, stress test transaction, including data used for stress test) through the blockchain client. When the blockchain network has business requirements, the business end can create business-type blockchain transactions (that is, business transactions, including data used to implement the business) through the blockchain client.

作为一示例性实施例,可通过在区块链交易中添加类型标识的方式来对压测交易和业务交易进行区分。比如,可在压测交易中添加第一类型标识,在业务交易中添加第二类型标识。那么,业务区块链网络中的业务区块链节点在接收到业务端提交的区块链交易后,可读取接收到的区块链交易包含的类型标识。在该类型标识为第一类型标识的情况下,将接收到的区块链交易判定为压测交易,在该类型标识为第二类型标识的情况下,将接收到的区块链交易判定为业务交易。As an exemplary embodiment, a stress test transaction and a business transaction can be distinguished by adding a type identifier to the blockchain transaction. For example, the first type identifier can be added to the stress test transaction, and the second type identifier can be added to the business transaction. Then, after receiving the blockchain transaction submitted by the business end, the business blockchain node in the business blockchain network can read the type identifier contained in the received blockchain transaction. In the case where the type identifier is the first type identifier, the received blockchain transaction is determined as a stress test transaction, and in the case where the type identifier is the second type identifier, the received blockchain transaction is determined as business transaction.

相应的,在执行压测交易生成第一交易回执时,可在第一交易回执中添加第一类型标识,以用于表明第一交易回执与压测交易相对应。类似的,在执行业务交易生成第二交易回执时,可在第二交易回执中添加第二类型标识,以用于表明第二交易回执与业务交易相对应。也即,对应于压测交易的第一交易回执中包含第一类型标识,对应于业务交易的第二交易回执中包含第二类型标识。那么,业务端在获取到返回的交易回执后,可根据交易回执中的类型标识来识别交易回执的类型,进而将第一交易回执存储至压测数据库,将第二交易回执存储至业务数据库,便于后续进行分析。可见,通过上述改进创建区块链交易的方式,使得压测标签和业务标签等特征标签可带入到区块链网络中,从而实现压测属性在区块链网络中的传递。Correspondingly, when the stress test transaction is executed to generate the first transaction receipt, a first type identifier may be added to the first transaction receipt to indicate that the first transaction receipt corresponds to the stress test transaction. Similarly, when the second transaction receipt is generated by executing the business transaction, a second type identifier may be added to the second transaction receipt to indicate that the second transaction receipt corresponds to the business transaction. That is, the first transaction receipt corresponding to the stress test transaction contains the first type identifier, and the second transaction receipt corresponding to the business transaction contains the second type identifier. Then, after obtaining the returned transaction receipt, the business end can identify the type of the transaction receipt according to the type identifier in the transaction receipt, and then store the first transaction receipt in the stress test database, and store the second transaction receipt in the business database. facilitate subsequent analysis. It can be seen that through the above improvements in the way of creating blockchain transactions, feature tags such as pressure measurement labels and business labels can be brought into the blockchain network, thereby realizing the transmission of pressure measurement attributes in the blockchain network.

而对于添加类型标识的方式,在一种情况下,可在区块链交易中添加type字段(或者其他任意字段),用于标记区块链交易为业务交易或压测交易。比如,当任一区块链交易type字段的取值为第一取值时,表明该区块链交易属于业务交易,当任一区块链交易type字段的取值为第二取值(区别于第一取值)时,表明该区块链交易属于压测交易。相应地,可在交易回执中也添加type字段,用于标记该交易回执由执行业务交易而生成还是由执行压测交易而生成,那么业务端便可在获取交易回执后,按照上述识别type字段取值的方式来识别交易回执的类型,进而进行差异化处理。在另一种情况下,还可复用区块链交易和交易回执中的已有字段,在已有字段中添加类型标识。比如,复用区块链交易中的“reserved字段”来表明区块链交易的交易类型;例如,可在“reserved字段”中添加业务标签,使得区块链网络上的区块链节点可以将包含业务标签的区块链交易识别为业务交易,而将未包含业务标签的区块链交易识别为压测交易。或者,可在“reserved字段”中添加压测标签,使得区块链节点可将包含压测标签的区块链交易识别为压测交易,而将未包含压测标签的区块链交易识别为业务交易。或者,还可同时在“reserved字段”中添加业务标签和压测标签,使得区块链节点可将包含业务标签的区块链交易识别为业务交易,将包含压测标签的区块链交易识别为压测交易。需要说明的是,针对在交易回执中添加类型标识的方式与上述类似,在此不再赘述。As for the method of adding type identification, in one case, a type field (or any other field) can be added to the blockchain transaction to mark the blockchain transaction as a business transaction or a stress measurement transaction. For example, when the value of the type field of any blockchain transaction is the first value, it indicates that the blockchain transaction is a business transaction, and when the value of the type field of any blockchain transaction is the second value (the difference is When the value is the first value), it indicates that the blockchain transaction is a stress test transaction. Correspondingly, the type field can also be added to the transaction receipt to mark whether the transaction receipt is generated by executing a business transaction or by executing a stress test transaction, then the business end can identify the type field according to the above after obtaining the transaction receipt. The method of taking the value to identify the type of transaction receipt, and then carry out differentiated processing. In another case, existing fields in blockchain transactions and transaction receipts can also be reused, and type identifiers can be added to the existing fields. For example, the "reserved field" in the blockchain transaction is reused to indicate the transaction type of the blockchain transaction; for example, a business tag can be added to the "reserved field", so that the blockchain nodes on the blockchain network can A blockchain transaction that includes a business tag is identified as a business transaction, while a blockchain transaction that does not include a business tag is identified as a stress test transaction. Alternatively, a stress test tag can be added to the "reserved field", so that the blockchain node can identify the blockchain transaction that contains the stress test tag as a stress test transaction, and the blockchain transaction that does not contain the stress test tag is recognized as business transaction. Alternatively, a business tag and a stress measurement tag can be added to the "reserved field" at the same time, so that the blockchain node can identify the blockchain transaction containing the business tag as a business transaction, and identify the blockchain transaction containing the stress measurement tag. For the stress test transaction. It should be noted that, the method of adding the type identifier to the transaction receipt is similar to the above, and will not be repeated here.

在另一种情况下,区块链客户端部署于业务区块链网络中的业务区块链节点上。比如,业务区块链网络中的节点设备上部署有两套逻辑代码。其中,第一套逻辑代码对应于区块链客户端,节点设备通过运行第一套逻辑代码以使得链下的业务端可通过该区块链客户端与业务区块链网络进行数据交互。第二套逻辑代码对应于业务区块链网络(即业务区块链网络的链代码),节点设备通过运行第二套逻辑代码来作为业务区块链网络中的业务区块链节点。In another case, the blockchain client is deployed on a business blockchain node in a business blockchain network. For example, two sets of logic codes are deployed on node devices in a business blockchain network. The first set of logic codes corresponds to the blockchain client, and the node device runs the first set of logic codes so that the off-chain business end can exchange data with the business blockchain network through the blockchain client. The second set of logic codes corresponds to the business blockchain network (that is, the chain code of the business blockchain network), and the node devices act as business blockchain nodes in the business blockchain network by running the second set of logic codes.

举例而言,业务端可向业务区块链网络中的节点设备发送处理请求来实现与业务区块链网络的交互。其中,处理请求可包含用于调用压测区块链网络执行压力测试的压测请求、用于调用业务区块链网络执行生产业务的业务请求等。而节点设备在接收到业务端的处理请求后,通过区块链客户端识别该处理请求的请求类型,进而创建与请求类型对应的区块链交易,并向业务区块链网络提交该区块链交易。同时,节点设备作为业务区块链网络中的业务区块链节点,获取区块链客户端提交的区块链交易,并识别该区块链交易的交易类型。For example, the service end can send a processing request to the node device in the service blockchain network to realize interaction with the service blockchain network. The processing request may include a stress test request for invoking a stress test blockchain network to perform a stress test, a business request for invoking a business blockchain network to perform a production business, and the like. After receiving the processing request from the business end, the node device identifies the request type of the processing request through the blockchain client, creates a blockchain transaction corresponding to the request type, and submits the blockchain to the business blockchain network. trade. At the same time, the node device, as the business blockchain node in the business blockchain network, obtains the blockchain transaction submitted by the blockchain client, and identifies the transaction type of the blockchain transaction.

其中,业务端的处理请求中可包含类型标识,区块链客户端可据此识别处理请求的请求类型。进一步的,区块链客户端在创建与处理请求对应的区块链交易时,同样可在区块链交易中添加类型标识以用于标记该区块链交易的交易类型。因此,可根据获取到的区块链交易包含的类型标识来确定该区块链交易的交易类型。以处理请求分为压测请求和业务请求为例,压测请求中包含第一类型标识,业务请求中包含第二类型标识,那么,区块链客户端在根据第一类型标识识别出接收到的处理请求为压测请求后,可创建与之对应的压测交易,并在压测交易中添加第一类型标识。类似的,区块链客户端在根据第二类型标识识别出接收到的处理请求为业务请求后,可创建与之对应的业务交易,并在业务交易中添加第二类型标识。Among them, the processing request of the business end may contain a type identifier, and the blockchain client can identify the request type of the processing request accordingly. Further, when creating a blockchain transaction corresponding to the processing request, the blockchain client can also add a type identifier to the blockchain transaction to mark the transaction type of the blockchain transaction. Therefore, the transaction type of the blockchain transaction can be determined according to the type identifier contained in the obtained blockchain transaction. Taking the processing request divided into stress test request and service request as an example, the stress test request contains the first type identifier, and the service request contains the second type identifier. After the processing request is a stress test request, a corresponding stress test transaction can be created, and the first type identifier can be added to the stress test transaction. Similarly, after identifying the received processing request as a business request according to the second type identifier, the blockchain client can create a corresponding business transaction, and add the second type identifier to the business transaction.

步骤204,在所述区块链交易为压测交易的情况下,向与所述业务区块链网络对等的压测区块链网络转发所述压测交易。Step 204, in the case that the blockchain transaction is a stress testing transaction, forward the stress testing transaction to a stress testing blockchain network equivalent to the business blockchain network.

在本实施例中,为了避免压力测试与生产业务之间相互干扰,可分别部署用于响应压测交易的压测区块链网络,以及用于响应业务交易的业务区块链网络。其中,压测区块链网络为与业务区块链网络对等的区块链网络。In this embodiment, in order to avoid mutual interference between stress testing and production services, a stress testing blockchain network for responding to stress testing transactions and a business blockchain network for responding to business transactions can be deployed separately. Among them, the pressure measurement blockchain network is a blockchain network equivalent to the business blockchain network.

进一步的,由业务区块链网络中的区块链节点配合业务端与区块链网络,以实现业务端与业务区块链网络以及压测区块链网络之间的数据交互。具体而言,处于生产状态的业务区块链网络中的业务区块链节点在接收到的区块链交易为压测交易时,将该压测交易转发至压测区块链网络,以由压测区块链网络中的压测区块链节点对该压测交易进行响应。而在业务区块链节点在接收到的区块链交易为业务交易时,直接执行该业务交易以实现相应的业务。可见,在本说明书中的压测方案中,由业务区块链网络中的业务区块链节点直接来获取业务端发起的区块链交易以及识别区块链交易的交易类型。本领域技术人员应当理解的是:在业务端需要与业务区块链网络进行数据交互的情况下(即业务端需要调用业务区块链网络来实现生产业务),若由独立于业务端和区块链网络(包括业务区块链网络和压测区块链网络)的区块链网关来接收业务端创建的区块链交易,以及识别出交易类型进而向相应区块链网络分发区块链交易,或者由该区块链网关来响应于业务端发送的处理请求而创建相应的区块链交易,进而向相应区块链网络分发创建的区块链交易,则业务端与业务区块链网络之间多了一跳,将因区块链网关的分发造成一定的延迟,业务区块链网络无法及时获取到业务交易以进行响应,从而降低了业务实现的效率。Further, the blockchain nodes in the business blockchain network cooperate with the business end and the blockchain network to realize data interaction between the business end and the business blockchain network and the pressure measurement blockchain network. Specifically, when the business blockchain node in the business blockchain network in the production state receives a blockchain transaction that is a stress testing transaction, it forwards the stress testing transaction to the stress testing blockchain network, so that the The stress testing blockchain node in the stress testing blockchain network responds to the stress testing transaction. When the business blockchain node receives the blockchain transaction as a business transaction, it directly executes the business transaction to realize the corresponding business. It can be seen that in the stress measurement scheme in this specification, the business blockchain node in the business blockchain network directly obtains the blockchain transaction initiated by the business end and identifies the transaction type of the blockchain transaction. It should be understood by those skilled in the art that: in the case where the business end needs to interact with the business blockchain network (that is, the business end needs to call the business blockchain network to realize the production business), if the business end is independent of the business end and the district The blockchain gateway of the blockchain network (including the business blockchain network and the stress test blockchain network) receives the blockchain transactions created by the business side, and identifies the transaction type and distributes the blockchain to the corresponding blockchain network. transaction, or the blockchain gateway creates the corresponding blockchain transaction in response to the processing request sent by the business end, and then distributes the created blockchain transaction to the corresponding blockchain network, then the business end and the business blockchain One more hop between the networks will cause a certain delay due to the distribution of the blockchain gateway, and the business blockchain network cannot obtain business transactions in time to respond, thus reducing the efficiency of business implementation.

而本说明书中的压测方案取消了上述用于配合业务端和区块链网络进行数据交互的区块链网关,由业务区块链网络中的业务区块链节点来代为执行上述分发操作。在业务端需要与业务区块链网络进行数据交互的情况下,业务区块链网络中的业务区块链节点与业务端之间少了一跳,可直接获取到业务端发起的业务交易,从而可降低延迟,提高响应业务交易的速度,进而提升业务实现的效率。同时,业务端可在指定时间段内发起压测交易,比如该指定时间段可以是避开业务高峰期,譬如深夜等业务数据流量处于低谷的时间段。那么,即便是由业务区块链网络中的业务区块链节点来执行分发区块链交易的操作,也不会对业务区块链网络造成处理负担。However, the pressure measurement solution in this specification cancels the above-mentioned blockchain gateway used for data interaction between the business end and the blockchain network, and the business blockchain node in the business blockchain network performs the above distribution operation on its behalf. When the business end needs to interact with the business blockchain network, there is one less hop between the business blockchain node in the business blockchain network and the business end, and the business transaction initiated by the business end can be directly obtained. As a result, the delay can be reduced, the speed of responding to business transactions can be improved, and the efficiency of business realization can be improved. At the same time, the business end can initiate a stress test transaction within a specified time period. For example, the specified time period can be a time period when business data traffic is at a trough, such as late night, to avoid business peak periods. Then, even if the business blockchain node in the business blockchain network performs the operation of distributing blockchain transactions, it will not impose a processing burden on the business blockchain network.

步骤206,在所述区块链交易为业务交易的情况下,执行所述业务交易。Step 206, in the case that the blockchain transaction is a business transaction, execute the business transaction.

为了便于理解,下面结合图3,以区块链客户端部署于业务端上(即由业务端来创建区块链交易)为例进行说明,而区块链客户端部署于业务区块链节点上的方案与此类似。For ease of understanding, in the following, in conjunction with Figure 3, the blockchain client is deployed on the business end (that is, the business end creates blockchain transactions) as an example, and the blockchain client is deployed on the business blockchain node. The scheme above is similar.

如图3所示,可以针对处于生产状态的业务区块链网络32部署对等的压测区块链网络33,使得业务区块链网络32用于实现生产业务,压测区块链网络33用于实现压力测试。其中,压测区块链网络33与业务区块链网络32完全对等,具有相同的网络结构和网络配置(包括硬件和软件配置),使得针对压测区块链网络33所实施的压力测试能够体现出业务区块链网络32的真实状况。比如,压测区块链网络33与业务区块链网络32的机器资源、网络资源、计算资源、存储资源均相同。同时,由于压测区块链网络33与业务区块链网络32完全对等,那么在配置压测区块链网络33时无需对现有的区块链网络进行改造,比如直接按照部署业务区块链网络32的方式部署压测区块链网络33即可,在技术实现上较为简单,避免因技术实现较为复杂导致提高部署成本的问题。As shown in FIG. 3 , a peer-to-peer stress-testing blockchain network 33 can be deployed for the business blockchain network 32 in the production state, so that the business blockchain network 32 is used to implement production services, and the stress-testing blockchain network 33 Used to implement stress testing. Among them, the stress test blockchain network 33 is completely equivalent to the business blockchain network 32, and has the same network structure and network configuration (including hardware and software configuration), so that the stress test implemented for the stress test blockchain network 33 It can reflect the real status of the business blockchain network 32 . For example, the machine resources, network resources, computing resources, and storage resources of the pressure measurement blockchain network 33 and the business blockchain network 32 are the same. At the same time, since the pressure measurement blockchain network 33 is completely equivalent to the business blockchain network 32, there is no need to modify the existing blockchain network when configuring the pressure measurement blockchain network 33, such as directly deploying the business area. The pressure measurement blockchain network 33 can be deployed in the way of the blockchain network 32, which is relatively simple in technical implementation and avoids the problem of increasing deployment costs due to complex technical implementation.

当针对业务区块链网络32存在压测需求时,业务端31可创建压测交易,该压测交易中包含第一类型标识(比如为压测标签)和用于进行压力测试的数据。当针对业务区块链网络32存在业务需求时,业务端31可创建业务交易,该业务交易中包含第二类型标识(比如为业务标签)和用于实现生产业务的数据。然后,业务端31可将创建好的区块链交易提交至业务区块链网络32。实际上,无论业务端31创建的是业务交易还是压测交易,业务端31都是直接与业务区块链网络32进行交互,也即业务端31仅感知业务区块链网络32,无需感知压测区块链网络33。比如,业务端31感知业务区块链网络32中业务区块链节点的IP地址以与其进行通讯即可,而无需感知压测区块链网络中的压测区块链节点的IP地址。When there is a stress test requirement for the business blockchain network 32, the business end 31 may create a stress test transaction, and the stress test transaction includes a first type identifier (eg, a stress test label) and data for performing a stress test. When there is a business requirement for the business blockchain network 32, the business end 31 can create a business transaction, and the business transaction includes a second type identifier (such as a business tag) and data for implementing the production business. Then, the business end 31 can submit the created blockchain transaction to the business blockchain network 32 . In fact, regardless of whether the business end 31 creates a business transaction or a stress test transaction, the business end 31 directly interacts with the business blockchain network 32, that is, the business end 31 only perceives the business blockchain network 32 and does not need to perceive pressure. Testing blockchain networks33. For example, the service terminal 31 only needs to perceive the IP addresses of the service blockchain nodes in the service blockchain network 32 to communicate with them, without sensing the IP addresses of the stress testing blockchain nodes in the stress testing blockchain network.

业务区块链网络32中的业务区块链节点在接收到区块链交易后,需要读取该区块链交易中包含的类型标识以对其交易类型进行识别,从而对不同交易类型的区块链交易进行差异化处理。当接收到的区块链交易为业务交易时,业务区块链网络32中的业务区块链节点则针对该业务交易进行共识、执行、上链等操作,并生成相应的交易回执。比如,业务端31可以将创建好的区块链交易发送至业务区块链网络32中的某一业务区块链节点32n,而业务区块链节点32n需要对接收到的区块链交易的交易类型予以识别,以确定该区块链交易为业务交易还是压测交易。当确定出该区块链交易为业务交易时,区块链节点32n可以进一步将该业务交易传递至业务区块链网络32中的其他区块链节点,使得业务区块链网络32中的所有业务区块链节点可以针对该业务交易进行共识、执行、上链等操作,并生成相应的交易回执(包含第二类型标识,即上述业务标签)。After receiving the blockchain transaction, the business blockchain node in the business blockchain network 32 needs to read the type identifier contained in the blockchain transaction to identify its transaction type, so as to identify the different transaction types. Blockchain transactions are differentiated. When the received blockchain transaction is a business transaction, the business blockchain nodes in the business blockchain network 32 perform operations such as consensus, execution, and uploading of the business transaction, and generate a corresponding transaction receipt. For example, the business end 31 can send the created blockchain transaction to a certain business blockchain node 32n in the business blockchain network 32, and the business blockchain node 32n needs to understand the received blockchain transaction. The transaction type is identified to determine whether the blockchain transaction is a business transaction or a stress test transaction. When it is determined that the blockchain transaction is a business transaction, the blockchain node 32n can further transmit the business transaction to other blockchain nodes in the business blockchain network 32, so that all the blockchain nodes in the business blockchain network 32 The business blockchain node can perform operations such as consensus, execution, and uploading of the business transaction, and generate a corresponding transaction receipt (including the second type of identification, that is, the above-mentioned business label).

当业务区块链网络32中的业务区块链节点识别出接收到的区块链交易为压测交易时,业务区块链网络32中的业务区块链节点则将该压测交易转发至压测区块链网络33,以由压测区块链网络33中的压测区块链节点针对该压测交易进行共识、执行、上链等操作,并生成相应的交易回执(包含第一类型标识,即上述压测标签)。When the business blockchain node in the business blockchain network 32 identifies that the received blockchain transaction is a stress test transaction, the business blockchain node in the business blockchain network 32 forwards the stress test transaction to The stress-testing blockchain network 33, so that the stress-testing blockchain nodes in the stress-testing blockchain network 33 perform operations such as consensus, execution, and uploading of the stress-testing transaction, and generate a corresponding transaction receipt (including the first Type identification, i.e. the pressure test label above).

对于物理世界产生的真实数据,可以将其构建成区块链网络所支持的标准的交易(transaction)格式,然后发布至区块链网络,由区块链网络中的节点设备对收到的交易进行共识处理,并在达成共识后,由区块链网络中作为记账节点的节点设备(即区块链节点),将这笔交易打包进区块,在区块链网络中进行持久化存证。具体而言,业务区块链网络32针对接收到的业务交易,由业务区块链网络32中的所有业务区块链节点对其进行共识处理,从而在共识通过后再执行该业务交易以及将该业务交易打包进区块。类似的,压测区块链网络33针对接收到的压测交易,由压测区块链网络33中的所有压测区块链节点对其进行共识处理,从而在共识通过后再执行该压测交易以及将该压测交易打包进区块。For the real data generated in the physical world, it can be constructed into a standard transaction format supported by the blockchain network, and then published to the blockchain network. Consensus processing is performed, and after reaching a consensus, the node device (that is, the blockchain node) as the accounting node in the blockchain network will package the transaction into the block and store it persistently in the blockchain network. certificate. Specifically, the business blockchain network 32 performs consensus processing on the received business transaction by all business blockchain nodes in the business blockchain network 32, so as to execute the business transaction and transfer the business transaction after the consensus is passed. The business transaction is packaged into the block. Similarly, the stress testing blockchain network 33 performs consensus processing on the received stress testing transaction by all stress testing blockchain nodes in the stress testing blockchain network 33, so that the stress test is executed after the consensus is passed. test transaction and package the stress test transaction into the block.

其中,区块链网络中支持的共识算法可以包括:Among them, the consensus algorithms supported in the blockchain network can include:

第一类共识算法,即节点设备需要争夺每一轮的记账周期的记账权的共识算法;例如,工作量证明(Proof of Work, POW)、股权证明(Proof of Stake,POS)、委任权益证明(Delegated Proof of Stake,DPOS)等共识算法;The first type of consensus algorithm is the consensus algorithm in which node devices need to compete for the accounting rights of each round of accounting cycles; for example, Proof of Work (POW), Proof of Stake (POS), delegation Consensus algorithms such as Delegated Proof of Stake (DPOS);

第二类共识算法,即预先为每一轮记账周期选举记账节点(不需要争夺记账权)的共识算法;例如,实用拜占庭容错(Practical Byzantine Fault Tolerance,PBFT)等共识算法。The second type of consensus algorithm is a consensus algorithm that pre-selects billing nodes for each round of billing cycle (without competing for billing rights); for example, consensus algorithms such as Practical Byzantine Fault Tolerance (PBFT).

在采用第一类共识算法的区块链网络中,争夺记账权的节点设备,都可以在接收到交易后执行该笔交易。争夺记账权的节点设备中可能有一个节点设备在本轮争夺记账权的过程中胜出,成为记账节点。记账节点可以将收到的交易与其它交易一起打包以生成最新区块,并将生成的最新区块或者该最新区块的区块头发送至其它节点设备进行共识。In a blockchain network using the first type of consensus algorithm, all node devices competing for the right to bookkeeping can execute the transaction after receiving the transaction. One of the node devices competing for the accounting right may win in the process of competing for the accounting right in this round and become an accounting node. The accounting node can package the received transaction with other transactions to generate the latest block, and send the generated latest block or the block header of the latest block to other node devices for consensus.

在采用第二类共识算法的区块链网络中,具有记账权的节点设备在本轮记账前已经商定好。因此,节点设备在接收到交易后,如果自身不是本轮的记账节点,则可以将该交易发送至记账节点。对于本轮的记账节点,在将该交易与其它交易一起打包以生成最新区块的过程中或者之前,可以执行该交易。记账节点在生成最新区块后,可以将该最新区块或者该最新区块的区块头发送至其它节点设备进行共识。In the blockchain network using the second type of consensus algorithm, the node equipment with accounting rights has been negotiated before this round of accounting. Therefore, after the node device receives the transaction, if it is not the accounting node of the current round, it can send the transaction to the accounting node. For the accounting node of this round, the transaction may be executed during or before the process of packaging the transaction with other transactions to generate the latest block. After the accounting node generates the latest block, it can send the latest block or the block header of the latest block to other node devices for consensus.

如上所述,无论区块链网络采用以上示出的哪种共识算法,本轮的记账节点都可以将接收到的交易打包以生成最新区块,并将生成的最新区块或者该最新区块的区块头发送至其它节点设备进行共识验证。如果其它节点设备接收到最新区块或者该最新区块的区块头后,经验证没有问题,可以将该最新区块追加到原有的区块链网络末尾,从而完成区块链网络的记账过程。其它节点验证记账节点发来的新的区块或区块头的过程中,也可以执行该区块中包含的交易。As mentioned above, no matter which consensus algorithm shown above is adopted by the blockchain network, the accounting node of this round can package the received transactions to generate the latest block, and use the generated latest block or the latest block to generate the latest block. The block header of the block is sent to other node devices for consensus verification. If other node devices receive the latest block or the block header of the latest block and verify that there is no problem, the latest block can be appended to the end of the original blockchain network, thereby completing the accounting of the blockchain network process. In the process of verifying the new block or block header sent by the accounting node, other nodes can also execute the transactions contained in the block.

而针对业务区块链网络32中的业务区块链节点向压测区块链网络33转发压测交易的方式,根据配置业务区块链节点和压测区块链节点的方式而存在一定不同。However, there are certain differences in the way that the business blockchain nodes in the business blockchain network 32 forward the stress testing transactions to the stress testing blockchain network 33, depending on how the business blockchain nodes and the stress testing blockchain nodes are configured. .

一方面,针对向压测区块链网络转发压测交易的方式,存在两种情况。在一种情况下,由于压测区块链网络33是与业务区块链网络32对等的区块链网络,压测区块链网络33中压测区块链节点的数量与业务区块链网络32中业务区块链节点的数量相同,即压测区块链节点与业务区块链节点为一一对应的关系。因此,业务区块链网络32中的业务区块链节点可向压测区块链网络33中与自身对应的压测区块链节点发送压测交易,从而实现各个业务区块链节点向相应的压测区块链节点对等地转发压测交易。On the one hand, there are two situations in the way of forwarding stress testing transactions to the stress testing blockchain network. In one case, since the stress testing blockchain network 33 is a blockchain network equivalent to the business blockchain network 32, the number of stress testing blockchain nodes in the stress testing blockchain network 33 and the business blocks The number of business blockchain nodes in the chain network 32 is the same, that is, the pressure measurement blockchain node and the business blockchain node have a one-to-one correspondence. Therefore, the business blockchain nodes in the business blockchain network 32 can send pressure measurement transactions to the corresponding pressure measurement blockchain nodes in the pressure measurement blockchain network 33, so that each business blockchain node can send the corresponding The stress testing blockchain nodes forward the stress testing transactions peer-to-peer.

举例而言,假定业务区块链网络32中业务区块链节点和压测区块链网络33中压测区块链节点之间的对应关系如表1所示。For example, it is assumed that the corresponding relationship between the business blockchain nodes in the business blockchain network 32 and the stress testing blockchain nodes in the stress testing blockchain network 33 is shown in Table 1.

Figure 417714DEST_PATH_IMAGE001
Figure 417714DEST_PATH_IMAGE001

那么,由业务区块链节点A向压测区块链节点a转发压测交易,由业务区块链节点B向压测区块链节点b转发压测交易,由业务区块链节点C向压测区块链节点c转发压测交易,由业务区块链节点D向压测区块链节点d转发压测交易。Then, the business blockchain node A forwards the stress testing transaction to the stress testing blockchain node a, the business blockchain node B forwards the stress testing transaction to the stress testing blockchain node b, and the business blockchain node C forwards the stress testing transaction to the stress testing blockchain node b. The stress testing blockchain node c forwards the stress testing transaction, and the business blockchain node D forwards the stress testing transaction to the stress testing blockchain node d.

在另一种情况下,区别于上述对等转发的方式,由业务区块链网络32中的业务区块链节点向压测区块链网络33中的所有压测区块链节点分别发送压测交易。比如,承接于上述表1中的举例,由业务区块链节点A分别向压测区块链节点a~d转发压测交易,由业务区块链节点B分别向压测区块链节点a~d转发压测交易,由业务区块链节点C分别向压测区块链节点a~d转发压测交易,由业务区块链节点D分别向压测区块链节点a~d转发压测交易。In another case, different from the above-mentioned peer-to-peer forwarding method, the business blockchain node in the business blockchain network 32 sends pressure to all the stress testing blockchain nodes in the stress testing blockchain network 33 respectively. Test transactions. For example, following the example in Table 1 above, the business blockchain node A forwards the stress testing transaction to the stress testing blockchain nodes a~d respectively, and the business blockchain node B sends the stress testing blockchain node a to the stress testing blockchain node a respectively. ~d forwards the pressure measurement transaction, the business blockchain node C forwards the pressure measurement transaction to the pressure measurement blockchain nodes a~d respectively, and the business blockchain node D forwards the pressure measurement transaction to the pressure measurement blockchain nodes a~d respectively. Test transactions.

另一方面,业务端31向业务区块链网络32中的业务区块链节点提交压测交易,而业务端31(可能存在多个)在提交多笔压测交易时,可以分别向不同的业务区块链节点提交压测交易。因此,针对转发的压测交易,存在两种情况。在一种情况下,业务区块链网络32中的任一业务区块链节点可向压测区块链网络33转发该业务区块链节点从业务端31处接收到的压测交易。以上述压测区块链节点与业务区块链节点“一一对应”的情况为例,业务区块链节点A可向压测区块链节点a转发业务区块链节点A从业务端31处接收到的50笔压测交易,业务区块链节点B可向压测区块链节点b转发业务区块链节点B从业务端31处接收到的40笔压测交易,业务区块链节点C可向压测区块链节点c转发业务区块链节点C从业务端31处接收到的30笔压测交易,业务区块链节点D可向压测区块链节点d转发业务区块链节点D从业务端31处接收到的20笔压测交易。而各个压测区块链节点在接收到压测交易后,可在压测区块链网络中广播自身接收到的压测交易,使得所有压测区块链节点可获取到相同的压测交易,进而所有压测区块链节点可针对这些相同的压测交易进行共识、执行、上链等操作。比如,压测区块链节点a可在压测区块链网络中广播自身接收到的50笔压测交易,即压测区块链节点b、c、d可获取到这50笔压测交易。类似的,压测区块链节点b可在压测区块链网络中广播自身接收到的40笔压测交易,即压测区块链节点a、c、d可获取到这40笔压测交易。压测区块链节点c可在压测区块链网络中广播自身接收到的30笔压测交易,即压测区块链节点a、b、d可获取到这30笔压测交易。压测区块链节点d可在压测区块链网络中广播自身接收到的20笔压测交易,即压测区块链节点a、b、c可获取到这20笔压测交易。通过上述广播过程,压测区块链节点a~d均可获取到140笔相同的压测交易,进而针对这140笔压测交易进行共识、执行、上链等操作。On the other hand, the business end 31 submits a stress test transaction to the business blockchain node in the business blockchain network 32, while the business end 31 (there may be multiple ones) can submit multiple stress test transactions to different The business blockchain node submits the stress test transaction. Therefore, for the forwarded stress test transaction, there are two situations. In one case, any service blockchain node in the service blockchain network 32 can forward the stress measurement transaction received by the service blockchain node from the service terminal 31 to the stress measurement blockchain network 33 . Taking the above-mentioned situation of "one-to-one correspondence" between the pressure measurement blockchain node and the business blockchain node as an example, the business blockchain node A can forward the business blockchain node A to the pressure measurement blockchain node A from the business end 31. For the 50 pressure measurement transactions received at 31, the business blockchain node B can forward the 40 pressure measurement transactions received by the business blockchain node B from the business terminal 31 to the pressure measurement blockchain node b. The business blockchain Node C can forward the 30 pressure measurement transactions received by the business blockchain node C from the service terminal 31 to the pressure measurement blockchain node c, and the business blockchain node D can forward the business area to the pressure measurement blockchain node d The 20 pressure measurement transactions received by the blockchain node D from the service terminal 31. After each stress testing blockchain node receives the stress testing transaction, it can broadcast the stress testing transaction it has received in the stress testing blockchain network, so that all stress testing blockchain nodes can obtain the same stress testing transaction. , and then all stress testing blockchain nodes can perform consensus, execution, and chaining operations for these same stress testing transactions. For example, the stress testing blockchain node a can broadcast the 50 stress testing transactions it has received in the stress testing blockchain network, that is, the stress testing blockchain nodes b, c, and d can obtain these 50 stress testing transactions . Similarly, the stress testing blockchain node b can broadcast the 40 stress testing transactions it has received in the stress testing blockchain network, that is, the stress testing blockchain nodes a, c, and d can obtain these 40 stress testing transactions. trade. The stress testing blockchain node c can broadcast the 30 stress testing transactions it has received in the stress testing blockchain network, that is, the stress testing blockchain nodes a, b, and d can obtain these 30 stress testing transactions. The stress testing blockchain node d can broadcast the 20 stress testing transactions it has received in the stress testing blockchain network, that is, the stress testing blockchain nodes a, b, and c can obtain these 20 stress testing transactions. Through the above broadcast process, the stress testing blockchain nodes a~d can obtain 140 identical stress testing transactions, and then perform consensus, execution, and chain operations for these 140 stress testing transactions.

在另一种情况下,业务区块链网络32中的任一业务区块链节点可向压测区块链网络33转发业务区块链网络32中所有业务区块链节点从业务端31处接收到的压测交易。其中,业务区块链网络32中的每个业务区块链节点在从业务端31处接收到压测交易后,可在业务区块链网络32中广播自身接收到的压测交易,使得业务区块链网络32中的所有业务区块链节点之间可同步接收到的压测交易,也即每个业务区块链节点均可获取到所有业务区块链节点从业务端处接收到的压测交易,进而将这些压测交易转发至业务区块链网络。In another case, any business blockchain node in the business blockchain network 32 can forward all business blockchain nodes in the business blockchain network 32 to the stress testing blockchain network 33 from the business end 31 Received stress test transaction. Among them, after each business blockchain node in the business blockchain network 32 receives the pressure measurement transaction from the service terminal 31, it can broadcast the received pressure measurement transaction in the business blockchain network 32, so that the business The stress test transactions received by all the business blockchain nodes in the blockchain network 32 can be synchronously received, that is, each business blockchain node can obtain all the business blockchain nodes received from the business end. Stress test transactions, and then forward these stress test transactions to the business blockchain network.

或者,可在业务区块链网络32中配置用于转发压测交易的转发节点,那么在业务区块链网络32中的某一业务区块链节点为转发节点的情况下,由该业务区块链节点向压测区块链网络33转发压测交易。业务区块链网络32中各个业务区块链节点可将从业务端处接收到的压测交易发送至转发节点,由转发节点统一将所有业务区块链节点从业务端处接收到的压测交易转发至压测区块链网络33。比如,转发节点可与压测区块链网络33中的某一压测区块链节点建立连接,从而将所有压测交易转发至该压测区块链节点,以由该压测区块链节点在压测区块链网络33中广播来自转发节点的压测交易,使得压测区块链网络33中的所有压测区块链节点可获取来自转发节点的压测交易,进而进行共识、执行、上链等操作。又如,转发节点可与压测区块链网络33中的每个压测区块链节点建立连接,从而将所有压测交易转发至每个压测区块链节点,使得压测区块链网络33中的所有压测区块链节点可获取来自转发节点的压测交易,进而进行共识、执行、上链等操作。Alternatively, a forwarding node for forwarding pressure measurement transactions can be configured in the business blockchain network 32, then when a certain business blockchain node in the business blockchain network 32 is a forwarding node, the business area The blockchain node forwards the stress testing transaction to the stress testing blockchain network 33 . Each business blockchain node in the business blockchain network 32 can send the stress test transaction received from the business end to the forwarding node, and the forwarding node uniformly transmits the stress test transaction received by all business blockchain nodes from the business end. The transaction is forwarded to the stress testing blockchain network 33 . For example, the forwarding node can establish a connection with a certain stress testing blockchain node in the stress testing blockchain network 33, so as to forward all stress testing transactions to the stress testing blockchain node, so that the stress testing blockchain The node broadcasts the stress testing transaction from the forwarding node in the stress testing blockchain network 33, so that all stress testing blockchain nodes in the stress testing blockchain network 33 can obtain the stress testing transaction from the forwarding node, and then conduct consensus, Execute, upload, etc. operations. For another example, the forwarding node can establish a connection with each stress testing blockchain node in the stress testing blockchain network 33, thereby forwarding all stress testing transactions to each stress testing blockchain node, so that the stress testing blockchain All stress testing blockchain nodes in the network 33 can obtain stress testing transactions from forwarding nodes, and then perform operations such as consensus, execution, and on-chain operations.

其中,可由业务区块链网络32中各个业务区块链节点之间进行协商选取出转发节点。或者,在部署业务区块链网络32的阶段选取出转发节点,从而将该转发节点的节点信息写入链代码中,使得各个业务区块链节点将链代码中记录的节点信息对应的业务区块链节点确认为转发节点。The forwarding node can be selected through negotiation among the business blockchain nodes in the business blockchain network 32 . Alternatively, a forwarding node is selected in the stage of deploying the business blockchain network 32, so that the node information of the forwarding node is written into the chain code, so that each business blockchain node can store the business area corresponding to the node information recorded in the chain code. Blockchain nodes are confirmed as forwarding nodes.

业务端31可以通过与业务区块链网络32中的某一业务区块链节点之间建立连接,从而向该业务区块链节点提交创建的区块链交易,该业务区块链节点可以为如图3所示的业务区块链节点32n。以业务区块链节点32n为例,业务端31与业务区块链节点32n之间建立的连接可以为长连接,使得业务区块链节点32n执行业务交易生成第二交易回执,以及从压测区块链网络33获得第一交易回执之后,可以产生相应的交易回执生成事件,而业务端31可以通过监听该交易回执生成事件获知交易回执已生成(即事件监听机制),并基于上述的长连接获取相应的交易回执(第一交易回执或第二交易回执)。当然,也可以由业务区块链节点32n自身通过上述的事件监听机制来监听交易回执生成事件,并通过上述的长连接将相应的交易回执反馈至业务端31,使得业务端31获得交易回执。或者,如果业务端31与业务区块链节点32n之间建立的连接并非长连接或者所建立的长连接断开,业务端31需要额外通过发起一笔查询交易,以查询所提交的区块链交易对应的交易回执。其中,该查询交易可以为常规的区块链交易,使得业务区块链网络32中的所有区块链节点均需针对该查询交易进行获取、共识、执行、上链等操作,而业务端31可以通过上述方式与某一业务区块链节点建立长连接,并基于上述的事件监听机制从该业务区块链节点处获取相应的交易回执;或者,该查询交易可以为特殊交易,譬如业务端31可以仅与业务区块链节点32n建立长连接并发送该查询交易,那么该查询交易仅会被业务区块链节点32n获取并执行,该查询交易无需参与共识且不需要上链,甚至无需被其他区块链节点获取,然后业务端31可以基于如前所述的事件监听机制获取相应的交易回执。The business terminal 31 can submit the created blockchain transaction to the business blockchain node by establishing a connection with a business blockchain node in the business blockchain network 32, and the business blockchain node can be The business blockchain node 32n shown in FIG. 3 . Taking the business blockchain node 32n as an example, the connection established between the business end 31 and the business blockchain node 32n can be a long connection, so that the business blockchain node 32n executes the business transaction to generate a second transaction receipt, and from the pressure measurement After the blockchain network 33 obtains the first transaction receipt, it can generate a corresponding transaction receipt generation event, and the business end 31 can learn that the transaction receipt has been generated by monitoring the transaction receipt generation event (ie, the event monitoring mechanism), and based on the above-mentioned long-term Connect to obtain the corresponding transaction receipt (first transaction receipt or second transaction receipt). Of course, the business blockchain node 32n can also monitor the transaction receipt generation event through the above-mentioned event monitoring mechanism, and feed back the corresponding transaction receipt to the business end 31 through the above-mentioned long connection, so that the business end 31 obtains the transaction receipt. Alternatively, if the connection established between the business end 31 and the business blockchain node 32n is not a long connection or the established long connection is disconnected, the business end 31 needs to initiate an additional query transaction to query the submitted blockchain The transaction receipt corresponding to the transaction. The query transaction may be a conventional blockchain transaction, so that all blockchain nodes in the business blockchain network 32 need to acquire, agree, execute, and upload the query transaction, while the business end 31 A long-term connection can be established with a business blockchain node in the above manner, and a corresponding transaction receipt can be obtained from the business blockchain node based on the above event monitoring mechanism; or, the query transaction can be a special transaction, such as a business end 31 can only establish a long connection with the business blockchain node 32n and send the query transaction, then the query transaction will only be acquired and executed by the business blockchain node 32n, the query transaction does not need to participate in the consensus and does not need to be on the chain, or even It is acquired by other blockchain nodes, and then the service terminal 31 can acquire the corresponding transaction receipt based on the event monitoring mechanism described above.

而对于压测区块链网络33中的压测区块链节点执行压测交易后生成的第一交易回执,业务区块链网络32中的业务区块链节点同样可基于如前所述的事件监听机制获取该第二交易回执,在此不再赘述。例如,可由业务区块链节点32n与压测区块链节点33n之间建立连接,从而基于如前所述的事件监听机制获取第二交易回执。For the first transaction receipt generated after the stress testing blockchain node in the stress testing blockchain network 33 executes the stress testing transaction, the business blockchain node in the business blockchain network 32 can also be based on the aforementioned The event monitoring mechanism obtains the second transaction receipt, which will not be repeated here. For example, a connection can be established between the business blockchain node 32n and the stress testing blockchain node 33n, so as to obtain the second transaction receipt based on the aforementioned event monitoring mechanism.

相应地,业务端31在获取交易回执后,可根据交易回执中包含的类型标识来识别获取到的交易回执对应于压测交易还是对应于业务交易。当获取到的交易回执中包含第一类型标识时,判定该交易回执为第一交易回执(即对应于压测交易);当获取到的交易回执中包含第二类型标识时,判定该交易回执为第二交易回执(即对应于业务交易)。进一步的。业务端31可以将第一交易回执存储至压测数据库,将第二交易回执存储至业务数据库,后续可以从压测数据库获取第一交易回执,以分析确定针对业务区块链网络32的压测结果。Correspondingly, after acquiring the transaction receipt, the business end 31 can identify whether the acquired transaction receipt corresponds to a stress test transaction or a business transaction according to the type identifier included in the transaction receipt. When the acquired transaction receipt contains the first type identifier, it is determined that the transaction receipt is the first transaction receipt (that is, corresponding to the stress test transaction); when the acquired transaction receipt contains the second type identifier, it is determined that the transaction receipt Receipt for the second transaction (ie, corresponding to a business transaction). further. The business end 31 can store the first transaction receipt in the stress testing database, store the second transaction receipt in the business database, and can subsequently obtain the first transaction receipt from the stress testing database to analyze and determine the stress testing for the business blockchain network 32 result.

在本说明书中,对应于上述业务区块链节点侧的实施例,本说明书还提出了压测区块链网络中压测区块链节点侧的实施例,在业务区块链节点侧的实施例中所涉及的描述同样可以适用于压测区块链节点侧的实施例,下文中不再对此进行赘述。In this specification, corresponding to the embodiments on the node side of the business blockchain, this specification also proposes an example of stress testing the node side of the blockchain in the blockchain network, and the implementation on the node side of the business blockchain The description involved in the example is also applicable to the embodiment of stress testing the node side of the blockchain, which will not be repeated in the following.

请参见图4,图4是一示例性实施例提供的另一种区块链网络的压力测试方法的流程图。如图4所示,该方法应用于与处于生产状态的业务区块链网络对等的压测区块链网络中的压测区块链节点,可以包括以下步骤:Please refer to FIG. 4 , which is a flowchart of another method for stress testing a blockchain network provided by an exemplary embodiment. As shown in Figure 4, the method is applied to the stress testing blockchain node in the stress testing blockchain network that is equivalent to the business blockchain network in the production state, and may include the following steps:

步骤402,接收所述业务区块链网络中的业务区块链节点转发的压测交易,所述压测交易由所述业务区块链节点在业务端发起的区块链交易为压测交易的情况下转发;Step 402: Receive a stress test transaction forwarded by a business blockchain node in the business blockchain network, where the stress test transaction is a stress test transaction initiated by the business blockchain node at the service end forwarded in the event of

步骤404,执行所述压测交易;其中,在所述区块链交易为业务交易的情况下,所述业务交易被所述业务区块链节点执行。Step 404: Execute the pressure measurement transaction; wherein, in the case that the blockchain transaction is a business transaction, the business transaction is executed by the business blockchain node.

如前所述,压测区块链节点可接收所述业务区块链网络中与所述压测区块链节点对应的业务区块链节点转发的压测交易。As mentioned above, the stress testing blockchain node can receive the stress testing transaction forwarded by the business blockchain node corresponding to the stress testing blockchain node in the business blockchain network.

如前所述,压测区块链节点可接收所述业务区块链网络中作为转发节点的业务区块链节点转发的压测交易。As mentioned above, the stress testing blockchain node can receive the stress testing transaction forwarded by the business blockchain node serving as the forwarding node in the business blockchain network.

如前所述,压测区块链节点可接收所述业务区块链网络中的业务区块链节点转发的从所述业务端处接收到的压测交易;或者,As mentioned above, the pressure measurement blockchain node can receive the pressure measurement transaction received from the service terminal and forwarded by the service blockchain node in the service blockchain network; or,

接收所述业务区块链网络中的业务区块链节点转发的所述业务区块链网络中所有业务区块链节点从所述业务端处接收到的压测交易。Receive the pressure measurement transaction received from the service end by all the service blockchain nodes in the service blockchain network and forwarded by the service blockchain nodes in the service blockchain network.

如前所述,所述压测交易中包含第一类型标识,所述业务交易中包含第二类型标识。As mentioned above, the pressure measurement transaction includes the first type identifier, and the business transaction includes the second type identifier.

如前所述,对应于所述压测交易的第一交易回执中包含所述第一类型标识,对应于所述业务交易的第二交易回执中包含所述第二类型标识。As described above, the first transaction receipt corresponding to the stress test transaction includes the first type identifier, and the second transaction receipt corresponding to the business transaction includes the second type identifier.

如前所述,所述第一交易回执被存储至压测数据库,所述第二交易回执被存储至业务数据库。As mentioned above, the first transaction receipt is stored in the stress test database, and the second transaction receipt is stored in the business database.

如前所述,所述压测区块链网络与所述业务区块链网络具有相同的网络结构和网络配置。As mentioned above, the pressure measurement blockchain network has the same network structure and network configuration as the business blockchain network.

如前所述,所述区块链交易由所述业务端通过区块链客户端向所述业务区块链网络发起。As mentioned above, the blockchain transaction is initiated by the business end to the business blockchain network through the blockchain client.

如前所述,所述区块链客户端部署于所述业务端上;或者,所述区块链客户端部署于所述业务区块链网络中的业务区块链节点上。As mentioned above, the blockchain client is deployed on the business end; or, the blockchain client is deployed on a business blockchain node in the business blockchain network.

图5是一示例性实施例提供的一种设备的示意结构图。请参考图5,在硬件层面,该设备包括处理器502、内部总线504、网络接口506、内存508以及非易失性存储器510,当然还可能包括其他业务所需要的硬件。处理器502从非易失性存储器510中读取对应的计算机程序到内存508中然后运行,在逻辑层面上形成区块链网络的压力测试装置。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。Fig. 5 is a schematic structural diagram of a device provided by an exemplary embodiment. Referring to FIG. 5 , at the hardware level, the device includes a processor 502 , an internal bus 504 , a network interface 506 , a memory 508 and a non-volatile memory 510 , and of course may also include hardware required for other services. The processor 502 reads the corresponding computer program from the non-volatile memory 510 into the memory 508 and then executes it, forming a stress testing device of the blockchain network on a logical level. Of course, in addition to software implementations, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subjects of the following processing procedures are not limited to each Logic unit, which can also be hardware or logic device.

请参考图6,在一软件实施方式中,该区块链网络的压力测试装置应用于处于生产状态的业务区块链网络中的业务区块链节点,可以包括:Referring to FIG. 6, in a software implementation, the stress testing device of the blockchain network is applied to a business blockchain node in a business blockchain network in a production state, and may include:

识别单元602,识别业务端发起的区块链交易的交易类型;Identifying unit 602, identifying the transaction type of the blockchain transaction initiated by the service end;

转发单元604,在所述区块链交易为压测交易的情况下,向与所述业务区块链网络对等的压测区块链网络转发所述压测交易;The forwarding unit 604, in the case that the blockchain transaction is a stress testing transaction, forwards the stress testing transaction to a stress testing blockchain network equivalent to the business blockchain network;

执行单元606,在所述区块链交易为业务交易的情况下,执行所述业务交易。The executing unit 606 executes the business transaction if the blockchain transaction is a business transaction.

可选的,所述转发单元604具体用于:Optionally, the forwarding unit 604 is specifically configured to:

向所述压测区块链网络中与所述业务区块链节点对应的压测区块链节点发送所述压测交易;或者,Sending the stress testing transaction to the stress testing blockchain node corresponding to the business blockchain node in the stress testing blockchain network; or,

向所述压测区块链网络中的所有压测区块链节点分别发送所述压测交易。The stress testing transaction is respectively sent to all stress testing blockchain nodes in the stress testing blockchain network.

可选的,所述转发单元604具体用于:Optionally, the forwarding unit 604 is specifically configured to:

在所述业务区块链节点为所述业务区块链网络中的转发节点的情况下,向所述压测区块链网络转发所述压测交易。In the case that the business blockchain node is a forwarding node in the business blockchain network, the stress testing transaction is forwarded to the stress testing blockchain network.

可选的,所述转发单元604具体用于:Optionally, the forwarding unit 604 is specifically configured to:

向所述压测区块链网络转发所述业务区块链节点从所述业务端处接收到的压测交易;或者,forwarding the pressure measurement transaction received by the business blockchain node from the service terminal to the pressure measurement blockchain network; or,

向所述压测区块链网络转发所述业务区块链网络中所有业务区块链节点从所述业务端处接收到的压测交易。Forwarding, to the stress testing blockchain network, the stress testing transactions received by all the business blockchain nodes in the business blockchain network from the business end.

可选的,所述识别单元602具体用于:Optionally, the identifying unit 602 is specifically used for:

读取所述区块链交易包含的类型标识;Read the type identifier contained in the blockchain transaction;

在所述类型标识为第一类型标识的情况下,将所述区块链交易判定为所述压测交易,在所述类型标识为第二类型标识的情况下,将所述区块链交易判定为所述业务交易。In the case that the type identifier is the first type identifier, the blockchain transaction is determined to be the stress measurement transaction, and in the case that the type identifier is the second type identifier, the blockchain transaction is determined to be the It is determined to be the business transaction.

可选的,对应于所述压测交易的第一交易回执中包含所述第一类型标识,对应于所述业务交易的第二交易回执中包含所述第二类型标识。Optionally, the first transaction receipt corresponding to the pressure measurement transaction includes the first type identifier, and the second transaction receipt corresponding to the business transaction includes the second type identifier.

可选的,所述第一交易回执被存储至压测数据库,所述第二交易回执被存储至业务数据库。Optionally, the first transaction receipt is stored in a stress measurement database, and the second transaction receipt is stored in a business database.

可选的,所述压测区块链网络与所述业务区块链网络具有相同的网络结构和网络配置。Optionally, the pressure measurement blockchain network and the business blockchain network have the same network structure and network configuration.

可选的,所述区块链交易由所述业务端通过区块链客户端向所述业务区块链网络发起。Optionally, the blockchain transaction is initiated by the business end to the business blockchain network through a blockchain client.

可选的,所述区块链客户端部署于所述业务端上;或者,所述区块链客户端部署于所述业务区块链网络中的业务区块链节点上。Optionally, the blockchain client is deployed on the business end; or, the blockchain client is deployed on a business blockchain node in the business blockchain network.

请参考图7,在另一软件实施方式中,该区块链网络的压力测试装置应用于与处于生产状态的业务区块链网络对等的压测区块链网络中的压测区块链节点,可以包括:Referring to FIG. 7, in another software implementation, the stress testing device of the blockchain network is applied to the stress testing blockchain in the stress testing blockchain network that is equivalent to the business blockchain network in the production state Nodes, which can include:

接收单元702,接收所述业务区块链网络中的业务区块链节点转发的压测交易,所述压测交易由所述业务区块链节点在业务端发起的区块链交易为压测交易的情况下转发;A receiving unit 702, receiving a stress test transaction forwarded by a business block chain node in the business block chain network, where the stress test transaction is a stress test transaction initiated by the business block chain node at the service end forwarding in the case of a transaction;

执行单元704,执行所述压测交易;其中,在所述区块链交易为业务交易的情况下,所述业务交易被所述业务区块链节点执行。The executing unit 704 executes the pressure measurement transaction; wherein, in the case that the blockchain transaction is a business transaction, the business transaction is executed by the business blockchain node.

可选的,所述接收单元702具体用于:Optionally, the receiving unit 702 is specifically configured to:

接收所述业务区块链网络中与所述压测区块链节点对应的业务区块链节点转发的压测交易。Receive the stress test transaction forwarded by the business block chain node corresponding to the stress test block chain node in the business block chain network.

可选的,所述接收单元702具体用于:Optionally, the receiving unit 702 is specifically configured to:

接收所述业务区块链网络中作为转发节点的业务区块链节点转发的压测交易。A stress test transaction forwarded by a business blockchain node serving as a forwarding node in the business blockchain network is received.

可选的,所述接收单元702具体用于:Optionally, the receiving unit 702 is specifically configured to:

接收所述业务区块链网络中的业务区块链节点转发的从所述业务端处接收到的压测交易;或者,Receive the pressure measurement transaction received from the service terminal and forwarded by the service blockchain node in the service blockchain network; or,

接收所述业务区块链网络中的业务区块链节点转发的所述业务区块链网络中所有业务区块链节点从所述业务端处接收到的压测交易。Receive the pressure measurement transaction received from the service end by all the service blockchain nodes in the service blockchain network and forwarded by the service blockchain nodes in the service blockchain network.

可选的,所述压测交易中包含第一类型标识,所述业务交易中包含第二类型标识。Optionally, the pressure measurement transaction includes a first type identifier, and the business transaction includes a second type identifier.

可选的,对应于所述压测交易的第一交易回执中包含所述第一类型标识,对应于所述业务交易的第二交易回执中包含所述第二类型标识。Optionally, the first transaction receipt corresponding to the pressure measurement transaction includes the first type identifier, and the second transaction receipt corresponding to the business transaction includes the second type identifier.

可选的,所述第一交易回执被存储至压测数据库,所述第二交易回执被存储至业务数据库。Optionally, the first transaction receipt is stored in a stress measurement database, and the second transaction receipt is stored in a business database.

可选的,所述压测区块链网络与所述业务区块链网络具有相同的网络结构和网络配置。Optionally, the pressure measurement blockchain network and the business blockchain network have the same network structure and network configuration.

可选的,所述区块链交易由所述业务端通过区块链客户端向所述业务区块链网络发起。Optionally, the blockchain transaction is initiated by the business end to the business blockchain network through a blockchain client.

可选的,所述区块链客户端部署于所述业务端上;或者,所述区块链客户端部署于所述业务区块链网络中的业务区块链节点上。Optionally, the blockchain client is deployed on the business end; or, the blockchain client is deployed on a business blockchain node in the business blockchain network.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules or units described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer, which may be in the form of a personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation device, email sending and receiving device, game control desktop, tablet, wearable device, or a combination of any of these devices.

在一个典型的配置中,计算机包括一个或多个处理器 (CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computer includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器 (RAM) 和/或非易失性内存等形式,如只读存储器 (ROM) 或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent storage in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存 (PRAM)、静态随机存取存储器 (SRAM)、动态随机存取存储器 (DRAM)、其他类型的随机存取存储器 (RAM)、只读存储器 (ROM)、电可擦除可编程只读存储器 (EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘 (DVD) 或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. Computer-readable media, as defined herein, excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed or inherent to such a process, method, article of manufacture or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture or device that includes the element.

上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in one or more embodiments of this specification is for the purpose of describing a particular embodiment only and is not intended to limit the one or more embodiments of this specification. As used in the specification or embodiments and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It will be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information without departing from the scope of one or more embodiments of the present specification. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."

以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。The above descriptions are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. All within the spirit and principles of one or more embodiments of this specification, Any modifications, equivalent replacements, improvements, etc. made should be included within the protection scope of one or more embodiments of this specification.

Claims (20)

1. A system for pressure testing of a blockchain network, comprising:
the system comprises a business terminal, a block chain network and a block chain server, wherein the business terminal creates a block chain transaction through a block chain client and initiates the block chain transaction to a business block chain network in a production state through the block chain client;
a service block chain network, wherein a service block chain link point in the service block chain network reads a type identifier contained in the block chain transaction, the block chain transaction is determined as the pressure measurement transaction under the condition that the type identifier is a first type identifier, and the block chain transaction is determined as the service transaction under the condition that the type identifier is a second type identifier; and forwarding the pressure measurement transaction to a pressure measurement blockchain network equivalent to the service blockchain network when the blockchain transaction is a pressure measurement transaction, and executing the service transaction when the blockchain transaction is a service transaction; wherein a second transaction response corresponding to the business transaction comprises the second type identifier;
and a pressure measurement block chain network, wherein a pressure measurement block chain node in the pressure measurement block chain network executes the pressure measurement transaction, and a first transaction receipt corresponding to the pressure measurement transaction comprises the first type identification.
2. The system of claim 1, the blockchain client is deployed on the business end; or, the blockchain client is deployed on a service blockchain node in the service blockchain network.
3. A pressure test method of a blockchain network is applied to service blockchain nodes in a service blockchain network in a production state, and the method comprises the following steps:
identifying the transaction type of the blockchain transaction initiated by the service terminal, comprising the following steps: reading a type identifier contained in the blockchain transaction, judging the blockchain transaction as the pressure measurement transaction under the condition that the type identifier is a first type identifier, and judging the blockchain transaction as the service transaction under the condition that the type identifier is a second type identifier; the block chain transaction is created by the service terminal through a block chain client and is initiated to the service block chain network;
forwarding the pressure measurement transaction to a pressure measurement blockchain network which is equivalent to the service blockchain network under the condition that the blockchain transaction is the pressure measurement transaction, wherein a first transaction receipt corresponding to the pressure measurement transaction comprises the first type identification;
and executing the business transaction under the condition that the blockchain transaction is the business transaction, wherein a second transaction recovery corresponding to the business transaction comprises the second type identifier.
4. The method of claim 3, the forwarding the pressure transaction to a pressure blockchain network peer to the traffic blockchain network, comprising:
sending the pressure measurement transaction to a pressure measurement blockchain node corresponding to the service blockchain node in the pressure measurement blockchain network; or,
and respectively sending the pressure measurement transaction to all pressure measurement block chain nodes in the pressure measurement block chain network.
5. The method of claim 3, the forwarding the pressure transaction to a pressure blockchain network peer to the traffic blockchain network, comprising:
and forwarding the pressure measurement transaction to the pressure measurement blockchain network under the condition that the service blockchain node is a forwarding node in the service blockchain network.
6. The method of claim 3, the forwarding the pressure transaction to a pressure blockchain network peer to the traffic blockchain network, comprising:
forwarding the pressure measurement transaction received by the service blockchain node from the service end to the pressure measurement blockchain network; or,
and forwarding the pressure measurement transaction received by all service block chain nodes in the service block chain network from the service end to the pressure measurement block chain network.
7. The method of claim 3, wherein the first transaction receipt is stored to a pressure measurement database and the second transaction receipt is stored to a business database.
8. The method of claim 3, the pressure blockchain network having the same network structure and network configuration as the traffic blockchain network.
9. The method of claim 3, the blockchain client is deployed on the business; or, the blockchain client is deployed on a service blockchain node in the service blockchain network.
10. A pressure test method of a blockchain network is applied to a pressure measurement blockchain node in the pressure measurement blockchain network which is equivalent to a business blockchain network in a production state, and the method comprises the following steps:
receiving a pressure measurement transaction forwarded by a service block chain link point in the service block chain network, wherein the pressure measurement transaction is forwarded by the service block chain link point under the condition that the block chain transaction initiated by a service end is the pressure measurement transaction; under the condition that the type identifier contained in the blockchain transaction is a first type identifier, the blockchain transaction is judged as a pressure measurement transaction by the service blockchain link point, and under the condition that the type identifier contained in the blockchain transaction is a second type identifier, the blockchain transaction is judged as a service transaction by the service blockchain link point; the block chain transaction is created by the service terminal through a block chain client and is initiated to the service block chain network; executing the pressure measurement transaction, wherein a first transaction receipt corresponding to the pressure measurement transaction comprises the first type identification; wherein, when the blockchain transaction is a service transaction, the service transaction is executed by the service blockchain link node, and a second transaction receipt corresponding to the service transaction includes the second type identifier.
11. The method of claim 10, the receiving the forwarded pressure measurement transactions for the service block link nodes in the service block chain network, comprising:
and receiving the pressure measurement transaction forwarded by the service block chain link point corresponding to the pressure measurement block chain node in the service block chain network.
12. The method of claim 10, the receiving the forwarded pressure measurement transactions for the service block link nodes in the service block chain network, comprising:
and receiving the pressure measurement transaction forwarded by the service block chain link point serving as the forwarding node in the service block chain network.
13. The method of claim 10, the receiving the forwarded pressure measurement transactions for the service block link nodes in the service block chain network, comprising:
receiving a pressure measurement transaction received from the service end forwarded by a service block link node in the service block chain network; or,
and receiving the pressure measurement transaction which is forwarded by the service block chain link point in the service block chain network and is received by all the service block chain nodes in the service block chain network from the service end.
14. The method of claim 10, wherein the first transaction receipt is stored to a pressure measurement database and the second transaction receipt is stored to a business database.
15. The method of claim 10, the pressure blockchain network having the same network structure and network configuration as the traffic blockchain network.
16. The method of claim 10, the blockchain client is deployed on the business; or, the blockchain client is deployed on a service blockchain node in the service blockchain network.
17. A device for testing the pressure of a blockchain network, applied to a service blockchain node in a service blockchain network in a production state, the device comprising:
the identification unit is used for identifying the transaction type of the blockchain transaction initiated by the service terminal and comprises the following steps: reading a type identifier contained in the blockchain transaction, judging the blockchain transaction as the pressure measurement transaction under the condition that the type identifier is a first type identifier, and judging the blockchain transaction as the service transaction under the condition that the type identifier is a second type identifier; the block chain transaction is created by the service terminal through a block chain client and is initiated to the service block chain network;
the forwarding unit is used for forwarding the pressure measurement transaction to a pressure measurement blockchain network which is equivalent to the service blockchain network under the condition that the blockchain transaction is the pressure measurement transaction, and a first transaction receipt corresponding to the pressure measurement transaction comprises the first type identification;
and the execution unit is used for executing the business transaction under the condition that the blockchain transaction is the business transaction, and a second transaction recovery corresponding to the business transaction contains the second type identifier.
18. A pressure test apparatus for a blockchain network, applied to a pressure measurement blockchain node in a pressure measurement blockchain network that is equivalent to a service blockchain network in a production state, the apparatus comprising:
the receiving unit is used for receiving the pressure measurement transaction forwarded by the service block chain link point in the service block chain network, wherein the pressure measurement transaction is forwarded by the service block chain link point under the condition that the block chain transaction initiated by a service end is the pressure measurement transaction; under the condition that the type identifier contained in the blockchain transaction is a first type identifier, the blockchain transaction is judged as a pressure measurement transaction by the service blockchain link point, and under the condition that the type identifier contained in the blockchain transaction is a second type identifier, the blockchain transaction is judged as a service transaction by the service blockchain link point; the block chain transaction is created by the service terminal through a block chain client and is initiated to the service block chain network;
the execution unit is used for executing the pressure measurement transaction, and a first transaction receipt corresponding to the pressure measurement transaction comprises the first type identification; wherein, when the blockchain transaction is a service transaction, the service transaction is executed by the service blockchain link node, and a second transaction receipt corresponding to the service transaction includes the second type identifier.
19. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor implements the method of any one of claims 3-16 by executing the executable instructions.
20. A computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the method according to any one of claims 3 to 16.
CN202010586356.3A 2020-06-24 2020-06-24 Stress testing method, device and system for blockchain network Active CN111478829B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202010586356.3A CN111478829B (en) 2020-06-24 2020-06-24 Stress testing method, device and system for blockchain network
CN202011416443.0A CN112486830B (en) 2020-06-24 2020-06-24 Pressure testing method, device and system for block chain network
PCT/CN2021/100605 WO2021259131A1 (en) 2020-06-24 2021-06-17 Pressure test method, apparatus, and system for block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010586356.3A CN111478829B (en) 2020-06-24 2020-06-24 Stress testing method, device and system for blockchain network

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202011416443.0A Division CN112486830B (en) 2020-06-24 2020-06-24 Pressure testing method, device and system for block chain network

Publications (2)

Publication Number Publication Date
CN111478829A CN111478829A (en) 2020-07-31
CN111478829B true CN111478829B (en) 2020-10-30

Family

ID=71765371

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010586356.3A Active CN111478829B (en) 2020-06-24 2020-06-24 Stress testing method, device and system for blockchain network
CN202011416443.0A Active CN112486830B (en) 2020-06-24 2020-06-24 Pressure testing method, device and system for block chain network

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202011416443.0A Active CN112486830B (en) 2020-06-24 2020-06-24 Pressure testing method, device and system for block chain network

Country Status (2)

Country Link
CN (2) CN111478829B (en)
WO (1) WO2021259131A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111478828B (en) * 2020-06-24 2020-10-20 支付宝(杭州)信息技术有限公司 Pressure testing method, device and system for block chain network
CN111478829B (en) * 2020-06-24 2020-10-30 支付宝(杭州)信息技术有限公司 Stress testing method, device and system for blockchain network
CN111478827B (en) * 2020-06-24 2020-12-04 支付宝(杭州)信息技术有限公司 Stress testing method, device and system for blockchain network
CN114448839B (en) * 2022-01-29 2024-04-12 中国工商银行股份有限公司 Self-adaptive distributed system pressure measurement method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621414A (en) * 2009-08-21 2010-01-06 杭州华三通信技术有限公司 Method and apparatus for discovering network resource and topology
CN109034809A (en) * 2018-08-16 2018-12-18 北京京东尚科信息技术有限公司 Generation method, device, block chain node and the storage medium of block chain
CN110580206A (en) * 2019-09-16 2019-12-17 上海保险交易所股份有限公司 Method, medium and control device for pressure testing of a blockchain system
CN110598446A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Block chain based test method and device, storage medium and computer equipment

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001183A (en) * 2007-01-10 2007-07-18 网之易信息技术(北京)有限公司 Test method and system for network application software
CN108075911B (en) * 2016-11-14 2020-12-08 中国移动通信集团甘肃有限公司 A service testing method and device
CN106598824B (en) * 2016-11-25 2018-11-20 深圳前海微众银行股份有限公司 The method for analyzing performance and device of block chain
US9934138B1 (en) * 2016-12-07 2018-04-03 International Business Machines Corporation Application testing on a blockchain
EP3388994A1 (en) * 2017-04-12 2018-10-17 Siemens Aktiengesellschaft Method and apparatus for computer-assisted testing of a blockchain
CN108389104B (en) * 2018-01-31 2021-06-25 口碑(上海)信息技术有限公司 A kind of simulation verification method and device of network activity
CN108763058A (en) * 2018-04-24 2018-11-06 苏州同济区块链研究院有限公司 A kind of block chain evaluation system
CN108805704A (en) * 2018-05-16 2018-11-13 深圳市网心科技有限公司 Block chain service implementation method, audiomonitor, storage medium and system
US20190377660A1 (en) * 2018-06-07 2019-12-12 Blocktest Global Methods and systems for blockchain testing
CN108848156B (en) * 2018-06-08 2021-06-29 中国联合网络通信集团有限公司 Access gateway processing method, device and storage medium
WO2020003131A1 (en) * 2018-06-25 2020-01-02 Blocktest Global Systems and methods to automatically evaluate blockchain-based solution performance
CN109165168A (en) * 2018-09-14 2019-01-08 杭州云创共享网络科技有限公司 A kind of method for testing pressure, device, equipment and medium
CN111176970A (en) * 2018-11-09 2020-05-19 北京天德科技有限公司 A blockchain testing architecture and system
KR102225973B1 (en) * 2018-11-30 2021-03-11 어드밴스드 뉴 테크놀로지스 씨오., 엘티디. Test platform for blockchain networks
CN109639521B (en) * 2018-12-05 2020-09-29 京东数字科技控股有限公司 Block chain performance testing method, device, equipment and storage medium
CN110046091B (en) * 2019-03-12 2023-10-20 创新先进技术有限公司 An automatic testing method and device
CN110061889A (en) * 2019-04-01 2019-07-26 北京众享比特科技有限公司 Block chain performance test methods, device, equipment and storage medium
CN110519388B (en) * 2019-08-30 2022-04-19 望海康信(北京)科技股份公司 Processing method and device for block chain request, electronic equipment and readable storage medium
CN111290907A (en) * 2020-01-14 2020-06-16 深圳市网心科技有限公司 Distributed storage network pressure measurement method and device, computer device and storage medium
CN111327490B (en) * 2020-01-20 2021-01-29 腾讯科技(深圳)有限公司 Byzantine fault-tolerant detection method of block chain and related device
CN111478827B (en) * 2020-06-24 2020-12-04 支付宝(杭州)信息技术有限公司 Stress testing method, device and system for blockchain network
CN111488291B (en) * 2020-06-24 2020-10-30 支付宝(杭州)信息技术有限公司 Pressure testing method, device and system for block chain network
CN111478829B (en) * 2020-06-24 2020-10-30 支付宝(杭州)信息技术有限公司 Stress testing method, device and system for blockchain network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621414A (en) * 2009-08-21 2010-01-06 杭州华三通信技术有限公司 Method and apparatus for discovering network resource and topology
CN109034809A (en) * 2018-08-16 2018-12-18 北京京东尚科信息技术有限公司 Generation method, device, block chain node and the storage medium of block chain
CN110580206A (en) * 2019-09-16 2019-12-17 上海保险交易所股份有限公司 Method, medium and control device for pressure testing of a blockchain system
CN110598446A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Block chain based test method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN112486830B (en) 2023-04-18
CN112486830A (en) 2021-03-12
WO2021259131A1 (en) 2021-12-30
CN111478829A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN111478829B (en) Stress testing method, device and system for blockchain network
CN111478828B (en) Pressure testing method, device and system for block chain network
CN111787072B (en) Cross-block-chain interaction method, device, system and electronic equipment
CN111488291B (en) Pressure testing method, device and system for block chain network
CN111475501B (en) Data cleaning method and device for block chain network
CN111478827B (en) Stress testing method, device and system for blockchain network
CN111782725A (en) Interaction method and device, system and electronic device across blockchain
US11709769B2 (en) Method for testing a microservice application
CN108985742A (en) Transaction processing method, device and block catenary system
CN105915529A (en) Message generation method and device
CN110955724A (en) Blockchain-based data processing method, device, node device and storage medium
CN112788108B (en) A cross-blockchain distributed message processing method, platform and storage medium
CN113010337A (en) Fault detection method, master control node, working node and distributed system
HK40047441B (en) Pressure test method, device and system for blockchain network
CN111131427B (en) Cross-domain cooperative system based on central domain and implementation method
WO2022183913A1 (en) Blockchain-based real right interaction
HK40034540B (en) Pressure test method, device and system for blockchain network
HK40034540A (en) Pressure test method, device and system for blockchain network
CN109658176B (en) Resource overhead output method and device and electronic equipment
HK40047441A (en) Pressure test method, device and system for blockchain network
CN115633375A (en) Data packet transmission method and device
HK40034127A (en) Block chain network pressure test method, device and system
HK40034127B (en) Block chain network pressure test method, device and system
HK40034538B (en) Pressure test method, device and system for blockchain network
HK40034538A (en) Pressure test method, device and system for blockchain network

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40034540

Country of ref document: HK

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240914

Address after: Room 803, floor 8, No. 618 Wai Road, Huangpu District, Shanghai 200010

Patentee after: Ant blockchain Technology (Shanghai) Co.,Ltd.

Country or region after: China

Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province

Patentee before: Alipay (Hangzhou) Information Technology Co.,Ltd.

Country or region before: China