CN108540536B - Block chain-based network mass service processing method, equipment and storage medium - Google Patents

Block chain-based network mass service processing method, equipment and storage medium Download PDF

Info

Publication number
CN108540536B
CN108540536B CN201810222291.7A CN201810222291A CN108540536B CN 108540536 B CN108540536 B CN 108540536B CN 201810222291 A CN201810222291 A CN 201810222291A CN 108540536 B CN108540536 B CN 108540536B
Authority
CN
China
Prior art keywords
service
block chain
processing
layer
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810222291.7A
Other languages
Chinese (zh)
Other versions
CN108540536A (en
Inventor
苏裕辉
李辉忠
张开翔
范瑞彬
姚辉亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201810222291.7A priority Critical patent/CN108540536B/en
Publication of CN108540536A publication Critical patent/CN108540536A/en
Application granted granted Critical
Publication of CN108540536B publication Critical patent/CN108540536B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

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

Abstract

The invention discloses a block chain-based network mass business processing method, which is applied to a network business system, wherein the logic architecture applied to the network business system based on business processing is divided into a mechanism layer, a business access layer and a business processing layer from top to bottom, and the business processing layer comprises a plurality of packet block chains; the method comprises the following steps: the service access layer receives the service request initiated by the mechanism layer; the service access layer performs link topology selection on the service request to determine a packet block chain for processing the service request in the service processing layer; and the service access layer forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism layer. The invention also discloses a network node device and a computer readable storage medium. The invention can solve the performance bottleneck problem of the prior block chain technology and improve the service processing efficiency.

Description

Block chain-based network mass service processing method, equipment and storage medium
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain-based network mass service processing method, a network node device, and a computer-readable storage medium.
Background
Existing network service systems (such as financial service systems) based on the block chain technology generally complete service processing through a single block chain, where the block chain may be a federation chain or a private chain, and for a large number of users, a large amount of transactions, large amount of inventory data, or a large amount of service scenarios that may significantly increase, higher capacity and extensibility requirements are placed on the network service systems.
Existing single-chain architectures always encounter bottlenecks in terms of software architecture or hardware resources. For example, although the single chain architecture can improve the performance of the system by optimizing the encryption and decryption algorithm, the consensus algorithm, the transaction processing flow, the storage structure, and the like, a bottleneck is generated when the performance is improved to a certain degree due to the self-characteristics of the blockchain; in addition, even if a node is added to a single blockchain, only the fault tolerance of the system and the credit endorsement of a participant are enhanced, and the system performance is not increased, that is, the existing blockchain technology is not suitable for processing mass services.
Disclosure of Invention
The invention mainly aims to provide a block chain-based network mass service processing method, network node equipment and a computer-readable storage medium, and aims to solve the technical problem of how to process mass services based on a block chain technology.
In order to achieve the above object, the present invention provides a block chain-based network massive service processing method, which is applied to a network service system, wherein the network service system is divided into a mechanism layer, a service access layer and a service processing layer from top to bottom based on a logic architecture of service processing, and the service processing layer comprises a plurality of packet block chains;
the block chain-based network mass service processing method comprises the following steps:
the service access layer receives the service request initiated by the mechanism layer;
the service access layer performs link topology selection on the service request to determine a packet block chain for processing the service request in the service processing layer;
and the service access layer forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism layer.
Optionally, the mechanism layer includes a plurality of mechanism nodes, the service access layer includes a plurality of service access nodes and a routing block chain, and the routing block chain includes a plurality of first block chain nodes; at least one access agent service is deployed on one service access node, one access agent service is in butt joint with one mechanism node, and one mechanism node is in butt joint with at least one access agent service; one mechanism node corresponds to at least one first block chain node; optionally, the access agent service docked by each mechanism node docks a first block link point corresponding to the mechanism node, and one packet block chain comprises a plurality of second block chain nodes; one packet block chain corresponds to processing one service, and one service corresponds to at least one packet block chain.
Optionally, a routing contract set by an intelligent contract is deployed on the routing blockchain;
the receiving, by the service access layer, the service request initiated by the mechanism layer includes: the access agent service receives a service request initiated by the mechanism node;
the service access layer performing link topology selection on the service request to determine a packet block chain for processing the service request in the service processing layer includes: the access agent service performs link topology selection on the service request through the routing contract to determine a packet block chain for processing the service request in the service processing layer;
the service access layer forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism layer, and the service access layer comprises: and the access agent service forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism node.
Optionally, a grouping contract set by an intelligent contract is deployed on the grouping blockchain;
the access proxy service performing link topology selection on the service request through the routing contract to determine a packet block chain in the service processing layer for processing the service request includes:
the access agent service initiates a route registration request to the route block chain based on the identification parameter carried in the service request;
the routing block chain executes the routing contract and judges whether the identification parameter is associated with a certain packet block chain;
if yes, determining that the identification parameter is subjected to route registration, and returning the relevant information of the packet block chain to the access agent service;
if not, calling the grouping contract to perform routing registration on the identification parameters, and returning the relevant information of the grouping block chain obtained after successful registration to the access agent service;
the access proxy service determines a packet block chain for processing the service request in the service processing layer based on the related information, wherein the related information includes an ID or a name of the packet block chain.
Optionally, the invoking the packet contract to route and register the identification parameter includes:
the routing contract calls the grouping contract and searches whether an idle grouping block chain exists at present;
if the identification parameter exists in the idle packet block chain, judging whether the service processing capacity of the current idle packet block chain reaches a preset threshold value, if so, searching the next idle packet block chain and judging again, and if not, registering the identification parameter to the idle packet block chain and returning the relevant information of the packet block chain;
and if the service processing capacity of all the idle packet block chains does not exist or reaches the respective preset threshold, returning registration failure information.
Optionally, the forwarding, by the access proxy service, the service request to the packet block chain for processing includes:
the access agent service forwards the service request to a packet block chain associated with the identification parameter carried in the service request so that the packet block chain executes the packet contract for processing;
and the grouping contract verifies whether the identification parameter is associated with the grouping block chain, if so, the identification parameter is determined to be subjected to routing registration, the service request is processed, and a service processing result is returned, and if not, verification failure information is returned to the access agent service.
Optionally, the method for processing a network mass service based on a block chain further includes:
when the packet block chain processes the service request forwarded by the access proxy service, the access proxy service monitors whether the working state of the packet block chain is abnormal or not;
and if so, shielding the packet block chain for fault tolerance processing, and suspending forwarding the service request until the working state of the packet block chain is recovered to be normal.
Further, to achieve the above object, the present invention further provides a network node device, where the network node device includes a memory, a processor, and a network massive service processing program based on a block chain, which is stored in the memory and is executable on the processor, and when being executed by the processor, the network massive service processing program based on the block chain implements the steps of the network massive service processing method based on the block chain as described in any one of the above.
Further, to achieve the above object, the present invention further provides a computer readable storage medium, where a network mass service processing program based on a block chain is stored on the computer readable storage medium, and when being executed by a processor, the network mass service processing program based on the block chain implements the steps of the network mass service processing method based on the block chain as described in any one of the above.
The invention relates to a realization mode of massive service processing based on a block chain technology, which is characterized in that a service access layer is arranged between a mechanism layer (namely a service request party) and a service processing layer (comprising a plurality of block chains), the service access layer receives a service request initiated by the mechanism layer, then link topology selection is carried out on the service request, so that a grouping block chain for processing the service request in the service processing layer is determined, finally, the service request is forwarded to the corresponding grouping block chain for processing, and a service processing result returned by the grouping block chain is forwarded to the mechanism layer. The method for processing the network mass services by adopting the multi-chain architecture solves the problem of performance bottleneck of the existing single-chain architecture, and improves the processing efficiency of the mass services.
Drawings
Fig. 1 is a schematic structural diagram of a hardware operating environment of a device according to an embodiment of the network node device of the present invention;
FIG. 2 is a schematic diagram of a service processing logic architecture of an embodiment of a network service system in the present invention;
fig. 3 is a schematic flowchart of an embodiment of a block chain-based network mass service processing method according to the present invention;
fig. 4 is a schematic diagram of a service processing logic architecture of another embodiment of the network service system in the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a device according to an embodiment of the present invention.
The network node equipment in the embodiment of the invention refers in particular to equipment participating in transaction and data exchange in a network service system based on a block chain technology, and all the node equipment are mutually connected through a TCP/IP protocol. The network node device may be a computer, a server, or the like.
As shown in fig. 1, the network node device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the hardware configuration of the network node device shown in fig. 1 does not constitute a limitation of the network node device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a blockchain-based network mass traffic processing program. The operating system is a program for managing and controlling network node equipment and software resources, and supports the operation of a network communication module, a user interface module, a block chain-based network mass service processing program and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the hardware structure of the network node device shown in fig. 1, the network interface 1004 is mainly used for connecting to a system background and performing data communication with the system background; the user interface 1003 is mainly used for connecting a client (user terminal) and performing data communication with the client.
In this embodiment, the network service system is divided into a mechanism layer, a service access layer and a service processing layer from top to bottom based on a logic architecture of service processing, where a network node device of the service access layer calls a network massive service processing program based on a block chain stored in a memory 1005 through a processor 1001, and executes the following operations:
receiving a service request initiated by the mechanism layer;
performing link topology selection on the service request to determine a packet block chain for processing the service request in the service processing layer;
and forwarding the service request to the packet block chain for processing, receiving a service processing result returned by the packet block chain, and forwarding the service processing result to the mechanism layer.
Furthermore, an access agent service and a routing block chain are deployed on the network node equipment of the service access layer; a packet block chain is deployed on network node equipment of the service processing layer; a routing contract set by an intelligent contract is deployed on the routing block chain; a grouping contract set by an intelligent contract is deployed on the grouping block chain; the network node device of the service access stratum invokes, through the processor 1001, the blockchain-based network mass service handler stored in the memory 1005, to further perform the following operations:
initiating a route registration request to the route block chain through the access agent service based on the identification parameter carried in the service request;
executing the routing contract through the routing block chain, and judging whether the identification parameter is associated with a certain packet block chain;
if yes, determining that the identification parameter is subjected to route registration, and returning the relevant information of the packet block chain to the access agent service;
if not, calling the grouping contract to perform routing registration on the identification parameters, and returning the relevant information of the grouping block chain obtained after successful registration to the access agent service;
determining, by the access proxy service, a packet blockchain in the service processing layer for processing the service request based on the related information, where the related information includes an ID or a name of the packet blockchain.
Further, the network node device of the service access layer calls the blockchain-based network mass service handler stored in the memory 1005 through the processor 1001 to further perform the following operations:
executing the routing contract through the routing block chain, and calling the grouping contract to find whether an idle grouping block chain exists at present;
if the identification parameter exists in the idle packet block chain, judging whether the service processing capacity of the current idle packet block chain reaches a preset threshold value, if so, searching the next idle packet block chain and judging again, and if not, registering the identification parameter to the idle packet block chain and returning the relevant information of the packet block chain;
and if the service processing capacity of all the idle packet block chains does not exist or reaches the respective preset threshold, returning registration failure information.
Further, the network node device of the service access layer calls the blockchain-based network mass service handler stored in the memory 1005 through the processor 1001 to further perform the following operations:
forwarding the service request to a packet block chain associated with an identification parameter carried in the service request through the access agent service, so that the packet block chain executes the packet contract for processing;
and the grouping contract judges whether the identification parameter is associated with the grouping block chain, if so, the identification parameter is determined to be subjected to routing registration, the service request is processed, and a service processing result is returned, and if not, verification failure information is returned to the access agent service.
Further, the network node device of the service access layer calls the blockchain-based network mass service handler stored in the memory 1005 through the processor 1001 to further perform the following operations:
when the packet block chain processes the service request forwarded by the access proxy service, the access proxy service monitors whether the working state of the packet block chain is abnormal or not;
and if so, shielding the packet block chain for fault tolerance processing, and suspending forwarding the service request until the working state of the packet block chain is recovered to be normal.
Based on the hardware structure of the network node device, the following embodiments of the block chain-based network mass service processing method of the present invention are proposed.
The network service system refers to a system for realizing service processing based on a network technology, and for convenience of illustration, the network service system based on the block chain technology in the invention is preferably a financial service system, namely, the transaction service of financial assets is realized by the block chain technology. The financial assets include but are not limited to regular financial products, bonds, real objects, certificates, information entities and other products in the financial field, the value of the assets can be defined by legal currency or by partners under specific business scenes, and the assets can have attributes such as total amount upper limit and validity period.
Financial assets are issued by a particular institution, can be procured, transferred, circulated over a blockchain, and after the asset's validity period is reached, can be redeemed at the issuing institution and redeemed as a french coin or other form of other asset. The above-mentioned organization specifically refers to the member who joins in the independent operation in the block chain network, and the organization has certain financial assets and own user group. In the context of asset transactions, there are two roles of organization: an issuer and a reseller.
An issuer has the authority to issue assets, and can create and issue a share of assets in a blockchain system. After a business agreement is reached with the issuing organization, the affiliate may sell the assets to its own managed users, may proxy its own users, or may transfer the assets to other organizations. The user refers to an individual user who has a contract with the affiliate, the affiliate manages the account data and the assets of the user, and when the user needs to trade the assets, the affiliate needs to handle related procedures.
Referring to fig. 2, a schematic diagram of a service processing logic architecture of an embodiment of a network service system is shown. In this embodiment, the network service system may be sequentially divided into a mechanism layer, a service access layer, and a service processing layer from top to bottom based on a logical architecture of its service processing, where the service processing layer includes a plurality of packet block chains.
First, mechanism layer
In this embodiment, the transaction mechanism (such as the issuer and the affiliate) corresponding to the service at the mechanism layer includes a plurality of mechanism nodes, each independent transaction mechanism may have one to a plurality of mechanism nodes, and a mechanism node is a network node device that participates in service processing in the blockchain network and directly faces to a user, and includes a computer, blockchain application software, and a database.
Second, service access layer
In this embodiment, the service access layer is located in the middle layer and is used to implement communication between the top mechanism layer and the bottom service processing layer. The service access layer comprises a plurality of service access nodes, and the service access nodes are mainly used for receiving service requests initiated by the mechanism layer, forwarding the service requests to the service processing layer for processing, and returning service processing results to the mechanism layer. One service access node corresponds to at least one organization node, and one organization node corresponds to at least one service access node.
Third, business processing layer
The service processing layer is used for processing a service request initiated by the mechanism layer and comprises a plurality of packet block chains, namely a plurality of block chains. A packet blockchain comprises a plurality of blockchain nodes (a network node device employing blockchain technology). In order to improve the efficiency of service processing and data security, in this embodiment, a plurality of block chains of a service processing layer are vertically divided according to services, so as to obtain a plurality of packet block chains, where one packet block chain corresponds to one service and one service corresponds to at least one packet block chain.
In order to solve the performance bottleneck problem of the existing single-chain architecture, in this embodiment, the service processing layer adopts a multi-chain architecture, that is, a plurality of block chains are used to complete service processing, and each block chain runs independently and does not interact directly with each other. Because the block chains under the multi-chain architecture can be expanded in a stateless parallel manner, the performance of the network service system can be improved without limit under the condition that the physical resources are not limited, the challenge of the network mass services can be further met, and the efficient processing of the network mass services is realized.
Referring to fig. 3, fig. 3 is a schematic flowchart of an embodiment of a block chain-based network mass service processing method according to the present invention.
Based on the service processing logic architecture of the network service system, in this embodiment, the method for processing the network mass services based on the block chain includes the following steps:
step S10, the service access layer receives the service request initiated by the mechanism layer;
in this embodiment, a user initiates a service request, for example, initiates a transaction request, through an organization node of an organization layer, the organization layer sends the service request to a service access layer, and the service access layer forwards the service request to a service processing layer for processing.
Step S20, the service access layer selects the link topology of the service request to determine the grouping block chain for processing the service request in the service processing layer;
in this embodiment, since the service processing layer is a blockchain network formed by a plurality of blockchains, the service access layer needs to perform link topology selection in the blockchain network on the service request to determine the packet blockchain actually processing the service request in the service processing layer.
The link topology selection also determines the route from the service access node to the packet block chain. The present embodiment is not limited to the link topology selection method.
Step S30, the service access layer forwards the service request to the packet block chain for processing, receives the service processing result returned by the packet block chain, and forwards the service processing result to the mechanism layer.
In this embodiment, after determining the packet blockchain that actually processes the service request in the service processing layer, that is, after obtaining the routing path for forwarding the service request, the service access layer forwards the service request to the corresponding packet blockchain for processing, for example, forwards a transaction account initiated by a user to the packet blockchain, and after the service processing is successful, receives a service processing result returned by the packet blockchain and forwards the service processing result to the mechanism layer (that is, the mechanism node that initiated the service request), thereby implementing the whole processing flow of the network service from the mechanism layer to the processing layer.
In this embodiment, a service access layer is arranged between a mechanism layer (that is, a service requester) and a service processing layer (including multiple block chains), the service access layer receives a service request initiated by the mechanism layer, and then performs link topology selection on the service request, so as to determine a packet block chain for processing the service request in the service processing layer, and finally forwards the service request to a corresponding packet block chain for processing, and forwards a service processing result returned by the packet block chain to the mechanism layer. The method for processing the network mass services by adopting the multi-chain architecture solves the performance bottleneck problem of the existing single-chain architecture, and improves the processing efficiency of the mass services.
Further, based on the service processing logic architecture of the network service system shown in fig. 2, in another embodiment of the block chain-based network massive service processing method of the present invention, in order to determine a route from a service access node to a packet block chain, in this embodiment, the service access layer further includes: a routing block chain, wherein a routing block chain comprises a plurality of block chain nodes, and a mechanical node corresponds to at least one block chain node of the routing block chain; and the access agent service butted by each mechanism node is butted with the block chain node of the routing block chain corresponding to the mechanism node.
In this embodiment, the routing blockchain selects, according to a certain customized routing rule, a link from the link topology where the current service request finally reaches the actually processed packet blockchain node. The selection of the link is transparent, and the distribution of the current service request is completely completed by the routing block chain, so that the service access layer also has a certain service load balancing function.
Optionally, a routing contract is deployed on the routing block chain, the routing contract is an intelligent contract that can be executed on the routing block chain, and is used for a contract participant to execute invocation and obtain a result on the routing block chain at a certain time point.
Further optionally, the routing contract is also used to manage the addition and deletion of packet block chains.
The service processing logic architecture of another embodiment of the network service system shown in fig. 4. In this embodiment, the access agent rule adopted by the network service system is as follows: one service access node corresponds to at least one mechanism node, and one mechanism node corresponds to at least one service access node; at least one access agent service is deployed on one service access node, one access agent service interfaces with one organization node, and one organization node interfaces with at least one access agent service. An organization node corresponding to at least one blockchain node of the routing blockchain; and the access agent service butted by each mechanism node is butted with the block chain node of the routing block chain corresponding to the mechanism node.
The access proxy service is a computer program and is used for realizing communication from a mechanism layer to a business processing layer. Optionally, the access proxy service and the routing block link point are deployed on the same network node device.
In this embodiment, the method for processing the network mass service based on the block chain includes the following processing flows:
1. the access agent service receives the service request initiated by the mechanism node;
2. the access agent service performs link topology selection on the service request through a routing contract to determine a packet block chain for processing the service request in a service processing layer;
3. and the access agent service forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism node.
In this embodiment, assuming that the number of TPS (transaction per second) of one access agent service is 1000, the number of TPS of the access agent service will reach 1000 × N, where N is the number of the access agent services. And if the TPS of one packet block chain is 600, the number of service processing TPS of the network service system based on the multi-chain architecture will reach 600 × M, where M is the number of access proxy services, so that the performance of the network service system can be greatly improved, and further, efficient processing of mass services can be realized.
Further, in another embodiment of the method for processing a network mass service based on a blockchain of the present invention, a grouping contract set by an intelligent contract is deployed on the grouping blockchain. The packet contract is an intelligent contract which can be executed on a packet block chain, can be used for a contract participant to execute calling and obtain results on the packet block chain at a certain time point, and is mainly used for interacting with a routing block chain, completing registration of a service request on the packet block chain and then determining routing between a service access node and the packet block chain.
Further optionally, the packet contract is also used to manage the addition and deletion of packet blockchain nodes.
In this embodiment, the above-mentioned process 2: the access proxy service performs link topology selection on the service request through a routing contract to determine a packet block chain for processing the service request in the service processing layer, and the process comprises the following steps:
2.1, the access agent service initiates a route registration request to the route block chain based on the identification parameter carried in the service request;
in this embodiment, the identification parameter is used to uniquely identify the service request, for example, a service master key number (e.g., a user ID), a transaction serial number, and the like may be used.
2.2, the routing block chain executes a routing contract and judges whether the identification parameter is associated with a certain packet block chain;
2.3, if yes, determining that the identification parameter is subjected to route registration, and returning the relevant information of the grouping block chain to the access agent service;
2.4, if not, calling a grouping contract to perform routing registration on the identification parameters, and returning the relevant information of the grouping block chain obtained after successful registration to the access agent service; for example, the related information includes an ID or a name of the packet block chain;
and 2.5, the access agent service determines a packet block chain actually processing the service request in the service processing layer based on the returned related information.
In this embodiment, the determination of the route between the service access node and the packet block chain is implemented by registering the identification parameter carried in the service request on the packet block chain, that is, the link where the packet block chain that is successfully registered is located is the link selected by the route block chain and used for processing the service.
Further, in another embodiment of the method for processing a network mass service based on a block chain, in the above flow 2.4: the packet contract carries out route registration on the identification parameter, and the route registration comprises the following procedures:
2.4.1, searching whether an idle packet block chain exists at present or not by a packet contract, namely the packet block chain which does not process any service;
2.4.2, if the idle packet block chain exists, judging whether the service processing capacity of the current idle packet block chain reaches a preset threshold value; optionally, the preset threshold may be further divided into an alarm threshold or a maximum capacity threshold;
2.4.2.1, if yes, searching the next idle packet block chain and judging again, namely when the next idle packet block chain is searched, continuing to execute the process 2.4.2;
2.4.2.2, if not, registering the identification parameter to the idle packet block chain and returning the related information of the packet block chain;
and 2.4.3, if the service processing capacities of all the idle packet block chains do not exist or reach the respective preset threshold, returning registration failure information.
Further, in another embodiment of the method for processing a network mass service based on a block chain, in the above process 3: the access proxy service forwards the service request to the packet block chain for processing, which comprises the following procedures:
3.1, the access agent service forwards the service request to a packet block chain associated with the identification parameter carried in the service request;
3.2, executing grouping contract by the grouping block chain, and verifying whether the identification parameter is associated with the grouping block chain;
3.3, if yes, determining that the identification parameter is subjected to route registration, processing the service request and returning a service processing result;
and 3.4, if not, returning verification failure information to the access agent service.
Optionally, in order to improve the stability of the network service system based on the multi-link structure, when the packet block chain processes the service request forwarded by the access proxy service, the access proxy service is further configured to monitor whether the working state of the packet block chain is abnormal; if yes, the grouping block chain is shielded to carry out fault-tolerant processing, and the service request is suspended to be forwarded until the working state of the grouping block chain is recovered to be normal.
The invention also provides a computer readable storage medium.
In this embodiment, a computer-readable storage medium stores a network mass service processing program based on a block chain, and when the network mass service processing program based on the block chain is executed by a processor, the steps of the network mass service processing method based on the block chain in any one of the embodiments described above are implemented.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM), and includes instructions for causing a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.

