WO2022001810A1 - Transaction data processing method and apparatus, and data processing method and apparatus - Google Patents

Transaction data processing method and apparatus, and data processing method and apparatus Download PDF

Info

Publication number
WO2022001810A1
WO2022001810A1 PCT/CN2021/102026 CN2021102026W WO2022001810A1 WO 2022001810 A1 WO2022001810 A1 WO 2022001810A1 CN 2021102026 W CN2021102026 W CN 2021102026W WO 2022001810 A1 WO2022001810 A1 WO 2022001810A1
Authority
WO
WIPO (PCT)
Prior art keywords
data processing
node
preset
node server
transaction data
Prior art date
Application number
PCT/CN2021/102026
Other languages
French (fr)
Chinese (zh)
Inventor
刘小丽
曹政
邓福喜
曾超
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2022001810A1 publication Critical patent/WO2022001810A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication

Definitions

  • This specification belongs to the field of Internet technology, and particularly relates to a method and device for processing transaction data, and a method and device for processing data.
  • a server in the data processing network often needs to generate and transmit consensus information to the outside world to initiate a consensus operation; after it is determined that the servers in the data processing network have reached a consensus agreement, the specific data processing is carried out. .
  • This specification provides a transaction data processing method and device, and a data processing method and device, so as to effectively improve the transmission efficiency of consensus information and efficiently complete the data processing of transaction data.
  • a transaction data processing method and device, and data processing method and device provided in this specification are implemented as follows:
  • a method for processing transaction data is applied in a preset data processing network, the preset data processing network includes a plurality of node servers, and the method includes: a first node server receives a data sent by a client device. A transaction data processing request, and broadcast the transaction data processing request to a preset data processing network; the second node server in the plurality of node servers receives and responds to the transaction data processing request, and generates a transaction data processing request for the transaction data.
  • a transaction data processing method comprising: receiving and responding to a transaction data processing request, and generating consensus information for the transaction data processing request, wherein the consensus information carries an identity of a second node server;
  • the preset transmission method is to transmit the consensus information to the node server in the preset data processing network, wherein the preset data processing network includes a plurality of node servers, and the multiple nodes in the preset data processing network Each node server performs corresponding transaction data processing according to the transaction data processing request when it is determined that at least a preset number of node servers have received the consensus information.
  • a transaction data processing device comprising: a transceiver module for receiving a transaction data processing request sent by a client device, and broadcasting the transaction data processing request to a preset data processing network; wherein the preset data
  • the processing network includes a plurality of node servers, and a second node server in the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and passes a preset based on collective communication.
  • the transmission method is to transmit the consensus information to the node servers in the preset data processing network; the processing module is used to determine that at least a preset number of node servers have received the consensus information, according to the transaction data.
  • the corresponding transaction data processing is performed on the processing request, the corresponding transaction data processing result is obtained, and the transaction data processing result is fed back to the client device.
  • FIG. 8 is a schematic diagram of an embodiment of applying the transaction data processing method provided by the embodiment of this specification in an example scenario
  • the first node server may be specifically configured to receive the transaction data processing request sent by the client device, and broadcast the transaction data processing request to a preset data processing network.
  • the above-mentioned preset transmission method based on collective communication may specifically include a method of dividing multiple node servers included in the data processing network into multiple transmission levels according to a preset collective communication rule, and then according to the preset collective communication
  • the rules gradually introduce multiple node servers to participate in the data transmission task in a targeted manner, so as to perform a point-to-point data transmission transmission method among the above-mentioned multiple node servers step by step.
  • the above-mentioned preset collective communication rules may specifically include a pre-generated one (or several) node servers as the starting node server in the data transmission process, and a plurality of nodes included in the data processing network are processed.
  • the server is divided into multiple data transmission levels, and includes the next-level node server to which each node server is connected, as well as the rules of the data transmission task it is responsible for.
  • the number of next-level node servers of different node servers can also be flexibly set according to the network transmission bandwidth of each node server and/or the specific performance parameters of each node server.
  • the second node server when the second node server transmits consensus information through the preset transmission method based on collective communication, it can first transmit the consensus information according to its own identity (for example, the server number of the second node server: 0), from multiple A preset collective communication rule corresponding to the identity identifier matching is found from the preset collective communication rules, and used as the first target collective communication rule. Then, according to the communication rule of the first target set, determine the next-level node server that it is responsible for.
  • its own identity for example, the server number of the second node server: 0
  • a preset collective communication rule corresponding to the identity identifier matching is found from the preset collective communication rules, and used as the first target collective communication rule.
  • the communication rule of the first target set determine the next-level node server that it is responsible for.
  • the second node server can determine that the next-level node server is the third node server, and then can only send the generated consensus information to the first node server in a targeted manner.
  • the three-node server does not need to send the above consensus information to all the node servers in the data processing network in turn.
  • next-level node server that the third node server is responsible for interfacing only includes two different node servers, and the identities are 4 and 12, respectively corresponding to the first node server.
  • identities are 4 and 12, respectively corresponding to the first node server.
  • the node server of the data processing network can use the time point when the second node server sends the consensus information as the starting time, and count the number of node servers that have received the consensus information by publishing confirmation information within a preset time period threshold (for example, 1 minute). .
  • the number is compared with the preset number to determine whether a node server greater than or equal to the preset number has received the above consensus information within the preset time period threshold.
  • it can be determined that more than or equal to the preset number of node servers have received the consensus information within the preset time period threshold, it can be determined that a consensus is reached and the consensus operation is completed.
  • the client device receives the transaction data processing result fed back by the first node server, and displays the transaction data processing result to the user. For example, a prompt message of "successful purchase order" is displayed to the user.
  • the first node server may find a preset collective communication rule corresponding to the first node server from a plurality of preset collective communication rules as the second target collective communication rule according to its own identity. At the same time, the identity identifier of the first node server is added to the transaction data processing request to be transmitted.
  • the sixth node server and the second node server can extract the identity of the first node server, and determine the second node from a plurality of preset collective communication rules according to the identity.
  • the target set communication rule, and then the next-level node server of the sixth node server and the next-level node server of the second node server can be respectively determined according to the second target set communication rule, and the above-mentioned data carrying the first node server
  • the transaction data processing request of the identity tag is continuously sent to the next-level node server of the sixth node server and the next-level node server of the second node server.
  • multiple node servers in the data processing network can participate in the targeted transmission of transaction data processing requests step by step, until each node server in the data processing network receives the transaction data processing request. , thus completing the broadcast of the transaction data processing request.
  • the time-consuming process of broadcasting the transaction data processing request to the node server in the data processing network can be effectively shortened, and the broadcast of the transaction data processing request can be more efficiently broadcasted, thereby further improving the background data processing system's ability to target the overall transaction data.
  • the data processing efficiency can further shorten the user's waiting delay and improve the user's experience.
  • node servers that have not received transaction data processing requests can also be found in time, and transaction data processing requests can be resent for such node servers, avoiding omissions when broadcasting transaction data processing requests.
  • the second node server may receive and respond to the above data processing request, and generate consensus information corresponding to the data processing request, wherein the consensus information may carry the identity of the second node server.
  • the node server in the data processing network determines that a consensus has been reached when it is determined that at least a preset number of node servers have received the consensus information within a preset time period. Further, each node server in the data processing network can separately process the multiple transaction data contained in the current batch according to the above data processing request, and complete the batch processing of the multiple transaction data in the current batch.
  • the first node server can retrieve multiple transaction data from the remaining pending transaction data contained in the resource pool, as the transaction data of a new batch, and then follow the In the above manner, batch processing is performed on the transaction data of the new batch.
  • an embodiment of this specification provides a method for processing transaction data.
  • the method may include the following contents.
  • the first node server receives the transaction data processing request sent by the client device, and broadcasts the transaction data processing request to a preset data processing network.
  • the above-mentioned preset data processing network may specifically include a blockchain-based data processing network.
  • the node server included in the preset data processing network can be understood as a processing node in the blockchain.
  • the multiple node servers may respectively perform specific data processing.
  • any node server in the preset data processing network may receive the transaction data processing request sent by the client device as the first node server, and process the request to the preset data processing network.
  • the network broadcasts the transaction data processing request, so that each node server in the preset data processing system receives the transaction data processing request.
  • the above-mentioned transaction data may specifically include data related to the transaction process.
  • the transaction data may be order data, commodity data, or payment data used to pay for orders, and the like.
  • the transaction data listed above is only a schematic illustration.
  • the above-mentioned transaction data may also include data of other contents. This specification does not limit this.
  • the above method may also be used to perform corresponding processing on other types of data other than transaction data.
  • the above method can also be used to respond to the identity data verification request, and perform data processing related to the identity verification process on the identity verification data such as password and fingerprint input by the user.
  • the above method may also be used to respond to a genetic testing request, and perform data processing related to the genetic testing process on the genetic data provided by the user.
  • the second node server of the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and sends a preset transmission method based on collective communication to a preset
  • the node server in the data processing network transmits the consensus information.
  • consensus rules specifically include consensus algorithms based on alliance chains, such as PBFT (Practical Byzantine Fault Tolerance) or Hot Stuff.
  • PBFT Practical Byzantine Fault Tolerance
  • Hot Stuff a consensus rule that can also be selected according to specific circumstances. This specification does not limit this.
  • the above-mentioned second node server may specifically include a node server that initiates a consensus operation in a preset data processing network.
  • the above-mentioned second node server may be a master node server in a preset data processing network, or may be any node server in a preset data processing network.
  • the second node server may initiate a consensus operation in the following manner: generating consensus information carrying the identity of the second node server, and transmitting the consensus information to a preset data processing network node server in .
  • the consensus information carries the identity of the second node server that initiates the consensus operation.
  • the above-mentioned identification may specifically include identification information that can indicate a node server and is in a one-to-one correspondence with the node server.
  • the above-mentioned identity identifier may be the IP address of the node server, the server number of the node server, the name of the node server, or the like.
  • the identity identifiers listed above are just a schematic illustration. During specific implementation, according to specific circumstances and processing needs, the above-mentioned identity identifier may also include other types of identification information. This specification does not limit this.
  • the second node server initiates the consensus operation, at least a preset number of node servers in the preset data processing network need to receive the consensus information before reaching a consensus.
  • the above-mentioned preset number can be determined according to consensus rules.
  • the preset number may be 2/3 of the total number of node servers in the preset data processing network, or may be the total number of node servers in the preset data processing network, or the like.
  • the preset number listed above is only a schematic illustration. During specific implementation, according to the specific situation and the consensus rule used, the above-mentioned preset number may also include other values. This specification does not limit this.
  • the second node server may transmit the consensus information to the node server in the preset data processing network through a preset transmission method based on collective communication.
  • the above-mentioned preset transmission method based on collective communication may specifically include a method of dividing a plurality of node servers included in a preset data processing network into a plurality of transmission levels according to a preset collective communication rule, Then, according to the preset collective communication rules, multiple node servers are gradually introduced to participate in the data transmission task, so as to perform point-to-point data transmission among multiple node servers in the preset data processing network.
  • each node server in the data processing network only needs to receive the data sent by the upper-level node server determined based on the preset collective communication rule. Data, and only need to send the received data to one or more next-level node servers determined based on the preset collective communication rules to complete the data transmission task that the node server is responsible for. In this way, each node server does not need to send the received data to all the node servers in the preset data processing network at the same time without distinction.
  • the above-mentioned preset collective communication rules may cover each node server in the preset data processing network, and omissions will not occur. Moreover, each node server other than the starting node server in the preset data processing network will only receive data once during data processing, and will not receive the same data repeatedly, thereby avoiding data redundancy.
  • the above-mentioned preset collective communication rule includes at least the next-level node server of each node server in the data transmission process.
  • each node server when each node server is responsible for the data transmission task, it can determine the next-level node server responsible for transmission according to the above preset collective communication rules, and then send the data to be transmitted only to itself.
  • the next level of node server The number of next-level node servers of each node server may be the same or different. Specifically, the number of next-level node servers of a node server may be one or more.
  • the network transmission bandwidth of each node server, and/or the specific performance parameters of each node server, etc. can be flexibly set for different node servers.
  • the number of primary node servers For example, a node server has a wide network transmission bandwidth and can support data transmission for five different node servers at the same time.
  • the next-level node server of the node server may include a relatively large number of node servers.
  • the next-level node server of the node server may include five node servers, so that the network transmission bandwidth of the node server can be fully utilized, and the overall data transmission efficiency of the preset data processing network can be improved.
  • the above-mentioned preset collective communication rules may further include other information data such as the upper-level node servers of each node server. This specification does not limit this.
  • a plurality of different preset collective communication rules may be included.
  • the starting node servers in the above-mentioned multiple different preset collective communication rules may be different node servers in the preset data processing network, respectively.
  • each preset collective communication rule may respectively correspond to the starting node server (or the identity identifier of the starting node server) in the preset collective communication rule.
  • a plurality of different node servers in the preset data processing network can be used as the starting node servers, respectively, to generate a plurality of corresponding preset collective communication rules.
  • Each node server in the data processing network may acquire and save the above-mentioned multiple preset collective communication rules respectively.
  • the above-mentioned preset collective communication rule may be specifically represented in the form of a graph, for example, it may be a collective communication view.
  • the above-mentioned preset collective communication rules may also be specifically expressed in other forms such as a number table.
  • the above-listed representations are only a schematic illustration. During specific implementation, according to specific situations and processing needs, other forms may also be used to represent the above-mentioned preset collective communication rules.
  • the second node server may first find a preset set that matches the identity of the second node server from a plurality of preset set communication rules according to the identity of the second node server The communication rules are used as the first target set communication rules.
  • the second node server may determine the next-level node server of the second node server according to the first target set communication rule, and only transmit the consensus information to the next-level node server of the second node.
  • the next-level node server of the second node may first extract the identity of the second node server from the consensus information, and according to the identity, select from a plurality of preset The first target collective communication rule is determined in the collective communication rule. Then, according to the communication rules of the first target set, determine its own next-level node server, and then only continue to transmit the consensus information to its own next-level node server to complete the transmission task that it is responsible for.
  • different nodes in the preset data processing network will gradually participate in the transmission project of consensus information, receive the consensus information transmitted by the previous level, and transmit the consensus information according to the preset collective communication rules to its own next-level node server to complete the transmission tasks that it is responsible for, so that different node servers can be continuously introduced to participate in the transmission of consensus information, and the consensus information can be transmitted to the preset data step by step in a parallel transmission method.
  • Processing node server information in the network increases the amount of data transmitted per unit time, improves the transmission efficiency of consensus information, and shortens the time-consuming process of consensus information transmission.
  • each node server in the preset data processing network can be more accurately covered, and omissions can be avoided. Moreover, each node server will only receive consensus information once, and will not receive consensus information multiple times, avoiding repeated receipt of consensus information.
  • the node server may exit the transmission after completing the transmission task it is responsible for.
  • Confirmation information can also be generated and published to indicate that the consensus information has been received, and/or the consensus information has been transmitted to the next-level node server.
  • the number of node servers that have received the consensus information may be counted. The number is compared with the preset number to determine whether a node server greater than or equal to the preset number has received the above consensus information. In the case where it is determined that more than or equal to the preset number of node servers has received the consensus information, it can be determined that a consensus has been reached, and the consensus operation has been completed.
  • the second node server may re-initiate the consensus operation, and re-transmit the consensus information to the node server in the preset data processing network through the preset transmission mode based on collective communication.
  • the tolerable time period for the node server in the data processing network it is also possible to set the tolerable time period for the node server in the data processing network to receive the consensus information as the preset time period threshold value according to the specific situation and accuracy requirements.
  • determining that at least a preset number of node servers have received the consensus information may include: determining that at least a preset number of node servers have received the consensus information within a preset time period threshold.
  • the above-mentioned preset time period threshold can be used as a cutoff reference, and whether a consensus is reached is determined by detecting whether there are more than or equal to the preset number of node servers within the preset time period threshold that receive the consensus information.
  • the time point when the second node server sends the consensus information may be used as the starting time, and the preset statistics The number of node servers that have received consensus information within the time period threshold. The number is compared with the preset number to determine whether a node server greater than or equal to the preset number has received the above consensus information within the preset time period threshold. When it is determined that the consensus information is received by node servers greater than or equal to the preset number within the preset time period threshold, it can be determined that a consensus has been reached, and the consensus operation has been completed.
  • the above-mentioned preset time period threshold may be specifically determined according to the used consensus rules and the like. Specifically, the above-mentioned preset time period threshold may be 1 minute, or may be 1 hour, or the like. The specific duration of the above-mentioned preset time period threshold is not limited in this specification.
  • the node servers in the preset data processing network can The data processing request performs corresponding transaction data processing to obtain a corresponding transaction data processing result. After obtaining the corresponding transaction data processing results, each node server can record the obtained transaction data processing results in their respective distributed transaction ledger databases.
  • a preset data processing network can complete data processing for transaction data in a distributed processing manner.
  • the first node server may send the transaction data processing result to the client device. Furthermore, the client device can receive and display the corresponding transaction data processing result to the user.
  • a preset transmission method based on collective communication is used to send each node in the preset data processing network to the corresponding consensus information.
  • the server transmits the consensus information, so that each node server in the preset data processing network can process the transaction data according to the condition that at least a preset number of node servers have received the consensus information within the preset time period threshold and reach a consensus. Request corresponding transaction data processing.
  • a consensus cannot be reached if it is determined that only less than a preset number of node servers have received the consensus information within a preset time period threshold.
  • the second node server may re-initiate the consensus operation, and re-transmit the consensus information to the node server in the preset data processing network through the preset transmission mode based on collective communication.
  • the second node server may also obtain and, according to the confirmation information released by the node server, determine the node server that has not received the consensus information from the preset data processing network, and send a separate message for this type of node server. Consensus information, until it is determined that the number of node servers that have received the consensus information is greater than or equal to the preset number, and a consensus is reached.
  • the second node server may not receive the consensus information.
  • the node server of the information sends a reset command.
  • the second node server may not send a reset instruction, allowing the preset time Consensus information continues to be transmitted step by step in the data processing network.
  • the above-mentioned second node server generates consensus information for the transaction data processing request, and transmits the consensus information to a node server in a preset data processing network through a preset transmission method based on collective communication , during specific implementation, may include the following content: generating consensus information for the transaction data processing request, wherein the consensus information carries the identity of the second node server; according to the identity of the second node server, from multiple A first target collective communication rule matching the identity of the second node server is determined from the preset collective communication rules, wherein the first target collective communication rule takes the second node server as the starting point in the data transmission process.
  • the starting node server, the first target set communication rule includes at least the next-level node server in the data transmission process of each node server in the preset data processing network; according to the first target set communication rule, determine The next-level node server of the second node server sends the consensus information to the next-level node server of the second node server.
  • the next-level node server of the second node server includes a third node server.
  • the third node server receives the consensus information and, according to the The consensus information obtains the identity of the second node server; according to the identity of the second node server, the first node matching the identity of the second node server is determined from a plurality of preset collective communication rules. target set communication rules; according to the first target set communication rules, determine the next-level node server of the third node server, and send the consensus information to the next-level node server of the third node server.
  • the transmission task that the third node server is responsible for is completed.
  • the next-level node server of the second node server may further include a plurality of node servers.
  • the next-level node servers of the second node server may further include: a third node server, a fourth node server, a fifth node server, and so on.
  • the consensus information can be transmitted to the respective lower-level node servers with reference to the processing method of the third node server, so as to complete their respective transmission tasks.
  • the plurality of preset collective communication rules may specifically include a plurality of pre-generated collective communication rules that respectively use different node servers as the starting node servers in the data transmission process, wherein the plurality of collective communication rules are Each of the preset collective communication rules may correspond to the identity of the starting node server, respectively. Therefore, in specific implementation, the corresponding first target collective communication rule may be matched from a plurality of preset collective communication rules according to the identity of the starting node server.
  • the first node server broadcasts the transaction data processing request to a preset data processing network
  • the specific implementation may include the following content: the first node server sends the transaction data processing request to the preset data processing network through a preset transmission method based on collective communication.
  • the node server in the set data processing network transmits the transaction data processing request.
  • the above-mentioned first node server transmits the transaction data processing request to the node server in the preset data processing network by using a preset transmission mode based on collective communication
  • the specific implementation may include the following content: A node server determines a second target set communication rule matching the identity of the first node server from a plurality of preset set rules according to the identity of the first node server, wherein the second target set The communication rule takes the first node server as the starting node server in the data transmission process, and the first target set communication rule includes at least the next level of each node server in the preset data processing network in the data transmission process.
  • node server according to the second target set communication rule, determine the next-level node server of the first node server, and send the transaction data processing request carrying the identification information of the first node server to the next node server of the first node server level node server.
  • the next-level node server of the first node server may communicate from multiple preset sets according to the identity of the first node server carried in the transaction data processing request A second target set communication rule is determined in the rules, and according to the second target set communication rule, its own next-level node server is determined, and the transaction data processing request is sent to its own next-level node server. Complete the transmission tasks that you are responsible for.
  • node servers in the preset data processing network can determine and transmit the received transaction data processing request to their own next-level node server according to the communication rules of the second target set according to the above-mentioned method, and complete the responsible task. transfer task. Therefore, multiple node servers in the preset data processing network can be introduced to participate in the transmission of transaction data processing requests, increasing the amount of transmitted data per unit time, effectively improving the transmission efficiency of transaction data processing requests, and shortening the time required for broadcasting transaction data processing requests. Time-consuming, further shortening the user's waiting delay.
  • the next-level node server of the first node server is determined according to the second target set communication rule, and a transaction data processing request carrying the identification information of the first node server is sent to the first node
  • the method may further include the following content: detecting whether multiple node servers included in the preset data processing network receive the transaction data processing request; When the multiple node servers included in the preset data processing network receive the transaction data processing request, it is determined to complete the broadcast to the preset data processing network.
  • the broadcasting of the transaction data processing request is different from the transmission of consensus information, and usually requires that the transaction data processing request be transmitted to each node server in the preset data processing network.
  • the second node server may rebroadcast the transaction data processing request, and re-pass the transaction data processing request. Based on the preset transmission mode of collective communication, the transaction data processing request is transmitted to the node server in the preset data processing network.
  • the second node server may also acquire and determine, according to the data processing network preset by the node server, the node servers that have not received the transaction data processing request, and send the transaction data processing request separately for such node servers, Until it is determined that multiple node servers in the preset data processing network receive the transaction data processing request.
  • the preset data processing network may specifically include a blockchain-based data processing network.
  • a blockchain-based data processing network listed above is only a schematic illustration. During specific implementation, according to specific application scenarios and processing requirements, the above method may also be applied to other types of distributed data processing networks (or data processing systems).
  • the second node server responds to the received transaction data processing request, initiates a consensus operation for the transaction data processing request, and generates corresponding consensus information.
  • the preset transmission method of collective communication transmits consensus information to each node server in the preset data processing network, so that a consensus is reached when at least a preset number of node servers receive the consensus information within the preset time period threshold.
  • each node server in the preset data processing network can process the corresponding transaction data according to the transaction data processing request, which can effectively improve the transmission efficiency of the consensus information, reduce the time-consuming of the consensus information transmission process, and thus be more efficient.
  • the node server transmits transaction data requests, thereby improving the transmission efficiency of transaction data processing requests, reducing the time-consuming of the broadcasting process, further improving the overall processing efficiency of transaction data processing, and further shortening the waiting delay for users.
  • the embodiments of this specification also provide a method for processing transaction data.
  • the method can be applied to the first node server.
  • the method may include the following contents.
  • the above-mentioned first node server may specifically include a node server connected to the client device in a preset data processing network, or any node server in the preset data processing network that receives a transaction data processing request from the client device A node server.
  • S2 Transmit the consensus information to a node server in a preset data processing network through a preset transmission mode based on collective communication, wherein the preset data processing network includes a plurality of node servers, and the preset data processing network includes multiple node servers.
  • the preset data processing network includes a plurality of node servers
  • the preset data processing network includes multiple node servers.
  • the above-mentioned transmission of the consensus information to a node server in a preset data processing network through a preset transmission method based on collective communication may include the following content: according to the identity of the second node. , determine a preset collective communication rule matching the identity of the second node server from a plurality of preset collective communication rules, as the first target collective communication rule, wherein the first target collective communication rule is based on the first target collective communication rule.
  • multiple node servers in the preset data processing network when it is determined that at least a preset number of node servers have received the consensus information, perform corresponding processing according to the transaction data processing request
  • the transaction data processing may include: when multiple node servers in the preset data processing network determine that at least a preset number of node servers receive the consensus information within a preset time period threshold , and perform corresponding transaction data processing according to the transaction data processing request.
  • S4 Determine the next-level node server according to the first target set communication rule, and send the consensus information to the next-level node server.
  • the method may further include the following content: after it is determined that at least a preset number of node servers have received the consensus information In this case, the corresponding transaction data processing is performed according to the transaction data processing request.
  • each node server in the preset data processing network can Process the request, perform corresponding transaction data processing, and record the transaction data processing results obtained from the processing in the respective transaction ledger databases.
  • Such a preset data processing network can complete the data processing of transaction data in a distributed processing manner.
  • S702 According to the identity identifier, determine a first target collective communication rule matching the identity identifier from a plurality of preset collective communication rules.
  • the initiating processing node can determine the first target set communication rule in the above-mentioned manner, and then can efficiently transmit the target data to the preset data according to the first target set communication rule At processing nodes in the processing network.
  • the following steps may be taken: Including the following content: detecting whether the number of processing nodes receiving the target data is greater than or equal to a preset number; in the case of determining that the number of processing nodes receiving the target data is less than the preset number, according to the The first target sets communication rules, and retransmits the target data.
  • the above preset number may be specifically determined according to a processing rule.
  • the above-mentioned processing rules may include consensus rules and the like.
  • consensus rules listed above are just a schematic illustration.
  • other types of processing rules may also be used according to specific application scenarios. This specification does not limit this.
  • the processing node may specifically include a node server or the like.
  • S3 Determine a matching first target collective communication rule from a plurality of preset collective communication rules according to the identity of the initial processing node.
  • the embodiment of this specification also provides another specific server, wherein the server includes a network communication port 901 , a processor 902 and a memory 903 , and the above structure is achieved by Internal cables are connected so that each structure can carry out specific data interaction.
  • the network communication port 901 may be a virtual port bound with different communication protocols, so that different data can be sent or received.
  • the network communication port may be port 80 responsible for web data communication, port 21 responsible for FTP data communication, or port 25 responsible for mail data communication.
  • the network communication port may also be a physical communication interface or a communication chip.
  • it can be a wireless mobile network communication chip, such as GSM, CDMA, etc.; it can also be a Wifi chip; it can also be a Bluetooth chip.
  • the memory 903 may include multiple layers.
  • a digital system as long as it can store binary data, it can be a memory; in an integrated circuit, a circuit with a storage function without physical form is also called a memory , such as RAM, FIFO, etc.; in the system, the storage device with physical form is also called memory, such as memory stick, TF card, etc.
  • the above-mentioned storage medium includes but is not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), cache (Cache), hard disk (Hard Disk Drive, HDD) Or a memory card (Memory Card).
  • the memory may be used to store computer program instructions.
  • the network communication unit may be an interface for performing network connection communication, which is set according to a standard specified by a communication protocol.
  • an embodiment of the present specification further provides a transaction data processing apparatus, and the apparatus may specifically include the following structural modules.
  • the transaction data processing device adopts the preset transmission method based on collective communication to transmit consensus information to each node server in the preset data processing network, so as to determine the threshold value of the preset time period.
  • each node server in the preset data processing network can perform corresponding transaction data processing according to the transaction data processing request. Therefore, the transmission efficiency of consensus information can be effectively improved, the transaction data processing can be completed efficiently, and the waiting delay of users can be reduced.
  • the determining module may be specifically configured to determine, according to the identity identifier, a first target collective communication rule matching the identity identifier from a plurality of preset collective communication rules.
  • the apparatus may further include a detection module, which may be specifically configured to detect whether the number of processing nodes that have received the target data is greater than or equal to a preset number; When the number of nodes is less than the preset number, the target data is retransmitted according to the first target set communication rule.
  • a detection module which may be specifically configured to detect whether the number of processing nodes that have received the target data is greater than or equal to a preset number; When the number of nodes is less than the preset number, the target data is retransmitted according to the first target set communication rule.
  • the detection module when the detection module is specifically implemented, it can also be used to determine that the number of processing nodes that have received the target data is greater than or equal to the preset number and less than the preset number of processing nodes included in the data processing network. In the case of the total number of multiple processing nodes, determine the processing node that currently has not completed the transmission; generate and send a reset instruction to the processing node that has not completed the transmission, wherein the reset instruction is used to instruct the processing node to exit the target data transfer process.
  • the plurality of preset collective communication rules may specifically include a plurality of pre-generated collective communication rules that respectively use different processing nodes as the starting processing nodes in the data transmission process, wherein the plurality of collective communication rules are Each of the preset collective communication rules corresponds to the identity of the initial processing node, respectively.
  • the preset data processing network may include a blockchain-based data processing network or the like.
  • program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types.
  • the specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Computer And Data Communications (AREA)

