CN108768672B - Data processing method, device and storage medium - Google Patents

Data processing method, device and storage medium Download PDF

Info

Publication number
CN108768672B
CN108768672B CN201810552430.2A CN201810552430A CN108768672B CN 108768672 B CN108768672 B CN 108768672B CN 201810552430 A CN201810552430 A CN 201810552430A CN 108768672 B CN108768672 B CN 108768672B
Authority
CN
China
Prior art keywords
data
data processing
block
processing
user account
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
CN201810552430.2A
Other languages
Chinese (zh)
Other versions
CN108768672A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810552430.2A priority Critical patent/CN108768672B/en
Publication of CN108768672A publication Critical patent/CN108768672A/en
Application granted granted Critical
Publication of CN108768672B publication Critical patent/CN108768672B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1485Tariff-related aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/48Secure or trusted billing, e.g. trusted elements or encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/01Details of billing arrangements
    • H04M2215/0156Secure and trusted billing, e.g. trusted elements, encryption, digital signature, codes or double check mechanisms to secure billing calculation and information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/01Details of billing arrangements
    • H04M2215/0184Details of billing arrangements involving reduced rates or discounts, e.g. time-of-day reductions, volume discounts, cell discounts, group billing, frequent calling destination(s) or user history list

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a data processing method, a data processing device and a storage medium, wherein the method comprises the following steps: receiving a query request sent by a user account through a client, querying a block chain in a server, acquiring a data processing record corresponding to the query request, and sending the data processing record to the user account. Because the value of each block in the block chain is the correct value verified by at least half of the node servers in all the node servers in the peer-to-peer network to which the server belongs, and the data processing records recorded on the blocks of the block chain are not falsifiable and counterfeitable records, the user account can obtain the real and effective data processing records, and the user experience is good.

Description