Claims (9)

1. A network massive business processing method based on block chains is applied to a network business system and is characterized in that the network business system comprises a mechanism layer and a business processing layer, a business access layer is arranged between the mechanism layer and the business processing layer, the network business system is divided into the mechanism layer, the business access layer and the business processing layer from top to bottom based on a logic architecture of business processing, and the business processing layer comprises a plurality of grouping block chains;
the block chain-based network mass service processing method comprises the following steps:
the service access layer receives the service request initiated by the mechanism layer;
the service access layer performs link topology selection on the service request to determine a packet block chain for processing the service request in the service processing layer;
the service access layer forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism layer;
the mechanism layer comprises a plurality of mechanism nodes, the service access layer comprises a plurality of service access nodes and a routing block chain, and the routing block chain comprises a plurality of first block chain nodes; at least one access agent service is deployed on one service access node, one access agent service is in butt joint with one mechanism node, and one mechanism node is in butt joint with at least one access agent service; one mechanism node corresponds to at least one first block chain node; and the access agent service butted by each mechanism node is butted with the first block chain node corresponding to the mechanism node.
2. The blockchain-based network mass traffic processing method of claim 1, wherein a packet blockchain includes a plurality of second blockchain nodes; one packet block chain corresponds to processing one service, and one service corresponds to at least one packet block chain.
3. The block chain-based network mass service processing method according to claim 1, wherein a routing contract set by an intelligent contract is deployed on the routing block chain;
the receiving, by the service access layer, the service request initiated by the mechanism layer includes: the access agent service receives a service request initiated by the mechanism node;
the service access layer performing link topology selection on the service request to determine a packet block chain for processing the service request in the service processing layer includes: the access agent service performs link topology selection on the service request through the routing contract to determine a packet block chain for processing the service request in the service processing layer;
the service access layer forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism layer, and the service access layer comprises: and the access agent service forwards the service request to the packet block chain for processing, receives a service processing result returned by the packet block chain and forwards the service processing result to the mechanism node.
4. The blockchain-based network mass traffic processing method according to claim 3, wherein a grouping contract set by an intelligent contract is deployed on the grouping blockchain;
the access proxy service performing link topology selection on the service request through the routing contract to determine a packet block chain in the service processing layer for processing the service request includes:
the access agent service initiates a route registration request to the route block chain based on the identification parameter carried in the service request;
the routing block chain executes the routing contract and judges whether the identification parameter is associated with a certain packet block chain;
if yes, determining that the identification parameter is subjected to route registration, and returning the relevant information of the packet block chain to the access agent service;
if not, calling the grouping contract to perform routing registration on the identification parameters, and returning the relevant information of the grouping block chain obtained after successful registration to the access agent service;
the access proxy service determines a packet block chain for processing the service request in the service processing layer based on the related information, wherein the related information includes an ID or a name of the packet block chain.
5. The blockchain-based network mass traffic processing method according to claim 4, wherein the invoking of the packet contract for routing and registering the identification parameter includes:
the routing contract calls the grouping contract and searches whether an idle grouping block chain exists at present;
if the identification parameter exists in the idle packet block chain, judging whether the service processing capacity of the current idle packet block chain reaches a preset threshold value, if so, searching the next idle packet block chain and judging again, and if not, registering the identification parameter to the idle packet block chain and returning the relevant information of the packet block chain;
and if the service processing capacity of all the idle packet block chains does not exist or reaches the respective preset threshold, returning registration failure information.
6. The blockchain-based network mass traffic processing method according to claim 4, wherein the forwarding the traffic request to the packet blockchain by the access proxy service for processing comprises:
the access agent service forwards the service request to a packet block chain associated with the identification parameter carried in the service request so that the packet block chain executes the packet contract for processing;
and the grouping contract verifies whether the identification parameter is associated with the grouping block chain, if so, the identification parameter is determined to be subjected to routing registration, the service request is processed, and a service processing result is returned, and if not, verification failure information is returned to the access agent service.
7. The method for processing massive network services based on blockchains according to claim 3, wherein the method for processing massive network services based on blockchains further comprises:
when the packet block chain processes the service request forwarded by the access proxy service, the access proxy service monitors whether the working state of the packet block chain is abnormal or not;
and if so, shielding the packet block chain for fault tolerance processing, and suspending forwarding the service request until the working state of the packet block chain is recovered to be normal.
8. A network node device, characterized in that the network node device comprises a memory, a processor, on which is stored a blockchain based network mass traffic handling program executable on the processor, which when executed by the processor implements the steps of the blockchain based network mass traffic handling method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a blockchain-based network mass traffic processing program, which when executed by a processor implements the steps of the blockchain-based network mass traffic processing method according to any one of claims 1 to 7.
CN201810222291.7A 2018-03-16 2018-03-16 Block chain-based network mass service processing method, equipment and storage medium Active CN108540536B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810222291.7A CN108540536B (en) 2018-03-16 2018-03-16 Block chain-based network mass service processing method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810222291.7A CN108540536B (en) 2018-03-16 2018-03-16 Block chain-based network mass service processing method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108540536A CN108540536A (en) 2018-09-14
CN108540536B true CN108540536B (en) 2021-07-23