Abstract

Provided are a transaction data processing method and apparatus, and a data processing method and apparatus. On the basis of the transaction data processing method, after initiating, in response to a received transaction data processing request, a consensus operation for the transaction data processing request, and generating corresponding consensus information, a second node server transmits the consensus information to each node server in a preset data processing network by using a preset transmission means based on collective communication, so that when it is determined that at least a preset number of node servers receive the consensus information and reach a consensus, each node server in the preset data processing network can perform corresponding transaction data processing according to the transaction data processing request. Therefore, the transmission efficiency of consensus information can be effectively improved, transaction data can be efficiently processed, and the waiting delay of a user can be reduced.

Description

交易数据的处理方法和装置、数据处理方法和装置Transaction data processing method and device, data processing method and device
本申请要求2020年07月01日递交的申请号为202010619643.X、发明名称为“交易数据的处理方法和装置、数据处理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010619643.X filed on July 1, 2020 and the invention titled "Transaction Data Processing Method and Device, Data Processing Method and Device", the entire contents of which are incorporated by reference in this application.
技术领域technical field
本说明书属于互联网技术领域,尤其涉及交易数据的处理方法和装置、数据处理方法和装置。This specification belongs to the field of Internet technology, and particularly relates to a method and device for processing transaction data, and a method and device for processing data.
背景技术Background technique
在一些数据处理场景中,常常需要先由数据处理网络中的某个服务器生成并对外传输共识信息,发起共识操作;在确定该数据处理网络中的服务器达成共识协议后,再进行具体的数据处理。In some data processing scenarios, a server in the data processing network often needs to generate and transmit consensus information to the outside world to initiate a consensus operation; after it is determined that the servers in the data processing network have reached a consensus agreement, the specific data processing is carried out. .
目前,亟需一种能提高共识信息的传输效率,以高效进行数据处理的方法。At present, there is an urgent need for a method that can improve the transmission efficiency of consensus information to efficiently process data.
发明内容SUMMARY OF THE INVENTION
本说明书提供了一种交易数据的处理方法和装置、数据处理方法和装置,以便能有效地提高共识信息的传输效率,高效地完成交易数据的数据处理。This specification provides a transaction data processing method and device, and a data processing method and device, so as to effectively improve the transmission efficiency of consensus information and efficiently complete the data processing of transaction data.
本说明书提供的一种交易数据的处理方法和装置、数据处理方法和装置是这样实现的:A transaction data processing method and device, and data processing method and device provided in this specification are implemented as follows:
一种交易数据的处理方法,所述方法应用于预设的数据处理网络中,所述预设的数据处理网络包括多个节点服务器,所述方法包括:第一节点服务器接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息;在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,所述预设的数据处理网络中的节点服务器根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果;所述第一节点服务器向所述客户端设备反馈所述交易数据处理结果。A method for processing transaction data, the method is applied in a preset data processing network, the preset data processing network includes a plurality of node servers, and the method includes: a first node server receives a data sent by a client device. A transaction data processing request, and broadcast the transaction data processing request to a preset data processing network; the second node server in the plurality of node servers receives and responds to the transaction data processing request, and generates a transaction data processing request for the transaction data. the requested consensus information, and transmit the consensus information to the node servers in the preset data processing network through a preset transmission method based on collective communication; when it is determined that at least a preset number of node servers have received the consensus information In this case, the node server in the preset data processing network performs corresponding transaction data processing according to the transaction data processing request, and obtains the corresponding transaction data processing result; the first node server feeds back to the client device The transaction data processing result.
一种交易数据的处理方法,包括:接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;其中,所述预设的数据处理网络包括多个节点服务器,所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息;在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果,并向所述客户端设备反馈所述交易数据处理结果。A transaction data processing method, comprising: receiving a transaction data processing request sent by a client device, and broadcasting the transaction data processing request to a preset data processing network; wherein the preset data processing network includes a plurality of The node server, the second node server of the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and sends the pre-set transmission method based on collective communication to the pre- The node servers in the set data processing network transmit the consensus information; when it is determined that at least a preset number of node servers have received the consensus information, perform corresponding transaction data processing according to the transaction data processing request, and obtain corresponding transaction data processing results, and feeding back the transaction data processing results to the client device.
一种交易数据的处理方法,包括:接收并响应交易数据处理请求,生成针对所述交易数据处理请求的共识信息,其中,所述共识信息携带有第二节点服务器的身份标识;通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,其中,所述预设的数据处理网络包括多个节点服务器,所述预设的数据处理网络中的多个节点服务器在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理。A transaction data processing method, comprising: receiving and responding to a transaction data processing request, and generating consensus information for the transaction data processing request, wherein the consensus information carries an identity of a second node server; The preset transmission method is to transmit the consensus information to the node server in the preset data processing network, wherein the preset data processing network includes a plurality of node servers, and the multiple nodes in the preset data processing network Each node server performs corresponding transaction data processing according to the transaction data processing request when it is determined that at least a preset number of node servers have received the consensus information.
一种交易数据的处理方法,包括:接收交易数据处理请求;接收上一级节点服务器发送的共识信息;从所述共识信息中提取出起始节点的身份标识,并根据所述起始节点的身份标识从多个预设的集合通信规则中确定出匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,确定出下一级节点服务器,并将所述共识信息发送至下一节点服务器。A transaction data processing method, comprising: receiving a transaction data processing request; receiving consensus information sent by an upper-level node server; extracting an identity identifier of a starting node from the consensus information, and The identity identifier determines a matching first target set communication rule from a plurality of preset set communication rules; according to the first target set communication rule, the next-level node server is determined, and the consensus information is sent to the next level. A node server.
一种数据处理方法,包括:生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。A data processing method, comprising: generating target data, wherein the target data carries an identity identifier of an initial processing node; according to the identity identifier, determining a connection with the identity from a plurality of preset collective communication rules Identifying the matching first target set communication rule; according to the first target set communication rule, determine the next level processing node among the multiple processing nodes included in the preset data processing network, and send the target data to the next-level processing node.
一种数据处理方法,包括:接收上一级处理节点发送的目标数据;从所述目标数据中提取出起始处理节点的身份标识;根据所述起始处理节点的身份标识,从多个预设的集合通信规则中确定出匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,确定下一级处理节点,并将所述目标数据发送至下一级处理节点。A data processing method, comprising: receiving target data sent by an upper-level processing node; extracting an identity of an initial processing node from the target data; A matching first target set communication rule is determined from the set set communication rules; according to the first target set communication rule, a next-level processing node is determined, and the target data is sent to the next-level processing node.
一种交易数据的处理装置,包括:收发模块,用于接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;其中,所述预设的数据处理网络包括多个节点服务器,所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息;处理模块,用于在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果,并向所述客户端设备反馈所述交易数据处理结果。A transaction data processing device, comprising: a transceiver module for receiving a transaction data processing request sent by a client device, and broadcasting the transaction data processing request to a preset data processing network; wherein the preset data The processing network includes a plurality of node servers, and a second node server in the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and passes a preset based on collective communication. The transmission method is to transmit the consensus information to the node servers in the preset data processing network; the processing module is used to determine that at least a preset number of node servers have received the consensus information, according to the transaction data. The corresponding transaction data processing is performed on the processing request, the corresponding transaction data processing result is obtained, and the transaction data processing result is fed back to the client device.
一种数据处理装置,包括:生成模块,用于生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;确定模块,用于根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;发送模块,用于根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。A data processing device, comprising: a generating module for generating target data, wherein the target data carries an identity mark of a starting processing node; a determining module for selecting from a plurality of presets according to the identity mark A first target collective communication rule matching the identity identifier is determined in the collective communication rules; the sending module is used for, according to the first target collective communication rules, among the plurality of processing nodes included in the preset data processing network A next-level processing node is determined, and the target data is sent to the next-level processing node.
一种服务器,包括处理器以及用于存储处理器可执行指令的存储器,所述处理器执 行所述指令时实现生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。A server, comprising a processor and a memory for storing processor-executable instructions, and generating target data when the processor executes the instructions, wherein the target data carries an identity of an initial processing node; according to For the identity identifier, a first target set communication rule matching the identity identifier is determined from a plurality of preset collective communication rules; according to the first target set communication rule, the preset data processing network includes: A next-level processing node is determined from the plurality of processing nodes, and the target data is sent to the next-level processing node.
一种计算机可读存储介质,其上存储有计算机指令,所述指令被执行时实现生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。A computer-readable storage medium on which computer instructions are stored, and when the instructions are executed, target data is generated, wherein the target data carries an identity of a starting processing node; according to the identity, from multiple A first target set communication rule matching the identity identifier is determined from the preset set communication rules; according to the first target set communication rule, a plurality of processing nodes included in the preset data processing network are determined. The next-level processing node is sent out, and the target data is sent to the next-level processing node.
本说明书提供的一种交易数据的处理方法和装置、数据处理方法和装置,通过第二节点服务器在响应所接收的交易数据处理请求,发起针对交易数据处理请求的共识操作,并生成对应的共识信息后,采用基于集合通信的预设传输方式,向预设的数据处理网络中的各个节点服务器传输共识信息,以便在确定至少有预设数量的节点服务器接收到该共识信息时达成共识的情况下,预设的数据处理网络中的各个节点服务器再根据交易数据处理请求进行相应的交易数据处理。从而可以有效地提高共识信息的传输效率,能高效地完成交易数据的处理。A transaction data processing method and device, data processing method and device provided in this specification, through the second node server in response to the received transaction data processing request, initiate a consensus operation for the transaction data processing request, and generate a corresponding consensus After the information, the preset transmission method based on collective communication is used to transmit consensus information to each node server in the preset data processing network, so as to reach a consensus when it is determined that at least a preset number of node servers have received the consensus information. Then, each node server in the preset data processing network then performs corresponding transaction data processing according to the transaction data processing request. Therefore, the transmission efficiency of consensus information can be effectively improved, and the processing of transaction data can be efficiently completed.
附图说明Description of drawings
为了更清楚地说明本说明书实施例,下面将对实施例中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present specification more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments. The drawings in the following description are only some of the embodiments described in the present specification. In other words, on the premise of no creative labor, other drawings can also be obtained based on these drawings.
图1是应用本说明书实施例提供的交易数据的处理方法的数据处理系统的结构组成的一个实施例的示意图;1 is a schematic diagram of an embodiment of the structural composition of a data processing system to which the transaction data processing method provided by the embodiment of the present specification is applied;
图2是在一个场景示例中,应用本说明书实施例提供的交易数据的处理方法的一种实施例的示意图;FIG. 2 is a schematic diagram of an embodiment of applying the transaction data processing method provided by the embodiments of this specification in an example scenario;
图3是在一个场景示例中,应用本说明书实施例提供的交易数据的处理方法的一种实施例的示意图;FIG. 3 is a schematic diagram of an embodiment of applying the transaction data processing method provided by the embodiments of this specification in an example scenario;
图4是在一个场景示例中,应用本说明书实施例提供的交易数据的处理方法的一种实施例的示意图;FIG. 4 is a schematic diagram of an embodiment of applying the transaction data processing method provided by the embodiment of this specification in an example scenario;
图5是在一个场景示例中,应用本说明书实施例提供的交易数据的处理方法的一种实施例的示意图;FIG. 5 is a schematic diagram of an embodiment of applying the transaction data processing method provided by the embodiment of this specification in an example scenario;
图6是本说明书的一个实施例提供的交易数据的处理方法的流程示意图;6 is a schematic flowchart of a method for processing transaction data provided by an embodiment of this specification;
图7是本说明书的一个实施例提供的数据处理方法的流程示意图;7 is a schematic flowchart of a data processing method provided by an embodiment of the present specification;
图8是在一个场景示例中,应用本说明书实施例提供的交易数据的处理方法的一种实施例的示意图;FIG. 8 is a schematic diagram of an embodiment of applying the transaction data processing method provided by the embodiment of this specification in an example scenario;
图9是本说明书的一个实施例提供的服务器的结构组成示意图;9 is a schematic diagram of the structural composition of a server provided by an embodiment of this specification;
图10是本说明书的一个实施例提供的交易数据的处理装置的结构组成示意图。FIG. 10 is a schematic structural composition diagram of an apparatus for processing transaction data provided by an embodiment of the present specification.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本说明书中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本说明书保护的范围。In order to make those skilled in the art better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings in the embodiments of this specification. Obviously, the described The embodiments are only some of the embodiments of the present specification, but not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.
本说明书实施例提供一种交易数据的处理方法,所述交易数据的处理方法具体可以应用于包含有客户端设备,以及多个节点服务器的数据处理系统中。具体可以参阅图1所示。其中,所述数据处理系统具体可以包括多个节点服务器(例如,包括N个不同的节点服务器),所述多个节点服务器中的一个节点服务器可以作为基于区块链的预设的数据处理网络中的一个处理节点。The embodiments of this specification provide a transaction data processing method, which can be specifically applied to a data processing system including a client device and a plurality of node servers. For details, please refer to Figure 1. Wherein, the data processing system may specifically include multiple node servers (for example, including N different node servers), and one node server among the multiple node servers may serve as a preset data processing network based on blockchain A processing node in .
具体实施时,第一节点服务器具体可以用于接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求。During specific implementation, the first node server may be specifically configured to receive the transaction data processing request sent by the client device, and broadcast the transaction data processing request to a preset data processing network.
所述多个节点服务器中的第二节点服务器(例如,主节点服务器)具体实施时,可以接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息;并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,以在多个节点服务器中发起共识操作。During specific implementation, the second node server (for example, the master node server) among the plurality of node servers can receive and respond to the transaction data processing request, and generate consensus information for the transaction data processing request; In the preset transmission mode of communication, the consensus information is transmitted to the node servers in the preset data processing network, so as to initiate a consensus operation among the multiple node servers.
在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,达成共识。进而,上述预设的数据处理网络中的各个节点服务器可以根据交易数据处理请求分别进行相应的交易数据处理,得到并记录对应的交易数据处理结果。A consensus is reached when it is determined that at least a preset number of node servers have received the consensus information. Furthermore, each node server in the above-mentioned preset data processing network can respectively perform corresponding transaction data processing according to the transaction data processing request, and obtain and record the corresponding transaction data processing result.
对接客户端设备的所述第一节点服务器向所述客户端设备反馈对应的交易数据处理结果。The first node server docked with the client device feeds back the corresponding transaction data processing result to the client device.
由于上述数据处理过程中,第二节点服务器在发起共识操作(或者共识请求)时,通过基于集合通信的预设传输方式,向预设的数据处理网络中的各个节点服务器传输共识信息,有效地提高共识信息的传输效率,避免出现重复传输,进而能够高效地完成交易数据的处理,减少了用户的等待延时,提高了用户的使用体验。In the above data processing process, when the second node server initiates a consensus operation (or consensus request), it transmits consensus information to each node server in the preset data processing network through a preset transmission method based on collective communication, effectively Improve the transmission efficiency of consensus information, avoid repeated transmission, and then efficiently complete the processing of transaction data, reduce the user's waiting delay, and improve the user's experience.
在本实施例中,所述节点服务器具体可以应用于负责交易数据处理的网络平台一侧,包括能够实现数据传输、数据处理等功能的后台负责数据处理的服务器。具体的,所述节点服务器例如可以为一个具有数据运算、存储功能以及网络交互功能的电子设备。或者,所述节点服务器也可以为运行于该电子设备中,为数据处理、存储和网络交互提供支持的软件程序。在本实施例中,所述节点服务器具体可以为一个服务器,也可以为几个服务器,或者,由若干服务器形成的服务器集群。In this embodiment, the node server may be specifically applied to the side of the network platform responsible for transaction data processing, including a server responsible for data processing in the background capable of implementing functions such as data transmission and data processing. Specifically, the node server may be, for example, an electronic device with data computing, storage, and network interaction functions. Alternatively, the node server may also be a software program running in the electronic device to provide support for data processing, storage and network interaction. In this embodiment, the node server may specifically be one server, or several servers, or a server cluster formed by several servers.
在本实施例中,所述客户端设备具体可以包括一种应用于用户一侧,能够实现数据采集、数据传输等功能的前端设备。具体的,所述客户端设备例如可以为台式电脑、平板电脑、笔记本电脑、智能手机、数字助理、智能可穿戴设备等。或者,所述客户端设备也可以为能够运行于上述电子设备中的软件应用。例如,可以是在手机上运行的某APP等。In this embodiment, the client device may specifically include a front-end device applied to the user side and capable of implementing functions such as data collection and data transmission. Specifically, the client device may be, for example, a desktop computer, a tablet computer, a notebook computer, a smart phone, a digital assistant, a smart wearable device, and the like. Alternatively, the client device may also be a software application that can run in the above electronic device. For example, it may be an APP running on a mobile phone, or the like.
在一个具体的场景示例中,可以参阅图2所示,某购物网站可以应用本说明书实施例提供的交易数据的处理方法高效地为用户进行相应的交易数据处理。In a specific scenario example, as shown in FIG. 2 , a shopping website can efficiently process the corresponding transaction data for the user by applying the transaction data processing method provided by the embodiment of this specification.
在本场景示例中,该购物网站后台数据处理系统中具体负责交易数据处理的可以是一个基于区块链的包含有多个节点服务器的数据处理网络,例如包含有N个不同的节点服务器的基于区块链的P2P Network。其中,该数据处理网络中的各个节点服务器是相互平等的,并且节点服务器之间可以通过分布式的共识协议进行交互,实现在多节点服务器同时处理并维护一个相同的交易账本数据库。In the example of this scenario, what is specifically responsible for transaction data processing in the shopping website background data processing system may be a blockchain-based data processing network including multiple node servers, for example, a blockchain-based data processing network including N different node servers. Blockchain's P2P Network. Among them, each node server in the data processing network is equal to each other, and the node servers can interact through a distributed consensus protocol to realize the simultaneous processing and maintenance of an identical transaction ledger database in multi-node servers.
在本场景示例中,用户使用自己的手机作为客户端设备在该购物网站,下单购买了一件商品,生成了一笔待处理的交易数据。进一步,客户端设备会生成针对该笔交易数据的交易数据处理请求,并将该交易数据处理请求发送至购物网站后台数据处理请求,以请求对该笔交易数据进行相应处理。In this scenario example, the user uses his mobile phone as a client device to place an order on the shopping website to purchase a commodity, and a transaction data to be processed is generated. Further, the client device will generate a transaction data processing request for the transaction data, and send the transaction data processing request to the background data processing request of the shopping website to request corresponding processing of the transaction data.
具体实施时,该购物网站后台的数据处理网络中某一个节点服务器(例如,第一节点服务器)接收到了该客户端设备发送的交易数据处理请求。第一节点服务器可以先向该数据处理网络广播该交易数据处理请求,以便使得数据处理网络中的各个节点服务器都接收到该交易数据处理请求。During specific implementation, a certain node server (eg, the first node server) in the data processing network in the background of the shopping website receives the transaction data processing request sent by the client device. The first node server may first broadcast the transaction data processing request to the data processing network, so that each node server in the data processing network receives the transaction data processing request.
进一步,数据处理网络中负责发起共识操作的主节点服务器(例如,第二节点服务器)在接收到该交易数据处理请求后,可以响应该交易数据处理请求,在数据处理网络中发起对应的共识操作。具体的,第二节点服务器可以先生成针对该交易数据处理请求的共识信息,其中,所生成的共识信息中还携带有第二节点服务器的身份标识,例如,第二节点服务器的IP地址,或者服务器编号等。再将该共识信息传输至数据处理网络中其他的节点服务器,以便达成共识。Further, after receiving the transaction data processing request, the master node server (for example, the second node server) responsible for initiating a consensus operation in the data processing network may respond to the transaction data processing request and initiate a corresponding consensus operation in the data processing network. . Specifically, the second node server may first generate consensus information for the transaction data processing request, wherein the generated consensus information also carries the identity of the second node server, for example, the IP address of the second node server, or server number, etc. The consensus information is then transmitted to other node servers in the data processing network in order to reach a consensus.
在本场景示例中,第二节点服务器可以采用基于集合通信的预设传输方式,来进行具体的共识信息的传输。In this scenario example, the second node server may use a preset transmission mode based on collective communication to transmit specific consensus information.
其中,上述基于集合通信的预设传输方法具体可以包括一种根据预设的集合通信规则,将数据处理网络中所包括的多个节点服务器划分为多个传输层级,再根据预设的集合通信规则有针对性地逐步引入多个节点服务器参与数据传输任务,以便在上述多个节点服务器之间逐级进行点对点的数据传输的传输方式。Wherein, the above-mentioned preset transmission method based on collective communication may specifically include a method of dividing multiple node servers included in the data processing network into multiple transmission levels according to a preset collective communication rule, and then according to the preset collective communication The rules gradually introduce multiple node servers to participate in the data transmission task in a targeted manner, so as to perform a point-to-point data transmission transmission method among the above-mentioned multiple node servers step by step.
具体的,采用上述基于集合通信的预设传输方式,数据处理网络中的每一个节点服务器只需要接收基于预设的集合通信规则所确定出的上一级节点服务器所发送的数据, 并只需要将所接收到的数据发送至基于预设的集合通信规则所确定出的一个或多个的下一级节点服务器,即可完成本节点服务器所负责的数据传输任务。这样对于各个节点服务器而言,不需要在将所接收到的数据,不作区分地同时发送至数据处理网络中所有的节点服务器。Specifically, using the above-mentioned preset transmission mode based on collective communication, each node server in the data processing network only needs to receive the data sent by the upper-level node server determined based on the preset collective communication rule, and only needs to By sending the received data to one or more next-level node servers determined based on the preset collective communication rules, the data transmission task that the node server is responsible for can be completed. In this way, each node server does not need to send the received data to all the node servers in the data processing network at the same time without distinction.
其中,上述预设的集合通信规则具体可以包括一种预先生成的以某一个(或某几个)节点服务器作为数据传输过程中的起始节点服务器,将数据处理网络中所包括的多个节点服务器划分成多个数据传输层级,并包含了各个节点服务器所对接的下一级节点服务器,以及所负责的数据传输任务的规则。Wherein, the above-mentioned preset collective communication rules may specifically include a pre-generated one (or several) node servers as the starting node server in the data transmission process, and a plurality of nodes included in the data processing network are processed. The server is divided into multiple data transmission levels, and includes the next-level node server to which each node server is connected, as well as the rules of the data transmission task it is responsible for.
上述预设的集合通信规则可以覆盖数据处理网路中的各个节点服务器,不会出现遗漏。并且,数据处理网络中除起始节点服务器外的各个节点服务器在数据处理过程中只会接收到一次数据,不会重复接收同样的数据,避免出现数据冗余。The above-mentioned preset collective communication rules can cover each node server in the data processing network without omission. In addition, each node server in the data processing network except the starting node server will only receive data once in the data processing process, and will not receive the same data repeatedly to avoid data redundancy.
上述预设的集合通信规则中至少包括了各个节点服务器在数据传输过程中的下一级节点服务器。这样,各个节点服务器在进行数据传输任务时,可以根据上述预设的集合通信规则,确定出所负责传输的下一级的节点服务器,进而将待传输的数据只针对性地发送给自己的下一级的节点服务器。其中,每一个节点服务器的下一级节点服务器的数量可以相同,也可以不同。具体的,一个节点服务器的下一级节点服务器的数量可以是一个,也可以是多个。The above-mentioned preset collective communication rules at least include the next-level node servers of each node server in the data transmission process. In this way, when each node server performs a data transmission task, it can determine the next-level node server responsible for transmission according to the above-mentioned preset collective communication rules, and then send the data to be transmitted only to its own next-level server in a targeted manner. level node server. The number of next-level node servers of each node server may be the same or different. Specifically, the number of next-level node servers of a node server may be one or more.
进一步,具体实施时,还可以根据各个节点服务器的网络传输带宽,和/或,各个节点服务器的具体性能参数等灵活地设置不同节点服务器的下一级节点服务器的数量。Further, in specific implementation, the number of next-level node servers of different node servers can also be flexibly set according to the network transmission bandwidth of each node server and/or the specific performance parameters of each node server.
当然,上述预设的集合通信规则中还可以包括各个节点服务器的上一级节点服务器等其他信息数据。对此,本说明书不作限定。Of course, the above-mentioned preset collective communication rules may also include other information data such as the upper-level node servers of each node server. This specification does not limit this.
此外,还需要说明的是,对于一个数据处理网络,可以包括多个不同的预设的集合通信规则。其中,上述多个不同的预设的集合通信规则中的起始节点服务器可以分别是该数据处理网络中的不同的节点服务器。相应的,每一个预设的集合通信规则可以与该预设集合通信规则中的起始节点服务器相对应。In addition, it should also be noted that, for a data processing network, a plurality of different preset collective communication rules may be included. Wherein, the starting node servers in the above-mentioned multiple different preset collective communication rules may be different node servers in the data processing network respectively. Correspondingly, each preset collective communication rule may correspond to the starting node server in the preset collective communication rule.
具体的,每一个预设的集合通信规则可以与该预设集合通信规则中的起始节点服务器的身份标识(例如,起始节点服务器的IP地址或服务器编号等)相对应。Specifically, each preset collective communication rule may correspond to the identity of the starting node server in the preset collective communication rule (for example, the IP address or server number of the starting node server, etc.).
在具体实施之前,上述该购物网站后台数据处理系统可以根据初始化指令,分别以数据处理网络中的多个不同节点服务器作为起始节点服务器,生成对应的多个预设的集合通信规则。数据处理网络中的各个节点服务器可以分别获取并保存上述多个预设的集合通信规则。Before the specific implementation, the above-mentioned shopping website background data processing system can generate a plurality of corresponding preset collective communication rules by using a plurality of different node servers in the data processing network as starting node servers respectively according to the initialization instruction. Each node server in the data processing network may acquire and save the above-mentioned multiple preset collective communication rules respectively.
在本场景示例中,第二节点服务器在具体通过基于集合通信的预设传输方式,传输共识信息时,可以先根据自身的身份标识(例如,第二节点服务器的服务器编号:0),从多个预设的集合通信规则中找到与身份标识匹配对应的预设的集合通信规则,作为第 一目标集合通信规则。再根据该第一目标集合通信规则,确定出自己所负责的下一级节点服务器。In the example of this scenario, when the second node server transmits consensus information through the preset transmission method based on collective communication, it can first transmit the consensus information according to its own identity (for example, the server number of the second node server: 0), from multiple A preset collective communication rule corresponding to the identity identifier matching is found from the preset collective communication rules, and used as the first target collective communication rule. Then, according to the communication rule of the first target set, determine the next-level node server that it is responsible for.
具体可以参阅图3所示,上述预设的集合通信规则具体可以包括一种以图表形式表示的集合通信视图。基于该集合通信视图,可以确定出第二节点服务器(身份标识为0)为起始节点服务器,以及第二节点服务器所负责对接的下一级节点服务器只包括一个节点服务器,身份标识为8,对应第三节点服务器。For details, please refer to FIG. 3 , the above-mentioned preset collective communication rule may specifically include a collective communication view in the form of a graph. Based on the collective communication view, it can be determined that the second node server (identity identifier is 0) is the starting node server, and the next-level node server that the second node server is responsible for interconnecting only includes one node server, and the identity identifier is 8, Corresponds to the third node server.
参阅图4所示,根据上述预设的集合通信规则,第二节点服务器可以确定出下一级节点服务器为第三节点服务器,进而可以将所生成的共识信息,有针对性地只发送给第三节点服务器,而不需要将上述共识信息依次发送给数据处理网络中所有的节点服务器。Referring to FIG. 4 , according to the above-mentioned preset collective communication rules, the second node server can determine that the next-level node server is the third node server, and then can only send the generated consensus information to the first node server in a targeted manner. The three-node server does not need to send the above consensus information to all the node servers in the data processing network in turn.
第三节点服务器接收到第二节点服务器发送的共识信息,并通过数据解析,从所述共识信息中提取得到该共识信息所携带的初始节点服务器的身份标识为:0,确定出本次数据传输过程的起始节点服务器为第二节点服务器。第三节点服务器可以根据上述初始节点服务器的身份标识从多个预设的集合通信规则中确定如图3所示的第一目标集合通信规则。再基于上述目标通信规则确定出第三节点服务器所负责的下一级节点服务器。The third node server receives the consensus information sent by the second node server, and through data analysis, extracts from the consensus information and obtains the identity of the initial node server carried by the consensus information as: 0, which determines this data transmission The starting node server of the process is the second node server. The third node server may determine the first target collective communication rule shown in FIG. 3 from a plurality of preset collective communication rules according to the identity of the initial node server. Then, the next-level node server that the third node server is responsible for is determined based on the target communication rule.
例如,参阅图4所示,基于上述集合通信视图,可以确定出第三节点服务器所负责对接的下一级节点服务器只包括两个不同的节点服务器,身份标识分别为4和12,分别对应第四节点服务器和第五节点服务器。For example, referring to FIG. 4 , based on the above-mentioned collective communication view, it can be determined that the next-level node server that the third node server is responsible for interfacing only includes two different node servers, and the identities are 4 and 12, respectively corresponding to the first node server. Four-node server and fifth-node server.
因此,根据上述第一目标集合通信规则,第三节点服务器可以将所接收到的共识信息,有针对性地只发送给自己的下一级节点服务器:第四节点服务器和第五节点服务器。Therefore, according to the above-mentioned first target set communication rule, the third node server can only send the received consensus information to its own next-level node servers: the fourth node server and the fifth node server.
第四节点服务器和第五节点服务器在接收到第三节点服务器发送的共识信息后,可以按照类似地方式,再将所接收到的共识信息分别发送至各自的下一级节点服务器。从而可以逐级地将共识信息传输下去。这样第二节点服务器不需要单独依次地分别向各个节点服务器发送共识信息,通过上述传输方式利用多个节点服务器同时逐级有针对性地往下传输共识信息,可以在一个时间点利用多个节点服务器并行地往下传输共识信息,提高共识信息的传输效率,缩短了共识信息传输过程中的耗时。同时,基于上述传输方式也能够较为准确地覆盖数据处理网络中的各个节点服务器,避免出现遗漏,并且还使得数据处理网络中的各个节点服务器只接收到一次共识信息,避免重复接收共识信息。After receiving the consensus information sent by the third node server, the fourth node server and the fifth node server may send the received consensus information to their respective next-level node servers in a similar manner. Thus, consensus information can be transmitted step by step. In this way, the second node server does not need to send consensus information to each node server individually and sequentially. Through the above-mentioned transmission method, multiple node servers are used to simultaneously transmit consensus information step by step in a targeted manner, and multiple nodes can be used at one point in time. The server transmits consensus information down in parallel, which improves the transmission efficiency of consensus information and shortens the time-consuming process of consensus information transmission. At the same time, based on the above transmission method, each node server in the data processing network can be more accurately covered to avoid omissions, and each node server in the data processing network can only receive consensus information once, avoiding repeated receipt of consensus information.
在本场景示例中,每个节点服务器在接收到共识信息,并将该共识信息发送给下一级节点服务器后,可以自动对外发布确认信息,以表示自己已经接收到共识信息,并完成该共识信息的传输。同时,该节点服务器可以退出本次的共识信息的传输任务。In this scenario example, after each node server receives the consensus information and sends the consensus information to the next-level node server, it can automatically issue confirmation information to indicate that it has received the consensus information and completes the consensus. transmission of information. At the same time, the node server can withdraw from the current consensus information transmission task.
数据处理网路的节点服务器可以自第二节点服务器发送共识信息的时间点作为起始时间,统计预设时间段阈值(例如,1分钟)内发布确认信息表示接收到共识信息的节点服务器的数量。并将该数量与预设数量进行比较,以确定在预设时间段阈值内是否有大于或等于预设数量的节点服务器接收到上述共识信息。在确定预设时间段阈值内有大 于或等于预设数量的节点服务器接收到该共识信息的情况下,可以确定达成共识,完成共识操作。The node server of the data processing network can use the time point when the second node server sends the consensus information as the starting time, and count the number of node servers that have received the consensus information by publishing confirmation information within a preset time period threshold (for example, 1 minute). . The number is compared with the preset number to determine whether a node server greater than or equal to the preset number has received the above consensus information within the preset time period threshold. When it is determined that more than or equal to the preset number of node servers have received the consensus information within the preset time period threshold, it can be determined that a consensus is reached and the consensus operation is completed.
其中,上述预设数量具体可以根据所基于的共识规则所确定。上述共识规则具体可以包括基于联盟链的共识算法吗,例如PBFT(Practical Byzantine Fault Tolerance)或HotStuff等。具体的,在本场景示例中,上述预设数量可以为数据处理网络中节点服务器的总数量的2/3。当然,上述所列举的预设数量只是一种示意性说明。具体实施时,根据具体情况,还可以选择其他数值作为上述预设数量。Wherein, the above-mentioned preset number may be specifically determined according to the consensus rule on which it is based. Can the above consensus rules specifically include consensus algorithms based on consortium chains, such as PBFT (Practical Byzantine Fault Tolerance) or HotStuff. Specifically, in this scenario example, the above-mentioned preset number may be 2/3 of the total number of node servers in the data processing network. Of course, the preset number listed above is only a schematic illustration. During specific implementation, other numerical values may also be selected as the above-mentioned preset number according to specific conditions.
进而数据处理网络中的各个节点服务器可以根据之前所接收到的交易数据处理请求,分别进行相应的交易数据处理,得到对应的交易数据处理结果,并各自处理得到的交易数据处理结果记录到各自的交易账本数据库中。Further, each node server in the data processing network can perform corresponding transaction data processing according to the transaction data processing request received before, obtain the corresponding transaction data processing result, and record the transaction data processing result obtained by the respective processing in their respective in the transaction ledger database.
第一节点服务器在确定预设时间段阈值内有大于或等于预设数量的节点服务器接收到该共识信息的情况下,根据交易数据处理请求,进行相应的交易数据处理,得到交易数据处理结果后,还可以将上述交易数据处理结果反馈给发送给交易数据处理请求的客户端设备。In the case where the first node server determines that more than or equal to the preset number of node servers within the preset time period threshold has received the consensus information, it performs corresponding transaction data processing according to the transaction data processing request, and obtains the transaction data processing result. , the above transaction data processing result may also be fed back to the client device that sends the transaction data processing request.
客户端设备接收第一节点服务器反馈的交易数据处理结果,并向用户展示出该交易数据处理结果。例如,向用户展示出“下单购买成功”的提示信息等。The client device receives the transaction data processing result fed back by the first node server, and displays the transaction data processing result to the user. For example, a prompt message of "successful purchase order" is displayed to the user.
通过上述方式,可以有效地缩短了基于区块链的数据处理网络进行交易数据处理时共识信息传输过程中的耗时,更加高效地完成共识操作,从而可以提高后台数据处理系统针对交易数据整体的数据处理效率,缩短用户的等候延时,提高用户的使用体验。In this way, the time-consuming process of consensus information transmission during transaction data processing in the blockchain-based data processing network can be effectively shortened, and the consensus operation can be completed more efficiently, thereby improving the overall performance of the background data processing system for transaction data. Data processing efficiency, shorten the user's waiting delay, and improve the user experience.
在另一个场景示例中,第一节点服务器在对向该数据处理网络广播该交易数据处理请求时,也可以通过基于集合通信的预设传输方式来高效地将交易数据处理请求传输至数据处理网络中的各个节点服务器。In another example scenario, when broadcasting the transaction data processing request to the data processing network, the first node server can also efficiently transmit the transaction data processing request to the data processing network through a preset transmission mode based on collective communication each node server in .
具体实施时,第一节点服务器可以根据自身的身份标识,从多个预设的集合通信规则中找到与第一节点服务器对应的预设的集合通信规则作为第二目标集合通信规则。同时,在待传输的交易数据处理请求中添加第一节点服务器的身份标识。During specific implementation, the first node server may find a preset collective communication rule corresponding to the first node server from a plurality of preset collective communication rules as the second target collective communication rule according to its own identity. At the same time, the identity identifier of the first node server is added to the transaction data processing request to be transmitted.
进一步,第一节点服务器可以根据上述第二目标集合通信规则,确定出第一节点服务器的下一级节点服务器,例如分别为:第六节点服务器和第二节点服务器。再将上述携带有第一节点服务器的身份标识的交易数据处理请求分别发送至第六节点服务器和第二节点服务器。Further, the first node server may determine the next-level node servers of the first node server according to the communication rule of the second target set, for example, the sixth node server and the second node server, respectively. Then, the transaction data processing request carrying the identity of the first node server is sent to the sixth node server and the second node server, respectively.
第六节点服务器和第二节点服务器在接收到该交易数据处理请求后,可以从中提取得到第一节点服务器的身份标识,并根据该身份标识从多个预设的集合通信规则中确定出第二目标集合通信规则,进而可以根据该第二目标集合通信规则分别确定出第六节点服务器的下一级节点服务器和第二节点服务器的下一级节点服务器,并将上述携带有第一节点服务器的身份标识的交易数据处理请求继续发送至所负责的第六节点服务器的下 一级节点服务器和第二节点服务器的下一级节点服务器。按照上述方式,可以数据处理网络中的多个节点服务器可以参与一起有针对性地将交易数据处理请求逐级地传输下去,直到该数据处理网络中的各个节点服务器都接收到了该交易数据处理请求,从而完成了交易数据处理请求的广播。After receiving the transaction data processing request, the sixth node server and the second node server can extract the identity of the first node server, and determine the second node from a plurality of preset collective communication rules according to the identity. The target set communication rule, and then the next-level node server of the sixth node server and the next-level node server of the second node server can be respectively determined according to the second target set communication rule, and the above-mentioned data carrying the first node server The transaction data processing request of the identity tag is continuously sent to the next-level node server of the sixth node server and the next-level node server of the second node server. According to the above method, multiple node servers in the data processing network can participate in the targeted transmission of transaction data processing requests step by step, until each node server in the data processing network receives the transaction data processing request. , thus completing the broadcast of the transaction data processing request.
在本场景示例中,第一节点服务器还可以检测预设段的没有接收到交易数据处理请求的节点服务器,并针对这类节点服务器单独重新发送交易数据处理请求,从而可以避免出现遗漏,使得数据处理网络中的各个节点服务器都接收到该交易数据处理请求。In the example of this scenario, the first node server can also detect the node servers in the preset segment that have not received the transaction data processing request, and individually resend the transaction data processing request for such node servers, so as to avoid omission and make the data Each node server in the processing network receives the transaction data processing request.
通过上述方式,可以有效地缩短了对数据处理网络中的节点服务器广播交易数据处理请求过程中的耗时,更加高效地交易数据处理请求的广播,从而可以进一步提高后台数据处理系统针对交易数据整体的数据处理效率,进一步缩短用户的等候延时,提高用户的使用体验。此外,通过上述方式,还可以及时发现没有接收到交易数据处理请求的节点服务器,并针对这类节点服务器重新发送交易数据处理请求,避免了广播交易数据处理请求时出现遗漏。Through the above method, the time-consuming process of broadcasting the transaction data processing request to the node server in the data processing network can be effectively shortened, and the broadcast of the transaction data processing request can be more efficiently broadcasted, thereby further improving the background data processing system's ability to target the overall transaction data. The data processing efficiency can further shorten the user's waiting delay and improve the user's experience. In addition, through the above method, node servers that have not received transaction data processing requests can also be found in time, and transaction data processing requests can be resent for such node servers, avoiding omissions when broadcasting transaction data processing requests.
在另一个场景示例中,针对交易数据处理量较大的情况,该购物网站的后台数据处理系统可能每时每刻都会接收到不同用户的客户端设备发送的数量庞大的交易数据处理请求。In another example scenario, in the case of a large amount of transaction data processing, the background data processing system of the shopping website may receive a huge number of transaction data processing requests sent by client devices of different users at every moment.
针对上述情况,具体实施时,可以先将所接收到的待处理的交易数据先存储在系统的数据库中,例如,数据处理网络的资源池中,以便后续可以通过数据处理网络中的接单服务器进行批量处理。In view of the above situation, in the specific implementation, the received transaction data to be processed can be stored in the database of the system, for example, in the resource pool of the data processing network, so that the order receiving server in the data processing network can be processed later. Do batch processing.
在具体处理时,可以参阅图5所示,第一节点服务器可以从数据处理网络的资源池中捞取多个待处理的交易数据作为当前批次的交易数据,并生成针对当前批次的交易数据的数据处理请求。进一步,第一节点服务器可以将上述针对当前批次的交易数据的数据处理向数据处理网络中的多个节点服务器进行广播。During specific processing, as shown in FIG. 5 , the first node server can retrieve a plurality of transaction data to be processed from the resource pool of the data processing network as the transaction data of the current batch, and generate transaction data for the current batch data processing request. Further, the first node server may broadcast the data processing for the current batch of transaction data to multiple node servers in the data processing network.
第二节点服务器可以接收并响应上述数据处理请求,生成对应该数据处理请求的共识信息,其中,共识信息中可以携带有的第二节点服务器的身份标识。The second node server may receive and respond to the above data processing request, and generate consensus information corresponding to the data processing request, wherein the consensus information may carry the identity of the second node server.
进一步,第二节点服务器可以通过基于集合通信的预设传输方式,将该共识信息高效地向数据处理网络中的各个节点服务器传输上述共识信息。Further, the second node server can efficiently transmit the consensus information to each node server in the data processing network through a preset transmission method based on collective communication.
数据处理网络中节点服务器在确定预设时间段内至少有预设数量的节点服务器接收到该共识信息的情况下,确定达成共识。进而数据处理网络中的各个节点服务器可以根据上述数据处理请求,分别处理当前批次所包含的多个交易数据,完成对当前批次的多个交易数据的批量处理。The node server in the data processing network determines that a consensus has been reached when it is determined that at least a preset number of node servers have received the consensus information within a preset time period. Further, each node server in the data processing network can separately process the multiple transaction data contained in the current batch according to the above data processing request, and complete the batch processing of the multiple transaction data in the current batch.
在处理完当前批次的多个交易数据后,第一节点服务器可以再从资源池所包含的剩余的待处理的交易数据中捞取多个交易数据,作为新一个批次的交易数据,再按照上述方式对上述新一个批次的交易数据进行批量处理。After processing the multiple transaction data of the current batch, the first node server can retrieve multiple transaction data from the remaining pending transaction data contained in the resource pool, as the transaction data of a new batch, and then follow the In the above manner, batch processing is performed on the transaction data of the new batch.
通过上述方式,可以高效地对大量待处理的交易数据进行批量处理,提高数据处理的TPS(Transaction per Second,每秒处理的交易数)性能,进一步提高数据处理效率。Through the above method, a large amount of transaction data to be processed can be efficiently processed in batches, the TPS (Transaction per Second) performance of data processing can be improved, and the data processing efficiency can be further improved.
参阅图6所示,本说明书实施例提供了一种交易数据的处理方法。该方法具体实施时,该方法可以包括以下内容。Referring to FIG. 6 , an embodiment of this specification provides a method for processing transaction data. When the method is specifically implemented, the method may include the following contents.
S601:第一节点服务器接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求。S601: The first node server receives the transaction data processing request sent by the client device, and broadcasts the transaction data processing request to a preset data processing network.
在一些实施例中,上述方法具体实施时,可以应用于预设的数据处理网络或者数据处理系统中。其中,所述预设的数据处理网络包括多个相互连接的节点服务器。In some embodiments, when the above method is specifically implemented, it may be applied to a preset data processing network or data processing system. Wherein, the preset data processing network includes a plurality of interconnected node servers.
在一些实施例中,上述预设的数据处理网络具体可以包括基于区块链的数据处理网络。其中,所述预设的数据处理网络中所包括的节点服务器可以理解为区块链中的处理节点。所述多个节点服务器可以分别进行具体的数据处理。In some embodiments, the above-mentioned preset data processing network may specifically include a blockchain-based data processing network. The node server included in the preset data processing network can be understood as a processing node in the blockchain. The multiple node servers may respectively perform specific data processing.
在一些实施例中,具体实施时,可以是预设的数据处理网络中的任意一个节点服务器作为第一节点服务器接收到客户端设备发送的交易数据处理请求,并向所述预设的数据处理网络广播所述交易数据处理请求,以便预设的数据处理系统中的各个节点服务器接收到该交易数据处理请求。In some embodiments, during the specific implementation, any node server in the preset data processing network may receive the transaction data processing request sent by the client device as the first node server, and process the request to the preset data processing network. The network broadcasts the transaction data processing request, so that each node server in the preset data processing system receives the transaction data processing request.
在一些实施例中,上述交易数据具体可以包括与交易过程相关的数据。具体的,例如,上述交易数据可以是订单数据,也可以是商品数据,还可以用于支付订单的支付数据等等。当然,上述所列举的交易数据只是一种示意性说明。具体实施时,根据具体的交易场景,上述交易数据还可以包括其他内容的数据。对此,本说明书不作限定。In some embodiments, the above-mentioned transaction data may specifically include data related to the transaction process. Specifically, for example, the transaction data may be order data, commodity data, or payment data used to pay for orders, and the like. Of course, the transaction data listed above is only a schematic illustration. During specific implementation, according to a specific transaction scenario, the above-mentioned transaction data may also include data of other contents. This specification does not limit this.
在一些实施例中,还需要补充的是,根据具体的应用场景和处理需求,上述方法还可以用于对交易数据以外的其他类型的数据进行相应处理。例如,在身份信息验证场景中,还可以利用上述方法响应身份数据验证请求,对用户输入的诸如密码、指纹等身份验证数据进行与身份验证过程相关的数据处理。又例如,在基因检测场景中还可以利用上述方法响应基因检测请求,对用户提供的基因数据进行与基因检测过程相关的数据处理等等。In some embodiments, it should be added that, according to specific application scenarios and processing requirements, the above method may also be used to perform corresponding processing on other types of data other than transaction data. For example, in the identity information verification scenario, the above method can also be used to respond to the identity data verification request, and perform data processing related to the identity verification process on the identity verification data such as password and fingerprint input by the user. For another example, in a genetic testing scenario, the above method may also be used to respond to a genetic testing request, and perform data processing related to the genetic testing process on the genetic data provided by the user.
S602:所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息。S602: The second node server of the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and sends a preset transmission method based on collective communication to a preset The node server in the data processing network transmits the consensus information.
在一些实施例中,在预设的数据处理网络根据上述交易数据处理请求进行相应的交易数据处理之前,还需要基于相关的共识规则(或者共识协议),进行共识操作,在达成共识的情况下,才能进行具体的交易数据处理。其中,上述共识规则具体可以包括基于联盟链的共识算法吗,例如PBFT(Practical Byzantine Fault Tolerance)或Hot Stuff等。当然,上述所列举的共识规则只是一种示意性说明。具体实施时,根据具体情况,还可以选择使用其他的共识规则。对此,本说明书不作限定。In some embodiments, before the preset data processing network performs corresponding transaction data processing according to the above-mentioned transaction data processing request, it is also necessary to perform a consensus operation based on relevant consensus rules (or consensus protocols). , in order to carry out specific transaction data processing. Among them, can the above consensus rules specifically include consensus algorithms based on alliance chains, such as PBFT (Practical Byzantine Fault Tolerance) or Hot Stuff. Of course, the consensus rules listed above are just a schematic illustration. During specific implementation, other consensus rules can also be selected according to specific circumstances. This specification does not limit this.
在一些实施例中,上述第二节点服务器具体可以包括预设的数据处理网络中发起共识操作的节点服务器。具体的,上述第二节点服务器可以是预设的数据处理网络中的主节点服务器,也可以是预设的数据处理网络中的任意一个节点服务器。In some embodiments, the above-mentioned second node server may specifically include a node server that initiates a consensus operation in a preset data processing network. Specifically, the above-mentioned second node server may be a master node server in a preset data processing network, or may be any node server in a preset data processing network.
在一些实施例中,具体实施时,第二节点服务器可以通过以下方式发起共识操作:生成携带有第二节点服务器的身份标识的共识信息,并将所述共识信息传输至预设的数据处理网络中的节点服务器。其中,所述共识信息中携带有发起共识操作的第二节点服务器的身份标识。In some embodiments, during specific implementation, the second node server may initiate a consensus operation in the following manner: generating consensus information carrying the identity of the second node server, and transmitting the consensus information to a preset data processing network node server in . Wherein, the consensus information carries the identity of the second node server that initiates the consensus operation.
在一些实施例中,上述身份标识具体可以包括一种能够指示节点服务器,与节点服务器一一对应的标识信息。具体的,上述身份标识可以是节点服务器的IP地址,也可以是节点服务器的服务器编号,还可以是节点服务器的名称等等。当然,上述所列举的身份标识只是一种示意性说明。具体实施时,根据具体情况和处理需要,上述身份标识还可以包括其他类型的标识信息。对此,本说明书不作限定。In some embodiments, the above-mentioned identification may specifically include identification information that can indicate a node server and is in a one-to-one correspondence with the node server. Specifically, the above-mentioned identity identifier may be the IP address of the node server, the server number of the node server, the name of the node server, or the like. Of course, the identity identifiers listed above are just a schematic illustration. During specific implementation, according to specific circumstances and processing needs, the above-mentioned identity identifier may also include other types of identification information. This specification does not limit this.
在一些实施例中,根据所使用的共识规则,当第二节点服务器发起共识操作后,需要预设的数据处理网络中至少预设数量的节点服务器接收到该共识信息后,才能达成共识。其中,上述预设数量可以根据共识规则确定。具体的,上述预设数量可以是预设的数据处理网络中节点服务器的总数量的2/3,也可以是预设的数据处理网络中节点服务器的总数量等等。当然,上述所列举的预设数量只是一种示意性说明。具体实施时,根据具体情况和所使用的共识规则,上述预设数量还可以包括其他数值。对此,本说明书不作限定。In some embodiments, according to the consensus rules used, after the second node server initiates the consensus operation, at least a preset number of node servers in the preset data processing network need to receive the consensus information before reaching a consensus. Wherein, the above-mentioned preset number can be determined according to consensus rules. Specifically, the preset number may be 2/3 of the total number of node servers in the preset data processing network, or may be the total number of node servers in the preset data processing network, or the like. Of course, the preset number listed above is only a schematic illustration. During specific implementation, according to the specific situation and the consensus rule used, the above-mentioned preset number may also include other values. This specification does not limit this.
在一些实施例中,第二节点服务器在发起共识操作时,可以通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息。In some embodiments, when initiating a consensus operation, the second node server may transmit the consensus information to the node server in the preset data processing network through a preset transmission method based on collective communication.
在一些实施例中,上述基于集合通信的预设传输方法具体可以包括一种根据预设的集合通信规则,将预设的数据处理网络中所包括的多个节点服务器划分为多个传输层级,再根据预设的集合通信规则有针对性地逐步引入多个节点服务器参与数据传输任务,以便在预设的数据处理网络中的多个节点服务器之间逐级进行点对点的数据传输的传输方式。In some embodiments, the above-mentioned preset transmission method based on collective communication may specifically include a method of dividing a plurality of node servers included in a preset data processing network into a plurality of transmission levels according to a preset collective communication rule, Then, according to the preset collective communication rules, multiple node servers are gradually introduced to participate in the data transmission task, so as to perform point-to-point data transmission among multiple node servers in the preset data processing network.
在一些实施例中,具体的,采用上述基于集合通信的预设传输方式,数据处理网络中的各个节点服务器只需要接收基于预设的集合通信规则所确定出的上一级节点服务器所发送的数据,并且只需要将所接收到的数据发送至基于预设的集合通信规则所确定出的一个或多个的下一级节点服务器,即可完成本节点服务器所负责的数据传输任务。这样对于各个节点服务器而言,不需要在将所接收到的数据,不作区分地同时发送至预设的数据处理网络中所有的节点服务器。In some embodiments, specifically, using the above-mentioned preset transmission mode based on collective communication, each node server in the data processing network only needs to receive the data sent by the upper-level node server determined based on the preset collective communication rule. Data, and only need to send the received data to one or more next-level node servers determined based on the preset collective communication rules to complete the data transmission task that the node server is responsible for. In this way, each node server does not need to send the received data to all the node servers in the preset data processing network at the same time without distinction.
在一些实施例中,上述预设的集合通信规则具体可以包括一种预先生成的以某一个(或某几个)节点服务器作为数据传输过程中的起始节点服务器,将预设的数据处理网 络中所包括的多个节点服务器划分成多个数据传输层级,并包含了各个节点服务器所对接的下一级节点服务器,以及所负责的数据传输任务的规则。In some embodiments, the above-mentioned preset collective communication rules may specifically include a pre-generated one (or several) node servers as the starting node server in the data transmission process, and the preset data processing network The multiple node servers included in it are divided into multiple data transmission levels, and include the next-level node servers to which each node server is connected, as well as the rules for the data transmission tasks it is responsible for.
在本实施例中,上述预设的集合通信规则可以覆盖预设的数据处理网路中的各个节点服务器,不会出现遗漏。并且,预设的数据处理网络中除起始节点服务器外的各个节点服务器在数据处理过程中只会接收到一次数据,不会重复接收同样的数据,避免出现数据冗余。In this embodiment, the above-mentioned preset collective communication rules may cover each node server in the preset data processing network, and omissions will not occur. Moreover, each node server other than the starting node server in the preset data processing network will only receive data once during data processing, and will not receive the same data repeatedly, thereby avoiding data redundancy.
在本实施例中,上述预设的集合通信规则中至少包括了各个节点服务器在数据传输过程中的下一级节点服务器。这样,各个节点服务器在进行所负责的数据传输任务时,可以根据上述预设的集合通信规则,确定出所负责传输的下一级的节点服务器,进而将待传输的数据只针对性地发送给自己的下一级的节点服务器。其中,每一个节点服务器的下一级节点服务器的数量可以相同,也可以不同。具体的,一个节点服务器的下一级节点服务器的数量可以是一个,也可以是多个。In this embodiment, the above-mentioned preset collective communication rule includes at least the next-level node server of each node server in the data transmission process. In this way, when each node server is responsible for the data transmission task, it can determine the next-level node server responsible for transmission according to the above preset collective communication rules, and then send the data to be transmitted only to itself. The next level of node server. The number of next-level node servers of each node server may be the same or different. Specifically, the number of next-level node servers of a node server may be one or more.
在一些实施例中,在具体生成预设的集合通信规则的过程中,可以根据各个节点服务器的网络传输带宽,和/或,各个节点服务器的具体性能参数等,灵活地设置不同节点服务器的下一级节点服务器的数量。例如,某节点服务器的网络传输带宽较宽,能够同时支持针对五个不同节点服务器的数据传输,这时该节点服务器的下一级节点服务器可以包括的数量相对较多的节点服务器。例如,该节点服务器的下一级节点服务器可以包括5个节点服务器,从而可以充分地利用该节点服务器的网络传输带宽,提高预设的数据处理网络整体的数据传输效率。In some embodiments, in the process of specifically generating the preset collective communication rules, the network transmission bandwidth of each node server, and/or the specific performance parameters of each node server, etc., can be flexibly set for different node servers. The number of primary node servers. For example, a node server has a wide network transmission bandwidth and can support data transmission for five different node servers at the same time. In this case, the next-level node server of the node server may include a relatively large number of node servers. For example, the next-level node server of the node server may include five node servers, so that the network transmission bandwidth of the node server can be fully utilized, and the overall data transmission efficiency of the preset data processing network can be improved.
当然,上述预设的集合通信规则中还可以进一步包括各个节点服务器的上一级节点服务器等其他信息数据。对此,本说明书不作限定。Of course, the above-mentioned preset collective communication rules may further include other information data such as the upper-level node servers of each node server. This specification does not limit this.
在一些实施例中,针对一个预设数据处理网络,可以包括多个不同的预设的集合通信规则。其中,上述多个不同的预设的集合通信规则中的起始节点服务器可以分别是该预设的数据处理网络中不同的节点服务器。相应的,每一个预设的集合通信规则可以分别与该预设集合通信规则中的起始节点服务器(或者起始节点服务器的身份标识)相对应。In some embodiments, for a preset data processing network, a plurality of different preset collective communication rules may be included. Wherein, the starting node servers in the above-mentioned multiple different preset collective communication rules may be different node servers in the preset data processing network, respectively. Correspondingly, each preset collective communication rule may respectively correspond to the starting node server (or the identity identifier of the starting node server) in the preset collective communication rule.
在一些实施例中,具体实施之前,可以根据初始化指令,分别以预设的数据处理网络中的多个不同节点服务器作为起始节点服务器,生成对应的多个预设的集合通信规则。数据处理网络中的各个节点服务器可以分别获取并保存上述多个预设的集合通信规则。In some embodiments, before the specific implementation, according to the initialization instruction, a plurality of different node servers in the preset data processing network can be used as the starting node servers, respectively, to generate a plurality of corresponding preset collective communication rules. Each node server in the data processing network may acquire and save the above-mentioned multiple preset collective communication rules respectively.
在一些实施例中,上述预设的集合通信规则具体可以通过图表的形式表示,例如,可以是一种集合通信视图。此外,上述预设的集合通信规则具体还可以通过数表等其他形式表示。当然,上述所列举的表示形式只是一种示意性说明。具体实施时,根据具体情况和处理需要,还可以采用其他形式来表示上述预设的集合通信规则。In some embodiments, the above-mentioned preset collective communication rule may be specifically represented in the form of a graph, for example, it may be a collective communication view. In addition, the above-mentioned preset collective communication rules may also be specifically expressed in other forms such as a number table. Of course, the above-listed representations are only a schematic illustration. During specific implementation, according to specific situations and processing needs, other forms may also be used to represent the above-mentioned preset collective communication rules.
在一些实施例中,具体实施时,第二节点服务器可以根据第二节点服务器的身份标 识,先从多个预设的集合通信规则中找到与第二节点服务器的身份标识匹配的预设的集合通信规则作为第一目标集合通信规则。第二节点服务器可以根据该第一目标集合通信规则,确定出第二节点服务器的下一级节点服务器,并只将共识信息传输至第二节点的下一级节点服务器。In some embodiments, during specific implementation, the second node server may first find a preset set that matches the identity of the second node server from a plurality of preset set communication rules according to the identity of the second node server The communication rules are used as the first target set communication rules. The second node server may determine the next-level node server of the second node server according to the first target set communication rule, and only transmit the consensus information to the next-level node server of the second node.
在一些实施例中,第二节点的下一级节点服务器在接收到共识信息后,可以先从共识信息中提取得到第二节点服务器的身份标识,并根据该身份标识,从多个预设的集合通信规则中确定出第一目标集合通信规则。再根据第一目标集合通信规则,确定出自己的下一级节点服务器,进而可以只将共识信息继续传输至自己的下一级节点服务器,完成自己所负责的传输任务。In some embodiments, after receiving the consensus information, the next-level node server of the second node may first extract the identity of the second node server from the consensus information, and according to the identity, select from a plurality of preset The first target collective communication rule is determined in the collective communication rule. Then, according to the communication rules of the first target set, determine its own next-level node server, and then only continue to transmit the consensus information to its own next-level node server to complete the transmission task that it is responsible for.
按照上述方式,预设的数据处理网络中的不同节点会逐步地参与到共识信息的传输工程中,接收到上一级传输的共识信息,并根据预设的集合通信规则,将该共识信息传输至自己的下一级节点服务器,完成自己所负责的传输任务,从而可以不断地引入不同的节点服务器参与共识信息的传输,以并行传输的方式,将共识信息逐级地传输至预设的数据处理网络中的节点服务器息,增加了单位时间传输的数据量,提高了共识信息的传输效率,缩短了共识信息传输过程中的耗时。同时,由于是根据预设的集合通信规则进行共识信息的传输,能够较为准确地覆盖预设的数据处理网络中的各个节点服务器,避免出现遗漏。并且,各个节点服务器只会接收到一次共识信息,而不会接收到多次共识信息,避免重复接收共识信息。According to the above method, different nodes in the preset data processing network will gradually participate in the transmission project of consensus information, receive the consensus information transmitted by the previous level, and transmit the consensus information according to the preset collective communication rules to its own next-level node server to complete the transmission tasks that it is responsible for, so that different node servers can be continuously introduced to participate in the transmission of consensus information, and the consensus information can be transmitted to the preset data step by step in a parallel transmission method. Processing node server information in the network increases the amount of data transmitted per unit time, improves the transmission efficiency of consensus information, and shortens the time-consuming process of consensus information transmission. At the same time, since the consensus information is transmitted according to the preset collective communication rules, each node server in the preset data processing network can be more accurately covered, and omissions can be avoided. Moreover, each node server will only receive consensus information once, and will not receive consensus information multiple times, avoiding repeated receipt of consensus information.
在一些实施例中,节点服务器在完成所负责的传输任务后,可以退出传输。还可以生成并对外发布确认信息,以表示已经接收到共识信息,和/或,已经将共识信息传输至下一级节点服务器。In some embodiments, the node server may exit the transmission after completing the transmission task it is responsible for. Confirmation information can also be generated and published to indicate that the consensus information has been received, and/or the consensus information has been transmitted to the next-level node server.
S603:在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,所述预设的数据处理网络中的节点服务器根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果;所述第一节点服务器向所述客户端设备反馈所述交易数据处理结果。S603: When it is determined that at least a preset number of node servers have received the consensus information, the node servers in the preset data processing network perform corresponding transaction data processing according to the transaction data processing request, and obtain corresponding the transaction data processing result; the first node server feeds back the transaction data processing result to the client device.
在一些实施例中,在第二节点服务发起共识操作后,预设的数据处理网络中的节点服务器具体实施时,可以统计接收到共识信息的节点服务器的数量。并将该数量与预设数量进行比较,以确定是否有大于或等于预设数量的节点服务器接收到上述共识信息。在确定有大于或等于预设数量的节点服务器接收到该共识信息的情况下,可以确定达成共识,完成了共识操作。In some embodiments, after the second node service initiates the consensus operation, when the node server in the preset data processing network is specifically implemented, the number of node servers that have received the consensus information may be counted. The number is compared with the preset number to determine whether a node server greater than or equal to the preset number has received the above consensus information. In the case where it is determined that more than or equal to the preset number of node servers has received the consensus information, it can be determined that a consensus has been reached, and the consensus operation has been completed.
在一些实施例中,在确定只有小于预设数量的节点服务器接收到所述共识信息的情况下,确定没有达成共识。这时,第二节点服务器可以重新发起共识操作,重新通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输共识信息。In some embodiments, it is determined that no consensus has been reached when it is determined that only less than a preset number of node servers have received the consensus information. At this time, the second node server may re-initiate the consensus operation, and re-transmit the consensus information to the node server in the preset data processing network through the preset transmission mode based on collective communication.
在一些实施例中,具体实施时,还可以根据具体情况和精度要求,设置确定数据处 理网络中的节点服务器接收共识信息的可容忍的时长作为预设时间段阈值。In some embodiments, during the specific implementation, it is also possible to set the tolerable time period for the node server in the data processing network to receive the consensus information as the preset time period threshold value according to the specific situation and accuracy requirements.
相应的,上述确定至少有预设数量的节点服务器接收到所述共识信息,具体实施时可以包括:确定在预设时间段阈值内至少有预设数量的节点服务器接收到所述共识信息。这样,具体实施时,可以以上述预设时间段阈值作为一个截止参照,通过检测在预设时间段阈值内是否存在大于或等于预设数量的节点服务器接收到该共识信息来判断是否达成共识。如果检测到超过预设时间段阈值接收到该共识信息的节点服务器数量仍然小于预设数量,可以判定没有达成共识,进而不再继续等待其他的节点服务器接收该共识信息,从而可以提高整体的数据处理效率。Correspondingly, determining that at least a preset number of node servers have received the consensus information may include: determining that at least a preset number of node servers have received the consensus information within a preset time period threshold. In this way, in specific implementation, the above-mentioned preset time period threshold can be used as a cutoff reference, and whether a consensus is reached is determined by detecting whether there are more than or equal to the preset number of node servers within the preset time period threshold that receive the consensus information. If it is detected that the number of node servers that have received the consensus information beyond the preset time period threshold is still less than the preset number, it can be determined that no consensus has been reached, and then no longer wait for other node servers to receive the consensus information, thereby improving the overall data processing efficiency.
在一些实施例中,在第二节点服务发起共识操作后,预设的数据处理网络中的节点服务器具体实施时,可以以第二节点服务器发出共识信息的时间点作为起始时间,统计预设时间段阈值内接收到共识信息的节点服务器的数量。并将该数量与预设数量进行比较,以确定在预设时间段阈值内是否有大于或等于预设数量的节点服务器接收到上述共识信息。在确定预设时间段阈值内有大于或等于预设数量的节点服务器接收到该共识信息的情况下,可以确定达成共识,完成了共识操作。In some embodiments, after the second node service initiates the consensus operation, when the preset node server in the data processing network is specifically implemented, the time point when the second node server sends the consensus information may be used as the starting time, and the preset statistics The number of node servers that have received consensus information within the time period threshold. The number is compared with the preset number to determine whether a node server greater than or equal to the preset number has received the above consensus information within the preset time period threshold. When it is determined that the consensus information is received by node servers greater than or equal to the preset number within the preset time period threshold, it can be determined that a consensus has been reached, and the consensus operation has been completed.
其中,上述预设时间段阈值具体可以根据所使用的共识规则等确定的。具体的,上述预设时间段阈值可以是1分钟,也可以是1小时等。对于上述预设时间段阈值的具体时长,本说明书不作限定。Wherein, the above-mentioned preset time period threshold may be specifically determined according to the used consensus rules and the like. Specifically, the above-mentioned preset time period threshold may be 1 minute, or may be 1 hour, or the like. The specific duration of the above-mentioned preset time period threshold is not limited in this specification.
在一些实施例中,在确定预设时间段阈值内至少有预设数量的节点服务器接收到所述共识信息,达成共识的情况下,预设的数据处理网络中的节点服务器可以根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果。各个节点服务器,在得到对应的交易数据处理结果后,可以将所得到的交易数据处理结果记录在各自的分布式的交易账本数据库中。这样预设的数据处理网络可以以分布式的处理方式,完成针对交易数据的数据处理。In some embodiments, when it is determined that at least a preset number of node servers have received the consensus information within a preset time period threshold, and a consensus is reached, the node servers in the preset data processing network can The data processing request performs corresponding transaction data processing to obtain a corresponding transaction data processing result. After obtaining the corresponding transaction data processing results, each node server can record the obtained transaction data processing results in their respective distributed transaction ledger databases. Such a preset data processing network can complete data processing for transaction data in a distributed processing manner.
在一些实施例中,上述第一节点服务器,在得到对应的交易数据处理结果后,可以向客户端设备发送所述交易数据处理结果。进而,客户端设备可以接收并向用户展示出对应的交易数据处理结果。In some embodiments, after obtaining the corresponding transaction data processing result, the first node server may send the transaction data processing result to the client device. Furthermore, the client device can receive and display the corresponding transaction data processing result to the user.
在本实施例中,通过在第二节点服务器发起针对交易数据处理请求的共识操作,生成对应的共识信息后,采用基于集合通信的预设传输方式,向预设的数据处理网络中的各个节点服务器传输共识信息,以便在确定预设时间段阈值内至少有预设数量的节点服务器接收到该共识信息时达成共识的情况下,预设的数据处理网络中的各个节点服务器可以根据交易数据处理请求进行相应的交易数据处理。从而可以有效地缩短了共识信息传输过程中的后市,提高共识信息的传输效率,进而能够高效地完成交易数据的处理,减少用户的等待延时,提高用户的使用体验。In this embodiment, after the second node server initiates a consensus operation on the transaction data processing request, and generates corresponding consensus information, a preset transmission method based on collective communication is used to send each node in the preset data processing network to the corresponding consensus information. The server transmits the consensus information, so that each node server in the preset data processing network can process the transaction data according to the condition that at least a preset number of node servers have received the consensus information within the preset time period threshold and reach a consensus. Request corresponding transaction data processing. In this way, the market outlook in the process of consensus information transmission can be effectively shortened, the transmission efficiency of consensus information can be improved, and the processing of transaction data can be efficiently completed, the user's waiting delay can be reduced, and the user's use experience can be improved.
在一些实施例中,在确定预设时间段阈值内只有小于预设数量的节点服务器接收到 所述共识信息的情况下,无法达成共识。这时,第二节点服务器可以重新发起共识操作,重新通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输共识信息。In some embodiments, a consensus cannot be reached if it is determined that only less than a preset number of node servers have received the consensus information within a preset time period threshold. At this time, the second node server may re-initiate the consensus operation, and re-transmit the consensus information to the node server in the preset data processing network through the preset transmission mode based on collective communication.
在一些实施例中,第二节点服务器也可以获取并根据节点服务器对外发布的确认信息,从预设的数据处理网络中确定出没有接收到共识信息的节点服务器,并针对这类节点服务器单独发送共识信息,直到确定接收到共识信息的节点服务器的数量大于或等于预设数量,达成共识等。In some embodiments, the second node server may also obtain and, according to the confirmation information released by the node server, determine the node server that has not received the consensus information from the preset data processing network, and send a separate message for this type of node server. Consensus information, until it is determined that the number of node servers that have received the consensus information is greater than or equal to the preset number, and a consensus is reached.
在一些实施例中,在确定预设时间段阈值内至少有预设数量的节点服务器接收到共识信息,确定已经达成共识的情况下,具体实施时,第二节点服务器可以针对还未接收到共识信息的节点服务器发送复位指令。上述还未接收到共识信息的节点服务器可以提前退出传输,不再进行传输任务。从而可以有效地减少不必要的数据处理量,提高预设的数据处理网络整体的处理性能。In some embodiments, when it is determined that at least a preset number of node servers have received the consensus information within the preset time period threshold, and it is determined that a consensus has been reached, in the specific implementation, the second node server may not receive the consensus information. The node server of the information sends a reset command. The above-mentioned node servers that have not received the consensus information can quit the transmission in advance and no longer perform the transmission task. Therefore, unnecessary data processing amount can be effectively reduced, and the overall processing performance of the preset data processing network can be improved.
当然,在确定预设时间段阈值内至少有预设数量的节点服务器接收到共识信息,确定已经达成共识的情况下,具体实施时,第二节点服务器还可以不发送复位指令,允许在预设的数据处理网络中继续逐级传输共识信息。Of course, in the case where it is determined that at least a preset number of node servers have received the consensus information within the preset time period threshold, and it is determined that a consensus has been reached, during the specific implementation, the second node server may not send a reset instruction, allowing the preset time Consensus information continues to be transmitted step by step in the data processing network.
在一些实施例中,上述第二节点服务器生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,具体实施时,可以包括以下内容:生成针对所述交易数据处理请求的共识信息,其中,所述共识信息携带有第二节点服务器的身份标识;根据第二节点服务器的身份标识,从多个预设的集合通信规则中确定出与所述第二节点服务器的身份标识匹配的第一目标集合通信规则,其中,所述第一目标集合通信规则以第二节点服务器作为数据传输过程中的起始节点服务器,所述第一目标集合通信规则至少包括所述预设的数据处理网络中的各个节点服务器在数据传输过程中的下一级节点服务器;根据所述第一目标集合通信规则,确定第二节点服务器的下一级节点服务器,并将所述共识信息发送至第二节点服务器的下一级节点服务器。In some embodiments, the above-mentioned second node server generates consensus information for the transaction data processing request, and transmits the consensus information to a node server in a preset data processing network through a preset transmission method based on collective communication , during specific implementation, may include the following content: generating consensus information for the transaction data processing request, wherein the consensus information carries the identity of the second node server; according to the identity of the second node server, from multiple A first target collective communication rule matching the identity of the second node server is determined from the preset collective communication rules, wherein the first target collective communication rule takes the second node server as the starting point in the data transmission process. The starting node server, the first target set communication rule includes at least the next-level node server in the data transmission process of each node server in the preset data processing network; according to the first target set communication rule, determine The next-level node server of the second node server sends the consensus information to the next-level node server of the second node server.
在一些实施例中,所述第二节点服务器的下一级节点服务器包括第三节点服务器,相应的,所述方法具体实施时,还可以包括以下内容:第三节点服务器接收共识信息,并根据所述共识信息获得第二节点服务器的身份标识;根据所述第二节点服务器的身份标识,从多个预设的集合通信规则中确定出与所述第二节点服务器的身份标识匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,确定第三节点服务器的下一级节点服务器,并将所述共识信息发送至第三节点服务器的下一级节点服务器。从而完成第三节点服务器所负责的传输任务。In some embodiments, the next-level node server of the second node server includes a third node server. Correspondingly, when the method is specifically implemented, it may further include the following content: the third node server receives the consensus information and, according to the The consensus information obtains the identity of the second node server; according to the identity of the second node server, the first node matching the identity of the second node server is determined from a plurality of preset collective communication rules. target set communication rules; according to the first target set communication rules, determine the next-level node server of the third node server, and send the consensus information to the next-level node server of the third node server. Thus, the transmission task that the third node server is responsible for is completed.
在一些实施例中,所述第二节点服务器的下一级节点服务器还可以包括多个节点服务器。例如,第二节点服务器的下一级节点服务器还可以包括:第三节点服务器、第四 节点服务器和第五节点服务器等等。相应的,上述第四节点服务器和第五节点服务器具体实施时,可以参照第三节点服务器的处理方式,将共识信息传输至各自下一级节点服务器,完成各自所负责的传输任务。In some embodiments, the next-level node server of the second node server may further include a plurality of node servers. For example, the next-level node servers of the second node server may further include: a third node server, a fourth node server, a fifth node server, and so on. Correspondingly, when the above-mentioned fourth node server and fifth node server are specifically implemented, the consensus information can be transmitted to the respective lower-level node servers with reference to the processing method of the third node server, so as to complete their respective transmission tasks.
在一些实施例中,具体实施时,可以按照上述方式,不断地引入预设的数据处理网络中除第二节点服务器以外的其他节点服务器参与共识信息的传输,完成所负责的传输任务,从而能够不断将共识信息逐级地传输至预设的数据处理网络中的多个节点服务器。In some embodiments, during the specific implementation, other node servers other than the second node server in the preset data processing network may be continuously introduced to participate in the transmission of consensus information in the above-mentioned manner, so as to complete the transmission task in charge, so as to be able to The consensus information is continuously transmitted to multiple node servers in the preset data processing network.
在一些实施例中,所述多个预设的集合通信规则具体可以包括预先生成的多个分别以不同的节点服务器作为数据传输过程中的起始节点服务器的集合通信规则,其中,所述多个预设的集合通信规则中的各个集合通信规则分别可以与起始节点服务器的身份标识对应。因此,具体实施时,可以根据起始节点服务器的身份标识,从多个预设的集合通信规则中匹配到对应的第一目标集合通信规则。In some embodiments, the plurality of preset collective communication rules may specifically include a plurality of pre-generated collective communication rules that respectively use different node servers as the starting node servers in the data transmission process, wherein the plurality of collective communication rules are Each of the preset collective communication rules may correspond to the identity of the starting node server, respectively. Therefore, in specific implementation, the corresponding first target collective communication rule may be matched from a plurality of preset collective communication rules according to the identity of the starting node server.
在一些实施例中,第一节点服务器向预设的数据处理网络广播所述交易数据处理请求,具体实施时,可以包括以下内容:第一节点服务器通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述交易数据处理请求。这样可以缩短第一节点服务器向预设的数据处理网络中的节点服务器传输交易数据处理请求过程的耗时,进一步提高整体的处理效率,进一步缩短用户的等候延时。In some embodiments, the first node server broadcasts the transaction data processing request to a preset data processing network, and the specific implementation may include the following content: the first node server sends the transaction data processing request to the preset data processing network through a preset transmission method based on collective communication. The node server in the set data processing network transmits the transaction data processing request. In this way, the time-consuming process of transmitting the transaction data processing request from the first node server to the node server in the preset data processing network can be shortened, the overall processing efficiency can be further improved, and the user's waiting delay can be further shortened.
在一些实施例中,上述第一节点服务器通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述交易数据处理请求,具体实施时,可以包括以下内容:第一节点服务器根据第一节点服务器的身份标识,从多个预设的集合规则中确定出与所述第一节点服务器的身份标识匹配的第二目标集合通信规则,其中,所述第二目标集合通信规则以第一节点服务器作为数据传输过程中的起始节点服务器,所述第一目标集合通信规则至少包括所述预设的数据处理网络中的各个节点服务器在数据传输过程中的下一级节点服务器;根据所述第二目标集合通信规则,确定第一节点服务器的下一级节点服务器,并将携带有第一节点服务器的标识信息的交易数据处理请求发送至第一节点服务器的下一级节点服务器。In some embodiments, the above-mentioned first node server transmits the transaction data processing request to the node server in the preset data processing network by using a preset transmission mode based on collective communication, and the specific implementation may include the following content: A node server determines a second target set communication rule matching the identity of the first node server from a plurality of preset set rules according to the identity of the first node server, wherein the second target set The communication rule takes the first node server as the starting node server in the data transmission process, and the first target set communication rule includes at least the next level of each node server in the preset data processing network in the data transmission process. node server; according to the second target set communication rule, determine the next-level node server of the first node server, and send the transaction data processing request carrying the identification information of the first node server to the next node server of the first node server level node server.
在一些实施例中,第一节点服务器的下一级节点服务器在接收到交易数据处理请求后,可以根据交易数据处理请求中携带的第一节点服务器的身份标识,从多个预设的集合通信规则中确定出第二目标集合通信规则,并根据该第二目标集合通信规则,确定出自己的下一级节点服务器,并向自己的下一级节点服务器发送上述交易数据处理请求。完成自己所负责的传输任务。In some embodiments, after receiving the transaction data processing request, the next-level node server of the first node server may communicate from multiple preset sets according to the identity of the first node server carried in the transaction data processing request A second target set communication rule is determined in the rules, and according to the second target set communication rule, its own next-level node server is determined, and the transaction data processing request is sent to its own next-level node server. Complete the transmission tasks that you are responsible for.
预设的数据处理网络中的其他的节点服务器可以按照上述方式,确定并根据第二目标集合通信规则,将所接收到的交易数据处理请求传输至自己的下一级节点服务器,完成所负责的传输任务。从而能够引入预设的数据处理网络中的多个节点服务器参与交易数据处理请求的传输,增加单位时间内的传输数据量,有效地提高交易数据处理请求的 传输效率,缩短广播交易数据处理请求的耗时,进一步缩短了用户的等候延时。Other node servers in the preset data processing network can determine and transmit the received transaction data processing request to their own next-level node server according to the communication rules of the second target set according to the above-mentioned method, and complete the responsible task. transfer task. Therefore, multiple node servers in the preset data processing network can be introduced to participate in the transmission of transaction data processing requests, increasing the amount of transmitted data per unit time, effectively improving the transmission efficiency of transaction data processing requests, and shortening the time required for broadcasting transaction data processing requests. Time-consuming, further shortening the user's waiting delay.
在一些实施例中,在根据所述第二目标集合通信规则,确定第一节点服务器的下一级节点服务器,并将携带有第一节点服务器的标识信息的交易数据处理请求发送至第一节点服务器的下一级节点服务器后,所述方法具体实施时,还可以包括以下内容:检测所述预设的数据处理网络所包括的多个节点服务器是否接收到所述交易数据处理请求;在确定所述预设的数据处理网络所包括的多个节点服务器接收到所述交易数据处理请求的情况下,确定完成对预设的数据处理网络的广播。In some embodiments, the next-level node server of the first node server is determined according to the second target set communication rule, and a transaction data processing request carrying the identification information of the first node server is sent to the first node After the next-level node server of the server, when the method is specifically implemented, the method may further include the following content: detecting whether multiple node servers included in the preset data processing network receive the transaction data processing request; When the multiple node servers included in the preset data processing network receive the transaction data processing request, it is determined to complete the broadcast to the preset data processing network.
在一些实施例中,对交易数据处理请求的广播不同于共识信息的传输,通常会要求要将交易数据处理请求传输至预设的数据处理网络中的各个节点服务器。In some embodiments, the broadcasting of the transaction data processing request is different from the transmission of consensus information, and usually requires that the transaction data processing request be transmitted to each node server in the preset data processing network.
在一些实施例中,具体实施时,在确定预设时间段阈值内不是所有的节点服务器都接收到所述交易数据处理请求的情况下,第二节点服务器可以重新广播交易数据处理请求,重新通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输交易数据处理请求。In some embodiments, during specific implementation, if it is determined that not all node servers have received the transaction data processing request within a preset time period threshold, the second node server may rebroadcast the transaction data processing request, and re-pass the transaction data processing request. Based on the preset transmission mode of collective communication, the transaction data processing request is transmitted to the node server in the preset data processing network.
在一些实施例中,第二节点服务器也可以获取并根据节点服务器预设的数据处理网络中确定出没有接收到交易数据处理请求的节点服务器,并针对这类节点服务器单独发送交易数据处理请求,直到确定预设的数据处理网络中的多个节点服务器收到该交易数据处理请求。In some embodiments, the second node server may also acquire and determine, according to the data processing network preset by the node server, the node servers that have not received the transaction data processing request, and send the transaction data processing request separately for such node servers, Until it is determined that multiple node servers in the preset data processing network receive the transaction data processing request.
在一些实施例中,所述预设的数据处理网络具体可以包括基于区块链的数据处理网络。当然,需要说明的是,上述所列举的基于区块链的数据处理网络只是一种示意性说明。具体实施时,根据具体的应用场景和处理需求,还可以将上述方法应用其他类型的分布式的数据处理网络(或数据处理系统)中。In some embodiments, the preset data processing network may specifically include a blockchain-based data processing network. Of course, it should be noted that the blockchain-based data processing network listed above is only a schematic illustration. During specific implementation, according to specific application scenarios and processing requirements, the above method may also be applied to other types of distributed data processing networks (or data processing systems).
由上可见,本说明书实施例提供的交易数据的处理方法,通过第二节点服务器在响应所接收的交易数据处理请求,发起针对交易数据处理请求的共识操作,生成对应的共识信息后,采用基于集合通信的预设传输方式,向预设的数据处理网络中的各个节点服务器传输共识信息,以便在确定预设时间段阈值内至少有预设数量的节点服务器接收到该共识信息时达成共识的情况下,预设的数据处理网络中的各个节点服务器可以根据交易数据处理请求进行相应的交易数据处理,从而可以有效地提高共识信息的传输效率,减少共识信息传输过程的耗时,进而能够高效地完成交易数据的处理,缩短用户的等候延时,提高用户的使用体验;还通过在广播交易数据处理请求时,采用基于集合通信的预设传输方式,向预设的数据处理网络中的各个节点服务器传输交易数据请求,从而能够提高交易数据处理请求的传输效率,减少广播过程的耗时,进一步提高交易数据处理的整体处理效率,进一步缩短用户的等候延时。As can be seen from the above, the transaction data processing method provided by the embodiment of this specification, the second node server responds to the received transaction data processing request, initiates a consensus operation for the transaction data processing request, and generates corresponding consensus information. The preset transmission method of collective communication transmits consensus information to each node server in the preset data processing network, so that a consensus is reached when at least a preset number of node servers receive the consensus information within the preset time period threshold. In this case, each node server in the preset data processing network can process the corresponding transaction data according to the transaction data processing request, which can effectively improve the transmission efficiency of the consensus information, reduce the time-consuming of the consensus information transmission process, and thus be more efficient. It also completes the processing of transaction data, shortens the user's waiting delay, and improves the user's experience; it also uses the preset transmission method based on collective communication when broadcasting the transaction data processing request. The node server transmits transaction data requests, thereby improving the transmission efficiency of transaction data processing requests, reducing the time-consuming of the broadcasting process, further improving the overall processing efficiency of transaction data processing, and further shortening the waiting delay for users.
本说明书实施例还提供了一种交易数据的处理方法。其中,该方法可以应用于第一节点服务器。具体实施时,该方法可以包括以下内容。The embodiments of this specification also provide a method for processing transaction data. Wherein, the method can be applied to the first node server. During specific implementation, the method may include the following contents.
S1:接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;其中,所述预设的数据处理网络包括多个节点服务器,所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息。S1: Receive a transaction data processing request sent by a client device, and broadcast the transaction data processing request to a preset data processing network; wherein the preset data processing network includes multiple node servers, and the multiple nodes The second node server in the server receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and transmits to the nodes in the preset data processing network through a preset transmission method based on collective communication The server transmits the consensus information.
S2:在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果,并向所述客户端设备反馈所述交易数据处理结果。S2: Under the condition that it is determined that at least a preset number of node servers have received the consensus information, perform corresponding transaction data processing according to the transaction data processing request, obtain a corresponding transaction data processing result, and report to the client The device feeds back the transaction data processing result.
在一些实施例中,上述第一节点服务器具体可以包括预设的数据处理网络中与客户端设备对接的节点服务器,或者预设的数据处理网络中接收到客户端设备的交易数据处理请求的任意一个节点服务器。In some embodiments, the above-mentioned first node server may specifically include a node server connected to the client device in a preset data processing network, or any node server in the preset data processing network that receives a transaction data processing request from the client device A node server.
本说明书实施例还提供了一种交易数据的处理方法。其中,该方法可以应用于第二节点服务器。具体实施时,该方法可以包括以下内容。The embodiments of this specification also provide a method for processing transaction data. Wherein, the method can be applied to the second node server. During specific implementation, the method may include the following contents.
S1:接收并响应交易数据处理请求,生成针对所述交易数据处理请求的共识信息,其中,所述共识信息携带有第二节点服务器的身份标识。S1: Receive and respond to the transaction data processing request, and generate consensus information for the transaction data processing request, wherein the consensus information carries the identity of the second node server.
S2:通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,其中,所述预设的数据处理网络包括多个节点服务器,所述预设的数据处理网络中的多个节点服务器在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理。S2: Transmit the consensus information to a node server in a preset data processing network through a preset transmission mode based on collective communication, wherein the preset data processing network includes a plurality of node servers, and the preset data processing network includes multiple node servers. When it is determined that at least a preset number of node servers have received the consensus information, multiple node servers in the data processing network perform corresponding transaction data processing according to the transaction data processing request.
在一些实施例中,上述第二节点服务器具体可以包括发起共识操作的节点服务器。其中,上述第二节点服务器具体可以是预设的数据处理网络中的主服务器,也可以是预设的数据处理网络中的任意一个节点服务器。In some embodiments, the above-mentioned second node server may specifically include a node server that initiates a consensus operation. The above-mentioned second node server may specifically be a main server in a preset data processing network, or may be any node server in a preset data processing network.
在一些实施例中,上述通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,具体实施时,可以包括以下内容:根据第二节点的身份标识,从多个预设的集合通信规则中确定出与第二节点服务器的身份标识匹配的预设的集合通信规则,作为第一目标集合通信规则,其中,所述第一目标集合通信规则以第二节点服务器作为数据传输过程中的起始节点服务器,所述第一目标集合通信规则至少包括所述预设的数据处理网络中的各个节点服务器在数据传输过程中的下一级节点服务器;根据所述第一目标集合通信规则,确定出下一级节点服务器,并将所述共识信息发送至所述下一级节点服务器。In some embodiments, the above-mentioned transmission of the consensus information to a node server in a preset data processing network through a preset transmission method based on collective communication may include the following content: according to the identity of the second node. , determine a preset collective communication rule matching the identity of the second node server from a plurality of preset collective communication rules, as the first target collective communication rule, wherein the first target collective communication rule is based on the first target collective communication rule. The two-node server is used as the starting node server in the data transmission process, and the first target set communication rule includes at least the next-level node server of each node server in the preset data processing network in the data transmission process; according to The first target set communication rules determine the next-level node server, and send the consensus information to the next-level node server.
在一些实施例中,上述将所述共识信息发送至所述下一级节点服务器,具体实施时,可以包括以下内容:检测所述预设的数据处理网络所包括的多个节点服务器是否接收到所述交易数据处理请求;在确定所述预设的数据处理网络所包括的多个节点服务器接收到所述交易数据处理请求的情况下,将所述共识信息发送至所述下一级节点服务器。In some embodiments, the above-mentioned sending the consensus information to the next-level node server may include the following content: detecting whether multiple node servers included in the preset data processing network receive the transaction data processing request; if it is determined that multiple node servers included in the preset data processing network have received the transaction data processing request, send the consensus information to the next-level node server .
在一些实施例中,所述预设的数据处理网络中的多个节点服务器在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理,具体实施时,可以包括:所述预设的数据处理网络中的多个节点服务器在确定预设时间段阈值内至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理。In some embodiments, multiple node servers in the preset data processing network, when it is determined that at least a preset number of node servers have received the consensus information, perform corresponding processing according to the transaction data processing request The transaction data processing, in specific implementation, may include: when multiple node servers in the preset data processing network determine that at least a preset number of node servers receive the consensus information within a preset time period threshold , and perform corresponding transaction data processing according to the transaction data processing request.
本说明书实施例还提供了一种交易数据的处理方法。其中,该方法可以应用于预设的数据处理网络中除第一节点服务器、第二节点服务器以外的其他任意一个节点服务器。具体实施时,该方法可以包括以下内容。The embodiments of this specification also provide a method for processing transaction data. Wherein, the method can be applied to any other node server except the first node server and the second node server in the preset data processing network. During specific implementation, the method may include the following contents.
S1:接收交易数据处理请求。S1: Receive a transaction data processing request.
S2:接收上一级节点服务器发送的共识信息。S2: Receive the consensus information sent by the upper-level node server.
S3:从所述共识信息中提取出起始节点的身份标识,并根据所述起始节点的身份标识从多个预设的集合通信规则中确定出匹配的第一目标集合通信规则。S3: Extract the identity of the starting node from the consensus information, and determine a matching first target collective communication rule from a plurality of preset collective communication rules according to the identity of the starting node.
S4:根据所述第一目标集合通信规则,确定出下一级节点服务器,并将所述共识信息发送至下一节点服务器。S4: Determine the next-level node server according to the first target set communication rule, and send the consensus information to the next-level node server.
在一些实施例中,在将所述共识信息发送至下一节点服务器后,所述方法具体实施时,还可以包括以下内容:在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理。In some embodiments, after the consensus information is sent to the next node server, when the method is specifically implemented, the method may further include the following content: after it is determined that at least a preset number of node servers have received the consensus information In this case, the corresponding transaction data processing is performed according to the transaction data processing request.
在一些实施例中,在按照上述方式在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,达成共识,进而预设的数据处理网络中的各个节点服务器可以分别根据交易数据处理请求,进行相应的交易数据处理,并将处理得到的交易数据处理结果记录在各自的交易账本数据库中。这样预设的数据处理网络可以以分布式的处理方式完成交易数据的数据处理。In some embodiments, when it is determined that at least a preset number of node servers have received the consensus information in the above-mentioned manner, a consensus is reached, and then each node server in the preset data processing network can Process the request, perform corresponding transaction data processing, and record the transaction data processing results obtained from the processing in the respective transaction ledger databases. Such a preset data processing network can complete the data processing of transaction data in a distributed processing manner.
在一些实施例中,上述确定至少有预设数量的节点服务器接收到所述共识信息,可以包括:确定在预设时间段阈值内至少有预设数量的节点服务器接收到所述共识信息。In some embodiments, determining that at least a preset number of node servers have received the consensus information may include: determining that at least a preset number of node servers have received the consensus information within a preset time period threshold.
参阅图7所示,本说明书实施例还提供了一种数据处理方法。该方法具体实施时,可以包括以下内容。Referring to FIG. 7 , an embodiment of the present specification further provides a data processing method. When the method is specifically implemented, the following contents may be included.
S701:生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识。S701: Generate target data, wherein the target data carries an identity identifier of an initial processing node.
S702:根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则。S702: According to the identity identifier, determine a first target collective communication rule matching the identity identifier from a plurality of preset collective communication rules.
S703:根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。S703: Determine a next-level processing node among multiple processing nodes included in a preset data processing network according to the first target set communication rule, and send the target data to the next-level processing node .
在一些实施例中,上述目标数据具体可以是共识信息,也可以是数据处理请求等等。其中,上述数据处理请求具体可以是交易场景中的交易数据处理请求,也可以是对应于其他应用场景中的其他类型数据的处理请求。具体实施时,根据具体情况,上述目标数 据还可以包括其他类型或内容的数据。例如,还可以是身份验证数据、秘钥数据等等。对此,本说明书不作限定。In some embodiments, the above-mentioned target data may specifically be consensus information, or may be a data processing request or the like. The above data processing request may specifically be a transaction data processing request in a transaction scenario, or may be a processing request corresponding to other types of data in other application scenarios. During specific implementation, according to specific circumstances, the above-mentioned target data may also include data of other types or contents. For example, it can also be authentication data, secret key data, and so on. This specification does not limit this.
在一些实施例中,参阅图8所示,上述方法具体可以应用于预设的数据处理网络(或者数据处理系统)中的起始处理节点。具体的,上述起始处理节点可以是发起共识操作的处理节点,也可以是广播交易数据处理请求的处理节点,还可以是发起身份验证的处理节点等等。上述预设的数据处理网络具体可以包括多个处理节点,例如,包含有N个不同的处理节点。In some embodiments, referring to FIG. 8 , the above-mentioned method may be specifically applied to the initial processing node in a preset data processing network (or data processing system). Specifically, the above-mentioned initial processing node may be a processing node that initiates a consensus operation, a processing node that broadcasts a transaction data processing request, or a processing node that initiates identity verification, or the like. The above-mentioned preset data processing network may specifically include multiple processing nodes, for example, N different processing nodes.
在一些实施例中,上述处理节点具体可以包括预设的数据处理网络中能够进行某些具体的数据处理的处理单位。具体的,上述处理节点可以是例如服务器等电子设备,也可以是运行于上述电子设备中处理模块或程序等等。In some embodiments, the above-mentioned processing node may specifically include a processing unit capable of performing some specific data processing in a preset data processing network. Specifically, the above-mentioned processing node may be, for example, an electronic device such as a server, or may be a processing module or a program or the like running in the above-mentioned electronic device.
在一些实施例中,所述预设的数据处理网络具体可以包括基于区块链的数据处理网络。当然,需要说明的是,上述所列举的基于区块链的数据处理网络只是一种示意性说明。具体实施时,根据具体的应用场景和处理需求,还可以将上述方法应用其他类型的分布式的数据处理网络(或数据处理系统)中。In some embodiments, the preset data processing network may specifically include a blockchain-based data processing network. Of course, it should be noted that the blockchain-based data processing network listed above is only a schematic illustration. During specific implementation, according to specific application scenarios and processing requirements, the above method may also be applied to other types of distributed data processing networks (or data processing systems).
在一些实施例中,上述起始处理节点的身份标识具体可以包括与起始处理节点对应,能够指示起始处理节点的标识信息。具体的,上述起始处理节点的身份标识可以包括起始处理节点的节点编号、起始处理节点的地址参数、起始处理节点的节点名称等等。In some embodiments, the identity identifier of the initial processing node may specifically include identification information corresponding to the initial processing node and capable of indicating the initial processing node. Specifically, the identity identifier of the initial processing node may include the node number of the initial processing node, the address parameter of the initial processing node, the node name of the initial processing node, and the like.
在一些实施例中,起始处理节点在生成目标数据后,可以按照上述方式确定出第一目标集合通信规则,进而可以根据第一目标集合通信规则,将目标数据高效地传输至预设的数据处理网络中的处理节点处。In some embodiments, after generating the target data, the initiating processing node can determine the first target set communication rule in the above-mentioned manner, and then can efficiently transmit the target data to the preset data according to the first target set communication rule At processing nodes in the processing network.
在一些实施例中,在根据所述第一目标集合通信规则,确定下一级处理节点,并将所述目标数据发送至所述下一级处理节点后,所述方法具体实施时,还可以包括以下内容:检测接收到所述目标数据的处理节点的数量是否大于或等于预设数量;在确定接收到所述目标数据的处理节点的数量小于所述预设数量的情况下,根据所述第一目标集合通信规则,重新传输所述目标数据。In some embodiments, after the next-level processing node is determined according to the first target set communication rule, and the target data is sent to the next-level processing node, when the method is specifically implemented, the following steps may be taken: Including the following content: detecting whether the number of processing nodes receiving the target data is greater than or equal to a preset number; in the case of determining that the number of processing nodes receiving the target data is less than the preset number, according to the The first target sets communication rules, and retransmits the target data.
在一些实施例中,上述检测接收到所述目标数据的处理节点的数量是否大于或等于预设数量,具体实施时,可以包括:检测在预设时间段阈值内接收到所述目标数据的处理节点的数量是否大于或等于预设数量。In some embodiments, the above-mentioned detecting whether the number of processing nodes that have received the target data is greater than or equal to a preset number may include: detecting the processing of receiving the target data within a preset time period threshold. Whether the number of nodes is greater than or equal to the preset number.
在一些实施例中,根据具体的处理规则,需要在预设时间段阈值内接收到的目标数据的处理节点的数量大于或等于预设处理,才能满足处理条件,进行后续相应的数据处理。In some embodiments, according to specific processing rules, the number of processing nodes that need to receive target data within the preset time period threshold is greater than or equal to the preset processing, in order to satisfy processing conditions and perform subsequent corresponding data processing.
其中,上述预设数量具体可以根据处理规则确定。上述处理规则可以包括共识规则等。当然,上述所列举的共识规则只是一种示意性说明。具体实施时,根据具体的应用场景,还可以使用其他类型的处理规则。对此,本说明书不作限定。The above preset number may be specifically determined according to a processing rule. The above-mentioned processing rules may include consensus rules and the like. Of course, the consensus rules listed above are just a schematic illustration. During specific implementation, other types of processing rules may also be used according to specific application scenarios. This specification does not limit this.
在一些实施例中,在确定在预设时间段阈值内接收到所述目标数据的处理节点的数量小于所述预设数量的情况下,可以确定当前还不满足处理条件,这时可以根据所述第一目标集合通信规则,重新传输所述目标数据。In some embodiments, when it is determined that the number of processing nodes that have received the target data within the preset time period threshold is less than the preset number, it may be determined that the processing conditions are not currently satisfied, and then the processing conditions may be determined according to the The first target set communication rule is used, and the target data is retransmitted.
在一些实施例中,在确定在预设时间段阈值内接收到所述目标数据的处理节点的数量小于所述预设数量的情况下,还可以从预设的数据处理网络中找到没有接收到目标数据的处理节点,并针对这类处理节点单独发送目标数据,直到接收到目标数据的处理节点的数量大于或等于预设数量为止。In some embodiments, when it is determined that the number of processing nodes that have received the target data within a preset time period threshold is less than the preset number, it is also possible to find out from a preset data processing network that the target data has not been received. processing nodes of the target data, and individually send the target data for such processing nodes until the number of processing nodes that receive the target data is greater than or equal to a preset number.
在一些实施例中,在确定在预设时间段阈值内接收到所述目标数据的处理节点的数量大于或等于所述预设数量的情况下,可以确定当前满足处理条件,这时预设的数据处理网络中的各个处理节点可以分别进行相应的数据处理。In some embodiments, when it is determined that the number of processing nodes that have received the target data within a preset time period threshold is greater than or equal to the preset number, it may be determined that the processing condition is currently satisfied, and the preset Each processing node in the data processing network can perform corresponding data processing respectively.
在一些实施例中,在检测在预设时间段阈值内接收到所述目标数据的处理节点的数量是否大于或等于预设数量后,所述方法具体实施时,还可以包括以下内容:在确定在预设时间段阈值内接收到所述目标数据的处理节点的数量大于或等于所述预设数量,且小于预设的数据处理网络所包括的多个处理节点的总数量的情况下,确定出当前未完成传输的处理节点;生成并向所述未完成传输的处理节点发送复位指令,其中,所述复位指令用于指示处理节点退出目标数据的传输过程。In some embodiments, after detecting whether the number of processing nodes that receive the target data within a preset time period threshold is greater than or equal to a preset number, when the method is specifically implemented, the method may further include the following: after determining In the case that the number of processing nodes that receive the target data within the preset time period threshold is greater than or equal to the preset number, and less than the preset total number of processing nodes included in the data processing network, determine generating and sending a reset instruction to the processing node that has not completed the transmission, wherein the reset instruction is used to instruct the processing node to quit the transmission process of the target data.
在一些实施例中,所述多个预设的集合通信规则具体可以包括预先生成的多个分别以不同的处理节点作为数据传输过程中的起始处理节点的集合通信规则,其中,所述多个预设的集合通信规则中的各个集合通信规则分别与起始处理节点的身份标识对应。In some embodiments, the plurality of preset collective communication rules may specifically include a plurality of pre-generated collective communication rules that respectively use different processing nodes as the starting processing nodes in the data transmission process, wherein the plurality of collective communication rules are Each of the preset collective communication rules corresponds to the identity of the initial processing node, respectively.
在一些实施例中,所述处理节点具体可以包括节点服务器等。In some embodiments, the processing node may specifically include a node server or the like.
在一些实施例中,所述预设的数据处理网络具体可以包括基于区块链的数据处理网络等。In some embodiments, the preset data processing network may specifically include a blockchain-based data processing network and the like.
由上可见,本说明书实施例提供的数据处理方法,通过上述方式进行点对点的数据传输,可以有效地提高目标数据的传输效率,进而能够较为高效地完成相应的数据处理。It can be seen from the above that the data processing method provided by the embodiments of this specification can effectively improve the transmission efficiency of target data by performing point-to-point data transmission in the above-mentioned manner, and thus can more efficiently complete the corresponding data processing.
本说明书实施例还提供了一种数据处理方法,该方法具体可以应用于预设的数据处理网络中除起始处理节点以外的其他的处理节点。该方法具体实施时,可以包括以下内容。The embodiments of this specification also provide a data processing method, which can be specifically applied to other processing nodes other than the initial processing node in a preset data processing network. When the method is specifically implemented, the following contents may be included.
S1:接收上一级处理节点发送的目标数据。S1: Receive the target data sent by the upper-level processing node.
S2:从所述目标数据中提取出起始处理节点的身份标识。S2: Extract the identity of the initial processing node from the target data.
S3:根据所述起始处理节点的身份标识,从多个预设的集合通信规则中确定出匹配的第一目标集合通信规则。S3: Determine a matching first target collective communication rule from a plurality of preset collective communication rules according to the identity of the initial processing node.
S4:根据所述第一目标集合通信规则,确定下一级处理节点,并将所述目标数据发送至下一级处理节点。S4: Determine a next-level processing node according to the first target set communication rule, and send the target data to the next-level processing node.
在一些实施例中,在将所述目标数据发送至下一级处理节点后,所述方法具体实施 时,还可以包括以下内容:对外广播确认信息,其中,所述确认信息用于指示接收到目标数据,和/或,完成目标数据的传输。In some embodiments, after the target data is sent to the next-level processing node, when the method is specifically implemented, the following content may be further included: externally broadcast confirmation information, wherein the confirmation information is used to indicate that the received target data, and/or, complete the transfer of target data.
在一些实施例中,后续在确定是否满足处理条件时,可以获取并根据处理节点对外广播的确认信息来确定出接收到目标数据的处理节点,并统计、确定出接收到目标数据的处理节点的数量是否大于或等于预设数量,从而能够较为准确地判断出当前是否满足处理条件。In some embodiments, when it is subsequently determined whether the processing conditions are met, the processing node that has received the target data may be acquired and determined according to the confirmation information broadcasted by the processing node, and the processing nodes that have received the target data may be counted and determined. Whether the number is greater than or equal to the preset number can more accurately determine whether the current processing conditions are met.
本说明书实施例还提供一种服务器,包括处理器以及用于存储处理器可执行指令的存储器,所述处理器具体实施时可以根据指令执行以下步骤:生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。An embodiment of the present specification further provides a server, including a processor and a memory for storing instructions executable by the processor. During specific implementation, the processor may perform the following steps according to the instructions: generate target data, wherein the target data carries There is an identity mark of the initial processing node; according to the identity mark, a first target set communication rule matching the identity mark is determined from a plurality of preset collective communication rules; according to the first target set communication rule , determining a next-level processing node from a plurality of processing nodes included in a preset data processing network, and sending the target data to the next-level processing node.
为了能够更加准确地完成上述指令,参阅图9所示,本说明书实施例还提供了另一种具体的服务器,其中,所述服务器包括网络通信端口901、处理器902以及存储器903,上述结构通过内部线缆相连,以便各个结构可以进行具体的数据交互。To be able to complete the above instructions more accurately, referring to FIG. 9 , the embodiment of this specification also provides another specific server, wherein the server includes a network communication port 901 , a processor 902 and a memory 903 , and the above structure is achieved by Internal cables are connected so that each structure can carry out specific data interaction.
其中,所述处理器902,具体可以用于生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点。所述网络通信端口901,具体可以用于将所述目标数据发送至所述下一级处理节点。所述存储器903,具体可以用于存储相应的指令程序。Wherein, the processor 902 can be specifically configured to generate target data, wherein the target data carries the identity of the initial processing node; according to the identity, it is determined from a plurality of preset collective communication rules A first target set communication rule matching the identity identifier; according to the first target set communication rule, a next-level processing node is determined from a plurality of processing nodes included in a preset data processing network. The network communication port 901 may specifically be used to send the target data to the next-level processing node. The memory 903 may specifically be used to store corresponding instruction programs.
在本实施例中,所述网络通信端口901可以是与不同的通信协议进行绑定,从而可以发送或接收不同数据的虚拟端口。例如,所述网络通信端口可以是负责进行web数据通信的80号端口,也可以是负责进行FTP数据通信的21号端口,还可以是负责进行邮件数据通信的25号端口。此外,所述网络通信端口还可以是实体的通信接口或者通信芯片。例如,其可以为无线移动网络通信芯片,如GSM、CDMA等;其还可以为Wifi芯片;其还可以为蓝牙芯片。In this embodiment, the network communication port 901 may be a virtual port bound with different communication protocols, so that different data can be sent or received. For example, the network communication port may be port 80 responsible for web data communication, port 21 responsible for FTP data communication, or port 25 responsible for mail data communication. In addition, the network communication port may also be a physical communication interface or a communication chip. For example, it can be a wireless mobile network communication chip, such as GSM, CDMA, etc.; it can also be a Wifi chip; it can also be a Bluetooth chip.
在本实施例中,所述处理器902可以按任何适当的方式实现。例如,处理器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式等等。本说明书并不作限定。In this embodiment, the processor 902 may be implemented in any suitable manner. For example, a processor may take the form of, for example, a microprocessor or a processor and a computer readable medium storing computer readable program code (eg software or firmware) executable by the (micro)processor, logic gates, switches, application specific integrated circuits ( Application Specific Integrated Circuit, ASIC), programmable logic controller and embedded microcontroller form, etc. This manual is not limited.
在本实施例中,所述存储器903可以包括多个层次,在数字系统中,只要能保存二进制数据的都可以是存储器;在集成电路中,一个没有实物形式的具有存储功能的电路 也叫存储器,如RAM、FIFO等;在系统中,具有实物形式的存储设备也叫存储器,如内存条、TF卡等。In this embodiment, the memory 903 may include multiple layers. In a digital system, as long as it can store binary data, it can be a memory; in an integrated circuit, a circuit with a storage function without physical form is also called a memory , such as RAM, FIFO, etc.; in the system, the storage device with physical form is also called memory, such as memory stick, TF card, etc.
本说明书实施例还提供了一种基于上述数据处理方法的计算机存储介质,所述计算机存储介质存储有计算机程序指令,在所述计算机程序指令被执行时实现:生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。The embodiments of this specification also provide a computer storage medium based on the above data processing method, where the computer storage medium stores computer program instructions, and when the computer program instructions are executed, realizes: generating target data, wherein the target data is The data carries the identity of the initial processing node; according to the identity, a first target set communication rule matching the identity is determined from a plurality of preset collective communication rules; according to the first target set The communication rule determines a next-level processing node among multiple processing nodes included in a preset data processing network, and sends the target data to the next-level processing node.
在本实施例中,上述存储介质包括但不限于随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、缓存(Cache)、硬盘(Hard Disk Drive,HDD)或者存储卡(Memory Card)。所述存储器可以用于存储计算机程序指令。网络通信单元可以是依照通信协议规定的标准设置的,用于进行网络连接通信的接口。In this embodiment, the above-mentioned storage medium includes but is not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), cache (Cache), hard disk (Hard Disk Drive, HDD) Or a memory card (Memory Card). The memory may be used to store computer program instructions. The network communication unit may be an interface for performing network connection communication, which is set according to a standard specified by a communication protocol.
在本实施例中,该计算机存储介质存储的程序指令具体实现的功能和效果,可以与其它实施方式对照解释,在此不再赘述。In this embodiment, the functions and effects specifically implemented by the program instructions stored in the computer storage medium can be explained in comparison with other embodiments, and will not be repeated here.
参阅图10所示,在软件层面上,本说明书实施例还提供了一种交易数据的处理装置,该装置具体可以包括以下的结构模块。Referring to FIG. 10 , at the software level, an embodiment of the present specification further provides a transaction data processing apparatus, and the apparatus may specifically include the following structural modules.
收发模块1001,具体可以用于接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;其中,所述预设的数据处理网络包括多个节点服务器,所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息;The transceiver module 1001 can be specifically configured to receive a transaction data processing request sent by a client device, and broadcast the transaction data processing request to a preset data processing network; wherein the preset data processing network includes a plurality of node servers , the second node server of the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and sends a preset transmission method based on collective communication to the preset The node server in the data processing network transmits the consensus information;
处理模块1002,具体可以用于在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果,并向所述客户端设备反馈所述交易数据处理结果。The processing module 1002 can be specifically configured to perform corresponding transaction data processing according to the transaction data processing request under the condition that it is determined that at least a preset number of node servers have received the consensus information, and obtain a corresponding transaction data processing result, and feeding back the transaction data processing result to the client device.
需要说明的是,上述实施例阐明的单元、装置或模块等,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。为了描述的方便,描述以上装置时以功能分为各种模块分别描述。当然,在实施本说明书时可以把各模块的功能在同一个或多个软件和/或硬件中实现,也可以将实现同一功能的模块由多个子模块或子单元的组合实现等。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。It should be noted that the units, devices or modules described in the above embodiments may be specifically implemented by computer chips or entities, or by products with certain functions. For the convenience of description, when describing the above device, the functions are divided into various modules and described respectively. Of course, when implementing this specification, the functions of each module can be implemented in the same one or more software and/or hardware, and the modules that implement the same function can also be implemented by a combination of multiple sub-modules or sub-units. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
由上可见,本说明书实施例提供的交易数据的处理装置,采用基于集合通信的预设传输方式,向预设的数据处理网络中的各个节点服务器传输共识信息,以便在确定预设时间段阈值内至少有预设数量的节点服务器接收到该共识信息时达成共识的情况下,预设的数据处理网络中的各个节点服务器可以根据交易数据处理请求进行相应的交易数据处理。从而可以有效地提高共识信息的传输效率,进而能够高效地完成交易数据的处理,减少用户的等候延时。As can be seen from the above, the transaction data processing device provided by the embodiment of this specification adopts the preset transmission method based on collective communication to transmit consensus information to each node server in the preset data processing network, so as to determine the threshold value of the preset time period. When at least a preset number of node servers reach a consensus upon receiving the consensus information, each node server in the preset data processing network can perform corresponding transaction data processing according to the transaction data processing request. Therefore, the transmission efficiency of consensus information can be effectively improved, the transaction data processing can be completed efficiently, and the waiting delay of users can be reduced.
本说明书实施例还提供了一种数据处理装置,具体可以包括以下结构模块。The embodiments of this specification also provide a data processing apparatus, which may specifically include the following structural modules.
生成模块,具体可以用于生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识。The generating module may be specifically configured to generate target data, wherein the target data carries the identity of the initial processing node.
确定模块,具体可以用于根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则。The determining module may be specifically configured to determine, according to the identity identifier, a first target collective communication rule matching the identity identifier from a plurality of preset collective communication rules.
发送模块,具体可以用于根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。A sending module, which can be specifically configured to determine a next-level processing node among multiple processing nodes included in a preset data processing network according to the first target set communication rule, and send the target data to the Next level processing node.
在一些实施例中,所述装置具体还可以包括检测模块,具体可以用于检测接收到所述目标数据的处理节点的数量是否大于或等于预设数量;在确定接收到所述目标数据的处理节点的数量小于所述预设数量的情况下,根据所述第一目标集合通信规则,重新传输所述目标数据。In some embodiments, the apparatus may further include a detection module, which may be specifically configured to detect whether the number of processing nodes that have received the target data is greater than or equal to a preset number; When the number of nodes is less than the preset number, the target data is retransmitted according to the first target set communication rule.
在一些实施例中,所述检测模块具体实施时,还可以用于在确定接收到所述目标数据的处理节点的数量大于或等于所述预设数量,且小于预设的数据处理网络所包括的多个处理节点的总数量的情况下,确定出当前未完成传输的处理节点;生成并向所述未完成传输的处理节点发送复位指令,其中,所述复位指令用于指示处理节点退出目标数据的传输过程。In some embodiments, when the detection module is specifically implemented, it can also be used to determine that the number of processing nodes that have received the target data is greater than or equal to the preset number and less than the preset number of processing nodes included in the data processing network. In the case of the total number of multiple processing nodes, determine the processing node that currently has not completed the transmission; generate and send a reset instruction to the processing node that has not completed the transmission, wherein the reset instruction is used to instruct the processing node to exit the target data transfer process.
在一些实施例中,所述多个预设的集合通信规则具体可以包括预先生成的多个分别以不同的处理节点作为数据传输过程中的起始处理节点的集合通信规则,其中,所述多个预设的集合通信规则中的各个集合通信规则分别与起始处理节点的身份标识对应。In some embodiments, the plurality of preset collective communication rules may specifically include a plurality of pre-generated collective communication rules that respectively use different processing nodes as the starting processing nodes in the data transmission process, wherein the plurality of collective communication rules are Each of the preset collective communication rules corresponds to the identity of the initial processing node, respectively.
在一些实施例中,所述预设的数据处理网络可以包括基于区块链的数据处理网络等。In some embodiments, the preset data processing network may include a blockchain-based data processing network or the like.
虽然本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的手段可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的装置或客户端产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境,甚至为分布式数据处理环境)。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、产品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种 过程、方法、产品或者设备所固有的要素。在没有更多限制的情况下,并不排除在包括所述要素的过程、方法、产品或者设备中还存在另外的相同或等同要素。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。Although the present specification provides method operation steps as described in the embodiments or flow charts, more or less operation steps may be included based on conventional or non-inventive means. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When an actual device or client product is executed, the methods shown in the embodiments or the accompanying drawings may be executed sequentially or in parallel (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, product or device comprising a list of elements includes not only those elements, but also others not expressly listed elements, or also include elements inherent to such a process, method, product or device. Without further limitation, it does not preclude the presence of additional identical or equivalent elements in a process, method, product or apparatus comprising the stated elements. The terms first, second, etc. are used to denote names and do not denote any particular order.
本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内部包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。Those skilled in the art also know that, in addition to implementing the controller in the form of pure computer-readable program code, the controller can be implemented as logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded devices by logically programming the method steps. The same function can be realized in the form of a microcontroller, etc. Therefore, such a controller can be regarded as a hardware component, and the devices included therein for realizing various functions can also be regarded as a structure within the hardware component. Or even, the means for implementing various functions can be regarded as both a software module implementing a method and a structure within a hardware component.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构、类等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
通过以上的实施例的描述可知,本领域的技术人员可以清楚地了解到本说明书可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书的技术方案本质上可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,移动终端,服务器,或者网络设备等)执行本说明书各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that this specification can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions of this specification can be embodied in the form of software products in essence, and the computer software products can be stored in storage media, such as ROM/RAM, magnetic disks, optical disks, etc., including several instructions to make a A computer device (which may be a personal computer, a mobile terminal, a server, or a network device, etc.) executes the methods described in various embodiments or some parts of the embodiments in this specification.
本说明书中的各个实施例采用递进的方式描述,各个实施例之间相同或相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。本说明书可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. This specification can be used in numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable electronics, network PCs, minicomputers, mainframe computers, including the above Distributed computing environment of any system or device, etc.
虽然通过实施例描绘了本说明书,本领域普通技术人员知道,本说明书有许多变形和变化而不脱离本说明书的精神,希望权利要求包括这些变形和变化而不脱离本说明书的精神。Although this specification has been described by way of examples, those of ordinary skill in the art will recognize that there are many modifications and changes to this specification without departing from the spirit of the specification, and it is intended that the claims include such modifications and changes without departing from the spirit of the specification.