Data processing method, device and storage medium
Technical Field
The present application relates to the field of mobile communications technologies, and in particular, to a data processing method, an apparatus, and a storage medium.
Background
With the rapid development of communication technology, people generally use the traffic data of the mobile terminal to obtain information, and operators charge fees according to the traffic data consumed by the mobile terminal. Generally, a user purchases a traffic package service customized by an operator according to the actual situation of the user, but the usage situation of the traffic data of the user every month cannot be completely unified, that is, the traffic data in a certain monthly traffic package is not enough, which causes a problem of traffic antagonism, and the traffic data in another monthly traffic package is not enough, which causes a situation of traffic redundancy.
At the present time, traffic banking has emerged in order to solve the monthly traffic surplus or traffic antagonism problem. The flow bank is a flow management and transaction platform for 3G and 4G users, and the users can charge flow for the mobile phone through the flow bank during flow antagonism, and can give flow data to friends in the form of flow coins and share flow red packets for the friends when the flow is surplus.
However, the traffic bank does not have a clear transaction information publishing manner, after the traffic bank performs traffic transaction, information recorded by an operator is easily attacked by malicious tampering and the like, and when a doubtful is generated on an exchange record by a traffic exchange party, a real and effective exchange record cannot be provided, so that user experience is poor.
Disclosure of Invention
The application provides a data processing method, a data processing device and a storage medium, and aims to solve the problems that an existing flow bank cannot provide a real and effective exchange record and is poor in user experience after doubts are generated on the exchange record by flow exchange parties.
A first aspect of the present application provides a data processing method, including:
receiving a query request sent by a user account through a client, wherein the query request comprises: a data processing time period and a data processing type;
inquiring a block chain in a server, and acquiring a data processing record corresponding to the inquiry request, wherein the value of each block in the block chain is the value verified to be correct by at least half of node servers in all node servers in a peer-to-peer network to which the server belongs;
and sending the data processing record to the user account.
Optionally, in an embodiment of the present application, the method further includes:
receiving a data processing request sent by the user account through the client, wherein the data processing request comprises: flow data to be processed, point data to be processed and user account identification;
executing processing operation according to the data processing request to generate data processing information, wherein the data processing information comprises: the method comprises the steps of identifying a user account, processing time, variable quantity of flow data or variable quantity of integral data, total quantity of the integral data after processing, allowance of the flow data after processing, a digital signature of a user and a digital signature of an operator;
acquiring a block generated according to the data processing information;
linking the block to the end of a block chain of all node servers in a peer-to-peer network to which the server belongs;
and updating the flow data allowance and the total accumulated data amount corresponding to the user account.
Optionally, in the foregoing embodiment of the present application, the acquiring the block generated according to the data processing information includes:
broadcasting the data processing information to all the node servers;
determining a processing server for generating the block in all the node servers based on a rotation order;
and acquiring the block generated by the processing server according to the data processing information.
Optionally, in the above embodiment of the present application, before the obtaining the block generated by the processing server according to the data processing information, the method further includes:
receiving the value of the block broadcasted to all the node servers by the processing server after the block is generated;
verifying whether the value of the block is correct or not according to the data processing information;
the acquiring the block generated by the processing server according to the data processing information includes:
and when the value of the block is verified to be correct and at least half of the node servers in all the node servers verify that the value of the block is correct, acquiring the block generated by the processing server according to the data processing information.
Optionally, in another embodiment of the present application, before the executing the processing operation according to the data processing request to generate the data processing information, the method further includes:
acquiring the total amount of point data and the allowance of flow data of the user account;
when the data processing request is a point data exchange flow data request, determining that the point data to be processed is less than or equal to the total point data amount of the user account;
and when the data processing request is a request for exchanging the flow data into the point data, determining that the flow data to be processed is less than or equal to the flow data allowance of the user account.
Optionally, in the above embodiment of the present application, the acquiring the total amount of point data and the remaining amount of flow data of the user account includes:
acquiring the total amount of point data of the user account by inquiring the latest record of the block chain;
and acquiring the flow data allowance of the user account by inquiring a database of the server.
A second aspect of the present application provides a data processing apparatus comprising: the device comprises a receiving module, a processing module and a sending module;
the receiving module is configured to receive a query request sent by a user account through a client, where the query request includes: a data processing time period and a data processing type;
the processing module is used for inquiring a block chain in a server and acquiring a data processing record corresponding to the inquiry request, wherein the value of each block in the block chain is a value verified to be correct by at least half of node servers in all node servers in a peer-to-peer network to which the server belongs;
and the sending module is used for sending the data processing record to the user account.
Optionally, in an embodiment of the application, the receiving module is further configured to receive a data processing request sent by the user account through the client, where the data processing request includes: flow data to be processed, point data to be processed and user account identification;
the processing module is further configured to execute a processing operation according to the data processing request, generate data processing information, acquire a block generated according to the data processing information, link the block to the ends of block chains of all node servers in the peer-to-peer network to which the server belongs, and update the traffic data allowance and the total credit data amount corresponding to the user account;
wherein the data processing information comprises: the system comprises a user account identification, processing time, flow data variable quantity or integral data variable quantity, total quantity of integral data after processing, allowance of flow data after processing, a user digital signature and an operator digital signature.
Optionally, in the above embodiment of the present application, the processing module is configured to acquire a block generated according to the data processing information, and specifically includes:
the processing module is configured to broadcast the data processing information to all the node servers through the sending module, determine, based on a rotation order, a processing server used for generating the block in all the node servers, and acquire the block generated by the processing server according to the data processing information.
Optionally, in the foregoing embodiment of the present application, the receiving module is further configured to receive, before the processing module obtains the block generated by the processing server according to the data processing information, a value of the block broadcasted to all the node servers by the processing server after the block is generated;
the processing module is further configured to verify whether the value of the block is correct according to the data processing information;
the processing module is configured to acquire the block generated by the processing server according to the data processing information, and specifically includes:
and the processing module is used for acquiring the block generated by the processing server according to the data processing information when the value of the block is verified to be correct and at least half of the node servers in all the node servers verify that the value of the block is correct.
Optionally, in the above embodiment of the application, the processing module is further configured to, before performing a processing operation according to the data processing request to generate data processing information, obtain a total credit data amount and a traffic data allowance of the user account, determine that the credit data to be processed is less than or equal to the total credit data amount of the user account when the data processing request is a credit data exchange traffic data request, and determine that the traffic data to be processed is less than or equal to the traffic data allowance of the user account when the data processing request is a traffic data exchange credit data request.
Optionally, in the above embodiment of the present application, the processing module is configured to obtain a total amount of point data and a remaining amount of flow data of the user account, and specifically includes:
the processing module is used for acquiring the total amount of the point data of the user account by inquiring the latest record of the block chain, and acquiring the flow data allowance of the user account by inquiring the database of the server.
A third aspect of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the method as described above in the first aspect and embodiments of the first aspect.
According to the data processing method, the data processing device and the storage medium provided by the embodiment of the application, the query request sent by the user account through the client is received, the block chain in the server is queried, the data processing record corresponding to the query request is obtained, and the data processing record is sent to the user account.
Drawings
Fig. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a first embodiment of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a second data processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a third embodiment of a data processing method according to the present application;
fig. 5 is a schematic flowchart of a fourth embodiment of a data processing method according to the present application;
fig. 6 is a schematic structural diagram of an embodiment of a data processing apparatus according to the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The data processing method provided by the following embodiments of the present application can be applied to a data processing system. Fig. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present application. As shown in FIG. 1, the data processing system may include a client group 11 and a server group 12 for serving the client group 11. Optionally, the client group 11 includes at least one client 110 corresponding to a user account, and the server group 12 includes at least one node server 120 disposed in a peer-to-peer network. Fig. 1 exemplarily shows that the client group 11 includes 3 clients 110 and the server group 12 includes 5 node servers 120.
Specifically, the data processing system employs a client/server (C/S) architecture model. The client is an application program installed on a terminal device (a mobile phone or a computer), and after a user logs in the client through a user account consisting of a user name, a password and the like, the user can inquire, exchange and digitally sign the owned flow data and the acquired reward point data in the client.
Optionally, in this embodiment of the present application, the processing record of the flow data and the point data is recorded on the block of the blockchain, so that the user may also query and supervise the processing information recorded on the blockchain by logging in the user account on the client.
Optionally, the server group is composed of a plurality of node servers of the operator. That is, multiple independent node servers accessed by an operator may form a P2P peer-to-peer network. Optionally, the P2P network formed by all the node servers accessed by the operator together may perform the following operations: the generation and maintenance of blocks in the blockchain, and the provision of services for user accounts. In the embodiment of the application, generation of each tile in the tile chain is performed by all the node servers in the P2P peer-to-peer network in turn, so that the problem that processing information recorded by an operator is attacked by malicious tampering and the like can be avoided. The technical solution of the present application will be described in detail below with reference to specific examples.
It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flowchart of a first embodiment of a data processing method according to an embodiment of the present application. The data processing method can be applied to the data processing system shown in fig. 1. Optionally, the execution subject of the data processing method may be any node server in the server group in the data processing system shown in fig. 1. As shown in fig. 2, the data processing method provided in the embodiment of the present application may include the following steps:
step 21: and receiving a query request sent by a user account through a client.
Wherein the query request includes: data processing time period and data processing type.
In the embodiment of the application, when a user wants to query processing records of point data and flow data, the user can log in a client through a user account and send a query request to an operator server group through the client. Optionally, the query request may include a data processing time period, so that a user may select to query a data processing record of which data processing time period according to a human-computer interaction interface of the terminal device. The query request can also comprise a data processing type, so that a user can select which type of data processing record to query according to own requirements.
For example, when the user wants to query the data processing record of the traffic data converted into the point data in the last 3 months, in the query request sent by the client through the user account, the data processing time period is the last 3 months, and the data processing type is the traffic data converted into the point data.
It should be noted that the query request may further include other contents, which may be determined according to actual requirements and are not described herein again.
Step 22: and inquiring a block chain in the server to obtain the data processing record corresponding to the inquiry request, wherein the value of each block in the block chain is the value verified to be correct by at least half of the node servers in all the node servers in the peer-to-peer network to which the server belongs.
Alternatively, the server may be any node server in a peer-to-peer network consisting of a group of servers accessed by an operator. In the embodiment of the application, a block chain is arranged in all node servers in the peer-to-peer network to which the server belongs, a data processing record confirmed by a user and an operator is recorded in each block of each block chain, and the value of each block is a value verified to be correct by at least half of the number of the node servers in all the node servers in the peer-to-peer network to which the server belongs, that is, the data processing record stored in each block is determined by a server group accessed by the operator, so that the correctness of the data processing record in storage is ensured.
In addition, since the block chain is a chain data structure formed by combining the data blocks in a time sequence in a sequential connection manner, and is a distributed account book which is cryptographically guaranteed to be untrustable and untrustworthy, the data processing records recorded on the blocks of the block chain are untrustable and untrustworthy records, and authenticity of information such as the data processing records is guaranteed. That is, once the data processing record is stored in the block of the block chain, the data processing record can be effectively ensured not to be maliciously tampered, and the validity and authenticity of the data processing record are further ensured, so that when the user and the operator make doubts about the data processing record, the real and effective data processing record can be obtained by inquiring the block chain in the server, and the user experience is improved.
Step 23: and sending the data processing record to a user account.
Optionally, when the server in the server group accessed by the operator acquires the data processing record corresponding to the query request from the blockchain, the data processing record may be sent to the user account, so that the user account may acquire the real and effective data processing record.
Optionally, when the query request sent by the user account through the client carries the user account identifier, the server may directly send the data processing record corresponding to the query request to the user account corresponding to the user account identifier, so that the user can check the data processing record.
According to the data processing method provided by the embodiment of the application, the query request sent by the user account through the client is received, the block chain in the server is queried, the data processing record corresponding to the query request is obtained, and the data processing record is sent to the user account.
Optionally, on the basis of the foregoing embodiment, fig. 3 is a schematic flow chart of a second embodiment of the data processing method provided in the embodiment of the present application. As shown in fig. 3, the data processing method provided in the embodiment of the present application may further include the following steps:
step 31: and receiving a data processing request sent by a user account through a client.
Wherein the data processing request comprises: flow data to be processed, point data to be processed and user account identification.
In the embodiment of the present application, as an example, when a user account has a surplus in traffic for a certain period of time, the user may log in a client through the user account, and send a data processing request for exchanging traffic data into point data to a server group accessed by an operator through the client.
As another example, when the user account has a traffic restriction for a certain period of time, the user may also log in to the client through the user account, and send a data processing request for exchanging the credit data for the traffic data to the server group accessed by the operator through the client.
Optionally, whether the data processing request is a data processing request for converting the traffic data into the point data or a data processing request for converting the point data into the traffic data, the data processing request needs to include: the flow data to be processed, the point data to be processed and the user account identification. Optionally, the user account identifier may be a user digital signature, so that integrity of data processing request transmission can be ensured, identity authentication of a sender is realized, and problems of repudiation in transactions are prevented.
For example, when a user initiates a request for exchanging traffic data and point data through a client, the user may select information such as the traffic data and the point data to be exchanged, that is, how much traffic data is consumed to exchange how much point data, or how much point data is consumed to exchange how much traffic data. Optionally, after the information of the flow data to be exchanged, the credit data and the like is digitally signed by the user, a data processing request (the user account, the flow (+ or-), the credit (-or +), and the user digital signature) to be exchanged is formed and sent to the corresponding operator server, and the operator server performs auditing, that is, whether the user account has enough flow data allowance, credit data total amount and the like is audited.
Step 32: and executing the processing operation according to the data processing request to generate data processing information.
Wherein the data processing information comprises: the system comprises a user account identification, processing time, flow data variable quantity or integral data variable quantity, total quantity of integral data after processing, allowance of flow data after processing, a user digital signature and an operator digital signature.
In this embodiment of the application, when the user account has sufficient total point data amount and remaining flow data amount, the server may execute corresponding processing operation according to the data processing request, that is, consume corresponding flow data to exchange for a certain amount of point data, or consume corresponding point data to exchange for a certain amount of flow data. Optionally, after the server executes the processing operation according to the data processing request, data processing information including information changes such as integral data and traffic data is generated.
Optionally, the data processing information may include a user account identifier, a processing time, a traffic data variation or an integral data variation, a total amount of processed integral data and a remaining amount of processed traffic data, a user digital signature, an operator digital signature, and the like. The user account identifier is used for identifying a certain user (for example, a mobile phone number), the processing time is used for indicating the occurrence time of mutual exchange of the flow data and the integral data, the flow data variable quantity or the integral data variable quantity indicates the flow data quantity or the integral data quantity consumed by the current processing operation, the added integral data quantity or the flow data quantity, and the total quantity of the processed integral data and the residual quantity of the processed flow data indicate the total quantity of the integral data and the total quantity of the flow data of the user account after the data processing request is executed; the user digital signature and the operator digital signature are respectively used for uniquely identifying a user account and an operator participating in data processing operation.
It should be noted that, in the embodiment of the present application, before this step, that is, before performing a processing operation according to the data processing request to generate data processing information, the server further needs to perform the following operations:
(1) and acquiring the total amount of the point data and the flow data allowance of the user account.
Specifically, the total amount of the point data of the user account may be obtained by querying the latest record of the blockchain, and the flow data allowance of the user account may be obtained by querying the database of the server.
Optionally, since the block of the block chain stores data processing information for executing the processing operation each time, and the data processing information includes the total amount of the integral data processed each time and the remaining amount of the flow data processed each time, the query may be performed from the end of the block chain forward in sequence until a latest record on the block chain is found, where the latest record is the total amount of the integral data of the user account before the user account does not initiate the data processing request of the time.
Optionally, when the server receives the data processing request, the server may retrieve the database in the server to obtain the traffic data allowance of the user account.
(2) And when the data processing request is a point data exchange flow data request, determining that the point data to be processed is less than or equal to the total point data amount of the user account.
As an example, when the traffic of the user account is antagonistic, the user may send a request for exchanging point data into the traffic data to the server through the client, that is, the point data of the user account may be used to exchange the traffic data, at this time, it needs to be determined whether the point data to be processed is less than or equal to the total amount of the point data of the user account, and only when the point data to be processed is less than or equal to the total amount of the point data of the user account, the server may perform a corresponding processing operation according to the data processing request.
(3) And when the data processing request is a request for exchanging the flow data into the point data, determining that the flow data to be processed is less than or equal to the flow data allowance of the user account.
As another example, when the traffic of the user account is surplus, the user may send a request for exchanging the traffic data into the point data to the server through the client, that is, the traffic data of the user account may be used to exchange the point data, at this time, it needs to be determined whether the traffic data to be processed is less than or equal to the traffic data margin of the user account, and only when the traffic data to be processed is less than or equal to the traffic data margin of the user account, the server may execute the corresponding processing operation according to the data processing request.
Optionally, as another example, when the data processing request is a request for converting point data into flow data, but the to-be-processed point data is greater than the total amount of point data of the user account, or when the data processing request is a request for converting flow data into point data, but the to-be-processed flow data is greater than the flow data allowance of the user account, at this time, the data processing request cannot pass the audit of the server, and at this time, the server feeds back the reason of the inoperability to the user account.
Step 33: and acquiring the block generated according to the data processing information.
In this embodiment, after the server performs the processing operation to generate the data processing information according to the data processing request, in this case, one server may be determined from a server group accessed by an operator (in this embodiment, the server is defined as a processing server), and after the processing server generates the block according to the data processing information, the server may obtain the block. A
Optionally, as an example, the processing server may also be an execution main body of the data processing method, in this case, the server may directly generate a block according to the data processing information, and then obtain the block.
Step 34: and linking the blocks to the tail ends of the block chains of all the node servers in the peer-to-peer network to which the server belongs.
After the server generates the block according to the data processing information, in order to ensure that the generated data processing information is not maliciously tampered, the block generated this time may be linked to the ends of the blockchains of all node servers in the peer-to-peer network to which the server belongs according to the sequence of the blockchain record data processing information, so that all the node servers store the data processing record, and the authenticity of the data processing record is further ensured.
Step 35: and updating the flow data allowance and the total amount of the integral data corresponding to the user account.
Optionally, after the data processing request is executed, the total amount of the traffic data and the total amount of the integral data in the user account are changed, so that after the block generated according to the data processing information is linked to the block chains of all the node servers, the traffic data margin and the total amount of the integral data corresponding to the user account need to be updated to ensure the correctness of the traffic data margin and the total amount of the integral data of the user account.
According to the data processing method provided by the embodiment of the application, the data processing information is generated by receiving the data processing request sent by the user account through the client and executing the processing operation according to the data processing request, the block generated according to the data processing information is obtained and is linked to the tail ends of the block chains of all node servers in the peer-to-peer network to which the server belongs, and the flow data allowance and the total integral data amount corresponding to the user account are updated. According to the scheme, a block chain technology is utilized, redundant flow data of a user are converted into integral data, or the integral data are converted into the flow data, and the basis is laid for timely, efficient and accurate data processing record follow-up provision by recording the flow data and the processing information of the integral data on the block chain.
Optionally, on the basis of the embodiment shown in fig. 3, fig. 4 is a schematic flow chart of a third embodiment of a data processing method provided in the embodiment of the present application. As shown in fig. 4, the step 33 (acquiring the block generated according to the data processing information) may include the steps of:
step 41: and broadcasting the data processing information to all the node servers.
In the embodiment of the application, the server group accessed by the operator consists of a plurality of node servers in the peer-to-peer network. Thus, after the server performs a processing operation according to the data processing request, the generated data processing information may be broadcast to all node servers, on the one hand, after determining the processing server used to generate the tile, so that the processing server may generate the tile accordingly, and on the other hand, all node servers may verify the value of the tile generated by the processing server according to the received data processing information.
Step 42: based on the rotation order, a processing server for generating the above-described tile is determined among all the node servers.
Optionally, to avoid the server in the server group from being counterfeited, the processing server for generating the block may be determined from all the node servers based on the wheel-like sequence, that is, all the node servers in the server group may generate the parameter block, thereby avoiding the problem that the block generated by a single server is easy to be tampered.
Step 43: and acquiring the block generated by the processing server according to the data processing information.
Optionally, after determining the processing server generating the block based on the rotation order, the processing server performs statistics, packaging, and calculation on the generated data processing information to generate the corresponding block. Optionally, after the processing server generates the block, other servers in the server group accessed by the operator may obtain the block.
According to the data processing method provided by the embodiment of the application, the data processing information is broadcasted to all the node servers, the processing servers used for generating the blocks are determined in all the node servers based on the rotation sequence, and the blocks generated by the processing servers according to the data processing information are acquired, so that the blocks acquired by the servers are generated from the processing servers determined in the server group based on the rotation sequence, the correctness of the generated blocks is ensured, and the problem of possible errors of data processing records can be correspondingly avoided.
Optionally, fig. 5 is a schematic flow chart of a fourth embodiment of the data processing method provided in the embodiment of the present application. The present application is a further description of the data processing method based on the above-mentioned embodiment shown in fig. 4. As shown in fig. 5, before the step 43 (acquiring the block generated by the processing server according to the data processing information), the method may further include the following steps:
step 51: and receiving the value of the block broadcasted to all the node servers by the processing server after the block is generated.
In this embodiment, when the processing server generates the block, the processing server may calculate values of all the approved data processing information in the block according to the received data processing information, where the values are the values of the block. Alternatively, the value of the block may be a hash value of the block, that is, a hash value of all the approved data processing information in the block.
After the processing server generates the chunk, the processing server may broadcast the value of the chunk to all node servers in the peer-to-peer network, so that other node servers verify whether the value of the chunk is correct.
Step 52: verifying whether the value of the block is correct or not according to the data processing information;
optionally, because the generated data processing information and the value of the tile are both broadcast to the peer-to-peer network, all node servers in the peer-to-peer network may obtain the data processing information and the value of the tile, and may verify whether the value of the tile is correct according to the received data processing information, and broadcast the verification result to the peer-to-peer network.
Accordingly, the step 43 (obtaining the block generated by the processing server according to the data processing information) can be specifically implemented as follows:
step 53: and when the value of the block is verified to be correct and at least half of the node servers in all the node servers verify that the value of the block is correct, acquiring the block generated by the processing server according to the data processing information.
In this embodiment, each node server broadcasts the verification result to the peer-to-peer network, so that all node servers in the peer-to-peer network can receive the verification results of other servers, and when the processor executing the data processing method verifies that the value of the block is correct and receives that at least half of the node servers in all the node servers in the peer-to-peer network verify that the value of the block is correct, the value of the block is determined to be correct, at this time, the block generated by the processing server according to the data processing information is acquired, and the block can be linked to the end of the block chain of all the node servers.
According to the data processing method provided by the embodiment of the application, before the block generated by the processing server according to the data processing information is obtained, the value of the block broadcasted to all node servers by the processing server after the block is generated is firstly received, the data processing information is obtained, whether the value of the block is correct is verified, and when the value of the block is verified to be correct and at least half of the node servers in all the node servers verify that the value of the block is correct, the block generated by the processing server according to the data processing information is obtained, so that the correctness of the data processing information stored in the block can be ensured, a real and effective data processing record can be provided when a user account initiates an inquiry request, and the user experience is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of an embodiment of a data processing apparatus according to the present application. The data processing device is applied to one server in a server group accessed by an operator. As shown in fig. 6, the data processing apparatus may include: a receiving module 61, a processing module 62 and a transmitting module 63.
The receiving module 61 is configured to receive an inquiry request sent by a user account through a client, where the inquiry request includes: a data processing time period and a data processing type;
the processing module 62 is configured to query a block chain in a server, and obtain a data processing record corresponding to the query request, where a value of each block in the block chain is a value verified to be correct by at least half of node servers in all node servers in a peer-to-peer network to which the server belongs;
the sending module 63 is configured to send the data processing record to the user account.
Optionally, in an embodiment of the application, the receiving module 61 is further configured to receive a data processing request sent by the user account through the client, where the data processing request includes: flow data to be processed, point data to be processed and user account identification;
the processing module 62 is further configured to execute a processing operation according to the data processing request, generate data processing information, obtain a block generated according to the data processing information, link the block to the ends of block chains of all node servers in the peer-to-peer network to which the server belongs, and update the traffic data allowance and the total credit data amount corresponding to the user account;
wherein the data processing information comprises: the system comprises a user account identification, processing time, flow data variable quantity or integral data variable quantity, total quantity of integral data after processing, allowance of flow data after processing, a user digital signature and an operator digital signature.
Optionally, in the above embodiment of the present application, the processing module 62 is configured to acquire a block generated according to the data processing information, and specifically includes:
the processing module 62 is configured to broadcast the data processing information to all the node servers through the sending module 63, determine, based on a rotation order, a processing server used for generating the block among all the node servers, and acquire the block generated by the processing server according to the data processing information.
Optionally, in the foregoing embodiment of the present application, the receiving module 61 is further configured to receive, before the processing module 62 obtains the block generated by the processing server according to the data processing information, a value of the block broadcasted to all the node servers by the processing server after the block is generated;
the processing module 62 is further configured to verify whether the value of the block is correct according to the data processing information;
the processing module 62 is configured to acquire the block generated by the processing server according to the data processing information, and specifically includes:
the processing module 62 is configured to obtain the block generated by the processing server according to the data processing information when the value of the block is verified to be correct and at least half of the node servers in all the node servers verify that the value of the block is correct.
Optionally, in any embodiment of the application, the processing module 62 is further configured to, before performing a processing operation according to the data processing request to generate data processing information, obtain a total credit data amount and a traffic data allowance of the user account, determine that the credit data to be processed is less than or equal to the total credit data amount of the user account when the data processing request is a credit data exchange traffic data request, and determine that the traffic data to be processed is less than or equal to the traffic data allowance of the user account when the data processing request is a traffic data exchange credit data request.
Optionally, in the above embodiment of the present application, the processing module 62 is configured to obtain the total amount of point data and the remaining amount of flow data of the user account, and specifically includes:
the processing module 62 is configured to acquire the total amount of point data of the user account by querying the latest record of the block chain, and acquire the flow data allowance of the user account by querying the database of the server.
The data processing apparatus provided in this embodiment may be used to execute the implementation schemes of the method embodiments shown in fig. 2 to fig. 5, and the specific implementation manner and the technical effect are similar and will not be described again here.
Embodiments of the present application further provide a storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the method according to the embodiments shown in fig. 2 to 5.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A data processing method, comprising:
receiving a query request sent by a user account through a client, wherein the query request comprises: a data processing time period and a data processing type;
inquiring a block chain in a server, and acquiring a data processing record corresponding to the inquiry request, wherein the value of each block in the block chain is the value verified to be correct by at least half of node servers in all node servers in a peer-to-peer network to which the server belongs; the generation of each block in each block chain is carried out by all node servers in the peer-to-peer network in turn based on a rotation sequence;
sending the data processing record to the user account;
the method further comprises the following steps:
receiving a data processing request sent by the user account through the client, wherein the data processing request comprises: flow data to be processed, point data to be processed and user account identification;
executing processing operation according to the data processing request to generate data processing information, wherein the data processing information comprises: the method comprises the steps of identifying a user account, processing time, variable quantity of flow data or variable quantity of integral data, total quantity of the integral data after processing, allowance of the flow data after processing, a digital signature of a user and a digital signature of an operator;
acquiring a block generated according to the data processing information;
linking the block to the end of a block chain of all node servers in a peer-to-peer network to which the server belongs;
and updating the flow data allowance and the total accumulated data amount corresponding to the user account.
2. The method of claim 1, wherein obtaining the block generated according to the data processing information comprises:
broadcasting the data processing information to all the node servers;
determining a processing server for generating the block in all the node servers based on a rotation order;
and acquiring the block generated by the processing server according to the data processing information.
3. The method according to claim 2, wherein before the obtaining the block generated by the processing server according to the data processing information, further comprising:
receiving the value of the block broadcasted to all the node servers by the processing server after the block is generated;
verifying whether the value of the block is correct or not according to the data processing information;
the acquiring the block generated by the processing server according to the data processing information includes:
and when the value of the block is verified to be correct and at least half of the node servers in all the node servers verify that the value of the block is correct, acquiring the block generated by the processing server according to the data processing information.
4. The method according to any of claims 1-3, further comprising, prior to said performing a processing operation according to said data processing request to generate data processing information:
acquiring the total amount of point data and the allowance of flow data of the user account;
when the data processing request is a point data exchange flow data request, determining that the point data to be processed is less than or equal to the total point data amount of the user account;
and when the data processing request is a request for exchanging the flow data into the point data, determining that the flow data to be processed is less than or equal to the flow data allowance of the user account.
5. The method of claim 4, wherein the obtaining of the total amount of point data and the remaining amount of flow data of the user account comprises:
acquiring the total amount of point data of the user account by inquiring the latest record of the block chain;
and acquiring the flow data allowance of the user account by inquiring a database of the server.
6. A data processing apparatus, comprising: the device comprises a receiving module, a processing module and a sending module;
the receiving module is configured to receive a query request sent by a user account through a client, where the query request includes: a data processing time period and a data processing type;
the processing module is used for inquiring a block chain in a server and acquiring a data processing record corresponding to the inquiry request, wherein the value of each block in the block chain is a value verified to be correct by at least half of node servers in all node servers in a peer-to-peer network to which the server belongs; the generation of each block in each block chain is carried out by all node servers in the peer-to-peer network in turn based on a rotation sequence;
the sending module is used for sending the data processing record to the user account;
the receiving module is further configured to receive a data processing request sent by the user account through the client, where the data processing request includes: flow data to be processed, point data to be processed and user account identification;
the processing module is further configured to execute a processing operation according to the data processing request, generate data processing information, acquire a block generated according to the data processing information, link the block to the ends of block chains of all node servers in the peer-to-peer network to which the server belongs, and update the traffic data allowance and the total credit data amount corresponding to the user account;
wherein the data processing information comprises: the system comprises a user account identification, processing time, flow data variable quantity or integral data variable quantity, total quantity of integral data after processing, allowance of flow data after processing, a user digital signature and an operator digital signature.
7. The apparatus of claim 6, wherein the processing module is configured to obtain the block generated according to the data processing information, and specifically:
the processing module is configured to broadcast the data processing information to all the node servers through the sending module, determine, based on a rotation order, a processing server used for generating the block in all the node servers, and acquire the block generated by the processing server according to the data processing information.
8. The apparatus of claim 7,
the receiving module is further configured to receive, before the processing module obtains the block generated by the processing server according to the data processing information, a value of the block broadcast by the processing server to all the node servers after the block is generated;
the processing module is further configured to verify whether the value of the block is correct according to the data processing information;
the processing module is configured to acquire the block generated by the processing server according to the data processing information, and specifically includes:
and the processing module is used for acquiring the block generated by the processing server according to the data processing information when the value of the block is verified to be correct and at least half of the node servers in all the node servers verify that the value of the block is correct.
9. The apparatus according to any one of claims 6 to 8,
the processing module is further configured to, before performing a processing operation according to the data processing request and generating data processing information, obtain a total credit data amount and a traffic data allowance of the user account, determine that the credit data to be processed is less than or equal to the total credit data amount of the user account when the data processing request is a credit data exchange traffic data request, and determine that the traffic data to be processed is less than or equal to the traffic data allowance of the user account when the data processing request is a traffic data exchange credit data request.
10. The apparatus according to claim 9, wherein the processing module is configured to obtain a total amount of point data and a remaining amount of flow data of the user account, and specifically:
the processing module is used for acquiring the total amount of the point data of the user account by inquiring the latest record of the block chain, and acquiring the flow data allowance of the user account by inquiring the database of the server.
11. A storage medium having stored thereon a computer program, characterized in that the program, when being executed by a processor, carries out the method according to any one of the claims 1-5.
CN201810552430.2A 2018-05-31 2018-05-31 Data processing method, device and storage medium Active CN108768672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810552430.2A CN108768672B (en) 2018-05-31 2018-05-31 Data processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810552430.2A CN108768672B (en) 2018-05-31 2018-05-31 Data processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN108768672A CN108768672A (en) 2018-11-06
CN108768672B true CN108768672B (en) 2021-10-08

