Disclosure of Invention
The application provides a payment network state processing method and a server based on a block chain and an online service, so as to solve the technical problems in the prior art.
In a first aspect, a method for processing a state of a payment network based on a blockchain and an online service is provided, where the method is applied to a server communicatively connected to a plurality of blockchain nodes, and the method includes:
periodically extracting an online payment service record of each blockchain node, determining network state information of a blockchain payment network formed by the plurality of blockchain nodes in each extraction period according to each group of extracted online payment service records, and integrating the network state information to obtain a network state change track of the blockchain payment network;
judging whether the bandwidth resources of the block chain payment network are insufficient or not based on the network state change track, and analyzing the network state change track to calculate a target time period when the bandwidth resources of the block chain payment network are insufficient on the premise that the bandwidth resources of the block chain payment network are judged to be insufficient;
and generating and issuing a data splitting instruction corresponding to each block chain link point according to the target time interval and the data storage distribution of each block chain node, and acquiring and registering splitting data uploaded by each block chain link point based on the corresponding data splitting instruction.
In an alternative embodiment, generating a data splitting indication corresponding to each block chain node according to the target time period and the data storage distribution of each block chain node includes:
acquiring real-time data storage distribution of each block chain node, determining a target data set in a use state in a current data set stored by each block chain node according to the real-time data storage distribution, and extracting a distribution update log of the real-time data storage distribution in parallel to determine data use state distribution of the current data set stored by each block chain node in the target time period based on the distribution update log;
under the condition that the current data set stored by each block chain node is judged to have data which needs to be used in the target time period according to the data use state distribution, obtaining storage configuration information of the data to be processed, which needs to be used in the target time period, of the current data set stored by each block chain node;
when the target storage ratio of the correlation data corresponding to the correlation configuration information in the storage configuration information in the current data set stored by each block chain node is larger than a reference storage ratio generated in advance according to the storage space parameters of each block chain node, determining the target use state of the correlation data; judging whether a completable state exists in the target use state; when first residual data in the correlation data are lost, the block link node can perform completion on the lost first residual data based on second residual data in the correlation data;
when the completeable state exists in the use state, determining other data except the first remaining data and the second remaining data in the correlation data as first data to be split; determining second data to be split in the current data set stored by each block chain node according to the data to be processed corresponding to each block chain node; wherein there is no intersection between the first data to be split and the second data to be split;
and generating a data splitting indication corresponding to each block chain link point according to the first data to be split and the second data to be split.
In an alternative embodiment, generating a data splitting indication corresponding to each block link point according to the first data to be split and the second data to be split further includes:
determining field characteristics of a plurality of protocol fields to be marked for determining channel frequency band information of a data transmission channel corresponding to the link parameters and field mapping path parameters among different protocol fields through the obtained dynamic configuration text and static configuration text for determining the link parameters of the blockchain nodes; the dynamic configuration text is used for representing parameter updating information of the link parameters of the blockchain nodes, and the static configuration text is used for representing parameter rollback information of the link parameters of the blockchain nodes;
marking the plurality of protocol fields based on the determined field characteristics of the plurality of protocol fields and field mapping path parameters among different protocol fields, so that the characteristic change degree corresponding to the field characteristics of the marked protocol fields is greater than a first set value, and the parameter clustering weight corresponding to the field mapping path parameters among the marked protocol fields is less than a second set value; the feature change degree is used for representing the updating frequency of the field feature, and the parameter clustering weight is used for representing the path concentration degree of the mapping path corresponding to the field mapping path parameter;
for the first data to be split and the second data to be split corresponding to the block chain link point, determining link parameters of the block chain node according to first matching data and second matching data of the first data to be split corresponding to the block chain link point in the dynamic configuration text and the static configuration text respectively, and third matching data and fourth matching data of the second data to be split corresponding to the block chain link point in the dynamic configuration text and the static configuration text respectively;
fitting the link parameters based on the marked protocol fields to obtain a channel protocol text of the data transmission channel established by the block link points and the server, and determining channel frequency band information from the channel protocol text; generating a data transmission frequency band corresponding to each block chain link point according to the determined channel frequency band information corresponding to each block chain link point, and generating a data splitting indication corresponding to each block chain link point according to the data transmission frequency band, the first data to be split and the second data to be split; the frequency band difference value between any two data transmission frequency bands is larger than the set frequency band.
In an alternative embodiment, acquiring and registering the uploaded split data of each block link point based on the corresponding data split indication includes:
acquiring a data authentication key of the uploaded split data of each block link point based on the corresponding data split indication, and performing access authority setting on the data authentication key to obtain an authority setting record comprising authority verification data and verification logic information corresponding to the authority verification data;
carrying out intrusion check according to the authority setting record, carrying out logic topology extraction on target verification logic information meeting intrusion check conditions, and obtaining logic topology nodes corresponding to the target verification logic information and directed connection priorities of the logic topology nodes;
when the logical topology node is located in a target area, determining that the target verification logical information has a dynamic check code, and obtaining a verification timeliness parameter of the dynamic check code existing in the target verification logical information; determining a register address of the split data in the server according to the authority verification data, the target verification logic information, the logic topology node and the directed connection priority of the logic topology node, packaging verification timeliness parameters of a dynamic verification code of the target verification logic information by adopting an intrusion script corresponding to the intrusion verification condition in the register address to obtain an access verification mechanism of the register address, and registering the split data in the register address; wherein the access authentication mechanism is initiated when the server receives split data for invoking the registered address.
In an alternative embodiment, the periodically extracting the online payment service record of each blockchain node specifically includes:
presetting time intervals for extracting online payment service records, extraction rates corresponding to the time intervals and adjustment weights corresponding to the time intervals;
determining a service record list existing in each block link point; taking the list corresponding to each service record list as list data to be identified, identifying the list data according to each time interval and the extraction rate corresponding to each time interval, and obtaining a list identification result corresponding to each time interval;
screening out a target identification result from the list identification result, and determining an online payment service record of each block chain node based on the target identification result; wherein the adjustment weight of the time interval corresponding to each target recognition result is not used.
In an alternative embodiment, determining, according to each extracted set of online payment service records, network state information of the blockchain payment network formed by the plurality of blockchain nodes at each extraction cycle further includes:
determining user behavior characteristics corresponding to the payment behavior data of each group of online payment service records, and determining process time sequence characteristics corresponding to the service process time sequence of each group of online payment service records; the user behavior characteristic and the process time sequence characteristic respectively comprise characteristic information of a plurality of different state indication coefficients;
when a behavior execution function of the payment behavior data in any feature information of the user behavior features is obtained, determining feature information with a maximum state indication coefficient in the process time sequence features as target feature information;
hooking the behavior execution function into the target characteristic information according to a network topology parameter of a block chain payment network formed by a plurality of block chain link points so as to obtain first parameter distribution of the behavior execution function in the target characteristic information, and generating time sequence delay data between the payment behavior data and the service process time sequence according to the behavior execution function and the first parameter distribution of the behavior execution function;
acquiring a non-behavior execution function in the target characteristic information by taking the first parameter distribution of the behavior execution function as a reference, hooking the non-behavior execution function to the characteristic information of the behavior execution function according to a delay variation curve corresponding to the time sequence delay data, obtaining a second parameter distribution corresponding to the non-behavior execution function in the characteristic information of the behavior execution function, and determining a network state influence factor corresponding to each group of online payment service records according to the second parameter distribution;
acquiring hooking path information hooking the behavior execution function to the target characteristic information; according to the matching rate between the second parameter distribution and the unit description information corresponding to the multiple path units on the hooked path information, sequentially acquiring the network real-time state tracks corresponding to the network state influence factors in the process time sequence characteristics according to the time sequence order, stopping acquiring the network real-time state tracks in the next characteristic information until the priority of the acquired characteristic information of the network real-time state tracks in the user behavior characteristics is consistent with the priority of the network state influence factors in the user behavior characteristics, and integrating the acquired network real-time state tracks to acquire the network state information of the block chain payment network in each extraction period.
In an alternative embodiment, the determining whether the blockchain payment network has insufficient bandwidth resources based on the network status change track includes:
determining a track information list corresponding to the network state change track;
listing the network resource information in the track information list according to different resource categories to obtain multiple groups of network resource information;
determining target network resource information with set identification from the multiple groups of network resource information and using the target network resource information as bandwidth resource information; detecting whether the updating times of a dynamic identifier used for representing the disturbance of the network state change track in the network resource information in a set time length reach set times or not; if so, judging that the bandwidth resources of the block chain payment network are insufficient; if not, judging that the bandwidth resources of the block chain payment network are sufficient.
In a second aspect, a server is provided, in which a payment network status processing apparatus is included, and a functional module in the payment network status processing apparatus executes the method when running.
In a third aspect, a server is provided, including: the system comprises a processor, a memory and a network interface, wherein the memory and the network interface are connected with the processor; the network interface is connected with a nonvolatile memory in the server; when the processor is operated, the computer program is called from the nonvolatile memory through the network interface, and the computer program is operated through the memory so as to execute the method.
In a fourth aspect, a readable storage medium applied to a computer is provided, and a computer program is burned on the readable storage medium, and when the computer program runs in a memory of a server, the method is implemented.
When the payment network state processing method and the server based on the blockchain and the online services are applied, firstly, the network state information of the blockchain payment network in each extraction period is determined according to each group of online payment service records, and the network state information is integrated to obtain the network state change track of the blockchain payment network.
And secondly, when the bandwidth resource shortage of the block chain payment network is judged based on the network state change track, the network state change track is analyzed to calculate the target time period of the block chain payment network with the bandwidth resource shortage.
And finally, generating and issuing a data splitting instruction corresponding to each block chain link point according to the target time interval and the data storage distribution of each block chain node, thereby acquiring and registering splitting data uploaded by each block chain link point based on the corresponding data splitting instruction.
Therefore, partial data in the blockchain nodes can be split and stored according to the real-time network state of the blockchain payment network, so that the data volume stored in the blockchain nodes is reduced, and the data stored in the blockchain nodes are prevented from occupying too much bandwidth resources. Therefore, the sufficient bandwidth resources of the payment network can be ensured, and the technical problems of delay and blockage of the blockchain nodes in the payment service execution process are solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
After the inventor researches and analyzes the existing blockchain payment network, the inventor finds that the reason that delay and jamming occur when the blockchain nodes execute the payment service is caused by insufficient bandwidth resources of the payment network, and the reason that the insufficient bandwidth resources of the payment network are caused by the fact that data stored in the blockchain nodes occupy excessive bandwidth resources. In order to solve the problem, embodiments of the present invention provide a payment network state processing method and a server based on a blockchain and an online service, which can split and store part of data in a blockchain node according to a real-time network state of a payment network, thereby reducing the amount of data stored in the blockchain node and further avoiding that the data stored in the blockchain node occupies too much bandwidth resources. Therefore, the sufficient bandwidth resources of the payment network can be ensured, and the technical problems of delay and blockage of the blockchain nodes in the payment service execution process are solved.
To achieve the above object, please first refer to fig. 1, which provides a system 100 for processing a state of a payment network based on a blockchain and an online service, wherein the system may include a cloud hosting server 200 and a plurality of blockchain nodes 400. The cloud hosting server 200 and the blockchain nodes 400 are communicatively connected to each other, and the blockchain nodes 400 form a blockchain payment network. The cloud hosting server 200 is configured to host a part of data of the blockchain nodes, so as to ensure that bandwidth resources of the blockchain payment network are sufficient, and to ensure that the blockchain nodes smoothly perform payment services.
On the basis, please refer to fig. 2 in combination, a flow chart of a payment network status processing method based on a block chain and an online service is provided, and the method may be applied to the cloud hosting server 200 in fig. 1, and specifically may include the contents described in the following steps S21 to S23.
Step S21, periodically extracting an online payment service record of each blockchain node, determining network state information of a blockchain payment network formed by the multiple blockchain nodes in each extraction period according to each extracted group of online payment service records, and integrating the network state information to obtain a network state change trajectory of the blockchain payment network.
For example, the block link point may be a smart terminal such as a mobile phone, a tablet computer, a notebook computer, or the like, or may be a smart wearable device, or the like. The online payment transaction record can be used for characterizing transaction behaviors of the blockchain nodes and other blockchain nodes, including but not limited to fund receipt and payment transactions, transaction information transactions, other digital economic transactions and the like.
For another example, the extraction period may be adjusted according to the number of blockchain nodes, and when the number of blockchain nodes is greater, the extraction period may be relatively shortened, and when the number of blockchain nodes is less, the extraction period may be relatively lengthened.
For another example, the network status information may represent status information of the blockchain payment network, such as network stability, network congestion degree, network packet loss rate, network delay data, and network bandwidth resources, which is not limited herein.
Further, the network state change trajectory is used to characterize the change and fluctuation of the blockchain payment network in the network state, including but not limited to one or more of the above network stability, network congestion degree, network packet loss rate, network delay data, and network bandwidth resources.
Step S22, determining whether the bandwidth resource of the blockchain payment network is insufficient based on the network state change trajectory, and analyzing the network state change trajectory to calculate a target time period when the bandwidth resource of the blockchain payment network is insufficient on the premise that the bandwidth resource of the blockchain payment network is determined to be insufficient.
For example, the bandwidth resource shortage represents that the blockchain payment network has difficulty in transmitting transmission services such as request messages and response messages between different blockchain nodes in a timely manner.
For another example, the target time interval is a certain time interval after the current time interval, that is, when determining whether the bandwidth resource of the block chain payment network is insufficient, it is actually determined whether the bandwidth resource of the block chain payment network is insufficient at a certain time interval after the block chain payment network. Therefore, the bandwidth resource distribution of the block chain payment network can be pre-judged, so that the data of the block chain nodes can be split and stored in time to release the corresponding bandwidth resources.
Step S23, generating and issuing a data splitting instruction corresponding to each block link point according to the target time interval and the data storage distribution of each block link node, and acquiring and registering splitting data uploaded by each block link point based on the corresponding data splitting instruction.
For example, the data split indications for different block link point correspondences are different.
For another example, a key check relationship exists between the split data and the remaining data stored in the block chain node, so that the split data registered in the cloud hosting server can be prevented from being illegally acquired or called, and the data security of the split data registered in the cloud hosting service is ensured.
When the technical scheme described in the above step S21-step S23 is applied, firstly, network state information of the blockchain payment network in each extraction cycle is determined according to each group of online payment service records and is integrated to obtain a network state change track of the blockchain payment network, secondly, when it is determined that bandwidth resources of the blockchain payment network are insufficient based on the network state change track, the network state change track is analyzed to calculate a target time period when the bandwidth resources of the blockchain payment network are insufficient, and finally, a data splitting instruction corresponding to each blockchain link point is generated and issued according to the target time period and data storage distribution of each blockchain node, so as to obtain splitting data uploaded by each blockchain link point based on the corresponding data splitting instruction and register the splitting data. Therefore, partial data in the blockchain nodes can be split and stored according to the real-time network state of the blockchain payment network, so that the data volume stored in the blockchain nodes is reduced, and the data stored in the blockchain nodes are prevented from occupying too much bandwidth resources. Therefore, the sufficient bandwidth resources of the payment network can be ensured, and the technical problems of delay and blockage of the blockchain nodes in the payment service execution process are solved.
When the technical solutions described in the above steps S21 to S23 are implemented, the inventor finds that, when generating the data splitting instruction, not only the data storage distribution of the blockchain nodes but also the usage state of the data stored in the blockchain nodes need to be considered, so that it can be ensured that the data loss is not caused or the normal operation of the blockchain nodes is not affected when the blockchain nodes are instructed to split the stored data. For this reason, in the content described in step S23, the step of generating the data splitting indication corresponding to each tile link point according to the target time period and the data storage distribution of each tile link node may specifically include the content described in the following steps S231 to S235.
Step 231, obtaining the real-time data storage distribution of each block chain node, determining a target data set in a use state in the current data set stored in each block chain node according to the real-time data storage distribution, and extracting a distribution update log of the real-time data storage distribution in parallel to determine the data use state distribution of the current data set stored in each block chain node in the target time period based on the distribution update log.
Step S232, obtaining storage configuration information of the to-be-processed data that the current data set stored in each block chain node needs to be used in the target time period, when it is determined that the current data set stored in each block chain node has data that needs to be used in the target time period according to the data use state distribution.
Step S233, when the target storage ratio of the relevant data corresponding to the relevant configuration information in the storage configuration information in the current data set stored in each block chain node is greater than the reference storage ratio generated in advance according to the storage space parameter of each block chain node, determining the target usage state of the relevant data; judging whether a completable state exists in the target use state; wherein the completable state is used for representing that when first remaining data in the correlation data is lost, the blockchain node can complete the lost first remaining data based on second remaining data in the correlation data.
Step S234, when it is determined that the completeable state exists in the use state, determining other data in the correlation data except the first remaining data and the second remaining data as first data to be split; determining second data to be split in the current data set stored by each block chain node according to the data to be processed corresponding to each block chain node; wherein there is no intersection between the first data to be split and the second data to be split.
For the convenience of understanding the above steps S231 to S234, an example will be described below.
The current data set is defined as a + B + C.
And defining the data to be processed as A, namely A cannot be registered in the cloud registering server.
The dependency data is defined as B.
And defining the second data to be split as C.
Further, the first remaining data in the correlation data B is B1, the second remaining data is B2, and the other data except the first remaining data and the second remaining data is B3.
Then the first to-be-split data is B3.
Therefore, the data to be split, which needs to be registered in the cloud hosting server in the current data set a + B + C, can be determined as the first data to be split B3 and the second data to be split C.
Step S235, a data splitting indication corresponding to each block link point is generated according to the first data to be split and the second data to be split.
Therefore, according to the steps S231 to S235, when the data splitting indication is generated, the data storage distribution of the block chain nodes and the use state of the data stored in the block chain nodes can be taken into consideration, and the data completion condition after the data splitting is taken into consideration, so that an accurate data splitting indication corresponding to each block chain link point can be generated according to the determined first data to be split and the second data to be split, and it is ensured that the data loss is not caused or the normal operation of the block chain nodes is not influenced when the block chain nodes are indicated to split the stored data.
In practical application, because the number of the block chain nodes is large, when different data splitting indications are issued, the channel frequency bands of the data transmission channels are too close to each other, so that the data splitting indications are likely to be concatenated, and thus the block chain nodes may receive the data splitting indications which are not corresponding, and further the data splitting is likely to be wrong. Therefore, in order to improve the technical problem, the generation of the data splitting indication corresponding to each block link point according to the first data to be split and the second data to be split described in step S235 may specifically include the following contents described in steps S2351 to S2354.
Step S2351, determining field characteristics of a plurality of protocol fields to be marked for determining channel frequency band information of a data transmission channel corresponding to the link parameter and field mapping path parameters between different protocol fields through the obtained dynamic configuration text and static configuration text for determining the link parameter of the block chain node; the dynamic configuration text is used for representing parameter update information of the link parameters of the blockchain nodes, and the static configuration text is used for representing parameter rollback information of the link parameters of the blockchain nodes.
Step S2352, based on the determined field characteristics of the plurality of protocol fields and the field mapping path parameters between different protocol fields, marking the plurality of protocol fields, so that the characteristic change degree corresponding to the field characteristics of the marked protocol fields is greater than a first set value, and the parameter clustering weight corresponding to the field mapping path parameters between the marked protocol fields is less than a second set value; the feature change degree is used for representing the update frequency of the field feature, and the parameter clustering weight is used for representing the path concentration degree of the mapping path corresponding to the field mapping path parameter.
Step S2353, determining link parameters of the block chain node according to first matching data and second matching data of the first data to be split corresponding to the block chain node in the dynamic configuration text and the static configuration text, respectively, and third matching data and fourth matching data of the second data to be split corresponding to the block chain node in the dynamic configuration text and the static configuration text, respectively, for the first data to be split and the second data to be split corresponding to the block chain node.
Step S2354, fitting the link parameters based on the marked protocol field to obtain a channel protocol text of the data transmission channel established by the block link point and the server, and determining channel frequency band information from the channel protocol text; generating a data transmission frequency band corresponding to each block chain link point according to the determined channel frequency band information corresponding to each block chain link point, and generating a data splitting indication corresponding to each block chain link point according to the data transmission frequency band, the first data to be split and the second data to be split; the frequency band difference value between any two data transmission frequency bands is larger than the set frequency band.
It can be understood that based on the above steps S2351 to S2354, the data splitting indication corresponding to each block link point can be generated based on different data transmission frequency bands, so as to avoid the problem of line crossing of the data splitting indication caused by too close channel frequency bands of the data transmission channel. And then avoid block chain link point to receive not corresponding data split and instruct, ensure that block chain node can carry out accurate data split.
In one possible implementation, in order to ensure data security when storing the split data, the obtaining and storing of the split data uploaded by each chunk link point based on the corresponding data split indication described in step S23 may further include the following steps a to d.
Step a, acquiring a data authentication key of each block link point based on corresponding data splitting indication uploaded splitting data, and performing access authority setting on the data authentication key to obtain an authority setting record comprising authority verification data and verification logic information corresponding to the authority verification data.
And b, carrying out intrusion check according to the authority setting record, carrying out logic topology extraction on the target verification logic information meeting the intrusion check condition, and obtaining logic topology nodes corresponding to the target verification logic information and the directed connection priority of the logic topology nodes.
Step c, when the logic topology node is in a target area, determining that the target verification logic information has a dynamic check code, and obtaining a verification timeliness parameter of the dynamic check code in the target verification logic information; determining a register address of the split data in the server according to the authority verification data, the target verification logic information, the logic topology node and the directed connection priority of the logic topology node, packaging verification timeliness parameters of a dynamic verification code of the target verification logic information by adopting an intrusion script corresponding to the intrusion verification condition in the register address to obtain an access verification mechanism of the register address, and registering the split data in the register address; wherein the access authentication mechanism is initiated when the server receives split data for invoking the registered address.
Thus, the data security can be ensured when the split data is registered through the contents described in the steps a to c.
In an implementation example, in order to accurately obtain the online payment service record of each blockchain node, the step S21 may specifically include the following steps S2111 and S2113, which are described in detail, to periodically extract the online payment service record of each blockchain node.
Step S2111, presetting a time interval for extracting the online payment service record, an extraction rate corresponding to each time interval, and an adjustment weight corresponding to each time interval.
Step S2112, determining a service record list existing in each block chain link point; and taking the list corresponding to each service record list as list data to be identified, identifying the list data according to each time interval and the extraction rate corresponding to each time interval, and obtaining a list identification result corresponding to each time interval.
S2113, screening a target identification result from the list identification result, and determining an online payment service record of each block chain node based on the target identification result; wherein the adjustment weight of the time interval corresponding to each target recognition result is not used.
It can be understood that, through the steps S2111 to S2113, the online payment service record of each blockchain node can be accurately obtained.
In a specific embodiment, in order to ensure the integrity of the network status information, in step S21, the network status information of the blockchain payment network formed by the plurality of blockchain nodes in each extraction period is determined according to each extracted set of online payment service records, which may specifically include the contents described in the following steps S2121-S2125.
Step S2121, determining user behavior characteristics corresponding to the payment behavior data of each group of online payment service records, and determining process time sequence characteristics corresponding to the service process time sequence of each group of online payment service records; the user behavior characteristic and the process time sequence characteristic respectively comprise characteristic information of a plurality of different state indication coefficients.
Step S2122, when a behavior execution function of the payment behavior data in any feature information of the user behavior features is acquired, determining feature information with a maximum state indication coefficient in the process time sequence features as target feature information;
step S2123, hooking the behavior execution function into the target characteristic information according to a network topology parameter of a block chain payment network formed by a plurality of block chain link points, so as to obtain a first parameter distribution of the behavior execution function in the target characteristic information, and generating time sequence delay data between the payment behavior data and the service flow time sequence according to the behavior execution function and the first parameter distribution of the behavior execution function.
Step S2124, taking the first parameter distribution of the behavior execution function as a reference to obtain a non-behavior execution function in the target characteristic information, hooking the non-behavior execution function to the characteristic information of the behavior execution function according to a delay variation curve corresponding to the time sequence delay data, obtaining a second parameter distribution corresponding to the non-behavior execution function in the characteristic information of the behavior execution function, and determining a network state influence factor corresponding to each group of online payment service records according to the second parameter distribution.
Step S2125, acquiring hooking path information of the behavior execution function hooking to the target characteristic information; according to the matching rate between the second parameter distribution and the unit description information corresponding to the multiple path units on the hooked path information, sequentially acquiring the network real-time state tracks corresponding to the network state influence factors in the process time sequence characteristics according to the time sequence order, stopping acquiring the network real-time state tracks in the next characteristic information until the priority of the acquired characteristic information of the network real-time state tracks in the user behavior characteristics is consistent with the priority of the network state influence factors in the user behavior characteristics, and integrating the acquired network real-time state tracks to acquire the network state information of the block chain payment network in each extraction period.
It is understood that, through the above steps S2121 to S2125, the integrity of the determined network status information can be ensured.
In one example, in order to accurately determine whether the bandwidth resources of the blockchain payment network are sufficient, the disturbance of the network status change trajectory needs to be considered, and the determination of whether the blockchain payment network has insufficient bandwidth resources based on the network status change trajectory as described in step S22 may exemplarily include the following steps S2211 to S2213.
Step S2211, determining a track information list corresponding to the network state change track.
And step S2212, listing the network resource information in the track information list according to different resource categories to obtain multiple groups of network resource information.
Step S2213, determining target network resource information with set identifier from the multiple sets of network resource information and using the target network resource information as bandwidth resource information; detecting whether the updating times of a dynamic identifier used for representing the disturbance of the network state change track in the network resource information in a set time length reach set times or not; if so, judging that the bandwidth resources of the block chain payment network are insufficient; if not, judging that the bandwidth resources of the block chain payment network are sufficient.
In this way, whether the bandwidth resource of the blockchain payment network is sufficient can be accurately determined through the steps S2211 to S2213.
In an alternative embodiment, in order to ensure the accuracy of the determined target time period, the analyzing the network status variation trajectory to calculate the target time period with insufficient bandwidth resources in the blockchain payment network, as described in step S22, may further include the following steps S2221-S2224.
Step S2221, analyzing the network state change trajectory to obtain network environment configuration data and multiple groups of state information change sets corresponding to the network state change trajectory.
Step S2222, when it is determined that a time-series node exists in the network state change trajectory based on the network environment configuration data, based on the state information change set of the network state change trajectory in the time-series node and the network configuration weight of the state information change set, calculating bandwidth resource difference information between each state information change set of the network state change trajectory in a discrete node and each state information change set of the network state change trajectory in the time-series node.
Step S2223, according to the bandwidth resource difference information, allocating the state information change set of the network state change track with the bandwidth resource allocation identification between the state information change set under the discrete node and the state information change set under the time sequence node to the time sequence node; under the condition that a plurality of state information change sets exist in discrete nodes corresponding to the network state change track, calculating bandwidth resource difference information between the state information change sets of the network state change track in the discrete nodes based on the state information change sets of the network state change track in the time sequence nodes and the network configuration weights of the state information change sets; combining the state information change sets under the discrete nodes through bandwidth resource difference information among the state information change sets, adding time interval direction information to at least one group of target state information change sets obtained through the combination on the basis of the state information change sets of the network state change tracks under the time sequence nodes and the network configuration weights of the state information change sets, and distributing the at least one group of target state information change sets under the time sequence nodes according to the time interval direction information.
Step S2224, the state information change sets under the time sequence nodes are clustered to obtain a cluster set, and the target time period with insufficient bandwidth resources in the block chain payment network is determined according to the time period characteristic queue in the cluster set.
By applying the contents described in the above steps S2221 to S2224, the accuracy of the determined target time period can be ensured.
In combination with the same inventive concept and content, please refer to fig. 3, which provides a payment network status processing method 300 based on blockchain and online service, applied in a server communicatively connected with a plurality of blockchain nodes, the apparatus includes:
the payment service processing module 310 is configured to periodically extract an online payment service record of each blockchain node, determine, according to each extracted group of online payment service records, network state information of a blockchain payment network formed by the multiple blockchain nodes in each extraction period, and integrate the network state information to obtain a network state change trajectory of the blockchain payment network;
a bandwidth resource determining module 320, configured to determine whether the blockchain payment network has insufficient bandwidth resources based on the network state change trajectory, and analyze the network state change trajectory to calculate a target time period when the blockchain payment network has insufficient bandwidth resources on the premise that it is determined that the blockchain payment network has insufficient bandwidth resources;
the split data registering module 330 is configured to generate and issue a data split instruction corresponding to each block link point according to the target time period and the data storage distribution of each block link node, and acquire and register split data uploaded by each block link point based on the corresponding data split instruction.
For the functional description of the payment transaction processing module 310, the bandwidth resource determining module 320 and the split data registering module 330, reference is made to the description of the method shown in fig. 2, and no further description is made here.
In conjunction with the same inventive concepts and content described above, a system for processing state of a payment network based on blockchain and online services is provided, the system comprising a server and blockchain nodes communicatively coupled to each other.
Wherein the server is configured to:
periodically extracting an online payment service record of each blockchain node, determining network state information of a blockchain payment network formed by the plurality of blockchain nodes in each extraction period according to each group of extracted online payment service records, and integrating the network state information to obtain a network state change track of the blockchain payment network;
judging whether the bandwidth resources of the block chain payment network are insufficient or not based on the network state change track, and analyzing the network state change track to calculate a target time period when the bandwidth resources of the block chain payment network are insufficient on the premise that the bandwidth resources of the block chain payment network are judged to be insufficient;
and generating a data splitting indication corresponding to each block chain link point according to the target time interval and the data storage distribution of each block chain node, and sending the data splitting indication to each block chain node.
Wherein the blockchain node is configured to:
uploading split data to the server based on the corresponding data split indication.
Wherein the server is further configured to:
and registering the split data.
On the basis of the above, please refer to fig. 4 in combination, which provides a server 200, comprising: a processor 210, and a memory 220 and a network interface 230 connected to the processor 210. The network interface 230 is connected to the non-volatile memory 240 of the server 200, and the processor 210 retrieves the computer program from the non-volatile memory 240 through the network interface 230 and runs the computer program through the memory 220 to perform the above method.
Furthermore, a readable storage medium applied to a computer is provided, and the readable storage medium is burned with a computer program, and the computer program realizes the method when running in the memory 220 of the server 200.
The various technical features in the above embodiments can be arbitrarily combined, so long as there is no conflict or contradiction between the combinations of the features, but the combination is limited by the space and is not described one by one, and therefore, any combination of the various technical features in the above embodiments also belongs to the scope disclosed in the present specification.
The implementation process of the functions and actions of each module in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.