Claims (27)

  1. 一种交易数据的处理方法,所述方法应用于预设的数据处理网络中,所述预设的数据处理网络包括多个节点服务器,所述方法包括:A method for processing transaction data, the method is applied in a preset data processing network, the preset data processing network includes a plurality of node servers, and the method includes:
    第一节点服务器接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;The first node server receives the transaction data processing request sent by the client device, and broadcasts the transaction data processing request to a preset data processing network;
    所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息;The second node server of the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and transmits the preset data to the preset data through the preset transmission mode based on collective communication. The node server in the processing network transmits the consensus information;
    在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,所述预设的数据处理网络中的节点服务器根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果;所述第一节点服务器向所述客户端设备反馈所述交易数据处理结果。When it is determined that at least a preset number of node servers have received the consensus information, the node servers in the preset data processing network perform corresponding transaction data processing according to the transaction data processing request, and obtain a corresponding transaction data processing result; the first node server feeds back the transaction data processing result to the client device.
  2. 根据权利要求1所述的方法,第二节点服务器生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,包括:According to the method of claim 1, the second node server generates consensus information for the transaction data processing request, and transmits the consensus information to the node server in the preset data processing network through a preset transmission mode based on collective communication Consensus information, including:
    生成针对所述交易数据处理请求的共识信息,其中,所述共识信息携带有第二节点服务器的身份标识;generating consensus information for the transaction data processing request, wherein the consensus information carries the identity of the second node server;
    根据第二节点服务器的身份标识,从多个预设的集合通信规则中确定出与所述第二节点服务器的身份标识匹配的第一目标集合通信规则,其中,所述第一目标集合通信规则以第二节点服务器作为数据传输过程中的起始节点服务器,所述第一目标集合通信规则至少包括所述预设的数据处理网络中的各个节点服务器在数据传输过程中的下一级节点服务器;According to the identity of the second node server, a first target set communication rule matching the identity of the second node server is determined from a plurality of preset set communication rules, wherein the first target set communication rule The second node server is used as the starting node server in the data transmission process, and the first target set communication rule includes at least the next-level node server of each node server in the preset data processing network in the data transmission process ;
    根据所述第一目标集合通信规则,确定第二节点服务器的下一级节点服务器,并将所述共识信息发送至第二节点服务器的下一级节点服务器。Determine the next-level node server of the second node server according to the first target set communication rule, and send the consensus information to the next-level node server of the second node server.
  3. 根据权利要求2所述的方法,所述第二节点服务器的下一级节点服务器包括第三节点服务器,所述方法还包括:The method according to claim 2, wherein the next-level node server of the second node server comprises a third node server, and the method further comprises:
    第三节点服务器接收共识信息,并根据所述共识信息获得第二节点服务器的身份标识;The third node server receives the consensus information, and obtains the identity of the second node server according to the consensus information;
    根据所述第二节点服务器的身份标识,从多个预设的集合通信规则中确定出与所述第二节点服务器的身份标识匹配的第一目标集合通信规则;determining, according to the identity of the second node server, a first target collective communication rule matching the identity of the second node server from a plurality of preset collective communication rules;
    根据所述第一目标集合通信规则,确定第三节点服务器的下一级节点服务器,并将所述共识信息发送至第三节点服务器的下一级节点服务器。Determine the next-level node server of the third node server according to the first target set communication rule, and send the consensus information to the next-level node server of the third node server.
  4. 根据权利要求2所述的方法,所述多个预设的集合通信规则包括预先生成的多个分别以不同的节点服务器作为数据传输过程中的起始节点服务器的集合通信规则,其中,所述多个预设的集合通信规则中的各个集合通信规则分别与起始节点服务器的身份 标识对应。The method according to claim 2, wherein the plurality of preset collective communication rules comprise a plurality of pre-generated collective communication rules respectively using different node servers as starting node servers in a data transmission process, wherein the Each of the plurality of preset collective communication rules corresponds to the identity identifier of the starting node server, respectively.
  5. 根据权利要求1所述的方法,第一节点服务器向预设的数据处理网络广播所述交易数据处理请求,包括:The method according to claim 1, wherein the first node server broadcasts the transaction data processing request to a preset data processing network, comprising:
    第一节点服务器通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述交易数据处理请求。The first node server transmits the transaction data processing request to the node server in the preset data processing network through a preset transmission mode based on collective communication.
  6. 根据权利要求5所述的方法,第一节点服务器通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述交易数据处理请求,包括:The method according to claim 5, wherein the first node server transmits the transaction data processing request to the node server in the preset data processing network through a preset transmission mode based on collective communication, comprising:
    第一节点服务器根据第一节点服务器的身份标识,从多个预设的集合规则中确定出与所述第一节点服务器的身份标识匹配的第二目标集合通信规则,其中,所述第二目标集合通信规则以第一节点服务器作为数据传输过程中的起始节点服务器,所述第二目标集合通信规则至少包括所述预设的数据处理网络中的各个节点服务器在数据传输过程中的下一级节点服务器;The first node server determines, according to the identity of the first node server, a second target set communication rule matching the identity of the first node server from a plurality of preset set rules, wherein the second target The collective communication rule uses the first node server as the starting node server in the data transmission process, and the second target collective communication rule includes at least the next node server in the data transmission process in the preset data processing network. level node server;
    根据所述第二目标集合通信规则,确定第一节点服务器的下一级节点服务器,并将携带有第一节点服务器的标识信息的交易数据处理请求发送至第一节点服务器的下一级节点服务器。Determine the next-level node server of the first node server according to the second target set communication rule, and send the transaction data processing request carrying the identification information of the first node server to the next-level node server of the first node server .
  7. 根据权利要求6所述的方法,在根据所述第二目标集合通信规则,确定第一节点服务器的下一级节点服务器,并将携带有第一节点服务器的标识信息的交易数据处理请求发送至第一节点服务器的下一级节点服务器后,所述方法还包括:The method according to claim 6, wherein the next-level node server of the first node server is determined according to the second target set communication rule, and the transaction data processing request carrying the identification information of the first node server is sent to After the next-level node server of the first node server, the method further includes:
    检测所述预设的数据处理网络所包括的多个节点服务器是否接收到所述交易数据处理请求;Detecting whether multiple node servers included in the preset data processing network receive the transaction data processing request;
    在确定所述预设的数据处理网络所包括的多个节点服务器接收到所述交易数据处理请求的情况下,确定完成对预设的数据处理网络的广播。When it is determined that the multiple node servers included in the preset data processing network have received the transaction data processing request, it is determined that the broadcast to the preset data processing network is completed.
  8. 根据权利要求1所述的方法,所述预设的数据处理网络包括基于区块链的数据处理网络。The method of claim 1, wherein the preset data processing network comprises a blockchain-based data processing network.
  9. 根据权利要求1所述的方法,确定至少有预设数量的节点服务器接收到所述共识信息,包括:The method according to claim 1, determining that at least a preset number of node servers have received the consensus information, comprising:
    确定在预设时间段阈值内至少有预设数量的节点服务器接收到所述共识信息。It is determined that at least a preset number of node servers have received the consensus information within a preset time period threshold.
  10. 一种交易数据的处理方法,包括:A method for processing transaction data, comprising:
    接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;其中,所述预设的数据处理网络包括多个节点服务器,所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息;Receive the transaction data processing request sent by the client device, and broadcast the transaction data processing request to a preset data processing network; wherein, the preset data processing network includes multiple node servers, and among the multiple node servers The second node server of the server receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and transmits it to the node server in the preset data processing network through a preset transmission method based on collective communication the consensus information;
    在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果,并向所述客户 端设备反馈所述交易数据处理结果。When it is determined that at least a preset number of node servers have received the consensus information, the corresponding transaction data processing is performed according to the transaction data processing request, the corresponding transaction data processing result is obtained, and the corresponding transaction data processing result is fed back to the client device. The transaction data processing result.
  11. 一种交易数据的处理方法,包括:A method for processing transaction data, comprising:
    接收并响应交易数据处理请求,生成针对所述交易数据处理请求的共识信息,其中,所述共识信息携带有第二节点服务器的身份标识;Receive and respond to the transaction data processing request, and generate consensus information for the transaction data processing request, wherein the consensus information carries the identity of the second node server;
    通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,其中,所述预设的数据处理网络包括多个节点服务器,所述预设的数据处理网络中的多个节点服务器在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理。The consensus information is transmitted to a node server in a preset data processing network through a preset transmission method based on collective communication, wherein the preset data processing network includes a plurality of node servers, and the preset data processing network includes multiple node servers. When it is determined that at least a preset number of node servers have received the consensus information, multiple node servers in the network perform corresponding transaction data processing according to the transaction data processing request.
  12. 根据权利要求11所述的方法,通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息,包括:The method according to claim 11, transmitting the consensus information to a node server in a preset data processing network by using a preset transmission mode based on collective communication, comprising:
    根据第二节点的身份标识,从多个预设的集合通信规则中确定出与第二节点服务器的身份标识匹配的预设的集合通信规则,作为第一目标集合通信规则,其中,所述第一目标集合通信规则以第二节点服务器作为数据传输过程中的起始节点服务器,所述第一目标集合通信规则至少包括所述预设的数据处理网络中的各个节点服务器在数据传输过程中的下一级节点服务器;According to the identity of the second node, a preset collective communication rule matching the identity of the server of the second node is determined from a plurality of preset collective communication rules, as the first target collective communication rule, wherein the first target collective communication rule is A target set communication rule uses the second node server as the starting node server in the data transmission process, and the first target set communication rule at least includes the preset data processing network in each node server in the data transmission process. next-level node server;
    根据所述第一目标集合通信规则,确定出下一级节点服务器,并将所述共识信息发送至所述下一级节点服务器。According to the first target set communication rule, a next-level node server is determined, and the consensus information is sent to the next-level node server.
  13. 根据权利要求12所述的方法,将所述共识信息发送至所述下一级节点服务器,包括:The method according to claim 12, sending the consensus information to the next-level node server, comprising:
    检测所述预设的数据处理网络所包括的多个节点服务器是否接收到所述交易数据处理请求;Detecting whether multiple node servers included in the preset data processing network receive the transaction data processing request;
    在确定所述预设的数据处理网络所包括的多个节点服务器接收到所述交易数据处理请求的情况下,将所述共识信息发送至所述下一级节点服务器。In the case that it is determined that the multiple node servers included in the preset data processing network have received the transaction data processing request, the consensus information is sent to the next-level node server.
  14. 一种交易数据的处理方法,包括:A method for processing transaction data, comprising:
    接收交易数据处理请求;receive transaction data processing requests;
    接收上一级节点服务器发送的共识信息;Receive the consensus information sent by the upper-level node server;
    从所述共识信息中提取出起始节点的身份标识,并根据所述起始节点的身份标识从多个预设的集合通信规则中确定出匹配的第一目标集合通信规则;Extracting the identity of the starting node from the consensus information, and determining a matching first target collective communication rule from a plurality of preset collective communication rules according to the identity of the starting node;
    根据所述第一目标集合通信规则,确定出下一级节点服务器,并将所述共识信息发送至下一节点服务器。According to the communication rules of the first target set, the next-level node server is determined, and the consensus information is sent to the next-level node server.
  15. 根据权利要求14所述的方法,在将所述共识信息发送至下一节点服务器后,所述方法还包括:The method according to claim 14, after sending the consensus information to the next node server, the method further comprises:
    在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理。When it is determined that at least a preset number of node servers have received the consensus information, corresponding transaction data processing is performed according to the transaction data processing request.
  16. 一种数据处理方法,包括:A data processing method comprising:
    生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;generating target data, wherein the target data carries the identity of the initial processing node;
    根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;According to the identity identifier, determine a first target collective communication rule matching the identity identifier from a plurality of preset collective communication rules;
    根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。According to the first target set communication rule, a next-level processing node is determined from a plurality of processing nodes included in a preset data processing network, and the target data is sent to the next-level processing node.
  17. 根据权利要求16所述的方法,在根据所述第一目标集合通信规则,确定下一级处理节点,并将所述目标数据发送至所述下一级处理节点后,所述方法还包括:The method according to claim 16, after determining a next-level processing node according to the first target set communication rule, and sending the target data to the next-level processing node, the method further comprises:
    检测接收到所述目标数据的处理节点的数量是否大于或等于预设数量;Detecting whether the number of processing nodes that have received the target data is greater than or equal to a preset number;
    在确定接收到所述目标数据的处理节点的数量小于所述预设数量的情况下,根据所述第一目标集合通信规则,重新传输所述目标数据。In a case where it is determined that the number of processing nodes that have received the target data is less than the preset number, the target data is retransmitted according to the first target set communication rule.
  18. 根据权利要求17所述的方法,在检测接收到所述目标数据的处理节点的数量是否大于或等于预设数量后,所述方法还包括:The method according to claim 17, after detecting whether the number of processing nodes receiving the target data is greater than or equal to a preset number, the method further comprises:
    在确定接收到所述目标数据的处理节点的数量大于或等于所述预设数量,且小于预设的数据处理网络所包括的多个处理节点的总数量的情况下,确定出当前未完成传输的处理节点;In the case where it is determined that the number of processing nodes that have received the target data is greater than or equal to the preset number and less than the preset total number of processing nodes included in the data processing network, it is determined that the current transmission is not completed processing node;
    生成并向所述未完成传输的处理节点发送复位指令,其中,所述复位指令用于指示处理节点退出目标数据的传输过程。A reset instruction is generated and sent to the processing node that has not completed the transmission, wherein the reset instruction is used to instruct the processing node to quit the transmission process of the target data.
  19. 根据权利要求16所述的方法,所述多个预设的集合通信规则包括预先生成的多个分别以不同的处理节点作为数据传输过程中的起始处理节点的集合通信规则,其中,所述多个预设的集合通信规则中的各个集合通信规则分别与起始处理节点的身份标识对应。The method according to claim 16, wherein the plurality of preset collective communication rules comprise a plurality of pre-generated collective communication rules respectively using different processing nodes as the starting processing nodes in the data transmission process, wherein the Each of the plurality of preset collective communication rules corresponds to the identity identifier of the initial processing node, respectively.
  20. 根据权利要求16所述的方法,所述处理节点包括节点服务器。17. The method of claim 16, the processing node comprising a node server.
  21. 根据权利要求16所述的方法,所述预设的数据处理网络包括基于区块链的数据处理网络。The method of claim 16, wherein the preset data processing network comprises a blockchain-based data processing network.
  22. 一种数据处理方法,包括:A data processing method comprising:
    接收上一级处理节点发送的目标数据;Receive the target data sent by the upper-level processing node;
    从所述目标数据中提取出起始处理节点的身份标识;Extract the identity of the initial processing node from the target data;
    根据所述起始处理节点的身份标识,从多个预设的集合通信规则中确定出匹配的第一目标集合通信规则;determining a matching first target collective communication rule from a plurality of preset collective communication rules according to the identity of the initial processing node;
    根据所述第一目标集合通信规则,确定下一级处理节点,并将所述目标数据发送至下一级处理节点。According to the first target set communication rule, a next-level processing node is determined, and the target data is sent to the next-level processing node.
  23. 根据权利要求22所述的方法,在将所述目标数据发送至下一级处理节点后,所述方法还包括:The method according to claim 22, after sending the target data to the next-level processing node, the method further comprises:
    对外广播确认信息,其中,所述确认信息用于指示接收到目标数据,和/或,完成目标数据的传输。Confirmation information is broadcast externally, wherein the confirmation information is used to indicate that the target data is received and/or the transmission of the target data is completed.
  24. 一种交易数据的处理装置,包括:A device for processing transaction data, comprising:
    收发模块,用于接收客户端设备发送的交易数据处理请求,并向预设的数据处理网络广播所述交易数据处理请求;其中,所述预设的数据处理网络包括多个节点服务器,所述多个节点服务器中的第二节点服务器接收并响应所述交易数据处理请求,生成针对所述交易数据处理请求的共识信息,并通过基于集合通信的预设传输方式,向预设的数据处理网络中的节点服务器传输所述共识信息;a transceiver module, configured to receive a transaction data processing request sent by a client device, and broadcast the transaction data processing request to a preset data processing network; wherein the preset data processing network includes a plurality of node servers, and the The second node server in the plurality of node servers receives and responds to the transaction data processing request, generates consensus information for the transaction data processing request, and transmits to the preset data processing network through a preset transmission method based on collective communication. The node server in transmits the consensus information;
    处理模块,用于在确定至少有预设数量的节点服务器接收到所述共识信息的情况下,根据所述交易数据处理请求进行相应的交易数据处理,得到对应的交易数据处理结果,并向所述客户端设备反馈所述交易数据处理结果。The processing module is configured to perform corresponding transaction data processing according to the transaction data processing request when it is determined that at least a preset number of node servers have received the consensus information, obtain the corresponding transaction data processing results, and report to the The client device feeds back the transaction data processing result.
  25. 一种数据处理装置,包括:A data processing device, comprising:
    生成模块,用于生成目标数据,其中,所述目标数据携带有起始处理节点的身份标识;A generation module for generating target data, wherein the target data carries the identity of the initial processing node;
    确定模块,用于根据所述身份标识,从多个预设的集合通信规则中确定出与所述身份标识匹配的第一目标集合通信规则;a determining module, configured to determine, according to the identity identifier, a first target collective communication rule matching the identity identifier from a plurality of preset collective communication rules;
    发送模块,用于根据所述第一目标集合通信规则,在预设的数据处理网络所包括的多个处理节点中确定出下一级处理节点,并将所述目标数据发送至所述下一级处理节点。A sending module, configured to determine a next-level processing node among a plurality of processing nodes included in a preset data processing network according to the first target set communication rule, and send the target data to the next-level processing node level processing node.
  26. 一种计算机可读存储介质,其上存储有计算机指令,所述指令被执行时实现权利要求16至21中任一项所述方法的步骤。A computer-readable storage medium having stored thereon computer instructions that, when executed, implement the steps of the method of any one of claims 16 to 21.
  27. 一种服务器包括处理器以及用于存储处理器可执行指令的存储器,所述处理器执行所述指令时实现权利要求16至21中任一项所述方法的步骤。A server includes a processor and a memory for storing processor-executable instructions that, when executed by the processor, implement the steps of the method of any one of claims 16-21.