Family

ID=64001496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810552430.2A Active CN108768672B (en) 2018-05-31 2018-05-31 Data processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN108768672B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111355594B (en) * 2018-12-21 2024-04-30 西安佰才邦网络技术有限公司 Block chain based traffic statistics method and equipment
CN111625532A (en) * 2019-02-28 2020-09-04 百度在线网络技术(北京)有限公司 Data blood relationship processing method and device, computer equipment and storage medium
CN110336778A (en) * 2019-05-06 2019-10-15 中国联合网络通信集团有限公司 A kind of identity identifying method, apparatus and system
CN111444280B (en) * 2020-04-13 2024-04-16 中国银行股份有限公司 Data processing system
CN114493718A (en) * 2022-02-14 2022-05-13 刘�英 Block chain-based user traffic point generation and transaction method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8595394B1 (en) * 2003-06-26 2013-11-26 Nvidia Corporation Method and system for dynamic buffering of disk I/O command chains
CN106878071A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain common recognition mechanism based on Raft algorithms
CN106991164A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and electronic equipment that finance data is handled are used for based on block chain
CN107105440A (en) * 2016-02-19 2017-08-29 中国移动通信集团安徽有限公司 A kind of information processing method, device and business operation support system
CN107135661A (en) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 Data processing method, device, system and information collecting device
CN107995003A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 The charging and settlement method of international roaming communication, relevant apparatus and distributed system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10305694B2 (en) * 2016-05-27 2019-05-28 Mastercard International Incorporated Method and system for efficient distribution of configuration data utilizing permissioned blockchain technology
US10417217B2 (en) * 2016-08-05 2019-09-17 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization
CN106796685A (en) * 2016-12-30 2017-05-31 深圳前海达闼云端智能科技有限公司 Block chain authority control method and device and node equipment
CN106716421B (en) * 2016-12-30 2020-03-31 深圳前海达闼云端智能科技有限公司 Data query method and device and node equipment
CN107292181B (en) * 2017-06-20 2020-05-19 无锡井通网络科技有限公司 Database system based on block chain and using method using system
CN107993149B (en) * 2017-12-18 2022-02-01 深圳前海微众银行股份有限公司 Account information management method, system and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8595394B1 (en) * 2003-06-26 2013-11-26 Nvidia Corporation Method and system for dynamic buffering of disk I/O command chains
CN107105440A (en) * 2016-02-19 2017-08-29 中国移动通信集团安徽有限公司 A kind of information processing method, device and business operation support system
CN107995003A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 The charging and settlement method of international roaming communication, relevant apparatus and distributed system
CN107135661A (en) * 2016-12-26 2017-09-05 深圳前海达闼云端智能科技有限公司 Data processing method, device, system and information collecting device
CN106878071A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain common recognition mechanism based on Raft algorithms
CN106991164A (en) * 2017-03-31 2017-07-28 北京京东金融科技控股有限公司 Method, device and electronic equipment that finance data is handled are used for based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
区块链技术原理、应用领域及挑战;李董,魏进武;《电信科学》;20161220;第22页 *

Also Published As

Publication number Publication date
CN108768672A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108768672B (en) Data processing method, device and storage medium
US10922772B2 (en) Copyright authorization management method and system
CN109246211B (en) Resource uploading and resource requesting method in block chain
CN108681965B (en) Block chain network transaction processing method and device for offline node
CN111427957B (en) Block chain voting information verification method, device, equipment and storage medium
CN102573112B (en) Telecommunication network capability opening method, system and alliance support platform
CN108681943A (en) A kind of data processing method, device, equipment and the storage medium of block chain network
CN112235420B (en) Data synchronization method, system and related equipment based on block chain
CN111713088B (en) Method and device for processing data and equipment for processing data
CN109146483B (en) Credit recording method and system based on block chain network
CN110417561B (en) Block chain-based distributed charging method, device and system
CN111405505A (en) Bill processing method, system and storage medium for roaming service
JP6946066B2 (en) Gateway device, usage management system, usage control method and usage control program
CN114329290B (en) Capability open platform and authorized access method thereof
CN109377220B (en) Block chain-based media data transaction method and system and computer storage medium
CN113255014B (en) Data processing method based on block chain and related equipment
CN110599142A (en) Data storage method and device, computer equipment and storage medium
CN110660466A (en) Personal health data chaining method and system of Internet of things by combining block chains
CN111049806A (en) Joint authority control method and device, electronic equipment and storage medium
CN111444261A (en) Enterprise data sharing model based on block chain
CN111383016A (en) Electronic invoice data processing method, device and system based on private chain
CN113779642B (en) Data processing method, device and system thereof, and electronic equipment
CN115913802A (en) Service data processing method and device, electronic equipment and storage medium
CN110808841B (en) Communication system based on block chain network and communication method thereof
CN109729074B (en) Audio data encryption and peer-to-peer storage method and system

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