CN111478829B - Stress testing method, device and system for blockchain network - Google Patents
Stress testing method, device and system for blockchain network Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; 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
Description
技术领域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,识别业务端发起的区块链交易的交易类型。
在本实施例中,区块链客户端用于创建区块链交易,并向业务区块链网络提交创建的区块链交易。因此,业务端可通过区块链客户端向业务区块链网络发起区块链交易。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,在所述区块链交易为压测交易的情况下,向与所述业务区块链网络对等的压测区块链网络转发所述压测交易。
在本实施例中,为了避免压力测试与生产业务之间相互干扰,可分别部署用于响应压测交易的压测区块链网络,以及用于响应业务交易的业务区块链网络。其中,压测区块链网络为与业务区块链网络对等的区块链网络。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,在所述区块链交易为业务交易的情况下,执行所述业务交易。
为了便于理解,下面结合图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-
当针对业务区块链网络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
业务区块链网络32中的业务区块链节点在接收到区块链交易后,需要读取该区块链交易中包含的类型标识以对其交易类型进行识别,从而对不同交易类型的区块链交易进行差异化处理。当接收到的区块链交易为业务交易时,业务区块链网络32中的业务区块链节点则针对该业务交易进行共识、执行、上链等操作,并生成相应的交易回执。比如,业务端31可以将创建好的区块链交易发送至业务区块链网络32中的某一业务区块链节点32n,而业务区块链节点32n需要对接收到的区块链交易的交易类型予以识别,以确定该区块链交易为业务交易还是压测交易。当确定出该区块链交易为业务交易时,区块链节点32n可以进一步将该业务交易传递至业务区块链网络32中的其他区块链节点,使得业务区块链网络32中的所有业务区块链节点可以针对该业务交易进行共识、执行、上链等操作,并生成相应的交易回执(包含第二类型标识,即上述业务标签)。After receiving the blockchain transaction, the business blockchain node in the
当业务区块链网络32中的业务区块链节点识别出接收到的区块链交易为压测交易时,业务区块链网络32中的业务区块链节点则将该压测交易转发至压测区块链网络33,以由压测区块链网络33中的压测区块链节点针对该压测交易进行共识、执行、上链等操作,并生成相应的交易回执(包含第一类型标识,即上述压测标签)。When the business blockchain node in the
对于物理世界产生的真实数据,可以将其构建成区块链网络所支持的标准的交易(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
其中,区块链网络中支持的共识算法可以包括: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
一方面,针对向压测区块链网络转发压测交易的方式,存在两种情况。在一种情况下,由于压测区块链网络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
举例而言,假定业务区块链网络32中业务区块链节点和压测区块链网络33中压测区块链节点之间的对应关系如表1所示。For example, it is assumed that the corresponding relationship between the business blockchain nodes in the
那么,由业务区块链节点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
另一方面,业务端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
在另一种情况下,业务区块链网络32中的任一业务区块链节点可向压测区块链网络33转发业务区块链网络32中所有业务区块链节点从业务端31处接收到的压测交易。其中,业务区块链网络32中的每个业务区块链节点在从业务端31处接收到压测交易后,可在业务区块链网络32中广播自身接收到的压测交易,使得业务区块链网络32中的所有业务区块链节点之间可同步接收到的压测交易,也即每个业务区块链节点均可获取到所有业务区块链节点从业务端处接收到的压测交易,进而将这些压测交易转发至业务区块链网络。In another case, any business blockchain node in the
或者,可在业务区块链网络32中配置用于转发压测交易的转发节点,那么在业务区块链网络32中的某一业务区块链节点为转发节点的情况下,由该业务区块链节点向压测区块链网络33转发压测交易。业务区块链网络32中各个业务区块链节点可将从业务端处接收到的压测交易发送至转发节点,由转发节点统一将所有业务区块链节点从业务端处接收到的压测交易转发至压测区块链网络33。比如,转发节点可与压测区块链网络33中的某一压测区块链节点建立连接,从而将所有压测交易转发至该压测区块链节点,以由该压测区块链节点在压测区块链网络33中广播来自转发节点的压测交易,使得压测区块链网络33中的所有压测区块链节点可获取来自转发节点的压测交易,进而进行共识、执行、上链等操作。又如,转发节点可与压测区块链网络33中的每个压测区块链节点建立连接,从而将所有压测交易转发至每个压测区块链节点,使得压测区块链网络33中的所有压测区块链节点可获取来自转发节点的压测交易,进而进行共识、执行、上链等操作。Alternatively, a forwarding node for forwarding pressure measurement transactions can be configured in the
其中,可由业务区块链网络32中各个业务区块链节点之间进行协商选取出转发节点。或者,在部署业务区块链网络32的阶段选取出转发节点,从而将该转发节点的节点信息写入链代码中,使得各个业务区块链节点将链代码中记录的节点信息对应的业务区块链节点确认为转发节点。The forwarding node can be selected through negotiation among the business blockchain nodes in the
业务端31可以通过与业务区块链网络32中的某一业务区块链节点之间建立连接,从而向该业务区块链节点提交创建的区块链交易,该业务区块链节点可以为如图3所示的业务区块链节点32n。以业务区块链节点32n为例,业务端31与业务区块链节点32n之间建立的连接可以为长连接,使得业务区块链节点32n执行业务交易生成第二交易回执,以及从压测区块链网络33获得第一交易回执之后,可以产生相应的交易回执生成事件,而业务端31可以通过监听该交易回执生成事件获知交易回执已生成(即事件监听机制),并基于上述的长连接获取相应的交易回执(第一交易回执或第二交易回执)。当然,也可以由业务区块链节点32n自身通过上述的事件监听机制来监听交易回执生成事件,并通过上述的长连接将相应的交易回执反馈至业务端31,使得业务端31获得交易回执。或者,如果业务端31与业务区块链节点32n之间建立的连接并非长连接或者所建立的长连接断开,业务端31需要额外通过发起一笔查询交易,以查询所提交的区块链交易对应的交易回执。其中,该查询交易可以为常规的区块链交易,使得业务区块链网络32中的所有区块链节点均需针对该查询交易进行获取、共识、执行、上链等操作,而业务端31可以通过上述方式与某一业务区块链节点建立长连接,并基于上述的事件监听机制从该业务区块链节点处获取相应的交易回执;或者,该查询交易可以为特殊交易,譬如业务端31可以仅与业务区块链节点32n建立长连接并发送该查询交易,那么该查询交易仅会被业务区块链节点32n获取并执行,该查询交易无需参与共识且不需要上链,甚至无需被其他区块链节点获取,然后业务端31可以基于如前所述的事件监听机制获取相应的交易回执。The
而对于压测区块链网络33中的压测区块链节点执行压测交易后生成的第一交易回执,业务区块链网络32中的业务区块链节点同样可基于如前所述的事件监听机制获取该第二交易回执,在此不再赘述。例如,可由业务区块链节点32n与压测区块链节点33n之间建立连接,从而基于如前所述的事件监听机制获取第二交易回执。For the first transaction receipt generated after the stress testing blockchain node in the stress
相应地,业务端31在获取交易回执后,可根据交易回执中包含的类型标识来识别获取到的交易回执对应于压测交易还是对应于业务交易。当获取到的交易回执中包含第一类型标识时,判定该交易回执为第一交易回执(即对应于压测交易);当获取到的交易回执中包含第二类型标识时,判定该交易回执为第二交易回执(即对应于业务交易)。进一步的。业务端31可以将第一交易回执存储至压测数据库,将第二交易回执存储至业务数据库,后续可以从压测数据库获取第一交易回执,以分析确定针对业务区块链网络32的压测结果。Correspondingly, after acquiring the transaction receipt, the
在本说明书中,对应于上述业务区块链节点侧的实施例,本说明书还提出了压测区块链网络中压测区块链节点侧的实施例,在业务区块链节点侧的实施例中所涉及的描述同样可以适用于压测区块链节点侧的实施例,下文中不再对此进行赘述。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
请参考图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)
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)
| 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)
| 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)
| 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 |
-
2020
- 2020-06-24 CN CN202010586356.3A patent/CN111478829B/en active Active
- 2020-06-24 CN CN202011416443.0A patent/CN112486830B/en active Active
-
2021
- 2021-06-17 WO PCT/CN2021/100605 patent/WO2021259131A1/en not_active Ceased
Patent Citations (4)
| 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 |