PCT/CN2021/102026 2020-07-01 2021-06-24 Transaction data processing method and apparatus, and data processing method and apparatus WO2022001810A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010619643.XA CN113298649A (en) 2020-07-01 2020-07-01 Transaction data processing method and device, and data processing method and device
CN202010619643.X 2020-07-01

Publications (1)

Publication Number Publication Date
WO2022001810A1 true WO2022001810A1 (en) 2022-01-06

Family

ID=77318113

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/102026 WO2022001810A1 (en) 2020-07-01 2021-06-24 Transaction data processing method and apparatus, and data processing method and apparatus

Country Status (2)

Country Link
CN (1) CN113298649A (en)
WO (1) WO2022001810A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN108521328A (en) * 2018-03-26 2018-09-11 杭州秘猿科技有限公司 A kind of block chain common recognition method, apparatus and electronic equipment
CN109150598A (en) * 2018-08-10 2019-01-04 上交所技术有限责任公司 A kind of BFT common recognition algorithm bandwidth utilization rate improved method based on block piece
CN110351133A (en) * 2019-06-28 2019-10-18 阿里巴巴集团控股有限公司 Method and device for the host node hand-off process in block catenary system
US20200081746A1 (en) * 2018-09-07 2020-03-12 International Business Machines Corporation Load leveler

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2011155510A1 (en) * 2010-06-08 2013-08-01 日本電気株式会社 COMMUNICATION SYSTEM, CONTROL DEVICE, PACKET CAPTURE METHOD, AND PROGRAM
CN110619520B (en) * 2018-06-20 2023-05-02 深圳市红砖坊技术有限公司 Block chain system and routing method applied to routing nodes of block chain system
CN109345386B (en) * 2018-08-31 2020-04-14 阿里巴巴集团控股有限公司 Transaction consensus processing method and device based on block chain and electronic equipment
CN109218181A (en) * 2018-10-30 2019-01-15 北京大米科技有限公司 A kind of method, apparatus and electronic equipment of data transmission
CN109583912A (en) * 2018-11-14 2019-04-05 阿里巴巴集团控股有限公司 Trade company's authentication method and device based on block chain
CN110597905A (en) * 2019-08-20 2019-12-20 天津理工大学 Decentralized cluster control system based on block chain and working method
CN111224822A (en) * 2020-01-03 2020-06-02 深圳鲲云信息科技有限公司 Node scheduling method, system, server and storage medium of data flow graph

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN108521328A (en) * 2018-03-26 2018-09-11 杭州秘猿科技有限公司 A kind of block chain common recognition method, apparatus and electronic equipment
CN109150598A (en) * 2018-08-10 2019-01-04 上交所技术有限责任公司 A kind of BFT common recognition algorithm bandwidth utilization rate improved method based on block piece
US20200081746A1 (en) * 2018-09-07 2020-03-12 International Business Machines Corporation Load leveler
CN110351133A (en) * 2019-06-28 2019-10-18 阿里巴巴集团控股有限公司 Method and device for the host node hand-off process in block catenary system

Also Published As

Publication number Publication date
CN113298649A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
WO2020258912A1 (en) Blockchain consensus method, device and system
US20160057201A1 (en) File Uploading Method, Client, and Application Server in Cloud Storage, and Cloud Storage System
US8671155B2 (en) System and method of employing a client side device to access local and remote data during communication distruptions
CN106101091B (en) Method and device for processing data between terminals
CN110995513A (en) Data sending and receiving method in Internet of things system, Internet of things equipment and platform
CN115004673B (en) Message pushing method, device, electronic equipment and computer readable medium
US20130091502A1 (en) System and method of providing virtual machine using device cloud
CN1787432B (en) Method and system for authenticating a node requesting another node to perform work
WO2019019676A1 (en) Service number assigning method and device, computer apparatus, and storage medium
WO2021008034A1 (en) Method and apparatus for network request security verification, and computing device and storage medium
CN112188247B (en) Data transmission method, device, equipment and computer readable storage medium
CN114024972A (en) Long connection communication method, system, device, equipment and storage medium
WO2014206089A1 (en) Terminal mirroring synchronization method, device, terminal and server
WO2019062019A1 (en) Data list exporting method and terminal using same
CN113409047B (en) Data processing method, device and equipment based on block chain and readable storage medium
CN111064813B (en) Method and device for synchronizing processing messages during block chain consensus processing
JP5961471B2 (en) Output comparison method in multiple information systems
WO2022001810A1 (en) Transaction data processing method and apparatus, and data processing method and apparatus
CN103873443A (en) Information processing method, local proxy server and network proxy server
JP2005018300A (en) Contents distributing system
US20230063599A1 (en) Edge computing network, data transmission method and apparatus, device and storage medium
CN107529190B (en) User data acquisition system and method
KR101615532B1 (en) System for servicing cloud streaming, method of servicing cloud streaming and server for the same
WO2018082212A1 (en) Resource download method and server
CN107704557B (en) Processing method and device for operating mutually exclusive data, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21832066

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21832066

Country of ref document: EP

Kind code of ref document: A1