Family

ID=63483924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810222291.7A Active CN108540536B (en) 2018-03-16 2018-03-16 Block chain-based network mass service processing method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108540536B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379418A (en) * 2018-10-09 2019-02-22 上海点融信息科技有限责任公司 Method, equipment and the storage medium of file based on block chain processing business system
CN111047439B (en) * 2018-10-12 2024-05-14 北京邦天信息技术有限公司 Transaction processing method based on blockchain
CN109582473A (en) * 2018-10-26 2019-04-05 阿里巴巴集团控股有限公司 Across chain data access method and device based on block chain
CN109635036B (en) * 2018-11-16 2021-07-27 播金信息科技(上海)有限公司 Block chain construction model and method
CN109785136A (en) * 2019-01-30 2019-05-21 北京京东尚科信息技术有限公司 A kind of transaction processing method of block chain, client and block chain network
CN110011930B (en) * 2019-03-12 2022-06-24 深圳前海微众银行股份有限公司 Load balancing method and device for multi-union chain in block chain
CN110278255B (en) * 2019-06-13 2021-10-15 深圳前海微众银行股份有限公司 Method and device for communication between IOT (Internet of things) devices based on block chain
CN110535661B (en) * 2019-09-03 2022-10-11 中国建设银行股份有限公司 Service processing method and device based on block chain, electronic equipment and storage medium
CN110602096B (en) * 2019-09-12 2021-07-13 腾讯科技(深圳)有限公司 Data processing method, device, storage medium and equipment in block chain network
CN111031100A (en) * 2019-11-21 2020-04-17 上海交通大学 Extended block chain storage method, system and medium
CN110855565B (en) 2019-11-22 2021-07-20 广州大学 Verifiable inter-domain route verification method based on block chain
CN113128998B (en) * 2019-12-31 2024-04-12 航天信息股份有限公司 Service processing method, device and system of block chain system
CN111639129B (en) * 2020-05-24 2023-07-11 中信银行股份有限公司 Transaction processing method, device, electronic equipment and computer readable storage medium
CN112001800B (en) * 2020-10-28 2024-04-16 支付宝(杭州)信息技术有限公司 Method and device for processing business in block chain system
CN112231741B (en) * 2020-12-14 2021-03-19 腾讯科技(深圳)有限公司 Data processing method, device, medium and electronic equipment based on block chain system
CN112508527A (en) * 2020-12-15 2021-03-16 中国联合网络通信集团有限公司 Service processing method, device and server
CN116595024B (en) * 2023-07-17 2023-09-26 中博信息技术研究院有限公司 Processing method and device for massive data blockchain application

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11941588B2 (en) * 2015-11-06 2024-03-26 Cable Television Laboratories, Inc. Systems and methods for blockchain virtualization and scalability
CN106530083B (en) * 2016-10-27 2018-06-29 深圳壹账通智能科技有限公司 Multichain management method and system based on block chain
CN106709704B (en) * 2016-11-23 2020-04-24 杭州溪塔科技有限公司 Intelligent contract upgrading method based on license chain
CN106899680B (en) * 2017-03-09 2019-07-30 深圳壹账通智能科技有限公司 The fragment treating method and apparatus of multi-tiling chain
CN107360206B (en) * 2017-03-29 2020-03-27 创新先进技术有限公司 Block chain consensus method, equipment and system
CN107368259B (en) * 2017-05-25 2020-07-10 创新先进技术有限公司 Method and device for writing service data into block chain system
CN107231299A (en) * 2017-06-07 2017-10-03 众安信息技术服务有限公司 A kind of chain route and realized the system that block chain communicates across chain
CN107451275B (en) * 2017-08-04 2019-08-16 北京明朝万达科技股份有限公司 Business data processing method, device, system and storage equipment based on block chain

Also Published As

Publication number Publication date
CN108540536A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN108540536B (en) Block chain-based network mass service processing method, equipment and storage medium
CN110417558B (en) Signature verification method and device, storage medium and electronic device
CN112132447B (en) Block chain-based algorithm for evaluating and guaranteeing trust of computing power network
KR101727525B1 (en) Block chain based distributed storage method and device thereof
CA3011600C (en) Information transaction infrastructure
CN110049087B (en) Credibility verification method, system, device and equipment of alliance chain
CN109522362A (en) Incomplete markets synchronous method, system and equipment based on block chain data
JP5645216B2 (en) Method and apparatus for cluster data processing
CN110289999A (en) A kind of data processing method, system and device
CN109544128A (en) Contribute money the method and server of information management
CN111460504A (en) Service processing method, device, node equipment and storage medium
CN111402057A (en) Transaction message matching method, device, computing equipment and medium
CN109345251A (en) Negotiable block chain method of commerce, device, equipment and storage medium
CN110009759A (en) Work attendance method, attendance checking system and Work attendance device based on block chain
CN110096511B (en) Data consistency verification method, device, equipment and medium based on private chain
CN113409047B (en) Data processing method, device and equipment based on block chain and readable storage medium
CN110213250A (en) Data processing method and terminal device
US20230351370A1 (en) Electronic wallet and method for atomic swapping of two different blockchain tokens by using electronic wallet
CN106874371A (en) A kind of data processing method and device
CN109493040A (en) A kind of anti-honeysuckle attack processing method and device based on block chain
US10757263B1 (en) Dynamic resource allocation
CN105335362B (en) The processing method and system of real time data, instant disposal system for treating
CN110852744A (en) Method, device, terminal equipment and medium for switching transaction channels
CN114172958B (en) Privacy computing node, system, method, device and storage medium
CN110363638A (en) The method for processing business, device and electronic equipment of non-targeted user in financial business

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant