WO2021209043A1 - Blockchain-based traffic statistics - Google Patents

Blockchain-based traffic statistics Download PDF

Info

Publication number
WO2021209043A1
WO2021209043A1 PCT/CN2021/087802 CN2021087802W WO2021209043A1 WO 2021209043 A1 WO2021209043 A1 WO 2021209043A1 CN 2021087802 W CN2021087802 W CN 2021087802W WO 2021209043 A1 WO2021209043 A1 WO 2021209043A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
data
transaction
transfer transaction
target distribution
Prior art date
Application number
PCT/CN2021/087802
Other languages
French (fr)
Chinese (zh)
Inventor
段金明
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021209043A1 publication Critical patent/WO2021209043A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Definitions

  • One or more embodiments of this specification relate to the field of blockchain technology, and in particular to blockchain-based traffic statistics.
  • Blockchain technology also known as distributed ledger technology, is an emerging technology in which several computing devices participate in "bookkeeping" and jointly maintain a complete distributed database. Because the blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and the rapid data synchronization between computing devices, the blockchain technology has been widely used in many fields. To apply.
  • one or more embodiments of this specification provide a block chain-based traffic statistics system, method, and device.
  • a block chain-based traffic statistics system including: a certificate issuer, the certificate issuer is used to submit information to the blockchain network for service providers
  • the first transfer transaction the first transfer transaction includes the first transaction amount
  • the service provider the service provider is used to submit to the blockchain network based on the service data requested by the service requester
  • the second transfer transaction of the service requester the second transaction amount of the second transfer transaction corresponds to the data volume of the service data
  • a content distribution network where each node in the content distribution network is used to select the target
  • the service data is transmitted to the service requester
  • the service requester the service requester is used to transmit the service data to the block according to the actual transmission volume of the target distribution node for the service data
  • the chain network submits a third transfer transaction for the target distribution node, and the third transaction amount of the third transfer transaction corresponds to the actual transmission volume
  • a block chain network a block chain in the block chain network
  • the node is used to
  • a method for traffic statistics based on blockchain which includes: a voucher issuer creates a first transfer transaction for a service provider, in the first transfer transaction Contains the first transaction amount; the certificate issuer submits the first transfer transaction to the blockchain network, and the first transfer transaction is used to indicate that the blockchain node in the blockchain network will communicate with the first
  • the ownership of the flow voucher with the equivalent transaction amount is transferred from the voucher issuer to the service provider; the ownership of the flow voucher that is equivalent to the second transaction amount included in the second transfer transaction among the flow voucher held by the service provider , Being transferred to the service requester by the blockchain node upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount
  • the data volume corresponding to the business data requested by the business requester; the ownership of the traffic voucher equivalent to the third transaction amount included in the third transfer transaction in the traffic voucher held by the business requester is controlled by the block
  • the chain node transfers to the target distribution node upon
  • a method for traffic statistics based on blockchain which includes: a service provider creates a second transfer transaction for the service requester, and the second transfer transaction
  • the second transaction amount corresponds to the data amount of the business data requested by the business requester; the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction in the flow voucher held by the voucher issuer is
  • the blockchain node in the blockchain network transfers to the service provider upon receiving the first transfer transaction, and the first transfer transaction is submitted by the certificate issuer to the blockchain network;
  • the service provider submits the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will be the equivalent of the second transaction amount.
  • the ownership is transferred from the service provider to the service requester; the ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction in the flow certificate held by the service requester is controlled by the block
  • the chain node transfers to the target distribution node upon receiving the third transfer transaction, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution
  • the node transmits the actual transmission volume of the service data to the service requester.
  • a blockchain-based traffic statistics method which includes: a target distribution node in a content distribution network transmits the service request to the service provider The requested service data; the ownership of the flow certificate that is equivalent to the third transaction amount contained in the third transfer transaction in the flow certificate held by the service requester is received by the blockchain node in the blockchain network
  • the third transfer transaction it is transferred to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the service request from the target distribution node
  • the actual transmission volume of the service data transmitted by the service provider; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is received by the blockchain node
  • the second transfer transaction it is transferred to the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the service requester.
  • the data volume of the requested business data; the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction in the flow voucher held by the voucher issuer is received by the blockchain node In the case of a transfer transaction, it is transferred to the service provider, and the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  • a blockchain-based traffic statistics method which includes: a service requester creates a third transfer transaction for a target distribution node, and the third transfer transaction includes The third transaction amount corresponds to the actual transmission amount of the service data requested by the service requester by the target distribution node to the service requester; the service requester submits the third transfer transaction to the blockchain network , The third transfer transaction is used to instruct the blockchain node in the blockchain network to transfer the ownership of the flow voucher equivalent to the third transaction amount from the service requester to the target distribution node ; The ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is transferred to by the blockchain node upon receiving the second transfer transaction For the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data; the flow voucher held by the voucher issuer is compared with The ownership of the flow voucher equivalent to the first transaction amount included in the
  • a block chain-based traffic statistics method including: the block chain node in the block chain network will communicate with the first transfer transaction included in the first transfer transaction.
  • the ownership of the flow voucher with the equivalent transaction amount is transferred from the voucher issuer to the service provider, and the first transfer transaction is submitted by the voucher issuer to the blockchain network; the blockchain node will be in the second transfer transaction.
  • the ownership of the traffic vouchers equivalent to the second transaction amount is transferred from the service provider to the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to The data volume of the service data requested by the service requester;
  • the ownership of the traffic voucher equivalent to the third transaction amount included in the third transfer transaction is transferred from the service requester to the target distribution node, and the first Three transfer transactions are submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
  • a block chain-based traffic statistics device including: a creation unit that enables the voucher issuer to create a first transfer transaction for the service provider;
  • a transfer transaction includes a first transaction amount;
  • a submission unit that enables the certificate issuer to submit the first transfer transaction to the blockchain network, and the first transfer transaction is used to indicate a block in the blockchain network
  • the chain node transfers the ownership of the flow voucher equivalent to the first transaction amount from the voucher issuer to the service provider; the second transaction included in the second transfer transaction in the flow voucher held by the service provider
  • the ownership of the flow certificate equivalent to the amount is transferred to the service requester by the blockchain node upon receiving the second transfer transaction, and the second transfer transaction is transferred from the service provider to the blockchain network Submitted, the second transaction amount corresponds to the data amount of the business data requested by the business requester; the traffic that is equivalent to the third transaction amount included in the third transfer transaction in the traffic certificate held by the business requester
  • the ownership of the voucher is transferred to the target distribution node by the blockchain
  • a block chain-based traffic statistics device which includes: a creation unit that enables the service provider to create a second transfer transaction for the service requester, the first 2.
  • the second transaction amount of the transfer transaction corresponds to the data volume of the business data requested by the business requester; the flow voucher held by the voucher issuer is equivalent to the first transaction amount included in the first transfer transaction
  • the ownership of is transferred to the service provider by the blockchain node in the blockchain network upon receiving the first transfer transaction, and the first transfer transaction is transferred from the certificate issuer to the blockchain network Submit; a submission unit that enables the service provider to submit the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will communicate with the second
  • the ownership of the flow voucher equivalent to the transaction amount is transferred from the service provider to the service requester; the flow voucher held by the service requester is equivalent to the third transaction amount included in the third transfer transaction
  • the ownership of is transferred to the target distribution node by the blockchain node upon receiving the
  • a block chain-based traffic statistics device which includes: a transmission unit that enables a target distribution node in a content distribution network to transmit the service request to the service requester
  • the business data requested by the service provider The business data requested by the service provider; the ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction in the flow certificate held by the service requester is controlled by the blockchain node in the blockchain network
  • the third transfer transaction is received, it is transferred to the target distribution node, the third transfer transaction is submitted by the business request to the blockchain network, and the third transaction amount corresponds to the target distribution node
  • the actual transmission volume of the service data transmitted by the service requester; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is controlled by the block
  • the chain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the The data volume of the business data requested by the
  • a block chain-based traffic statistics device including: a creation unit that enables the service requester to create a third transfer transaction for the target distribution node, the first The third transaction amount included in the third transfer transaction corresponds to the actual transmission amount of the service data requested by the service requester transmitted by the target distribution node to the service requester; the submission unit causes the service request to be directed to the blockchain The network submits the third transfer transaction, and the third transfer transaction is used to instruct the blockchain node in the blockchain network to request ownership of the flow certificate equivalent to the third transaction amount from the service request Transfer to the target distribution node; the ownership of the flow voucher that is equivalent to the second transaction amount included in the second transfer transaction among the flow voucher held by the service provider is received by the blockchain node after the first 2.
  • the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data; voucher issuance
  • the ownership of the flow certificate that is equivalent to the first transaction amount included in the first transfer transaction in the flow certificate held by the party is transferred to the said blockchain node upon receiving the first transfer transaction.
  • the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  • a block chain-based traffic statistics device including: a first transfer unit, so that the block chain node in the block chain network will be The ownership of the flow voucher equivalent to the first transaction amount included in the transfer transaction is transferred from the voucher issuer to the service provider, and the first transfer transaction is submitted by the voucher issuer to the blockchain network; the second transfer unit makes The blockchain node transfers the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer transaction is transferred from the service provider to the service requester.
  • the second transaction amount corresponds to the data amount of the business data requested by the business requester; the third transfer unit makes the transaction equivalent to the third transaction amount included in the third transfer transaction
  • the ownership of the traffic voucher is transferred from the service requester to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node to the target distribution node.
  • an electronic device including: a processor; and a memory for storing executable instructions of the processor.
  • the processor implements the method according to any one of the second aspect, the third aspect, the fourth aspect, the fifth aspect, and the sixth aspect by running the executable instruction.
  • a computer-readable storage medium which stores computer instructions, and when the instructions are executed by a processor, the second, third, and third aspects are implemented. Steps of the method described in any one of the fourth aspect, the fifth aspect, and the sixth aspect.
  • Fig. 1 is a schematic structural diagram of a block chain-based traffic statistics system provided by an exemplary embodiment.
  • Fig. 2 is a flowchart of a block chain-based traffic statistics method provided by an exemplary embodiment.
  • Fig. 3 is an interaction diagram of a block chain-based traffic statistics method provided by an exemplary embodiment.
  • Fig. 4 is a schematic diagram of traffic statistics based on blockchain provided by an exemplary embodiment.
  • Figures 5-8 are flowcharts of another block chain-based traffic statistics method provided by an exemplary embodiment.
  • Fig. 9 is a schematic structural diagram of a device provided by an exemplary embodiment.
  • Fig. 10 is a block diagram of a block chain-based traffic statistics device provided by an exemplary embodiment.
  • 11-14 are block diagrams of another block chain-based traffic statistics device provided by an exemplary embodiment.
  • the steps of the corresponding method may not be executed in the order shown and described in this specification.
  • the method may include more or fewer steps than described in this specification.
  • a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.
  • Blockchain is generally divided into three types: Public Blockchain, Private Blockchain and Consortium Blockchain.
  • the most decentralized one is the public chain.
  • the public chain is represented by Bitcoin and Ethereum. Participants who join the public chain can read the data records on the chain, participate in transactions, and compete for the accounting rights of new blocks. Moreover, each participant (ie, node) can freely join and exit the network, and perform related operations.
  • the private chain is the opposite.
  • the write permission of the network is controlled by an organization or institution, and the data read permission is regulated by the organization.
  • the private chain can be a weakly centralized system with strict restrictions and few participating nodes. This type of blockchain is more suitable for internal use by specific institutions.
  • Each node in the alliance chain usually has a corresponding entity or organization; participants are authorized to join the network and form a stakeholder alliance to jointly maintain the operation of the blockchain.
  • Smart contracts on the blockchain are contracts that can be triggered by transactions on the blockchain system. Smart contracts can be defined in the form of codes.
  • EVM Ethereum Virtual Machine
  • Every Ethereum node can run EVM.
  • EVM is a Turing complete virtual machine, which means that various complex logic can be implemented through it.
  • Users who publish and call smart contracts in Ethereum run on the EVM.
  • virtual machine code virtual machine bytecode, hereinafter referred to as "bytecode"
  • the smart contract deployed on the blockchain can be in the form of bytecode.
  • the type of request initiated on the blockchain by a user accessing the blockchain may specifically refer to the transaction used in the traditional blockchain.
  • the type of request initiated on the blockchain by a user who accesses the blockchain can also be other than transactions, other forms of instructions, messages, etc. with a standard data structure.
  • One or more embodiments of this specification It is not particularly limited. In the following embodiments, the request initiated on the blockchain by a user who accesses the blockchain is taken as an example for description.
  • Fig. 1 is a schematic structural diagram of a block chain-based traffic statistics system provided by an exemplary embodiment.
  • the traffic statistics system in this specification includes a certificate issuer 10, a service provider 20, a content distribution network 30, a service requester 40 and a blockchain network 50.
  • the certificate issuer 10 may issue a flow certificate (Token), which is used to count the flow generated during data transmission.
  • Token a flow certificate
  • 1Token 1M traffic
  • the business provider 20 provides business services to the outside, and responds to the request of the user (that is, the business requester) to provide the user with the business data required by the user.
  • the service provider as a video platform as an example, the video platform can provide registered users with services for watching videos.
  • the user can send a request for obtaining video data to the video platform to obtain the corresponding video data for viewing.
  • the service provider 20 may obtain a certain number of traffic vouchers from the voucher issuer 10 in advance as a measurement unit for subsequent traffic statistics when providing service data.
  • the content delivery network 30 (Content Delivery Network, CDN) is connected to the service provider 20, and can be used to store the service data of the service provider and transmit the service data requested to the service provider 20 to the service requester.
  • the MEC Mobile Edge Computing
  • select node 30n By selecting edge nodes to transmit service data to the service provider, network pressure can be relieved and transmission efficiency improved.
  • the method of selecting the target distribution node can refer to related technologies, and this specification does not limit this.
  • the user's request for obtaining service data is directed to the distribution node closest to the service requester in real time.
  • the target distribution node After the target distribution node is selected, the target distribution node transmits the service data to the service requester 40, and in the process of data transmission, the amount of data actually transmitted by the target distribution node needs to be counted. Especially in the case of using the distribution network to charge, such as charging according to the flow of the distribution node, it is necessary to count the amount of data actually transmitted by the distribution node, so as to perform charging and settlement based on this.
  • the service requester 40 cooperates with the service provider 20, and a user as the service provider 20 requests the service provider 20 to obtain service data.
  • the service requester 40 can register as a user or member of the video platform, and then obtain video data through the video platform.
  • Each blockchain node (such as node 501, node 502, etc.) in the blockchain network 50 can respond to the transfer transaction for the flow certificate submitted by the certificate issuer 10, the service provider 20, and the service requester 40.
  • the ownership of the party's flow certificate is transferred, so as to realize the statistics of the real data transmission flow of the target distribution node.
  • the following describes the block chain-based traffic statistics scheme in this specification from the side of the certificate issuer 10, the service provider 20, the content distribution network 30, the service requester 40, and the blockchain network 50 respectively.
  • Fig. 2 is a flowchart of a block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 2, the method is applied to the certificate issuer and can include the following steps:
  • Step 202 The voucher issuer creates a first transfer transaction for the service provider, and the first transfer transaction includes the first transaction amount.
  • the voucher issuer can transfer a certain amount of traffic voucher to the service provider in advance for subsequent transmission of the service data.
  • the certificate issuer may be an MEC management system that uniformly manages MEC nodes.
  • the blockchain node in the blockchain network can respond to the first transfer transaction to transfer the ownership of the flow certificate equivalent to the first transaction amount from the certificate issuer to the service provider.
  • the flow voucher equivalent to the first transaction amount stored in the voucher issuer's account is transferred from the voucher issuer's account to the service provider's account.
  • blockchain accounts can include external accounts and contract accounts.
  • External accounts are usually owned by users (individuals or institutions), while contract accounts correspond to smart contracts deployed in the blockchain.
  • the structures of all types of accounts are similar, for example, they can include the Nonce field, the Balance field, the Code field, and the Storage field.
  • the value of the Nonce field of each account starts from 0, and the value of the Nonce field increases in sequence with the transactions initiated by the corresponding account, so that the value of the Nonce in each transaction initiated by the account is different, which can be avoided Replay attack.
  • the Balance field is used to store the account balance.
  • the Code field is used to store the code of the smart contract, so the Code field of the external account is usually empty.
  • the Storage field is used to store the value of the account at the corresponding node in the state tree.
  • the structure of the Balance field can be improved, and the flow vouchers can be stored in the Balance field.
  • the Balance field is further divided into deposit account balances and flow vouchers.
  • additional fields are added to store traffic vouchers.
  • other methods of adding or improving fields can also be used to store the traffic vouchers, and this specification does not limit this.
  • UTXO Unspent Transaction Output
  • the typical application scenario of the UTXO model is the Bitcoin blockchain.
  • the assets on the chain under this model exist in the form of transaction output.
  • the unspent transaction output belongs to the private key. Owner.
  • Step 204 The certificate issuer submits the first transfer transaction to the blockchain network, and the first transfer transaction is used to indicate that the blockchain node in the blockchain network will match the first transaction amount.
  • the ownership of the equivalent flow certificate is transferred from the certificate issuer to the service provider; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is subject to
  • the blockchain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the transaction amount.
  • the data volume of the service data requested by the service requester is accessed by the service provider to the blockchain network, and the second transaction amount corresponds to the transaction amount.
  • the ownership of the flow voucher equivalent to the third transaction amount included in the third transfer transaction among the flow voucher held by the service requester is controlled by the blockchain node when the third transfer transaction is received. Transferred to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transfer of the service data by the target distribution node to the service requester Transmission volume.
  • the service provider can first determine the data volume of the service data, and then determine the equivalent of the data volume
  • the number of traffic vouchers in is used as the second transaction amount (that is, the second transaction amount corresponds to the data amount of the business data), and the second transfer transaction containing the second transaction amount is submitted to the blockchain network.
  • the blockchain node can transfer the traffic vouchers that are equivalent to the second transaction amount among the traffic vouchers held by the service provider to the business requester, that is, these traffic vouchers are changed from the business to the service requester.
  • the requesting party holds.
  • the service requester will hold 100 Tokens from the service provider.
  • the business requester will hold a traffic voucher equivalent to the data volume of the requested business data, that is, the data volume of the business data subsequently obtained by the business requester should be transferred to the service provider
  • Flow voucher equivalence can be understood as the amount of data equivalent to the flow voucher held by the business requester at this time, which is the amount of data that is expected to be received in the future. Therefore, the traffic voucher held by the service requester can be used to compare with the data volume of the subsequently received service data, so as to measure whether the actual transmission volume of the service data is true.
  • the service provider or the MEC management system selects the target distribution node from the distribution network, and then transmits the service data to the service requester.
  • the service requester receives the service data transmitted by the target distribution node, it can determine the actual transmission volume of the target distribution node for the service data, for example, the data volume of the data actually received from the target distribution node as the actual transmission volume. Then, determine the number of traffic vouchers equivalent to the actual transmission amount as the third transaction amount (that is, the third transaction amount corresponds to the actual transmission amount), and submit the third transfer transaction containing the third transaction amount to the blockchain network .
  • the blockchain node can respond to the third transfer transaction to transfer the traffic vouchers that are equivalent to the third transaction amount among the traffic vouchers held by the business requester to the target distribution node, that is, these traffic vouchers are changed from the business to the target distribution node.
  • the requesting party holds.
  • the amount of data actually received by the service requester from the target distribution node is 95M
  • the third transaction amount is 95.
  • the target distribution node will hold 95 requests from the service Party’s Token.
  • the business requester can compare the traffic vouchers it holds with the actual transmission volume of the business data from the target distribution node.
  • the traffic vouchers with the actual transmission volume equivalent are transferred to the target distribution node.
  • the traffic vouchers held by the target distribution node are equal to the actual transmission volume. Therefore, the traffic vouchers held by the target distribution node can be used to count the traffic of the target distribution node to transmit the service data.
  • the process of transferring the traffic voucher according to the actual transmission volume received by the service requester can prevent the target distribution node from forging the actual transmission volume.
  • the traffic vouchers transferred to the business requester are equal to the actual size of the business data, which prevents the business request from transferring traffic vouchers that exceed the actual size of the business data to the target distribution node (the business requester does not have enough traffic vouchers), that is, to prevent the business
  • the requester assists the target distribution node to forge the actual transmission volume.
  • the MEC management system can be used as the voucher issuer, and the flow voucher can be issued to count the amount of data actually transmitted by the distribution node, thereby performing charging and settlement.
  • a method of signing traffic vouchers can be introduced.
  • each party registers on the blockchain network to obtain the on-chain identity and asymmetric key pair created by the blockchain network for itself.
  • the above-mentioned method of signing the traffic certificate can be: the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node.
  • the corresponding private key is used to sign, so as to prove the source of the traffic certificate in the process of transferring the traffic certificate.
  • all the traffic vouchers held by the target distribution node can be verified and signed by the public keys of the certificate issuer, service provider, service requester, and target distribution node respectively without the occurrence of forged traffic vouchers.
  • the traffic certificate signed by the private key of the certificate issuer, service provider, service requester, and target distribution node can be used to measure the actual transmission volume of the target distribution node, and then the cost can be settled.
  • the service requester in the process of transmitting service data from the target distribution node to the service requester, after the target distribution node transmits all the service data, the service requester initiates the first according to the data volume of the received service data. 3. Transfer transactions. Or, the target distribution node divides the service data into several service sub-data, and transmits each service sub-data to the service requester. Correspondingly, each time the service requester receives the service sub-data, it submits the third transfer transaction to the blockchain network, and the third transaction amount of the third transfer transaction corresponds to the data volume of the received service sub-data. For example, the 100M service data is divided into 10 10M service sub-data to be transmitted separately. Then, after each service requester receives a 10M service sub-data, it must initiate a third transfer transaction with a transaction amount of 10, thereby transferring 10 Tokens to the target distribution node.
  • the business requester may have a situation where the amount of data represented by the transaction amount of the initiated transfer transaction is less than the actual transmission volume of the target distribution node, resulting in that the data volume corresponding to all the traffic vouchers ultimately held by the target distribution node is less than the actual transmission volume.
  • the target distribution node determines the new addition after the service sub-data is transmitted each time after the service sub-data is transmitted.
  • the transaction amount of the transfer transaction initiated by the service requester to the blockchain is 9.
  • the target distribution node The newly added traffic certificate is 9 Tokens, and the actual traffic certificate that should be added is 10 Tokens. Therefore, when the target distribution node determines that the newly added number of traffic vouchers it holds does not reach 10, it stops requesting the service to transmit the remaining untransmitted service sub-data.
  • the target distribution node can divide the business data into several business sub-data according to preset dimensions.
  • the preset dimension includes any of the following: the average data volume of the business sub-data, the total number of the business sub-data, and the data type. For example, if the data volume of the business data is 200M, according to the average data volume of the business sub-data being 20M, the business data is divided into ten 20M business sub-data on average. Or, according to the total number of business sub-data being five, the business data is divided into five 40M business sub-data on average.
  • the business data is a picture
  • the business data includes pictures in multiple formats such as bmp, jpg, png, tif, gif, etc.
  • the business data is divided according to the picture format.
  • the service data contains data of multiple file types such as videos, pictures, audios, documents, etc.
  • the service data is divided according to file types.
  • the basis of the division can be flexibly set according to actual needs, and this manual does not limit this.
  • the service provider can also verify the permission of the service requester to obtain the business data according to the identity information sent by the service requester, and use the permission verification as a prerequisite for submitting the second transfer transaction to the blockchain network.
  • FIG. 3 is an interaction diagram of a block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 3, the interaction process may include the following steps:
  • Step 302 The certificate issuer submits the first transfer transaction to the blockchain node.
  • all parties can register on the blockchain network to generate on-chain identities for the blockchain network to bind to the traffic vouchers held, and generate an asymmetric key pair for For subsequent use of the private key to sign the traffic certificate and the use of the public key to verify the signature.
  • the identity on the chain is the account address; in the case of the UTXO model, the identity on the chain is the wallet address.
  • the asymmetric encryption algorithm used to generate the public key and the private key for example, it can be RSA, Elgamal, knapsack algorithm, Rabin, D-H, ECC (elliptic curve encryption algorithm), etc.
  • the certificate issuer may be an MEC management system that uniformly manages MEC nodes, and is used to issue tokens for traffic measurement.
  • the voucher issuer can transfer a certain amount of Token to the service provider in advance, which is used to transfer between all parties during the subsequent transmission of service data to realize traffic statistics and billing settlement. For example, the service provider purchases a certain amount of Token from the voucher issuer through the off-chain channel for subsequent transfer to the service provider. Then, the voucher issuer creates the first transfer transaction, and the first transaction amount (used to indicate the number of Tokens that need to be transferred) included in the first transfer transaction is the number of Tokens purchased by the business provider from the voucher issuer and sends it to the blockchain The node submits the first transfer transaction.
  • the flow certificate held by each party is signed with the private key of the corresponding holder.
  • blockchain nodes can uniformly use the private key of the account to sign the transferred Token after transferring the Token to an account.
  • the blockchain node can uniformly use the private key of the account to sign the transferred Token before transferring the Token out of an account. All in all, it is sufficient to ensure that the Tokens held by all parties have been signed with the holder's private key, so that the source of the Token can be verified through signature verification.
  • the certificate issuer Take the certificate issuer as an example. As shown in Figure 5, the certificate issuer 10, service provider 20, service requester 40, and target distribution node 30 in the figure represent the accounts of each party, and P represents the transferred out Token (hereinafter referred to as Token P).
  • the blockchain node can use the private key of the certificate issuer 10 to sign all Tokens held by the certificate issuer 10, or before transferring the Tokens held by the certificate issuer 10 to the account of the service provider 20, use The private key of the certificate issuer 10 signs the Token to be transferred. After the above-mentioned signature operation, it can be ensured that the Token P transferred to the account of the service provider 20 is signed with the private key of the certificate issuer 10.
  • Step 304 The blockchain node transfers money to the service provider.
  • the blockchain node in the blockchain network can, in response to the first transfer transaction, transfer the number of tokens matching the first transaction amount in the voucher issuer's account to the service provider's account.
  • the blockchain node can use the private key of the service provider to sign the Token transferred to the account of the service provider.
  • Step 306 The service requester sends an acquisition request for service data to the service provider.
  • Step 308 The service provider authenticates the service requester.
  • a user sends an acquisition request for a certain video to a video platform, and the acquisition request includes the user's account information.
  • the video can authenticate the user based on the account information.
  • the content of the authentication can include whether the user has a membership service, whether the user is blocked, and so on.
  • the service provider can further determine whether the service requester has an on-chain identity registered on the blockchain, and return a corresponding prompt message to remind the user if it is not registered.
  • Step 310 The service provider submits a second transfer transaction to the blockchain node.
  • the service requester will hold 100 tokens from the service provider.
  • step 312 the blockchain node transfers money to the service requester.
  • the data volume of the service data requested by the service requester can be determined, and then the number of traffic vouchers equivalent to the data volume can be determined as the second transaction amount.
  • the block chain network submits a second transfer transaction including the second transaction amount.
  • the blockchain node transfers the Tokens in the service provider's account that matches the second transaction amount to the service requester's account. As shown in FIG. 5, it can be seen from the above-mentioned signature mechanism that the Token P transferred from the account of the service provider 20 is all signed with the private key of the service provider 20. Further, the blockchain node may use the private key of the service requester 40 to sign the Token transferred to the account of the service requester.
  • Step 314 The service provider sends a transmission instruction to the target distribution node.
  • the service provider selects the target distribution node from the distribution network, and then sends a transmission instruction to the target distribution node to instruct the target distribution node to transmit service data to the service requester.
  • Step 316 The target distribution node transmits the service data to the service requester.
  • the target distribution node can divide the service data into several service sub-data, and transmit each service sub-data to the service requester.
  • the service requester is required to initiate a third transfer transaction according to the data volume of the received service data after each service sub-data is received.
  • the 100M service data is divided into 10 10M service sub-data to be transmitted separately.
  • each service requester after each service requester receives a 10M service sub-data, it must initiate a third transfer transaction with a transaction amount of 10, thereby transferring 10 Tokens to the target distribution node.
  • the business requesting party may be malicious.
  • the target distribution node after the target distribution node has transmitted 10M business sub-data to the service requester, it can submit a query transaction for its own Token to the blockchain node to obtain the status of its own Token. . Assuming that the transaction amount of the transfer transaction initiated by the business request to the blockchain is 9, then after the transfer transaction is executed, the newly added traffic vouchers of the target distribution node are 9 Tokens, and the actual new traffic vouchers should be 10 Token. Therefore, when the target distribution node determines that the number of new traffic vouchers it holds does not reach 10, it stops transmitting the remaining untransmitted service sub-data to the service request, so as to stop the loss in time and prevent the service requester from continuing to do evil.
  • Step 318 The business request submits a third transfer transaction to the blockchain node.
  • step 320 the blockchain node transfers money to the target distribution node.
  • the Token P transferred from the account of the service requester 40 is signed with the private key of the service requester 40.
  • the blockchain node can use the private key of the target distribution node 30 to sign the Token transferred to the account of the target distribution node 30.
  • all Tokens held by the final target distribution node 30 are sequentially signed with the private keys of the certificate issuer, service provider, service requester, and target distribution node.
  • the certificate issuer can submit a settlement transaction for the flow certificate held by the target distribution node to the blockchain network, and then the blockchain node in the blockchain network can respond to the settlement transaction by adopting the certificate issuer and the service provider respectively.
  • the public keys of the party, the business requester, and the target distribution node verify the flow certificate held by the target distribution node, and if the verification is passed, according to the cost conversion standard for the flow certificate issued by the certificate issuer, the target The flow certificate held by the distribution node performs fee settlement.
  • the logic used to perform the above verification and settlement operations can be written into the chain code so that the blockchain node can directly perform the verification and settlement operations by executing the chain code; it can also be written into the smart contract and the smart contract The contract is deployed on the blockchain. Then, the above settlement transaction is used to call the smart contract, and the blockchain node executes the code in the smart contract to complete the signature verification and settlement operations.
  • this specification also proposes embodiments on the service provider side, service requester side, target distribution node side, and blockchain node side.
  • the embodiments involved in the certificate issuer side The description of is also applicable to the above-mentioned embodiments on the other side, and will not be repeated hereafter.
  • Fig. 5 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 5, the method is applied to the service provider and can include the following steps:
  • Step 502 The service provider creates a second transfer transaction for the service requester, and the second transaction amount of the second transfer transaction corresponds to the data volume of the service data requested by the service requester; the certificate issuer holds The ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction in the flow voucher is transferred to the said first transfer transaction by the blockchain node in the blockchain network For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  • Step 504 The service provider submits the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will match the second transaction amount.
  • the ownership of the equivalent flow certificate is transferred from the service provider to the service requester; the ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction in the flow certificate held by the service requester,
  • the third transfer transaction is transferred to the target distribution node by the blockchain node upon receiving the third transfer transaction, the third transfer transaction is submitted to the blockchain network by the business request, and the third transaction amount corresponds to Transmitting the actual transmission volume of the service data to the service requester at the target distribution node.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer;
  • the traffic certificate transferred from the service provider is signed with the private key of the service provider
  • the traffic certificate transferred from the service requester is signed with the private key of the service requester;
  • the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
  • the traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  • the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is transmitted to the service requester every time the service requester receives the service sub-data.
  • the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
  • the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time.
  • the amount of data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of the service sub-data transmitted by the target distribution node this time. The amount of data.
  • the service data is divided by the target distribution node into a number of service sub-data according to a preset dimension, and the preset dimension includes any of the following: an average data volume of the service sub-data, a total number of the service sub-data, and a data type.
  • the service provider verifies the permission of the service requester to obtain the service data according to the identity information sent by the service requester, and passes the permission verification as submitting the said service to the blockchain network. Prerequisites for the second transfer transaction.
  • Fig. 6 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 6, the method is applied to the target distribution node and may include the following steps:
  • Step 602 The target distribution node in the content distribution network transmits to the service requester the service data requested by the service requester from the service provider.
  • the ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction in the flow voucher held by the business requester is received by the block chain node in the block chain network when the third transfer transaction is received.
  • the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node transmitting the service to the service requester The actual amount of data transferred;
  • the ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred by the blockchain node upon receiving the second transfer transaction To the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data requested by the service requester;
  • the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction
  • the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer;
  • the traffic certificate transferred from the service provider is signed with the private key of the service provider
  • the traffic certificate transferred from the service requester is signed with the private key of the service requester;
  • the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
  • the traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  • the target distribution node transmitting the service data requested by the service requester to the service provider to the service requester includes: the target distribution node divides the service data into a number of service sub-data, and sends the service data to the service requester.
  • the service requester transmits each service sub-data; the third transfer transaction is submitted to the blockchain network by the service requester every time the service sub-data is received, and the third transaction of the third transfer transaction The amount corresponds to the data amount of the service sub-data received by the service requester.
  • the target distribution node determines the amount of new data corresponding to the new traffic voucher held after the last time the service sub-data is transmitted and the current time after the service sub-data is transmitted.
  • the transmission data volume of the transmitted service sub-data when the newly added data volume is less than the transmission data volume, the target distribution node stops transmitting the remaining service sub-data to the service requester.
  • the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider’s policy on the service request based on the identity information sent by the service requester
  • the authorization verification is performed on the access authority of the business data, and the authorization verification is passed.
  • Fig. 7 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 7, the method is applied to the service requester and may include the following steps:
  • Step 702 The service requester creates a third transfer transaction for the target distribution node, and the third transaction amount included in the third transfer transaction corresponds to the target distribution node transmitting the service requester requested by the service requester The actual transmission volume of business data;
  • Step 704 The service request submits the third transfer transaction to the blockchain network, and the third transfer transaction is used to indicate that the blockchain node in the blockchain network will match the third transaction amount.
  • the ownership of the equivalent traffic certificate is transferred from the service requester to the target distribution node;
  • the ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred to the place where the blockchain node receives the second transfer transaction.
  • the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data;
  • the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction
  • the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer;
  • the traffic certificate transferred from the service provider is signed with the private key of the service provider
  • the traffic certificate transferred from the service requester is signed with the private key of the service requester;
  • the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
  • the traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  • the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester; the service requester submits the third transfer transaction to the blockchain network, including: The service requester submits the third transfer transaction to the blockchain network every time it receives the service sub-data, and the third transaction amount of the third transfer transaction corresponds to the data volume of the received service sub-data .
  • the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time.
  • the amount of data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of the service sub-data transmitted by the target distribution node this time. The amount of data.
  • the service data is divided into a number of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: the average data volume of the service sub-data, and the total number of the service sub-data ,type of data.
  • the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider’s policy on the service request based on the identity information sent by the service requester
  • the authorization verification is performed on the access authority of the business data, and the authorization verification is passed.
  • Fig. 8 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 8, the method is applied to blockchain nodes and can include the following steps:
  • step 804 the blockchain node transfers the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer transaction is transferred from the service provider to the service requester.
  • the service provider submits to the blockchain network, the second transaction amount corresponds to the data amount of the service data requested by the service requester;
  • Step 806 Transfer the ownership of the flow certificate equivalent to the third transaction amount included in the third transfer transaction from the service requester to the target distribution node, and the third transfer transaction is transferred from the service requester to the blockchain Submitted by the network, the third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer;
  • the traffic certificate transferred from the service provider is signed with the private key of the service provider
  • the traffic certificate transferred from the service requester is signed with the private key of the service requester;
  • the blockchain node uses the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node to verify the traffic certificate held by the target distribution node, and In the case of passing the verification and signature, according to the cost conversion standard for the flow voucher issued by the voucher issuer, the flow voucher held by the target distribution node is settled.
  • the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is transmitted to the service requester every time the service requester receives the service sub-data.
  • the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
  • the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time.
  • the amount of data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of the service sub-data transmitted by the target distribution node this time. The amount of data.
  • the service data is divided into a number of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: the average data volume of the service sub-data, and the total number of the service sub-data ,type of data.
  • the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider’s policy on the service request based on the identity information sent by the service requester
  • the authorization verification is performed on the access authority of the business data, and the authorization verification is passed.
  • this specification also provides an embodiment of a block chain-based traffic statistics device.
  • the embodiments of the block chain-based traffic statistics device in this specification can be applied to electronic equipment.
  • the device embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware.
  • Taking software implementation as an example as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the electronic device where it is located.
  • FIG. 9 is a schematic structural diagram of a device provided by an exemplary embodiment.
  • the device includes a processor 902, an internal bus 904, a network interface 906, a memory 909, and a non-volatile memory 910.
  • the processor 902 reads the corresponding computer program from the non-volatile memory 910 to the memory 909 and then runs it to form a block chain-based traffic statistics device on a logical level.
  • one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, and so on. That is to say, the execution subject of the following processing flow is not limited to each
  • the logic unit can also be a hardware or a logic device.
  • the block chain-based traffic statistics device may include:
  • the creation unit 1002 enables the voucher issuer to create a first transfer transaction for the service provider, and the first transfer transaction includes the first transaction amount;
  • the submission unit 1004 enables the certificate issuer to submit the first transfer transaction to the blockchain network, and the first transfer transaction instructs the blockchain node in the blockchain network to match the first transaction amount
  • the ownership of the equivalent flow certificate is transferred from the voucher issuer to the service provider; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is subject to
  • the blockchain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the transaction amount.
  • the ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction among the flow vouchers held by the service requester is transferred to the blockchain node upon receiving the third transfer transaction
  • the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transmission amount of the target distribution node to the service requester to transmit the service data .
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer;
  • the traffic certificate transferred from the service provider is signed with the private key of the service provider;
  • the traffic certificate transferred from the service requester is signed with the private key of the service requester;
  • the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
  • the traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  • the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is received every time the service sub-data is received by the service requester Submit to the blockchain network below, and the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
  • the target distribution node may stop transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, and the amount of newly added data is all
  • the target distribution node compares the data volume corresponding to the newly-held traffic voucher after the last transmission of the service sub-data, and the transmission data volume is the data volume of the service sub-data transmitted by the target distribution node this time.
  • the service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
  • the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester
  • the authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
  • the block chain-based traffic statistics device may include:
  • the creation unit 1102 enables the service provider to create a second transfer transaction for the service requester, and the second transaction amount of the second transfer transaction corresponds to the data volume of the service data requested by the service requester; the voucher issuer holds The ownership of the flow vouchers that are equivalent to the first transaction amount included in the first transfer transaction in some traffic vouchers is transferred to by the blockchain node in the blockchain network upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network;
  • the submission unit 1103 enables the service provider to submit the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will conduct the second transaction with the blockchain network.
  • the ownership of the flow vouchers with the equivalent amount is transferred from the service provider to the service requester; the flow vouchers held by the service requester are equivalent to the third transaction amount included in the third transfer transaction.
  • the ownership is transferred to the target distribution node by the blockchain node upon receiving the third transfer transaction, the third transfer transaction is submitted by the business request to the blockchain network, and the third transaction
  • the amount corresponds to the actual transmission volume of the service data transmitted by the target distribution node to the service requester.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer;
  • the traffic certificate transferred from the service provider is signed with the private key of the service provider;
  • the traffic certificate transferred from the service requester is signed with the private key of the service requester;
  • the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
  • the traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  • the service data may be divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is transferred to the district by the service requester every time the service sub-data is received.
  • the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
  • the target distribution node may stop transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, and the amount of newly added data is all
  • the target distribution node compares the data volume corresponding to the newly-held traffic voucher after the last transmission of the service sub-data, and the transmission data volume is the data volume of the service sub-data transmitted by the target distribution node this time.
  • the service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
  • the device may further include: an authentication unit 1106, which enables the service provider to verify the authority to obtain the service data of the service requester based on the identity information sent by the service requester, and to verify the authority The verification is passed as a prerequisite for submitting the second transfer transaction to the blockchain network.
  • an authentication unit 1106 which enables the service provider to verify the authority to obtain the service data of the service requester based on the identity information sent by the service requester, and to verify the authority The verification is passed as a prerequisite for submitting the second transfer transaction to the blockchain network.
  • the block chain-based traffic statistics device may include: a transmission unit 1202, which enables the target distribution node in the content distribution network to transmit the service request to the service provider The requested business data.
  • the ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction in the flow voucher held by the business requester is received by the block chain node in the block chain network when the third transfer transaction is received.
  • the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node transmitting the service to the service requester The actual amount of data transferred;
  • the ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred by the blockchain node upon receiving the second transfer transaction To the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data requested by the service requester;
  • the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction
  • the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node.
  • the traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  • the transmission unit 1202 is specifically configured to: the target distribution node divides the service data into several service sub-data, and transmits each service sub-data to the service requester; the third transfer transaction is determined by The service requester submits to the blockchain network every time the service sub-data is received, and the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester .
  • the transmission unit 1202 is further configured to: each time after the target distribution node transmits the service sub-data, determine the new increase corresponding to the new traffic certificate held after the last transmission of the service sub-data. The data volume and the transmission data volume of the business sub-data transmitted this time. When the amount of newly added data is less than the amount of transmitted data, the target distribution node stops transmitting the remaining service sub-data to the service requester.
  • the transmission unit 1202 is further configured to: the target distribution node divides the service data into several service sub-data according to a preset dimension, and the preset dimension includes any one of the following: average data of the service sub-data Quantity, total quantity and data type of business sub-data.
  • the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester
  • the authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
  • the block chain-based traffic statistics device may include:
  • the creation unit 1302 enables the service requester to create a third transfer transaction for the target distribution node, and the third transaction amount included in the third transfer transaction corresponds to the target distribution node transmitting the service requester to the service requester The actual transmission volume of the requested business data;
  • the submission unit 1304 enables the service request to submit the third transfer transaction to the blockchain network, where the third transfer transaction is used to indicate that a blockchain node in the blockchain network will conduct a transaction with the third transaction.
  • the ownership of the equivalent traffic vouchers is transferred from the service requester to the target distribution node;
  • the ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred to the place where the blockchain node receives the second transfer transaction.
  • the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data;
  • the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction
  • the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node.
  • the traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  • the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester; the submission unit 1304 is specifically configured to: each time the service requester receives the service sub-data In the case of submitting the third transfer transaction to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the received business sub-data.
  • the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, the newly-added data
  • the amount is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data
  • the transmission data amount is the data of the service sub-data transmitted by the target distribution node this time quantity.
  • the service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
  • the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester
  • the authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
  • the block chain-based traffic statistics device may include:
  • the first transfer unit 1402 enables the blockchain nodes in the blockchain network to transfer the ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction from the voucher issuer to the service provider. 1.
  • the transfer transaction is submitted by the certificate issuer to the blockchain network;
  • the second transfer unit 1404 enables the blockchain node to transfer the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer The transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data requested by the service requester;
  • the third transfer unit 1406 is configured to transfer the ownership of the flow voucher equivalent to the third transaction amount included in the third transfer transaction from the service requester to the target distribution node, and the third transfer transaction is requested by the service Submit to the blockchain network, the third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
  • the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node.
  • the device further includes: a signature verification unit 1408, which enables the blockchain node to use the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node to pair the target with the public keys respectively.
  • the flow voucher held by the distribution node is verified, and if the verification is passed, the flow voucher held by the target distribution node is settled according to the fee conversion standard for the flow voucher issued by the voucher issuer .
  • the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is received every time the service sub-data is received by the service requester Submit to the blockchain network below, and the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
  • the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, the newly-added data
  • the amount is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data
  • the transmission data amount is the data of the service sub-data transmitted by the target distribution node this time quantity.
  • the service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
  • the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester
  • the authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • this specification can be provided as a method, a system, or a computer program product. Therefore, this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network.
  • program modules can be located in local and remote computer storage media including storage devices.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computer includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission media, can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Provided in the present description are a blockchain-based traffic statistics system, method and device. The system comprises that: a voucher issuer submits a first transfer transaction for a service provider to a blockchain network; the service provider submits a second transfer transaction for a service requester to the blockchain network according to service data requested by the service requester; each node within a content distribution network transmits the service data to the service requester when selected as a target distribution node; the service requester submits a third transfer transaction for the target distribution node to the blockchain network according to an actual transmission volume of the target distribution node for the service data; and a blockchain node transfers ownership of a traffic voucher equivalent to a first transaction amount from the voucher issuer to the service provider, transfers ownership of a traffic voucher equivalent to a second transaction amount from the service provider to the service requester, and transfers ownership of a traffic voucher equivalent to a third transaction amount from the service requester to the target distribution node.

Description

基于区块链的流量统计Blockchain-based traffic statistics 技术领域Technical field
本说明书一个或多个实施例涉及区块链技术领域,尤其涉及基于区块链的流量统计。One or more embodiments of this specification relate to the field of blockchain technology, and in particular to blockchain-based traffic statistics.
背景技术Background technique
区块链技术,也被称之为分布式账本技术,是一种由若干台计算设备共同参与“记账”,共同维护一份完整的分布式数据库的新兴技术。由于区块链技术具有去中心化、公开透明、每台计算设备可以参与数据库记录、并且各计算设备之间可以快速的进行数据同步的特性,使得区块链技术已在众多的领域中广泛的进行应用。Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices participate in "bookkeeping" and jointly maintain a complete distributed database. Because the blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and the rapid data synchronization between computing devices, the blockchain technology has been widely used in many fields. To apply.
发明内容Summary of the invention
有鉴于此,本说明书一个或多个实施例提供一种基于区块链的流量统计系统、方法及装置。In view of this, one or more embodiments of this specification provide a block chain-based traffic statistics system, method, and device.
为实现上述目的,本说明书一个或多个实施例提供技术方案如下:To achieve the foregoing objectives, one or more embodiments of this specification provide technical solutions as follows:
根据本说明书一个或多个实施例的第一方面,提出了一种基于区块链的流量统计系统,包括:凭证发行方,所述凭证发行方用于向区块链网络提交针对业务提供方的第一转账交易,所述第一转账交易中包含第一交易额;所述业务提供方,所述业务提供方用于根据业务请求方所请求的业务数据,向区块链网络提交针对所述业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务数据的数据量;内容分发网络,所述内容分发网络中各个节点用于在被选取为目标分发节点的情况下,向所述业务请求方传输所述业务数据;所述业务请求方,所述业务请求方用于根据所述目标分发节点针对所述业务数据的实际传输量,向区块链网络提交针对所述目标分发节点的第三转账交易,所述第三转账交易的第三交易额对应于所述实际传输量;区块链网络,所述区块链网络中的区块链节点用于将与所述第一交易额对等的流量凭证的所有权从所述凭证发行方转移至所述业务提供方,将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方,将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点。According to the first aspect of one or more embodiments of this specification, a block chain-based traffic statistics system is proposed, including: a certificate issuer, the certificate issuer is used to submit information to the blockchain network for service providers The first transfer transaction, the first transfer transaction includes the first transaction amount; the service provider, the service provider is used to submit to the blockchain network based on the service data requested by the service requester The second transfer transaction of the service requester, the second transaction amount of the second transfer transaction corresponds to the data volume of the service data; a content distribution network, where each node in the content distribution network is used to select the target In the case of the distribution node, the service data is transmitted to the service requester; the service requester, the service requester is used to transmit the service data to the block according to the actual transmission volume of the target distribution node for the service data The chain network submits a third transfer transaction for the target distribution node, and the third transaction amount of the third transfer transaction corresponds to the actual transmission volume; a block chain network, a block chain in the block chain network The node is used to transfer the ownership of the flow voucher equivalent to the first transaction amount from the voucher issuer to the service provider, and transfer the ownership of the flow voucher equivalent to the second transaction amount from the The service provider transfers to the service requester, and transfers the ownership of the traffic voucher equivalent to the third transaction amount from the service requester to the target distribution node.
根据本说明书一个或多个实施例的第二方面,提出了一种基于区块链的流量统计方法,包括:凭证发行方创建针对业务提供方的第一转账交易,所述第一转账交易中包含第一交易额;所述凭证发行方向区块链网络提交所述第一转账交易,所述第一转账交易用于指示所述区块链网络中的区块链节点将与所述第一交易额对等的流量凭证的所有权从所述凭证发行方转移至业务提供方;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。According to a second aspect of one or more embodiments of the present specification, a method for traffic statistics based on blockchain is proposed, which includes: a voucher issuer creates a first transfer transaction for a service provider, in the first transfer transaction Contains the first transaction amount; the certificate issuer submits the first transfer transaction to the blockchain network, and the first transfer transaction is used to indicate that the blockchain node in the blockchain network will communicate with the first The ownership of the flow voucher with the equivalent transaction amount is transferred from the voucher issuer to the service provider; the ownership of the flow voucher that is equivalent to the second transaction amount included in the second transfer transaction among the flow voucher held by the service provider , Being transferred to the service requester by the blockchain node upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount The data volume corresponding to the business data requested by the business requester; the ownership of the traffic voucher equivalent to the third transaction amount included in the third transfer transaction in the traffic voucher held by the business requester is controlled by the block The chain node transfers to the target distribution node upon receiving the third transfer transaction, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution The node transmits the actual transmission volume of the service data to the service requester.
根据本说明书一个或多个实施例的第三方面,提出了一种基于区块链的流量统计方法,包括:业务提供方创建针对业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证 中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;所述业务提供方向区块链网络提交所述第二转账交易,所述第二转账交易用于指示所述区块链网络中的区块链节点将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。According to the third aspect of one or more embodiments of this specification, a method for traffic statistics based on blockchain is proposed, which includes: a service provider creates a second transfer transaction for the service requester, and the second transfer transaction The second transaction amount corresponds to the data amount of the business data requested by the business requester; the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction in the flow voucher held by the voucher issuer is The blockchain node in the blockchain network transfers to the service provider upon receiving the first transfer transaction, and the first transfer transaction is submitted by the certificate issuer to the blockchain network; The service provider submits the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will be the equivalent of the second transaction amount. The ownership is transferred from the service provider to the service requester; the ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction in the flow certificate held by the service requester is controlled by the block The chain node transfers to the target distribution node upon receiving the third transfer transaction, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution The node transmits the actual transmission volume of the service data to the service requester.
根据本说明书一个或多个实施例的第四方面,提出了一种基于区块链的流量统计方法,包括:内容分发网络中的目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。According to the fourth aspect of one or more embodiments of this specification, a blockchain-based traffic statistics method is proposed, which includes: a target distribution node in a content distribution network transmits the service request to the service provider The requested service data; the ownership of the flow certificate that is equivalent to the third transaction amount contained in the third transfer transaction in the flow certificate held by the service requester is received by the blockchain node in the blockchain network In the case of the third transfer transaction, it is transferred to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the service request from the target distribution node The actual transmission volume of the service data transmitted by the service provider; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is received by the blockchain node In the case of the second transfer transaction, it is transferred to the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the service requester. The data volume of the requested business data; the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction in the flow voucher held by the voucher issuer is received by the blockchain node In the case of a transfer transaction, it is transferred to the service provider, and the first transfer transaction is submitted by the certificate issuer to the blockchain network.
根据本说明书一个或多个实施例的第五方面,提出了一种基于区块链的流量统计方法,包括:业务请求方创建针对目标分发节点的第三转账交易,所述第三转账交易包含的第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务请求方所请求的业务数据的实际传输量;所述业务请求方向区块链网络提交所述第三转账交易,所述第三转账交易用于指示所述区块链网络中的区块链节点将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点;业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。According to the fifth aspect of one or more embodiments of this specification, a blockchain-based traffic statistics method is proposed, which includes: a service requester creates a third transfer transaction for a target distribution node, and the third transfer transaction includes The third transaction amount corresponds to the actual transmission amount of the service data requested by the service requester by the target distribution node to the service requester; the service requester submits the third transfer transaction to the blockchain network , The third transfer transaction is used to instruct the blockchain node in the blockchain network to transfer the ownership of the flow voucher equivalent to the third transaction amount from the service requester to the target distribution node ; The ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is transferred to by the blockchain node upon receiving the second transfer transaction For the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data; the flow voucher held by the voucher issuer is compared with The ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction is transferred to the service provider by the blockchain node upon receiving the first transfer transaction, and the first The transfer transaction is submitted by the certificate issuer to the blockchain network.
根据本说明书一个或多个实施例的第六方面,提出了一种基于区块链的流量统计方法,包括:区块链网络中的区块链节点将与第一转账交易中包含的第一交易额对等的流量凭证的所有权从凭证发行方转移至业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;所述区块链节点将与第二转账交易中包含的第二交易额对等的流量凭证的所有权从所述业务提供方转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;将与第三转账交易中包含的第三交易额对等的流量凭证的所有权从所述业务请求方转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。According to the sixth aspect of one or more embodiments of this specification, a block chain-based traffic statistics method is proposed, including: the block chain node in the block chain network will communicate with the first transfer transaction included in the first transfer transaction. The ownership of the flow voucher with the equivalent transaction amount is transferred from the voucher issuer to the service provider, and the first transfer transaction is submitted by the voucher issuer to the blockchain network; the blockchain node will be in the second transfer transaction The ownership of the traffic vouchers equivalent to the second transaction amount is transferred from the service provider to the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to The data volume of the service data requested by the service requester; the ownership of the traffic voucher equivalent to the third transaction amount included in the third transfer transaction is transferred from the service requester to the target distribution node, and the first Three transfer transactions are submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
根据本说明书一个或多个实施例的第七方面,提出了一种基于区块链的流量统计装置,包括:创建单元,使凭证发行方创建针对业务提供方的第一转账交易,所述第一转 账交易中包含第一交易额;提交单元,使所述凭证发行方向区块链网络提交所述第一转账交易,所述第一转账交易用于指示所述区块链网络中的区块链节点将与所述第一交易额对等的流量凭证的所有权从所述凭证发行方转移至业务提供方;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。According to the seventh aspect of one or more embodiments of this specification, a block chain-based traffic statistics device is proposed, including: a creation unit that enables the voucher issuer to create a first transfer transaction for the service provider; A transfer transaction includes a first transaction amount; a submission unit that enables the certificate issuer to submit the first transfer transaction to the blockchain network, and the first transfer transaction is used to indicate a block in the blockchain network The chain node transfers the ownership of the flow voucher equivalent to the first transaction amount from the voucher issuer to the service provider; the second transaction included in the second transfer transaction in the flow voucher held by the service provider The ownership of the flow certificate equivalent to the amount is transferred to the service requester by the blockchain node upon receiving the second transfer transaction, and the second transfer transaction is transferred from the service provider to the blockchain network Submitted, the second transaction amount corresponds to the data amount of the business data requested by the business requester; the traffic that is equivalent to the third transaction amount included in the third transfer transaction in the traffic certificate held by the business requester The ownership of the voucher is transferred to the target distribution node by the blockchain node upon receiving the third transfer transaction, the third transfer transaction is submitted by the business request to the blockchain network, and the third The transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
根据本说明书一个或多个实施例的第八方面,提出了一种基于区块链的流量统计装置,包括:创建单元,使业务提供方创建针对业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;提交单元,使所述业务提供方向区块链网络提交所述第二转账交易,所述第二转账交易用于指示所述区块链网络中的区块链节点将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。According to the eighth aspect of one or more embodiments of this specification, a block chain-based traffic statistics device is proposed, which includes: a creation unit that enables the service provider to create a second transfer transaction for the service requester, the first 2. The second transaction amount of the transfer transaction corresponds to the data volume of the business data requested by the business requester; the flow voucher held by the voucher issuer is equivalent to the first transaction amount included in the first transfer transaction The ownership of is transferred to the service provider by the blockchain node in the blockchain network upon receiving the first transfer transaction, and the first transfer transaction is transferred from the certificate issuer to the blockchain network Submit; a submission unit that enables the service provider to submit the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will communicate with the second The ownership of the flow voucher equivalent to the transaction amount is transferred from the service provider to the service requester; the flow voucher held by the service requester is equivalent to the third transaction amount included in the third transfer transaction The ownership of is transferred to the target distribution node by the blockchain node upon receiving the third transfer transaction, the third transfer transaction is submitted by the business request to the blockchain network, and the third The transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
根据本说明书一个或多个实施例的第九方面,提出了一种基于区块链的流量统计装置,包括:传输单元,使内容分发网络中的目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。According to the ninth aspect of one or more embodiments of this specification, a block chain-based traffic statistics device is proposed, which includes: a transmission unit that enables a target distribution node in a content distribution network to transmit the service request to the service requester The business data requested by the service provider; the ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction in the flow certificate held by the service requester is controlled by the blockchain node in the blockchain network When the third transfer transaction is received, it is transferred to the target distribution node, the third transfer transaction is submitted by the business request to the blockchain network, and the third transaction amount corresponds to the target distribution node The actual transmission volume of the service data transmitted by the service requester; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is controlled by the block The chain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the The data volume of the business data requested by the business requester; the ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction in the flow voucher held by the voucher issuer is received by the blockchain node In the case of the first transfer transaction, it is transferred to the service provider, and the first transfer transaction is submitted by the certificate issuer to the blockchain network.
根据本说明书一个或多个实施例的第十方面,提出了一种基于区块链的流量统计装置,包括:创建单元,使业务请求方创建针对目标分发节点的第三转账交易,所述第三转账交易包含的第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务请求方所请求的业务数据的实际传输量;提交单元,使所述业务请求方向区块链网络提交所述第三转账交易,所述第三转账交易用于指示所述区块链网络中的区块链节点将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点;业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对 等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。According to the tenth aspect of one or more embodiments of this specification, a block chain-based traffic statistics device is proposed, including: a creation unit that enables the service requester to create a third transfer transaction for the target distribution node, the first The third transaction amount included in the third transfer transaction corresponds to the actual transmission amount of the service data requested by the service requester transmitted by the target distribution node to the service requester; the submission unit causes the service request to be directed to the blockchain The network submits the third transfer transaction, and the third transfer transaction is used to instruct the blockchain node in the blockchain network to request ownership of the flow certificate equivalent to the third transaction amount from the service request Transfer to the target distribution node; the ownership of the flow voucher that is equivalent to the second transaction amount included in the second transfer transaction among the flow voucher held by the service provider is received by the blockchain node after the first 2. Transfer to the service requester in the case of a transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data; voucher issuance The ownership of the flow certificate that is equivalent to the first transaction amount included in the first transfer transaction in the flow certificate held by the party is transferred to the said blockchain node upon receiving the first transfer transaction. For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
根据本说明书一个或多个实施例的第十一方面,提出了一种基于区块链的流量统计装置,包括:第一转移单元,使区块链网络中的区块链节点将与第一转账交易中包含的第一交易额对等的流量凭证的所有权从凭证发行方转移至业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;第二转移单元,使所述区块链节点将与第二转账交易中包含的第二交易额对等的流量凭证的所有权从所述业务提供方转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;第三转移单元,使将与第三转账交易中包含的第三交易额对等的流量凭证的所有权从所述业务请求方转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。According to the eleventh aspect of one or more embodiments of this specification, a block chain-based traffic statistics device is proposed, including: a first transfer unit, so that the block chain node in the block chain network will be The ownership of the flow voucher equivalent to the first transaction amount included in the transfer transaction is transferred from the voucher issuer to the service provider, and the first transfer transaction is submitted by the voucher issuer to the blockchain network; the second transfer unit makes The blockchain node transfers the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer transaction is transferred from the service provider to the service requester. Submitted by the blockchain network, the second transaction amount corresponds to the data amount of the business data requested by the business requester; the third transfer unit makes the transaction equivalent to the third transaction amount included in the third transfer transaction The ownership of the traffic voucher is transferred from the service requester to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node to the target distribution node. The actual transmission volume of the service data transmitted by the service requester.
根据本说明书一个或多个实施例的第十二方面,提出了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器。其中,所述处理器通过运行所述可执行指令以实现如第二方面、第三方面、第四方面、第五方面和第六方面中任一所述的方法。According to a twelfth aspect of one or more embodiments of this specification, an electronic device is proposed, including: a processor; and a memory for storing executable instructions of the processor. Wherein, the processor implements the method according to any one of the second aspect, the third aspect, the fourth aspect, the fifth aspect, and the sixth aspect by running the executable instruction.
根据本说明书一个或多个实施例的第十三方面,提出了一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如第二方面、第三方面、第四方面、第五方面和第六方面中任一所述方法的步骤。According to the thirteenth aspect of one or more embodiments of the present specification, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, the second, third, and third aspects are implemented. Steps of the method described in any one of the fourth aspect, the fifth aspect, and the sixth aspect.
附图说明Description of the drawings
图1是一示例性实施例提供的一种基于区块链的流量统计系统的架构示意图。Fig. 1 is a schematic structural diagram of a block chain-based traffic statistics system provided by an exemplary embodiment.
图2是一示例性实施例提供的一种基于区块链的流量统计方法的流程图。Fig. 2 is a flowchart of a block chain-based traffic statistics method provided by an exemplary embodiment.
图3是一示例性实施例提供的一种基于区块链的流量统计方法的交互图。Fig. 3 is an interaction diagram of a block chain-based traffic statistics method provided by an exemplary embodiment.
图4是一示例性实施例提供的一种基于区块链的流量统计示意图。Fig. 4 is a schematic diagram of traffic statistics based on blockchain provided by an exemplary embodiment.
图5-8是一示例性实施例提供的另一种基于区块链的流量统计方法的流程图。Figures 5-8 are flowcharts of another block chain-based traffic statistics method provided by an exemplary embodiment.
图9是一示例性实施例提供的一种设备的结构示意图。Fig. 9 is a schematic structural diagram of a device provided by an exemplary embodiment.
图10是一示例性实施例提供的一种基于区块链的流量统计装置的框图。Fig. 10 is a block diagram of a block chain-based traffic statistics device provided by an exemplary embodiment.
图11-14是一示例性实施例提供的另一种基于区块链的流量统计装置的框图。11-14 are block diagrams of another block chain-based traffic statistics device provided by an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with one or more embodiments of this specification. Rather, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。In other embodiments, the steps of the corresponding method may not be executed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.
区块链一般被划分为三种类型:公有链(Public Blockchain),私有链(Private  Blockchain)和联盟链(Consortium Blockchain)。此外,还有多种类型的结合,比如私有链+联盟链、联盟链+公有链等不同组合形式。去中心化程度最高的是公有链。公有链以比特币、以太坊为代表,加入公有链的参与者可以读取链上的数据记录、参与交易以及竞争新区块的记账权等。而且,各参与者(即节点)可自由加入以及退出网络,并进行相关操作。私有链则相反,该网络的写入权限由某个组织或者机构控制,数据读取权限受组织规定。简单来说,私有链可以为一个弱中心化系统,参与节点具有严格限制且少。这种类型的区块链更适合于特定机构内部使用。联盟链则是介于公有链以及私有链之间的区块链,可实现“部分去中心化”。联盟链中各个节点通常有与之相对应的实体机构或者组织;参与者通过授权加入网络并组成利益相关联盟,共同维护区块链运行。Blockchain is generally divided into three types: Public Blockchain, Private Blockchain and Consortium Blockchain. In addition, there are many types of combinations, such as private chain + alliance chain, alliance chain + public chain and other different combinations. The most decentralized one is the public chain. The public chain is represented by Bitcoin and Ethereum. Participants who join the public chain can read the data records on the chain, participate in transactions, and compete for the accounting rights of new blocks. Moreover, each participant (ie, node) can freely join and exit the network, and perform related operations. The private chain is the opposite. The write permission of the network is controlled by an organization or institution, and the data read permission is regulated by the organization. In simple terms, the private chain can be a weakly centralized system with strict restrictions and few participating nodes. This type of blockchain is more suitable for internal use by specific institutions. Consortium chain is a block chain between public chain and private chain, which can realize "partial decentralization". Each node in the alliance chain usually has a corresponding entity or organization; participants are authorized to join the network and form a stakeholder alliance to jointly maintain the operation of the blockchain.
不论是公有链、私有链还是联盟链,都可能提供智能合约的功能。区块链上的智能合约是在区块链系统上可以被交易触发执行的合约。智能合约可以通过代码的形式定义。Whether it is a public chain, a private chain or a consortium chain, it is possible to provide the function of a smart contract. Smart contracts on the blockchain are contracts that can be triggered by transactions on the blockchain system. Smart contracts can be defined in the form of codes.
以以太坊为例,支持用户在以太坊网络中创建并调用一些复杂的逻辑,这是以太坊区别于比特币区块链技术的最大挑战。以太坊作为一个可编程区块链的核心是以太坊虚拟机(EVM),每个以太坊节点都可以运行EVM。EVM是一个图灵完备的虚拟机,这意味着可以通过它实现各种复杂的逻辑。用户在以太坊中发布和调用智能合约就是在EVM上运行的。实际上,虚拟机直接运行的是虚拟机代码(虚拟机字节码,下简称“字节码”)。部署在区块链上的智能合约可以是字节码的形式。Taking Ethereum as an example, it supports users to create and call some complex logic in the Ethereum network. This is the biggest challenge that distinguishes Ethereum from Bitcoin blockchain technology. The core of Ethereum as a programmable blockchain is the Ethereum Virtual Machine (EVM), and every Ethereum node can run EVM. EVM is a Turing complete virtual machine, which means that various complex logic can be implemented through it. Users who publish and call smart contracts in Ethereum run on the EVM. In fact, what the virtual machine directly runs is virtual machine code (virtual machine bytecode, hereinafter referred to as "bytecode"). The smart contract deployed on the blockchain can be in the form of bytecode.
需要说明的是,接入区块链的用户在区块链上发起的请求的类型,具体可以是指传统的区块链中所采用的交易(transaction)。当然,接入区块链的用户在区块链上发起的请求的类型,具体也可以是交易以外的,其它形式的具有标准的数据结构的指令、消息等,本说明书一个或多个实施例并不进行特别限定。在以下的各实施例中,将以接入区块链的用户在区块链上发起的请求为交易为例进行说明。It should be noted that the type of request initiated on the blockchain by a user accessing the blockchain may specifically refer to the transaction used in the traditional blockchain. Of course, the type of request initiated on the blockchain by a user who accesses the blockchain can also be other than transactions, other forms of instructions, messages, etc. with a standard data structure. One or more embodiments of this specification It is not particularly limited. In the following embodiments, the request initiated on the blockchain by a user who accesses the blockchain is taken as an example for description.
图1是一示例性实施例提供的一种基于区块链的流量统计系统的架构示意图。如图1所示,本说明书中的流量统计系统包括凭证发行方10、业务提供方20、内容分发网络30、业务请求方40和区块链网络50。Fig. 1 is a schematic structural diagram of a block chain-based traffic statistics system provided by an exemplary embodiment. As shown in FIG. 1, the traffic statistics system in this specification includes a certificate issuer 10, a service provider 20, a content distribution network 30, a service requester 40 and a blockchain network 50.
其中,凭证发行方10可发行流量凭证(Token),该流量凭证用于统计在进行数据传输时产生的流量。比如,1Token=1M流量;当然,1Token对等的流量可以根据实际情况灵活调整,比如还可以设定为1Token=10M流量,本说明书并不对此进行限制。Wherein, the certificate issuer 10 may issue a flow certificate (Token), which is used to count the flow generated during data transmission. For example, 1Token=1M traffic; of course, 1Token equivalent traffic can be flexibly adjusted according to the actual situation, for example, it can also be set to 1Token=10M traffic, which is not restricted in this specification.
业务提供方20向外提供业务服务,响应于用户(即业务请求方)的请求,向用户提供用户所需的业务数据。以业务提供方为视频平台为例,视频平台可以向注册用户提供观看视频的服务。用户可向视频平台发送获取视频数据的请求,从而获取相应的视频数据进行观看。The business provider 20 provides business services to the outside, and responds to the request of the user (that is, the business requester) to provide the user with the business data required by the user. Taking the service provider as a video platform as an example, the video platform can provide registered users with services for watching videos. The user can send a request for obtaining video data to the video platform to obtain the corresponding video data for viewing.
为了实现传输业务数据时的流量统计,业务提供方20可预先从凭证发行方10处获取一定数量的流量凭证作为后续在提供业务数据时统计流量的衡量单位。In order to achieve traffic statistics when transmitting service data, the service provider 20 may obtain a certain number of traffic vouchers from the voucher issuer 10 in advance as a measurement unit for subsequent traffic statistics when providing service data.
内容分发网络30(Content Delivery Network,CDN)与业务提供方20对接,可用于存储业务提供方的业务数据,以及向业务请求方传输向业务提供方20请求的业务数据。在传输业务数据时,可结合MEC(Mobile Edge Computing,移动边缘计算)技术,选取靠近业务请求方的分发节点(此时作为边缘节点)作为目标分发节点,从而指示目标分发节点向业务提供方传输业务数据。比如选取节点30n。通过选取边缘节点来向业务提供方传输业务数据,可以缓解网络压力,提高传输效率。当然,选取目标分发节点的方式可参考相关技术,本说明书并不对此进行限制。例如,实时地根据网络流量和各节点的连接、负载状况以及到业务请求方的距离和响应时间等综合因素,将用户获取业务数据的请求导向离业务请求方最近的分发节点上。The content delivery network 30 (Content Delivery Network, CDN) is connected to the service provider 20, and can be used to store the service data of the service provider and transmit the service data requested to the service provider 20 to the service requester. When transmitting service data, the MEC (Mobile Edge Computing) technology can be combined to select the distribution node close to the service requester (in this case as an edge node) as the target distribution node, thereby instructing the target distribution node to transmit to the service provider Business data. For example, select node 30n. By selecting edge nodes to transmit service data to the service provider, network pressure can be relieved and transmission efficiency improved. Of course, the method of selecting the target distribution node can refer to related technologies, and this specification does not limit this. For example, according to the comprehensive factors such as the network traffic and the connection of each node, the load status, the distance to the service requester and the response time, the user's request for obtaining service data is directed to the distribution node closest to the service requester in real time.
在选取出目标分发节点后,由目标分发节点向业务请求方40传输业务数据,而在传输数据的过程中需统计目标分发节点实际传输的数据量。尤其是在使用分发网络收费的情况下,比如按照分发节点的流量进行收费,那么需要统计分发节点实际传输的数据量,从而据此进行计费结算。After the target distribution node is selected, the target distribution node transmits the service data to the service requester 40, and in the process of data transmission, the amount of data actually transmitted by the target distribution node needs to be counted. Especially in the case of using the distribution network to charge, such as charging according to the flow of the distribution node, it is necessary to count the amount of data actually transmitted by the distribution node, so as to perform charging and settlement based on this.
业务请求方40与业务提供方20合作,作为业务提供方20的用户向业务提供方20请求获取业务数据。同样以视频平台为例,业务请求方40可注册成为视频平台的用户或会员,进而通过视频平台获取视频数据。The service requester 40 cooperates with the service provider 20, and a user as the service provider 20 requests the service provider 20 to obtain service data. Taking the video platform as an example, the service requester 40 can register as a user or member of the video platform, and then obtain video data through the video platform.
区块链网络50中的各个区块链节点(比如节点501、节点502等等)可响应于凭证发行方10、业务提供方20和业务请求方40提交的针对流量凭证的转账交易,对各方流量凭证的所有权进行转移,从而实现对目标分发节点真实的数据传输流量进行统计。Each blockchain node (such as node 501, node 502, etc.) in the blockchain network 50 can respond to the transfer transaction for the flow certificate submitted by the certificate issuer 10, the service provider 20, and the service requester 40. The ownership of the party's flow certificate is transferred, so as to realize the statistics of the real data transmission flow of the target distribution node.
下面分别从凭证发行方10、业务提供方20、内容分发网络30、业务请求方40和区块链网络50侧,对本说明书基于区块链的流量统计方案进行说明。The following describes the block chain-based traffic statistics scheme in this specification from the side of the certificate issuer 10, the service provider 20, the content distribution network 30, the service requester 40, and the blockchain network 50 respectively.
图2是一示例性实施例提供的一种基于区块链的流量统计方法的流程图。如图2所示,该方法应用于凭证发行方,可以包括以下步骤:Fig. 2 is a flowchart of a block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 2, the method is applied to the certificate issuer and can include the following steps:
步骤202,凭证发行方创建针对业务提供方的第一转账交易,所述第一转账交易中包含第一交易额。Step 202: The voucher issuer creates a first transfer transaction for the service provider, and the first transfer transaction includes the first transaction amount.
在本实施例中,在需要对目标分发节点针对业务数据的实际传输量进行流量统计的场景下,凭证发行方可预先向业务提供方转账一定数量的流量凭证,用于在后续传输业务数据的过程中在各方进行转移以实现流量统计。例如,凭证发行方可以是对MEC节点进行统一管理的MEC管理系统。那么,区块链网络中的区块链节点可响应于第一转账交易,将与第一交易额对等的流量凭证的所有权从凭证发行方转移至业务提供方。比如,将凭证发行方账户中存放的与第一交易额对等的流量凭证从凭证发行方账户转移至业务提供方账户中。In this embodiment, in a scenario where traffic statistics need to be performed on the actual transmission volume of the service data by the target distribution node, the voucher issuer can transfer a certain amount of traffic voucher to the service provider in advance for subsequent transmission of the service data. During the process, all parties are transferred to achieve traffic statistics. For example, the certificate issuer may be an MEC management system that uniformly manages MEC nodes. Then, the blockchain node in the blockchain network can respond to the first transfer transaction to transfer the ownership of the flow certificate equivalent to the first transaction amount from the certificate issuer to the service provider. For example, the flow voucher equivalent to the first transaction amount stored in the voucher issuer's account is transferred from the voucher issuer's account to the service provider's account.
以以太坊的区块链模型为例,各方在区块链网络中注册有相应的区块链账户,区块链账户可用于存放凭证发行方发行的流量凭证。具体而言,各方在需要向其他方进行针对流量凭证的转账时,可向区块链网络提交相应的转账交易,从而指示区块链节点根据转账交易中包含的交易额转移相应区块链账户中的流量凭证。Taking the blockchain model of Ethereum as an example, all parties have registered corresponding blockchain accounts in the blockchain network, and the blockchain accounts can be used to store the traffic vouchers issued by the voucher issuer. Specifically, when each party needs to transfer money to other parties for the flow certificate, they can submit the corresponding transfer transaction to the blockchain network, thereby instructing the blockchain node to transfer the corresponding blockchain according to the transaction amount included in the transfer transaction The flow certificate in the account.
在以太坊中,区块链账户可以包括外部账户和合约账户等。外部账户通常为用户(个人或机构)所有,而合约账户则对应于部署在区块链中的智能合约。各类账户的结构都类似,例如可以包含Nonce字段、Balance字段、Code字段和Storage字段等。每个账户的Nonce字段的取值从0开始,且Nonce字段的取值随相应账户所发起的交易而依次递增,使得该账户发起的每一交易所含Nonce取值均不相同,从而可避免重放攻击。Balance字段用于存放账户余额。Code字段用于存放智能合约的代码,因而外部账户的Code字段通常为空。Storage字段用于存放账户在状态树中对应节点处的取值。In Ethereum, blockchain accounts can include external accounts and contract accounts. External accounts are usually owned by users (individuals or institutions), while contract accounts correspond to smart contracts deployed in the blockchain. The structures of all types of accounts are similar, for example, they can include the Nonce field, the Balance field, the Code field, and the Storage field. The value of the Nonce field of each account starts from 0, and the value of the Nonce field increases in sequence with the transactions initiated by the corresponding account, so that the value of the Nonce in each transaction initiated by the account is different, which can be avoided Replay attack. The Balance field is used to store the account balance. The Code field is used to store the code of the smart contract, so the Code field of the external account is usually empty. The Storage field is used to store the value of the account at the corresponding node in the state tree.
基于上述账户模型,可对Balance字段的结构进行改进,在Balance字段中存放流量凭证。或者,将Balance字段进一步划分为存放账户余额和流量凭证。或者,额外添加其他字段用于存放流量凭证。当然,还可采用其他任意增加或改进字段的方式来存放流量凭证,本说明书并不对此进行限制。Based on the above account model, the structure of the Balance field can be improved, and the flow vouchers can be stored in the Balance field. Or, the Balance field is further divided into deposit account balances and flow vouchers. Or, additional fields are added to store traffic vouchers. Of course, other methods of adding or improving fields can also be used to store the traffic vouchers, and this specification does not limit this.
当然,还可采用其他区块链模型,比如采用UTXO(Unspent Transaction Output,未花费的交易输出)模型。UTXO模型的典型应用场景为比特币区块链,该模型下的链上资产以交易输出的形式存在,当一笔交易存在未花费的交易输出时,该未花费的交易输出归私钥持有者所有。Of course, other blockchain models can also be used, such as UTXO (Unspent Transaction Output) model. The typical application scenario of the UTXO model is the Bitcoin blockchain. The assets on the chain under this model exist in the form of transaction output. When there is an unspent transaction output for a transaction, the unspent transaction output belongs to the private key. Owner.
步骤204,所述凭证发行方向区块链网络提交所述第一转账交易,所述第一转账交易用于指示所述区块链网络中的区块链节点将与所述第一交易额对等的流量凭证的所有权从所述凭证发行方转移至业务提供方;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量。Step 204: The certificate issuer submits the first transfer transaction to the blockchain network, and the first transfer transaction is used to indicate that the blockchain node in the blockchain network will match the first transaction amount. The ownership of the equivalent flow certificate is transferred from the certificate issuer to the service provider; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is subject to The blockchain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the transaction amount. The data volume of the service data requested by the service requester.
其中,所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。Wherein, the ownership of the flow voucher equivalent to the third transaction amount included in the third transfer transaction among the flow voucher held by the service requester is controlled by the blockchain node when the third transfer transaction is received. Transferred to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transfer of the service data by the target distribution node to the service requester Transmission volume.
基于凭证发行方向业务提供方预转账有流量凭证,业务提供方在接收到业务请求方发送的针对业务数据的获取请求时,可先确定该业务数据的数据量,进而确定与该数据量对等的流量凭证的数量作为第二交易额(即第二交易额对应于业务数据的数据量),向区块链网络提交包含第二交易额的第二转账交易。那么区块链节点可响应于该第二转账交易,将业务提供方持有的流量凭证中与第二交易额对等的流量凭证转入至业务请求方,也即这些流量凭证改为由业务请求方持有。例如,业务数据为100M,1Token=1M流量,那么第二交易额为100,经上述转账操作后,业务请求方将持有100个来自于业务提供方的Token。换言之,通过上述转账操作,业务请求方将持有与所请求的业务数据的数据量对等的流量凭证,也即业务请求方后续获取到的业务数据的数据量应当与业务提供方转入的流量凭证对等,可理解为此时业务请求方持有的流量凭证对等的数据量,为预计后续能够接收到的数据量。因此,业务请求方持有的流量凭证可用于与后续接收到业务数据的数据量进行对比,从而衡量针对业务数据的实际传输量是否属实。Based on the flow voucher for pre-transferring funds to the service provider based on the voucher issuer, when the service provider receives the request for obtaining service data sent by the service requester, the service provider can first determine the data volume of the service data, and then determine the equivalent of the data volume The number of traffic vouchers in is used as the second transaction amount (that is, the second transaction amount corresponds to the data amount of the business data), and the second transfer transaction containing the second transaction amount is submitted to the blockchain network. Then, in response to the second transfer transaction, the blockchain node can transfer the traffic vouchers that are equivalent to the second transaction amount among the traffic vouchers held by the service provider to the business requester, that is, these traffic vouchers are changed from the business to the service requester. The requesting party holds. For example, if the service data is 100M and 1Token=1M traffic, the second transaction amount is 100. After the above transfer operation, the service requester will hold 100 Tokens from the service provider. In other words, through the above transfer operation, the business requester will hold a traffic voucher equivalent to the data volume of the requested business data, that is, the data volume of the business data subsequently obtained by the business requester should be transferred to the service provider Flow voucher equivalence can be understood as the amount of data equivalent to the flow voucher held by the business requester at this time, which is the amount of data that is expected to be received in the future. Therefore, the traffic voucher held by the service requester can be used to compare with the data volume of the subsequently received service data, so as to measure whether the actual transmission volume of the service data is true.
进一步的,业务提供方或者MEC管理系统从分发网络中选取出目标分发节点,进而向业务请求方传输业务数据。而业务请求方在接收目标分发节点传输的业务数据时,可确定目标分发节点针对业务数据的实际传输量,比如将从目标分发节点处实际接收到的数据的数据量作为该实际传输量。然后,确定定与该实际传输量对等的流量凭证的数量作为第三交易额(即第三交易额对应于实际传输量),向区块链网络提交包含第三交易额的第三转账交易。那么区块链节点可响应于该第三转账交易,将业务请求方持有的流量凭证中与第三交易额对等的流量凭证转入至目标分发节点,也即这些流量凭证改为由业务请求方持有。承接于上述举例,业务请求方从目标分发节点处实际接收到的数据的数据量为95M,那么第三交易额为95,经上述转账操作后,目标分发节点将持有95个来自于业务请求方的Token。Further, the service provider or the MEC management system selects the target distribution node from the distribution network, and then transmits the service data to the service requester. When the service requester receives the service data transmitted by the target distribution node, it can determine the actual transmission volume of the target distribution node for the service data, for example, the data volume of the data actually received from the target distribution node as the actual transmission volume. Then, determine the number of traffic vouchers equivalent to the actual transmission amount as the third transaction amount (that is, the third transaction amount corresponds to the actual transmission amount), and submit the third transfer transaction containing the third transaction amount to the blockchain network . Then the blockchain node can respond to the third transfer transaction to transfer the traffic vouchers that are equivalent to the third transaction amount among the traffic vouchers held by the business requester to the target distribution node, that is, these traffic vouchers are changed from the business to the target distribution node. The requesting party holds. Following the above example, the amount of data actually received by the service requester from the target distribution node is 95M, then the third transaction amount is 95. After the above transfer operation, the target distribution node will hold 95 requests from the service Party’s Token.
由上述可见,通过将与业务数据的数据量对等的流量凭证转移至业务请求方,使得业务请求方可根据来自于目标分发节点的业务数据的实际传输量,将持有的流量凭证中与实际传输量对等的流量凭证转移至目标分发节点。目标分发节点在传输完业务数据后,所持有的流量凭证与实际传输量对等,因此可根据目标分发节点持有的流量凭证来对目标分发节点传输业务数据的流量进行统计。相比于直接由目标分发节点自身来统计流量,通过上述根据业务请求方接收到的实际传输量转移流量凭证的过程,可防止目标分发节点伪造实际传输量。同时,转移至业务请求方的流量凭证与业务数据的实际大小对等,可防止业务请求方向目标分发节点转移超过业务数据实际大小的流量凭证(业务请求方没有足够的流量凭证),即防止业务请求方协助目标分发节点伪造实际传输量。It can be seen from the above that by transferring the traffic vouchers equivalent to the data volume of the business data to the business requester, the business requester can compare the traffic vouchers it holds with the actual transmission volume of the business data from the target distribution node. The traffic vouchers with the actual transmission volume equivalent are transferred to the target distribution node. After the target distribution node transmits the service data, the traffic vouchers held by the target distribution node are equal to the actual transmission volume. Therefore, the traffic vouchers held by the target distribution node can be used to count the traffic of the target distribution node to transmit the service data. Compared with the direct statistics of the traffic by the target distribution node itself, the process of transferring the traffic voucher according to the actual transmission volume received by the service requester can prevent the target distribution node from forging the actual transmission volume. At the same time, the traffic vouchers transferred to the business requester are equal to the actual size of the business data, which prevents the business request from transferring traffic vouchers that exceed the actual size of the business data to the target distribution node (the business requester does not have enough traffic vouchers), that is, to prevent the business The requester assists the target distribution node to forge the actual transmission volume.
在边缘节点计费的场景下,比如按照分发节点的流量进行收费,可由MEC管理系统作为凭证发行方,发行流量凭证以统计分发节点实际传输的数据量,从而据此进行计费结算。而为了提高计费的准确性和安全性,可引入对流量凭证签名的方式。In the scenario of edge node charging, such as charging according to the flow of the distribution node, the MEC management system can be used as the voucher issuer, and the flow voucher can be issued to count the amount of data actually transmitted by the distribution node, thereby performing charging and settlement. In order to improve the accuracy and security of billing, a method of signing traffic vouchers can be introduced.
作为一示例性实施例,各方在区块链网络上注册,从而获得区块链网络为自身创建的链上身份以及非对称密钥对。那么,上述对流量凭证签名的方式可以为:从凭证发行方转出的流量凭证被采用凭证发行方的私钥签名;从业务提供方转出的流量凭证被采用业务提供方的私钥签名;从业务请求方转出的流量凭证被采用业务请求方的私钥签名;转入目标分发节点的流量凭证被采用目标分发节点的私钥签名。比如,对于各方所持有的所有流量凭证,均采用相应的私钥进行签名,以用于在对流量凭证进行转账的过程中证明流量凭证的来源。As an exemplary embodiment, each party registers on the blockchain network to obtain the on-chain identity and asymmetric key pair created by the blockchain network for itself. Then, the above-mentioned method of signing the traffic certificate can be: the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node. For example, for all traffic certificates held by all parties, the corresponding private key is used to sign, so as to prove the source of the traffic certificate in the process of transferring the traffic certificate.
基于上述对流量凭证签名的机制,在对目标分发节点所传输的流量进行结算时,可通过目标分发节点持有的流量凭证来衡量。因此,需对目标分发节点持有的流量凭证进行验签,保证目标分发节点持有的流量凭证是按照上述步骤202-204所示实施例中转移的过程得到。而结合上述流量凭证的转移过程和上述对流量凭证签名的机制可得,最终转移至目标分发节点的流量凭证依次被采用凭证发行方、业务提供方、业务请求方和目标分发节点的私钥签名。因此,在不出现伪造流量凭证的情况下,目标分发节点持有的所有流量凭证均可分别被凭证发行方、业务提供方、业务请求方和目标分发节点的公钥验签通过。换言之,被采用凭证发行方、业务提供方、业务请求方和目标分发节点的私钥签名的流量凭证可用于衡量目标分发节点的实际传输量,进而可对其进行费用结算。Based on the foregoing mechanism for signing traffic vouchers, when the traffic transmitted by the target distribution node is settled, it can be measured by the traffic vouchers held by the target distribution node. Therefore, it is necessary to verify the flow certificate held by the target distribution node to ensure that the flow certificate held by the target distribution node is obtained according to the transfer process in the embodiment shown in steps 202-204. Combining the above-mentioned flow certificate transfer process and the above-mentioned mechanism for signing the flow certificate can be obtained, and the flow certificate finally transferred to the target distribution node is sequentially signed by the private key of the certificate issuer, service provider, service requester, and target distribution node. . Therefore, all the traffic vouchers held by the target distribution node can be verified and signed by the public keys of the certificate issuer, service provider, service requester, and target distribution node respectively without the occurrence of forged traffic vouchers. In other words, the traffic certificate signed by the private key of the certificate issuer, service provider, service requester, and target distribution node can be used to measure the actual transmission volume of the target distribution node, and then the cost can be settled.
在本实施例中,在目标分发节点向业务请求方传输业务数据的过程中,可在目标分发节点传输完全部的业务数据后,再由业务请求方根据接收到的业务数据的数据量发起第三转账交易。或者,目标分发节点将业务数据划分为若干业务子数据,并向业务请求方传输各个业务子数据。相应的,业务请求方在每次接收到业务子数据的情况下,向区块链网络提交第三转账交易,第三转账交易的第三交易额对应于接收到的业务子数据的数据量。例如,将100M的业务数据划分为10个10M的业务子数据分别进行传输。那么,业务请求方每接收到一个10M的业务子数据后,都必须发起一笔交易额为10的第三转账交易,从而向目标分发节点转账10个Token。In this embodiment, in the process of transmitting service data from the target distribution node to the service requester, after the target distribution node transmits all the service data, the service requester initiates the first according to the data volume of the received service data. 3. Transfer transactions. Or, the target distribution node divides the service data into several service sub-data, and transmits each service sub-data to the service requester. Correspondingly, each time the service requester receives the service sub-data, it submits the third transfer transaction to the blockchain network, and the third transaction amount of the third transfer transaction corresponds to the data volume of the received service sub-data. For example, the 100M service data is divided into 10 10M service sub-data to be transmitted separately. Then, after each service requester receives a 10M service sub-data, it must initiate a third transfer transaction with a transaction amount of 10, thereby transferring 10 Tokens to the target distribution node.
业务请求方可能出现发起的转账交易的交易额代表的数据量小于目标分发节点实际传输量的情况,导致目标分发节点最终持有的所有流量凭证对应的数据量少于实际传输量。为了防止业务请求方出现上述作恶的情况,在上述划分出业务子数据进行传输的场景下,目标分发节点在每次传输完业务子数据后,确定相对于上一次传输完业务子数据后新增持有的流量凭证对应的新增数据量和本次所传输的业务子数据的传输数据量,并在新增数据量小于传输数据量的情况下,停止向业务请求方传输剩余的业务子数据,从而及时止损,避免业务请求方继续作恶。承接于上述举例,假定目标分发节点在向业务请求方传输完10M的业务子数据后,业务请求方向区块链发起的转账交易的交易额为9,在执行完该转账交易后,目标分发节点新增的流量凭证为9个Token,而实际应当新增的流量凭证为10个Token。因此,当目标分发节点确定出自身持有的流量凭证的新增数量未达到10个时,停止向业务请求传输剩余未传输的业务子数据。The business requester may have a situation where the amount of data represented by the transaction amount of the initiated transfer transaction is less than the actual transmission volume of the target distribution node, resulting in that the data volume corresponding to all the traffic vouchers ultimately held by the target distribution node is less than the actual transmission volume. In order to prevent the service requester from doing the above-mentioned evil situation, in the above-mentioned scenario where the service sub-data is divided for transmission, the target distribution node determines the new addition after the service sub-data is transmitted each time after the service sub-data is transmitted. The amount of newly added data corresponding to the held traffic vouchers and the amount of transmission data of the business sub-data transmitted this time, and if the amount of newly added data is less than the amount of transmitted data, stop transmitting the remaining business sub-data to the service requester , So as to stop the loss in time and prevent the business requester from continuing to do evil. Continuing the above example, suppose that after the target distribution node transmits 10M business sub-data to the service requester, the transaction amount of the transfer transaction initiated by the service requester to the blockchain is 9. After the transfer transaction is executed, the target distribution node The newly added traffic certificate is 9 Tokens, and the actual traffic certificate that should be added is 10 Tokens. Therefore, when the target distribution node determines that the newly added number of traffic vouchers it holds does not reach 10, it stops requesting the service to transmit the remaining untransmitted service sub-data.
而针对划分业务数据的方式,目标分发节点可按照预设维度将业务数据划分为若干业务子数据。其中,预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。举例而言,业务数据的数据量为200M,按照业务子数据的平均数据量为20M,将业务数据平均划分为10个20M的业务子数据。或者,按照业务子数据的总数量为5个,将业务数据平均划分为5个40M的业务子数据。或者,假定业务数据为图片,业务数据中包含bmp、jpg、png、tif、gif等多种格式的图片,则按照图片格式将业务数据进行划分。或者,假定业务数据中包含视频、图片、音频、文档等多种文件类型的数据,则按照文件类型将业务数据进行划分。当然,划分的依据可根据实际需求灵活设定,本说明书并不对此进行限制。Regarding the way of dividing business data, the target distribution node can divide the business data into several business sub-data according to preset dimensions. Among them, the preset dimension includes any of the following: the average data volume of the business sub-data, the total number of the business sub-data, and the data type. For example, if the data volume of the business data is 200M, according to the average data volume of the business sub-data being 20M, the business data is divided into ten 20M business sub-data on average. Or, according to the total number of business sub-data being five, the business data is divided into five 40M business sub-data on average. Or, assuming that the business data is a picture, and the business data includes pictures in multiple formats such as bmp, jpg, png, tif, gif, etc., the business data is divided according to the picture format. Or, assuming that the service data contains data of multiple file types such as videos, pictures, audios, documents, etc., the service data is divided according to file types. Of course, the basis of the division can be flexibly set according to actual needs, and this manual does not limit this.
业务提供方还可根据业务请求方发送的身份信息,对业务请求方针对业务数据的获取权限进行权限验证,将权限验证通过作为向区块链网络提交第二转账交易的前提条件。The service provider can also verify the permission of the service requester to obtain the business data according to the identity information sent by the service requester, and use the permission verification as a prerequisite for submitting the second transfer transaction to the blockchain network.
下面结合图3-4对本说明书的基于区块链的流量统计方案进行详细说明。图3是一示例性实施例提供的一种基于区块链的流量统计方法的交互图。如图3所示,该交互过程可以包括以下步骤:The following describes the block chain-based traffic statistics scheme of this specification in detail with reference to Figures 3-4. Fig. 3 is an interaction diagram of a block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 3, the interaction process may include the following steps:
步骤302,凭证发行方向区块链节点提交第一转账交易。Step 302: The certificate issuer submits the first transfer transaction to the blockchain node.
在本实施例中,各方可在区块链网络上进行注册,以由区块链网络为其生成链上身份以与所持有的流量凭证进行绑定,以及生成非对称密钥对以供后续采用其中的私钥对流量凭证进行签名以及采用公钥对签名验签。例如,在采用账户模型的情况下,链上身份为账户地址;在采用UTXO模型的情况下,链上身份为钱包地址。而对于用于生成公钥和私钥的非对称加密算法,例如可以是RSA、Elgamal、背包算法、Rabin、D-H、ECC(椭圆曲线加密算法)等。In this embodiment, all parties can register on the blockchain network to generate on-chain identities for the blockchain network to bind to the traffic vouchers held, and generate an asymmetric key pair for For subsequent use of the private key to sign the traffic certificate and the use of the public key to verify the signature. For example, in the case of the account model, the identity on the chain is the account address; in the case of the UTXO model, the identity on the chain is the wallet address. As for the asymmetric encryption algorithm used to generate the public key and the private key, for example, it can be RSA, Elgamal, knapsack algorithm, Rabin, D-H, ECC (elliptic curve encryption algorithm), etc.
在本实施例中,凭证发行方可以是对MEC节点进行统一管理的MEC管理系统,用于发行Token用于衡量流量。凭证发行方可预先向业务提供方转账一定数量的Token,用于在后续传输业务数据的过程中在各方进行转移以实现流量统计和计费结算。例如,业务提供方通过链下通道向凭证发行方购买了一定数量的Token以用于后续转账给业务提供方。那么,凭证发行方创建第一转账交易,第一转账交易包含的第一交易额(用于表明需要转移的Token的数量)为业务提供方向凭证发行方购买的Token的数量,并向区块链节点提交第一转账交易。In this embodiment, the certificate issuer may be an MEC management system that uniformly manages MEC nodes, and is used to issue tokens for traffic measurement. The voucher issuer can transfer a certain amount of Token to the service provider in advance, which is used to transfer between all parties during the subsequent transmission of service data to realize traffic statistics and billing settlement. For example, the service provider purchases a certain amount of Token from the voucher issuer through the off-chain channel for subsequent transfer to the service provider. Then, the voucher issuer creates the first transfer transaction, and the first transaction amount (used to indicate the number of Tokens that need to be transferred) included in the first transfer transaction is the number of Tokens purchased by the business provider from the voucher issuer and sends it to the blockchain The node submits the first transfer transaction.
其中,各方所持有的流量凭证被采用相应持有方的私钥签名。比如,区块链节点可统一在将Token转入某一账户中后,采用该账户的私钥对转入的Token签名。或者,区块链节点可统一在将Token转出某一账户之前,采用该账户的私钥对待转出的Token签名。总而言之,保证各方曾经持有过的Token均被采用持有方的私钥进行签名即可,从而可通过验签来证明Token的来源。以凭证发行方为例,如图5所示,图中的凭证发行方10、业务提供方20、业务请求方40和目标分发节点30分别代表各方的账户,而P代表的是转出的Token(下文称为Token P)。Among them, the flow certificate held by each party is signed with the private key of the corresponding holder. For example, blockchain nodes can uniformly use the private key of the account to sign the transferred Token after transferring the Token to an account. Alternatively, the blockchain node can uniformly use the private key of the account to sign the transferred Token before transferring the Token out of an account. All in all, it is sufficient to ensure that the Tokens held by all parties have been signed with the holder's private key, so that the source of the Token can be verified through signature verification. Take the certificate issuer as an example. As shown in Figure 5, the certificate issuer 10, service provider 20, service requester 40, and target distribution node 30 in the figure represent the accounts of each party, and P represents the transferred out Token (hereinafter referred to as Token P).
区块链节点可采用对凭证发行方10的私钥对凭证发行方10持有的全部Token进行签名,或者在将凭证发行方10持有的Token转出至业务提供方20的账户之前,采用凭证发行方10的私钥对待转出的Token进行签名。经上述签名的操作,可保证转入至业务提供方20的账户的Token P均被采用凭证发行方10的私钥签名。The blockchain node can use the private key of the certificate issuer 10 to sign all Tokens held by the certificate issuer 10, or before transferring the Tokens held by the certificate issuer 10 to the account of the service provider 20, use The private key of the certificate issuer 10 signs the Token to be transferred. After the above-mentioned signature operation, it can be ensured that the Token P transferred to the account of the service provider 20 is signed with the private key of the certificate issuer 10.
步骤304,区块链节点向业务提供方转账。Step 304: The blockchain node transfers money to the service provider.
在本实施例中,区块链网络中的区块链节点可响应于第一转账交易,将凭证发行方账户中与第一交易额相匹配数量的Token转入至业务提供方的账户中。如图5所示,由上述签名的机制可知,从凭证发行方10的账户转出的Token P均被采用凭证发行方10的私钥进行签名。进一步的,区块链节点可采用业务提供方的私钥对转入业务提供方账户的Token进行签名。In this embodiment, the blockchain node in the blockchain network can, in response to the first transfer transaction, transfer the number of tokens matching the first transaction amount in the voucher issuer's account to the service provider's account. As shown in FIG. 5, it can be known from the above-mentioned signature mechanism that the Token P transferred from the account of the certificate issuer 10 is signed with the private key of the certificate issuer 10. Further, the blockchain node can use the private key of the service provider to sign the Token transferred to the account of the service provider.
步骤306,业务请求方向业务提供方发送针对业务数据的获取请求。Step 306: The service requester sends an acquisition request for service data to the service provider.
步骤308,业务提供方对业务请求方鉴权。Step 308: The service provider authenticates the service requester.
以视频场景为例,用户向视频平台发送针对某一视频的获取请求,该获取请求中包含该用户的账号信息。那么,视频可根据该账号信息对该用户进行鉴权,比如鉴权的内容可以包括该用户是否办理有会员服务,该用户是否被封号等。当然,业务提供方还可进一步确定业务请求方是否在区块链上注册有链上身份,并在未注册的情况下返回相应 的提示消息以提示该用户。Taking a video scene as an example, a user sends an acquisition request for a certain video to a video platform, and the acquisition request includes the user's account information. Then, the video can authenticate the user based on the account information. For example, the content of the authentication can include whether the user has a membership service, whether the user is blocked, and so on. Of course, the service provider can further determine whether the service requester has an on-chain identity registered on the blockchain, and return a corresponding prompt message to remind the user if it is not registered.
步骤310,业务提供方向区块链节点提交第二转账交易。Step 310: The service provider submits a second transfer transaction to the blockchain node.
举例而言,业务数据为100M,1Token=1M流量,那么第二交易额为100,经上述转账操作后,业务请求方将持有100个来自于业务提供方的Token。For example, if the service data is 100M and 1Token=1M traffic, the second transaction amount is 100. After the above transfer operation, the service requester will hold 100 tokens from the service provider.
步骤312,区块链节点向业务请求方转账。In step 312, the blockchain node transfers money to the service requester.
在本实施例中,针对业务请求方的鉴权通过后,可确定业务请求方请求的业务数据的数据量,进而确定与该数据量对等的流量凭证的数量作为第二交易额,向区块链网络提交包含第二交易额的第二转账交易。区块链节点在接收到第二转账交易后,将业务提供方账户中与第二交易额相匹配数量的Token转入至业务请求方账户中。如图5所示,由上述签名的机制可知,从业务提供方20的账户转出的Token P均被采用业务提供方20的私钥进行签名。进一步的,区块链节点可采用业务请求方40的私钥对转入业务请求方账户的Token进行签名。In this embodiment, after the authentication for the service requester is passed, the data volume of the service data requested by the service requester can be determined, and then the number of traffic vouchers equivalent to the data volume can be determined as the second transaction amount. The block chain network submits a second transfer transaction including the second transaction amount. After receiving the second transfer transaction, the blockchain node transfers the Tokens in the service provider's account that matches the second transaction amount to the service requester's account. As shown in FIG. 5, it can be seen from the above-mentioned signature mechanism that the Token P transferred from the account of the service provider 20 is all signed with the private key of the service provider 20. Further, the blockchain node may use the private key of the service requester 40 to sign the Token transferred to the account of the service requester.
步骤314,业务提供方向目标分发节点发送传输指令。Step 314: The service provider sends a transmission instruction to the target distribution node.
在本实施例中,业务提供方从分发网络中选取出目标分发节点,进而向目标分发节点发送传输指令,以指示目标分发节点向业务请求方传输业务数据。In this embodiment, the service provider selects the target distribution node from the distribution network, and then sends a transmission instruction to the target distribution node to instruct the target distribution node to transmit service data to the service requester.
步骤316,目标分发节点向业务请求方传输业务数据。Step 316: The target distribution node transmits the service data to the service requester.
目标分发节点可将业务数据划分为若干业务子数据,并向业务请求方传输各个业务子数据。在该情况下,要求业务请求方在每接收到一个业务子数据后,都必须根据接收到的业务数据的数据量发起第三转账交易。例如,将100M的业务数据划分为10个10M的业务子数据分别进行传输。那么,业务请求方每接收到一个10M的业务子数据后,都必须发起一笔交易额为10的第三转账交易,从而向目标分发节点转账10个Token。The target distribution node can divide the service data into several service sub-data, and transmit each service sub-data to the service requester. In this case, the service requester is required to initiate a third transfer transaction according to the data volume of the received service data after each service sub-data is received. For example, the 100M service data is divided into 10 10M service sub-data to be transmitted separately. Then, after each service requester receives a 10M service sub-data, it must initiate a third transfer transaction with a transaction amount of 10, thereby transferring 10 Tokens to the target distribution node.
进一步的,业务请求方可能出现作恶的情况。承接于上述举例,目标分发节点在向业务请求方传输完10M的业务子数据后,可向区块链节点提交针对自身所持有的Token的查询交易,从而获取自身所持有的Token的情况。假定业务请求方向区块链发起的转账交易的交易额为9,那么,在执行完该转账交易后,目标分发节点新增的流量凭证为9个Token,而实际应当新增的流量凭证为10个Token。因此,当目标分发节点确定出自身持有的流量凭证的新增数量未达到10个时,停止向业务请求传输剩余未传输的业务子数据,从而及时止损,避免业务请求方继续作恶。Furthermore, the business requesting party may be malicious. Following the above example, after the target distribution node has transmitted 10M business sub-data to the service requester, it can submit a query transaction for its own Token to the blockchain node to obtain the status of its own Token. . Assuming that the transaction amount of the transfer transaction initiated by the business request to the blockchain is 9, then after the transfer transaction is executed, the newly added traffic vouchers of the target distribution node are 9 Tokens, and the actual new traffic vouchers should be 10 Token. Therefore, when the target distribution node determines that the number of new traffic vouchers it holds does not reach 10, it stops transmitting the remaining untransmitted service sub-data to the service request, so as to stop the loss in time and prevent the service requester from continuing to do evil.
步骤318,业务请求方向区块链节点提交第三转账交易。Step 318: The business request submits a third transfer transaction to the blockchain node.
步骤320,区块链节点向目标分发节点转账。In step 320, the blockchain node transfers money to the target distribution node.
如图5所示,由上述签名的机制可知,从业务请求方40的账户转出的Token P均被采用业务请求方40的私钥进行签名。进一步的,区块链节点在向目标分发节点完成转账之后,可采用目标分发节点30的私钥对转入目标分发节点30的账户的Token进行签名。那么,经上述转移Token的过程后,最终目标分发节点30持有的所有Token均被依次采用凭证发行方、业务提供方、业务请求方和目标分发节点的私钥签名。As shown in FIG. 5, it can be known from the above-mentioned signature mechanism that the Token P transferred from the account of the service requester 40 is signed with the private key of the service requester 40. Further, after the blockchain node completes the transfer to the target distribution node, it can use the private key of the target distribution node 30 to sign the Token transferred to the account of the target distribution node 30. Then, after the above process of transferring Tokens, all Tokens held by the final target distribution node 30 are sequentially signed with the private keys of the certificate issuer, service provider, service requester, and target distribution node.
进一步的,在对目标分发节点所传输的流量进行结算时,可通过目标分发节点持有的流量凭证来衡量。因此,需对目标分发节点持有的流量凭证进行验签。以凭证发行方发起结算为例,凭证发行方可制定针对流量凭证的费用转换标准。比如,10Token=0.01元。当然,本说明书并不对费用转换标准的具体内容进行限制。凭证发行方可向区块链网络提交针对目标分发节点所持有的流量凭证的结算交易,那么区块链网络中的区块链节点可响应于该结算交易,分别采用凭证发行方、业务提供方、业务请求方和目标分发 节点的公钥对目标分发节点持有的流量凭证进行验签,并在验签均通过的情况下按照针对凭证发行方发行的流量凭证的费用转换标准,对目标分发节点持有的流量凭证进行费用结算。当然,用于执行上述验签和结算操作的逻辑,可以写入链代码中以由区块链节点通过执行链代码直接执行验签和结算操作;还可写入智能合约中,并将该智能合约部署在区块链上。那么,上述结算交易则用于调用该智能合约,由区块链节点通过执行智能合约中的代码来完成验签和结算操作。Further, when the traffic transmitted by the target distribution node is settled, it can be measured by the traffic vouchers held by the target distribution node. Therefore, it is necessary to verify the flow certificate held by the target distribution node. Taking the voucher issuer's initiation of settlement as an example, the voucher issuer can formulate fee conversion standards for traffic vouchers. For example, 10Token=0.01 yuan. Of course, this manual does not limit the specific content of the fee conversion standard. The certificate issuer can submit a settlement transaction for the flow certificate held by the target distribution node to the blockchain network, and then the blockchain node in the blockchain network can respond to the settlement transaction by adopting the certificate issuer and the service provider respectively. The public keys of the party, the business requester, and the target distribution node verify the flow certificate held by the target distribution node, and if the verification is passed, according to the cost conversion standard for the flow certificate issued by the certificate issuer, the target The flow certificate held by the distribution node performs fee settlement. Of course, the logic used to perform the above verification and settlement operations can be written into the chain code so that the blockchain node can directly perform the verification and settlement operations by executing the chain code; it can also be written into the smart contract and the smart contract The contract is deployed on the blockchain. Then, the above settlement transaction is used to call the smart contract, and the blockchain node executes the code in the smart contract to complete the signature verification and settlement operations.
对应于上述凭证发行方侧的实施例,本说明书还提出了业务提供方侧、业务请求方侧、目标分发节点侧和区块链节点侧的实施例,在凭证发行方侧实施例中所涉及的描述同样可以适用于上述其他侧的实施例,下文中不再对此进行赘述。Corresponding to the above embodiment on the certificate issuer side, this specification also proposes embodiments on the service provider side, service requester side, target distribution node side, and blockchain node side. The embodiments involved in the certificate issuer side The description of is also applicable to the above-mentioned embodiments on the other side, and will not be repeated hereafter.
图5是一示例性实施例提供的另一种基于区块链的流量统计方法的流程图。如图5所示,该方法应用于业务提供方,可以包括以下步骤:Fig. 5 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 5, the method is applied to the service provider and can include the following steps:
步骤502,业务提供方创建针对业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。Step 502: The service provider creates a second transfer transaction for the service requester, and the second transaction amount of the second transfer transaction corresponds to the data volume of the service data requested by the service requester; the certificate issuer holds The ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction in the flow voucher is transferred to the said first transfer transaction by the blockchain node in the blockchain network For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
步骤504,所述业务提供方向区块链网络提交所述第二转账交易,所述第二转账交易用于指示所述区块链网络中的区块链节点将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。Step 504: The service provider submits the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will match the second transaction amount. The ownership of the equivalent flow certificate is transferred from the service provider to the service requester; the ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction in the flow certificate held by the service requester, The third transfer transaction is transferred to the target distribution node by the blockchain node upon receiving the third transfer transaction, the third transfer transaction is submitted to the blockchain network by the business request, and the third transaction amount corresponds to Transmitting the actual transmission volume of the service data to the service requester at the target distribution node.
如前所述,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;As mentioned above, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
如前所述,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。As mentioned above, the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is transmitted to the service requester every time the service requester receives the service sub-data. In the case of submitting to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
如前所述,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。As mentioned above, the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time. The amount of data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of the service sub-data transmitted by the target distribution node this time. The amount of data.
所述业务数据被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The service data is divided by the target distribution node into a number of service sub-data according to a preset dimension, and the preset dimension includes any of the following: an average data volume of the service sub-data, a total number of the service sub-data, and a data type.
所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,并将权限验证通过作为向所述区块链网络提交所述 第二转账交易的前提条件。The service provider verifies the permission of the service requester to obtain the service data according to the identity information sent by the service requester, and passes the permission verification as submitting the said service to the blockchain network. Prerequisites for the second transfer transaction.
图6是一示例性实施例提供的另一种基于区块链的流量统计方法的流程图。如图6所示,该方法应用于目标分发节点,可以包括以下步骤:Fig. 6 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 6, the method is applied to the target distribution node and may include the following steps:
步骤602,内容分发网络中的目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据。Step 602: The target distribution node in the content distribution network transmits to the service requester the service data requested by the service requester from the service provider.
所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量;The ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction in the flow voucher held by the business requester is received by the block chain node in the block chain network when the third transfer transaction is received. In the case of transferring to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node transmitting the service to the service requester The actual amount of data transferred;
所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred by the blockchain node upon receiving the second transfer transaction To the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data requested by the service requester;
凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
如前所述,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;As mentioned above, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
如前所述,所述目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据,包括:所述目标分发节点将所述业务数据划分为若干业务子数据,并向所述业务请求方传输各个业务子数据;所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。As mentioned above, the target distribution node transmitting the service data requested by the service requester to the service provider to the service requester includes: the target distribution node divides the service data into a number of service sub-data, and sends the service data to the service requester. The service requester transmits each service sub-data; the third transfer transaction is submitted to the blockchain network by the service requester every time the service sub-data is received, and the third transaction of the third transfer transaction The amount corresponds to the data amount of the service sub-data received by the service requester.
如前所述,还包括:所述目标分发节点在每次传输完业务子数据后,确定相对于上一次传输完业务子数据后新增持有的流量凭证对应的新增数据量和本次所传输的业务子数据的传输数据量;所述目标分发节点在所述新增数据量小于所述传输数据量的情况下,停止向所述业务请求方传输剩余的业务子数据。As mentioned above, it also includes: the target distribution node determines the amount of new data corresponding to the new traffic voucher held after the last time the service sub-data is transmitted and the current time after the service sub-data is transmitted. The transmission data volume of the transmitted service sub-data; when the newly added data volume is less than the transmission data volume, the target distribution node stops transmitting the remaining service sub-data to the service requester.
如前所述,所述目标分发节点将所述业务数据划分为若干业务子数据,包括:所述目标分发节点按照预设维度将所述业务数据划分为若干业务子数据。所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。As mentioned above, the target distribution node dividing the service data into several service sub-data includes: the target distribution node dividing the service data into several service sub-data according to a preset dimension. The preset dimensions include any of the following: average data volume of business sub-data, total number of business sub-data, and data type.
如前所述,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。As mentioned above, the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider’s policy on the service request based on the identity information sent by the service requester The authorization verification is performed on the access authority of the business data, and the authorization verification is passed.
图7是一示例性实施例提供的另一种基于区块链的流量统计方法的流程图。如图7所示,该方法应用于业务请求方,可以包括以下步骤:Fig. 7 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 7, the method is applied to the service requester and may include the following steps:
步骤702,业务请求方创建针对目标分发节点的第三转账交易,所述第三转账交 易包含的第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务请求方所请求的业务数据的实际传输量;Step 702: The service requester creates a third transfer transaction for the target distribution node, and the third transaction amount included in the third transfer transaction corresponds to the target distribution node transmitting the service requester requested by the service requester The actual transmission volume of business data;
步骤704,所述业务请求方向区块链网络提交所述第三转账交易,所述第三转账交易用于指示所述区块链网络中的区块链节点将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点;Step 704: The service request submits the third transfer transaction to the blockchain network, and the third transfer transaction is used to indicate that the blockchain node in the blockchain network will match the third transaction amount. The ownership of the equivalent traffic certificate is transferred from the service requester to the target distribution node;
业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred to the place where the blockchain node receives the second transfer transaction. For the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data;
凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
如前所述,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;As mentioned above, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
如前所述,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方;所述业务请求方向区块链网络提交所述第三转账交易,包括:所述业务请求方在每次接收到业务子数据的情况下,向区块链网络提交所述第三转账交易,所述第三转账交易的第三交易额对应于接收到的业务子数据的数据量。As mentioned above, the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester; the service requester submits the third transfer transaction to the blockchain network, including: The service requester submits the third transfer transaction to the blockchain network every time it receives the service sub-data, and the third transaction amount of the third transfer transaction corresponds to the data volume of the received service sub-data .
如前所述,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。As mentioned above, the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time. The amount of data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of the service sub-data transmitted by the target distribution node this time. The amount of data.
如前所述,所述业务数据被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。As mentioned above, the service data is divided into a number of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: the average data volume of the service sub-data, and the total number of the service sub-data ,type of data.
如前所述,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。As mentioned above, the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider’s policy on the service request based on the identity information sent by the service requester The authorization verification is performed on the access authority of the business data, and the authorization verification is passed.
图8是一示例性实施例提供的另一种基于区块链的流量统计方法的流程图。如图8所示,该方法应用于区块链节点,可以包括以下步骤:Fig. 8 is a flowchart of another block chain-based traffic statistics method provided by an exemplary embodiment. As shown in Figure 8, the method is applied to blockchain nodes and can include the following steps:
步骤802,区块链网络中的区块链节点将与第一转账交易中包含的第一交易额对等的流量凭证的所有权从凭证发行方转移至业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;In step 802, the blockchain node in the blockchain network transfers the ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction from the voucher issuer to the service provider, and the first transfer transaction is transferred from the voucher issuer to the service provider. The certificate issuer submits to the blockchain network;
步骤804,所述区块链节点将与第二转账交易中包含的第二交易额对等的流量凭证的所有权从所述业务提供方转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;In step 804, the blockchain node transfers the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer transaction is transferred from the service provider to the service requester. The service provider submits to the blockchain network, the second transaction amount corresponds to the data amount of the service data requested by the service requester;
步骤806,将与第三转账交易中包含的第三交易额对等的流量凭证的所有权从所述业务请求方转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。Step 806: Transfer the ownership of the flow certificate equivalent to the third transaction amount included in the third transfer transaction from the service requester to the target distribution node, and the third transfer transaction is transferred from the service requester to the blockchain Submitted by the network, the third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
如前所述,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;所述方法还包括:As mentioned above, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node; the method also include:
所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥对所述目标分发节点持有的流量凭证进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准,对所述目标分发节点持有的流量凭证进行费用结算。The blockchain node uses the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node to verify the traffic certificate held by the target distribution node, and In the case of passing the verification and signature, according to the cost conversion standard for the flow voucher issued by the voucher issuer, the flow voucher held by the target distribution node is settled.
如前所述,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。As mentioned above, the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is transmitted to the service requester every time the service requester receives the service sub-data. In the case of submitting to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
如前所述,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。As mentioned above, the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time. The amount of data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of the service sub-data transmitted by the target distribution node this time. The amount of data.
如前所述,所述业务数据被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。As mentioned above, the service data is divided into a number of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: the average data volume of the service sub-data, and the total number of the service sub-data ,type of data.
如前所述,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。As mentioned above, the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider’s policy on the service request based on the identity information sent by the service requester The authorization verification is performed on the access authority of the business data, and the authorization verification is passed.
与上述方法实施例相对应,本说明书还提供了一种基于区块链的流量统计装置的实施例。Corresponding to the foregoing method embodiment, this specification also provides an embodiment of a block chain-based traffic statistics device.
本说明书的基于区块链的流量统计装置的实施例可以应用在电子设备上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在电子设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。The embodiments of the block chain-based traffic statistics device in this specification can be applied to electronic equipment. The device embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the electronic device where it is located.
从硬件层面而言,请参考图9,图9是一示例性实施例提供的一种设备的示意结构图。如图9所示,在硬件层面,该设备包括处理器902、内部总线904、网络接口906、内存909以及非易失性存储器910,当然还可能包括其他业务所需要的硬件。处理器902从非易失性存储器910中读取对应的计算机程序到内存909中然后运行,在逻辑层面上形成基于区块链的流量统计装置。当然,除了软件实现方式之外,本说明书一个或多个实施例并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。From a hardware perspective, please refer to FIG. 9, which is a schematic structural diagram of a device provided by an exemplary embodiment. As shown in FIG. 9, at the hardware level, the device includes a processor 902, an internal bus 904, a network interface 906, a memory 909, and a non-volatile memory 910. Of course, it may also include hardware required for other services. The processor 902 reads the corresponding computer program from the non-volatile memory 910 to the memory 909 and then runs it to form a block chain-based traffic statistics device on a logical level. Of course, in addition to software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, and so on. That is to say, the execution subject of the following processing flow is not limited to each The logic unit can also be a hardware or a logic device.
请参考图10,在一软件实施方式中,基于区块链的流量统计装置可以包括:Please refer to FIG. 10, in a software implementation, the block chain-based traffic statistics device may include:
创建单元1002,使凭证发行方创建针对业务提供方的第一转账交易,所述第一转账交易中包含第一交易额;The creation unit 1002 enables the voucher issuer to create a first transfer transaction for the service provider, and the first transfer transaction includes the first transaction amount;
提交单元1004,使所述凭证发行方向区块链网络提交所述第一转账交易,所述第一转账交易指示所述区块链网络中的区块链节点将与所述第一交易额对等的流量凭证的所有权从所述凭证发行方转移至业务提供方;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The submission unit 1004 enables the certificate issuer to submit the first transfer transaction to the blockchain network, and the first transfer transaction instructs the blockchain node in the blockchain network to match the first transaction amount The ownership of the equivalent flow certificate is transferred from the voucher issuer to the service provider; the ownership of the flow certificate that is equivalent to the second transaction amount included in the second transfer transaction in the flow certificate held by the service provider is subject to The blockchain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the transaction amount. The data volume of the business data requested by the business requester;
所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。The ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction among the flow vouchers held by the service requester is transferred to the blockchain node upon receiving the third transfer transaction The target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transmission amount of the target distribution node to the service requester to transmit the service data .
可选的,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;Optionally, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
可选的,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。Optionally, the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is received every time the service sub-data is received by the service requester Submit to the blockchain network below, and the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
所述目标分发节点在每次传输完业务子数据后,可在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。The target distribution node may stop transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, and the amount of newly added data is all The target distribution node compares the data volume corresponding to the newly-held traffic voucher after the last transmission of the service sub-data, and the transmission data volume is the data volume of the service sub-data transmitted by the target distribution node this time.
所述业务数据可被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
可选的,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。Optionally, the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester The authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
请参考图11,在另一软件实施方式中,基于区块链的流量统计装置可以包括:Please refer to FIG. 11, in another software implementation, the block chain-based traffic statistics device may include:
创建单元1102,使业务提供方创建针对业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;The creation unit 1102 enables the service provider to create a second transfer transaction for the service requester, and the second transaction amount of the second transfer transaction corresponds to the data volume of the service data requested by the service requester; the voucher issuer holds The ownership of the flow vouchers that are equivalent to the first transaction amount included in the first transfer transaction in some traffic vouchers is transferred to by the blockchain node in the blockchain network upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network;
提交单元1103,使所述业务提供方向区块链网络提交所述第二转账交易,所述第二转账交易用于指示所述区块链网络中的区块链节点将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求 方传输所述业务数据的实际传输量。The submission unit 1103 enables the service provider to submit the second transfer transaction to the blockchain network, and the second transfer transaction is used to indicate that the blockchain node in the blockchain network will conduct the second transaction with the blockchain network. The ownership of the flow vouchers with the equivalent amount is transferred from the service provider to the service requester; the flow vouchers held by the service requester are equivalent to the third transaction amount included in the third transfer transaction. The ownership is transferred to the target distribution node by the blockchain node upon receiving the third transfer transaction, the third transfer transaction is submitted by the business request to the blockchain network, and the third transaction The amount corresponds to the actual transmission volume of the service data transmitted by the target distribution node to the service requester.
可选的,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;Optionally, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
所述业务数据可被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。The service data may be divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is transferred to the district by the service requester every time the service sub-data is received. Submitted by the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
所述目标分发节点在每次传输完业务子数据后,可在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。The target distribution node may stop transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, and the amount of newly added data is all The target distribution node compares the data volume corresponding to the newly-held traffic voucher after the last transmission of the service sub-data, and the transmission data volume is the data volume of the service sub-data transmitted by the target distribution node this time.
所述业务数据可被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
所述装置还可包括:鉴权单元1106,使所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,并将权限验证通过作为向所述区块链网络提交所述第二转账交易的前提条件。The device may further include: an authentication unit 1106, which enables the service provider to verify the authority to obtain the service data of the service requester based on the identity information sent by the service requester, and to verify the authority The verification is passed as a prerequisite for submitting the second transfer transaction to the blockchain network.
请参考图12,在另一软件实施方式中,基于区块链的流量统计装置可以包括:传输单元1202,使内容分发网络中的目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据。12, in another software implementation, the block chain-based traffic statistics device may include: a transmission unit 1202, which enables the target distribution node in the content distribution network to transmit the service request to the service provider The requested business data.
所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量;The ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction in the flow voucher held by the business requester is received by the block chain node in the block chain network when the third transfer transaction is received. In the case of transferring to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node transmitting the service to the service requester The actual amount of data transferred;
所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred by the blockchain node upon receiving the second transfer transaction To the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data requested by the service requester;
凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
可选的,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名。所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。Optionally, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node. The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
可选的,所述传输单元1202具体用于:所述目标分发节点将所述业务数据划分为若干业务子数据,并向所述业务请求方传输各个业务子数据;所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。Optionally, the transmission unit 1202 is specifically configured to: the target distribution node divides the service data into several service sub-data, and transmits each service sub-data to the service requester; the third transfer transaction is determined by The service requester submits to the blockchain network every time the service sub-data is received, and the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester .
可选的,所述传输单元1202进一步用于:所述目标分发节点在每次传输完业务子数据后,确定相对于上一次传输完业务子数据后新增持有的流量凭证对应的新增数据量和本次所传输的业务子数据的传输数据量。所述目标分发节点在所述新增数据量小于所述传输数据量的情况下,停止向所述业务请求方传输剩余的业务子数据。Optionally, the transmission unit 1202 is further configured to: each time after the target distribution node transmits the service sub-data, determine the new increase corresponding to the new traffic certificate held after the last transmission of the service sub-data. The data volume and the transmission data volume of the business sub-data transmitted this time. When the amount of newly added data is less than the amount of transmitted data, the target distribution node stops transmitting the remaining service sub-data to the service requester.
可选的,所述传输单元1202进一步用于:所述目标分发节点按照预设维度将所述业务数据划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。Optionally, the transmission unit 1202 is further configured to: the target distribution node divides the service data into several service sub-data according to a preset dimension, and the preset dimension includes any one of the following: average data of the service sub-data Quantity, total quantity and data type of business sub-data.
可选的,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。Optionally, the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester The authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
请参考图13,在另一软件实施方式中,基于区块链的流量统计装置可以包括:Please refer to FIG. 13, in another software implementation, the block chain-based traffic statistics device may include:
创建单元1302,使业务请求方创建针对目标分发节点的第三转账交易,所述第三转账交易包含的第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务请求方所请求的业务数据的实际传输量;The creation unit 1302 enables the service requester to create a third transfer transaction for the target distribution node, and the third transaction amount included in the third transfer transaction corresponds to the target distribution node transmitting the service requester to the service requester The actual transmission volume of the requested business data;
提交单元1304,使所述业务请求方向区块链网络提交所述第三转账交易,所述第三转账交易用于指示所述区块链网络中的区块链节点将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点;The submission unit 1304 enables the service request to submit the third transfer transaction to the blockchain network, where the third transfer transaction is used to indicate that a blockchain node in the blockchain network will conduct a transaction with the third transaction. The ownership of the equivalent traffic vouchers is transferred from the service requester to the target distribution node;
业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred to the place where the blockchain node receives the second transfer transaction. For the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data;
凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
可选的,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名。所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。Optionally, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node. The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
可选的,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方;所述提交单元1304具体用于:所述业务请求方在每次接收到业务子数据的情况下,向区块链网络提交所述第三转账交易,所述第三转账交易的第三交易额对应于接收到的业务子数据的数据量。Optionally, the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester; the submission unit 1304 is specifically configured to: each time the service requester receives the service sub-data In the case of submitting the third transfer transaction to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the received business sub-data.
可选的,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量, 所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。Optionally, the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, the newly-added data The amount is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the transmission data amount is the data of the service sub-data transmitted by the target distribution node this time quantity.
所述业务数据可被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
可选的,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。Optionally, the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester The authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
请参考图14,在另一软件实施方式中,基于区块链的流量统计装置可以包括:Please refer to FIG. 14, in another software implementation, the block chain-based traffic statistics device may include:
第一转移单元1402,使区块链网络中的区块链节点将与第一转账交易中包含的第一交易额对等的流量凭证的所有权从凭证发行方转移至业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;The first transfer unit 1402 enables the blockchain nodes in the blockchain network to transfer the ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction from the voucher issuer to the service provider. 1. The transfer transaction is submitted by the certificate issuer to the blockchain network;
第二转移单元1404,使所述区块链节点将与第二转账交易中包含的第二交易额对等的流量凭证的所有权从所述业务提供方转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The second transfer unit 1404 enables the blockchain node to transfer the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer The transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data requested by the service requester;
第三转移单元1406,使将与第三转账交易中包含的第三交易额对等的流量凭证的所有权从所述业务请求方转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。The third transfer unit 1406 is configured to transfer the ownership of the flow voucher equivalent to the third transaction amount included in the third transfer transaction from the service requester to the target distribution node, and the third transfer transaction is requested by the service Submit to the blockchain network, the third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
可选的,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名。所述装置还包括:验签单元1408,使所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥对所述目标分发节点持有的流量凭证进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准,对所述目标分发节点持有的流量凭证进行费用结算。Optionally, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is signed with the private key of the service provider; The traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node. The device further includes: a signature verification unit 1408, which enables the blockchain node to use the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node to pair the target with the public keys respectively. The flow voucher held by the distribution node is verified, and if the verification is passed, the flow voucher held by the target distribution node is settled according to the fee conversion standard for the flow voucher issued by the voucher issuer .
可选的,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。Optionally, the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is received every time the service sub-data is received by the service requester Submit to the blockchain network below, and the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
可选的,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。Optionally, the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after the service sub-data is transmitted each time, the newly-added data The amount is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the transmission data amount is the data of the service sub-data transmitted by the target distribution node this time quantity.
所述业务数据可被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The service data can be divided into a number of service sub-data by the target distribution node according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
可选的,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。Optionally, the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider responds to the service requester according to the identity information sent by the service requester The authority to obtain the business data is subjected to authority verification, and the authority verification is passed.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字 助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units illustrated in the above embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本说明书的实施例可提供为方法、系统、或计算机程序产品。因此,本说明书可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This specification is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are used to generate It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram. In a typical configuration, the computer includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission media, can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排 他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to determination".
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。The above descriptions are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. All within the spirit and principle of one or more embodiments of this specification, Any modification, equivalent replacement, improvement, etc. made should be included in the protection scope of one or more embodiments of this specification.

Claims (43)

  1. 一种基于区块链的流量统计系统,包括:A block chain-based traffic statistics system, including:
    凭证发行方,所述凭证发行方用于向区块链网络提交针对业务提供方的第一转账交易,所述第一转账交易中包含第一交易额;A voucher issuer, the voucher issuer is used to submit a first transfer transaction for a service provider to a blockchain network, and the first transfer transaction includes a first transaction amount;
    所述业务提供方,所述业务提供方用于根据业务请求方所请求的业务数据,向区块链网络提交针对所述业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务数据的数据量;The service provider, the service provider is used to submit a second transfer transaction for the service requester to the blockchain network according to the service data requested by the service requester, and the second transfer transaction of the second transfer transaction The transaction amount corresponds to the data amount of the business data;
    内容分发网络,所述内容分发网络中各个节点用于在被选取为目标分发节点的情况下,向所述业务请求方传输所述业务数据;A content distribution network, where each node in the content distribution network is used to transmit the service data to the service requester when selected as the target distribution node;
    所述业务请求方,所述业务请求方用于根据所述目标分发节点针对所述业务数据的实际传输量,向区块链网络提交针对所述目标分发节点的第三转账交易,所述第三转账交易的第三交易额对应于所述实际传输量;The service requester, the service requester is configured to submit a third transfer transaction for the target distribution node to the blockchain network according to the actual transmission volume of the target distribution node for the service data, and the first 3. The third transaction amount of the transfer transaction corresponds to the actual transmission amount;
    区块链网络,所述区块链网络中的区块链节点用于将与所述第一交易额对等的流量凭证的所有权从所述凭证发行方转移至所述业务提供方,将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方,将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点。A blockchain network, where the blockchain nodes in the blockchain network are used to transfer the ownership of the traffic voucher equivalent to the first transaction amount from the voucher issuer to the service provider, which will be used with The ownership of the flow voucher equivalent to the second transaction amount is transferred from the service provider to the service requester, and the ownership of the flow voucher equivalent to the third transaction amount is transferred from the service requester to the service requester. The target distribution node.
  2. 根据权利要求1所述的系统,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;The system according to claim 1, wherein the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is adopted by the service provider The private key signature of the service requester; the traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
    所述区块链节点用于分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥对所述目标分发节点持有的流量凭证进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准,对所述目标分发节点持有的流量凭证进行费用结算。The blockchain node is configured to use the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node to verify and sign the traffic certificate held by the target distribution node. , And in the case of passing the verification and signature according to the fee conversion standard for the flow voucher issued by the voucher issuer, the flow voucher held by the target distribution node is settled.
  3. 根据权利要求1所述的系统,The system according to claim 1,
    所述目标分发节点用于将所述业务数据划分为若干业务子数据,并向所述业务请求方传输各个业务子数据;The target distribution node is used to divide the service data into several service sub-data, and transmit each service sub-data to the service requester;
    所述业务请求方用于在每次接收到业务子数据的情况下,向区块链网络提交所述第三转账交易,所述第三转账交易的第三交易额对应于接收到的业务子数据的数据量。The service requester is used to submit the third transfer transaction to the blockchain network every time the service sub-data is received, and the third transaction amount of the third transfer transaction corresponds to the received service sub-data The amount of data.
  4. 根据权利要求3所述的系统,The system according to claim 3,
    所述目标分发节点用于在每次传输完业务子数据后,确定相对于上一次传输完业务子数据后新增持有的流量凭证对应的新增数据量和本次所传输的业务子数据的传输数据量,并在所述新增数据量小于所述传输数据量的情况下,停止向所述业务请求方传输剩余的业务子数据。The target distribution node is used to determine the amount of new data corresponding to the newly-held traffic vouchers after the last transmission of the service sub-data and the service sub-data transmitted this time after each transmission of the service sub-data When the amount of newly added data is less than the amount of transmitted data, stop transmitting the remaining service sub-data to the service requester.
  5. 根据权利要求3所述的系统,The system according to claim 3,
    所述目标分发节点用于按照预设维度将所述业务数据划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The target distribution node is used to divide the business data into a number of business sub-data according to a preset dimension, and the preset dimension includes any of the following: the average data volume of the business sub-data, the total number of the business sub-data, and the data type .
  6. 根据权利要求1所述的系统,The system according to claim 1,
    所述业务提供方还用于根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,并将权限验证通过作为向所述区块链网络提交所述第二转账交易的前提条件。The service provider is also used to verify the permission of the service requester to obtain the service data according to the identity information sent by the service requester, and pass the permission verification as a request to the blockchain network Prerequisites for submitting the second transfer transaction.
  7. 一种基于区块链的流量统计方法,包括:A block chain-based traffic statistics method, including:
    凭证发行方创建针对业务提供方的第一转账交易,所述第一转账交易中包含第一交易额;The certificate issuer creates a first transfer transaction for the service provider, and the first transfer transaction includes the first transaction amount;
    所述凭证发行方向区块链网络提交所述第一转账交易,所述第一转账交易用于指示所述区块链网络中的区块链节点将与所述第一交易额对等的流量凭证的所有权从所述 凭证发行方转移至业务提供方;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The voucher issuer submits the first transfer transaction to the blockchain network, and the first transfer transaction is used to instruct the blockchain node in the blockchain network to have the same flow as the first transaction amount The ownership of the voucher is transferred from the voucher issuer to the service provider; the ownership of the flow voucher that is equivalent to the second transaction amount included in the second transfer transaction in the flow voucher held by the service provider is controlled by the block The chain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the service request The amount of business data requested by the party;
    所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。The ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction among the flow vouchers held by the service requester is transferred to the blockchain node upon receiving the third transfer transaction The target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transmission amount of the target distribution node to the service requester to transmit the service data .
  8. 根据权利要求7所述的方法,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;The method according to claim 7, wherein the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is adopted by the service provider The private key signature of the service requester; the traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
    所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  9. 根据权利要求7所述的方法,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。According to the method of claim 7, the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is received by the service requester every time In the case of business sub-data, submitted to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the business sub-data received by the business requester.
  10. 根据权利要求9所述的方法,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。The method according to claim 9, wherein the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after each transmission of the service sub-data, The amount of newly added data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of data transmitted by the target distribution node this time The data volume of the business sub-data.
  11. 根据权利要求9所述的方法,所述业务数据被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。According to the method of claim 9, the service data is divided into a number of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: an average data volume of the service sub-data, a service sub-data The total amount and type of data.
  12. 根据权利要求7所述的方法,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。According to the method of claim 7, the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider checks all the transactions based on the identity information sent by the service requester. The service requesting party performs permission verification for the acquisition permission of the service data, and the permission verification is passed.
  13. 一种基于区块链的流量统计方法,包括:A block chain-based traffic statistics method, including:
    业务提供方创建针对业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;The service provider creates a second transfer transaction for the service requester, and the second transaction amount of the second transfer transaction corresponds to the data volume of the service data requested by the service requester; among the traffic vouchers held by the voucher issuer The ownership of the flow certificate equivalent to the first transaction amount included in the first transfer transaction is transferred to the service provider by the blockchain node in the blockchain network upon receiving the first transfer transaction , The first transfer transaction is submitted by the certificate issuer to the blockchain network;
    所述业务提供方向区块链网络提交所述第二转账交易,所述第二转账交易用于指示所述区块链网络中的区块链节点将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。The service provider submits the second transfer transaction to the blockchain network, and the second transfer transaction is used to instruct the blockchain nodes in the blockchain network to have the same flow as the second transaction amount The ownership of the voucher is transferred from the service provider to the service requester; the ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction in the flow voucher held by the service requester is The blockchain node transfers to the target distribution node upon receiving the third transfer transaction, the third transfer transaction is submitted by the business request to the blockchain network, and the third transaction amount corresponds to the The target distribution node transmits the actual transmission volume of the service data to the service requester.
  14. 根据权利要求13所述的方法,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所 述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;The method according to claim 13, wherein the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is adopted by the service provider The private key signature of the service requester; the traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
    所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  15. 根据权利要求13所述的方法,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。The method according to claim 13, wherein the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is received by the service requester every time In the case of business sub-data, submitted to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the business sub-data received by the business requester.
  16. 根据权利要求15所述的方法,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。The method according to claim 15, wherein the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after each transmission of the service sub-data, The amount of newly added data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of data transmitted by the target distribution node this time The data volume of the business sub-data.
  17. 根据权利要求15所述的方法,所述业务数据被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The method according to claim 15, wherein the service data is divided into a number of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: an average data volume of the service sub-data, a service sub-data The total amount and type of data.
  18. 根据权利要求13所述的方法,还包括:The method according to claim 13, further comprising:
    所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,并将权限验证通过作为向所述区块链网络提交所述第二转账交易的前提条件。The service provider verifies the permission of the service requester to obtain the service data according to the identity information sent by the service requester, and passes the permission verification as submitting the said service to the blockchain network. Prerequisites for the second transfer transaction.
  19. 一种基于区块链的流量统计方法,包括:A block chain-based traffic statistics method, including:
    内容分发网络中的目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据;The target distribution node in the content distribution network transmits the service data requested by the service requester to the service provider to the service requester;
    所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量;The ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction in the flow voucher held by the business requester is received by the block chain node in the block chain network when the third transfer transaction is received. In the case of transferring to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node transmitting the service to the service requester The actual amount of data transferred;
    所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred by the blockchain node upon receiving the second transfer transaction To the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data requested by the service requester;
    凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  20. 根据权利要求19所述的方法,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;The method according to claim 19, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is adopted by the service provider The private key signature of the service requester; the traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
    所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  21. 根据权利要求19所述的方法,所述目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据,包括:The method according to claim 19, wherein the transmission of the service data requested by the service requester to the service provider by the target distribution node to the service requester comprises:
    所述目标分发节点将所述业务数据划分为若干业务子数据,并向所述业务请求方传输各个业务子数据;所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到 的业务子数据的数据量。The target distribution node divides the service data into several service sub-data, and transmits each service sub-data to the service requester; the third transfer transaction is received by the service requester every time the service sub-data In the case of submitting to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the service sub-data received by the service requester.
  22. 根据权利要求21所述的方法,还包括:The method of claim 21, further comprising:
    所述目标分发节点在每次传输完业务子数据后,确定相对于上一次传输完业务子数据后新增持有的流量凭证对应的新增数据量和本次所传输的业务子数据的传输数据量;The target distribution node, after each transmission of the service sub-data, determines the amount of new data corresponding to the newly-held traffic voucher after the last transmission of the service sub-data and the transmission of the service sub-data transmitted this time The amount of data;
    所述目标分发节点在所述新增数据量小于所述传输数据量的情况下,停止向所述业务请求方传输剩余的业务子数据。When the amount of newly added data is less than the amount of transmitted data, the target distribution node stops transmitting the remaining service sub-data to the service requester.
  23. 根据权利要求21所述的方法,所述目标分发节点将所述业务数据划分为若干业务子数据,包括:The method according to claim 21, wherein the target distribution node divides the service data into several service sub-data, including:
    所述目标分发节点按照预设维度将所述业务数据划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The target distribution node divides the service data into a number of service sub-data according to a preset dimension, and the preset dimension includes any one of the following: the average data volume of the service sub-data, the total number of the service sub-data, and the data type.
  24. 根据权利要求19所述的方法,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。According to the method of claim 19, the preconditions for the service provider to submit the second transfer transaction to the blockchain network include: the service provider checks all the transactions based on the identity information sent by the service requester. The service requesting party performs permission verification for the acquisition permission of the service data, and the permission verification is passed.
  25. 一种基于区块链的流量统计方法,包括:A block chain-based traffic statistics method, including:
    业务请求方创建针对目标分发节点的第三转账交易,所述第三转账交易包含的第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务请求方所请求的业务数据的实际传输量;The service requester creates a third transfer transaction for the target distribution node, and the third transaction amount included in the third transfer transaction corresponds to the target distribution node transmitting the service data requested by the service requester to the service requester The actual transfer volume;
    所述业务请求方向区块链网络提交所述第三转账交易,所述第三转账交易用于指示所述区块链网络中的区块链节点将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点;The service request submits the third transfer transaction to the blockchain network, and the third transfer transaction is used to instruct the blockchain node in the blockchain network to have the same flow as the third transaction amount The ownership of the certificate is transferred from the service requester to the target distribution node;
    业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred to the place where the blockchain node receives the second transfer transaction. For the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data;
    凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  26. 根据权利要求25所述的方法,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;The method according to claim 25, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is adopted by the service provider The private key signature of the service requester; the traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node;
    所述目标分发节点持有的流量凭证由所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准进行费用结算。The traffic certificate held by the target distribution node is verified by the blockchain node using the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node, and In the case where the verification is passed, the fee settlement is carried out in accordance with the fee conversion standard for the traffic voucher issued by the voucher issuer.
  27. 根据权利要求25所述的方法,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方;所述业务请求方向区块链网络提交所述第三转账交易,包括:The method according to claim 25, wherein the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester; the service requester submits the third transfer transaction to the blockchain network, include:
    所述业务请求方在每次接收到业务子数据的情况下,向区块链网络提交所述第三转账交易,所述第三转账交易的第三交易额对应于接收到的业务子数据的数据量。The service requester submits the third transfer transaction to the blockchain network every time it receives the service sub-data, and the third transaction amount of the third transfer transaction corresponds to the amount of the received service sub-data The amount of data.
  28. 根据权利要求27所述的方法,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。The method according to claim 27, wherein the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after each transmission of the service sub-data, The amount of newly added data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of data transmitted by the target distribution node this time The data volume of the business sub-data.
  29. 根据权利要求27所述的方法,所述业务数据被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业 务子数据的总数量、数据类型。The method according to claim 27, wherein the service data is divided into a plurality of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: an average data volume of the service sub-data, a service sub-data The total amount and type of data.
  30. 根据权利要求25所述的方法,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。According to the method according to claim 25, the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider performs a check on the service provider based on the identity information sent by the service requester. The service requesting party performs permission verification for the acquisition permission of the service data, and the permission verification is passed.
  31. 一种基于区块链的流量统计方法,包括:A block chain-based traffic statistics method, including:
    区块链网络中的区块链节点将与第一转账交易中包含的第一交易额对等的流量凭证的所有权从凭证发行方转移至业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;The blockchain node in the blockchain network transfers the ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction from the voucher issuer to the service provider, and the first transfer transaction is determined by the voucher The issuer submits to the blockchain network;
    所述区块链节点将与第二转账交易中包含的第二交易额对等的流量凭证的所有权从所述业务提供方转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The blockchain node transfers the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer transaction is from the service provider direction Submitted by a blockchain network, the second transaction amount corresponds to the data amount of the business data requested by the business requester;
    将与第三转账交易中包含的第三交易额对等的流量凭证的所有权从所述业务请求方转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。Transfer the ownership of the flow certificate equivalent to the third transaction amount included in the third transfer transaction from the service requester to the target distribution node, and the third transfer transaction is submitted by the service request to the blockchain network, The third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
  32. 根据权利要求31所述的方法,从所述凭证发行方转出的流量凭证被采用所述凭证发行方的私钥签名;从所述业务提供方转出的流量凭证被采用所述业务提供方的私钥签名;从所述业务请求方转出的流量凭证被采用所述业务请求方的私钥签名;转入所述目标分发节点的流量凭证被采用所述目标分发节点的私钥签名;所述方法还包括:The method according to claim 31, the traffic certificate transferred from the certificate issuer is signed with the private key of the certificate issuer; the traffic certificate transferred from the service provider is adopted by the service provider The private key signature of the service requester; the traffic certificate transferred from the service requester is signed with the private key of the service requester; the traffic certificate transferred to the target distribution node is signed with the private key of the target distribution node; The method also includes:
    所述区块链节点分别采用所述凭证发行方、所述业务提供方、所述业务请求方和所述目标分发节点的公钥对所述目标分发节点持有的流量凭证进行验签,并在验签均通过的情况下按照针对所述凭证发行方发行的流量凭证的费用转换标准,对所述目标分发节点持有的流量凭证进行费用结算。The blockchain node uses the public keys of the certificate issuer, the service provider, the service requester, and the target distribution node to verify the traffic certificate held by the target distribution node, and In the case of passing the verification and signature, according to the cost conversion standard for the flow voucher issued by the voucher issuer, the flow voucher held by the target distribution node is settled.
  33. 根据权利要求31所述的方法,所述业务数据被所述目标分发节点划分为若干业务子数据传输至所述业务请求方,所述第三转账交易由所述业务请求方在每次接收到业务子数据的情况下向区块链网络提交,所述第三转账交易的第三交易额对应于所述业务请求方接收到的业务子数据的数据量。The method according to claim 31, wherein the service data is divided into several service sub-data by the target distribution node and transmitted to the service requester, and the third transfer transaction is received by the service requester every time In the case of business sub-data, submitted to the blockchain network, the third transaction amount of the third transfer transaction corresponds to the data amount of the business sub-data received by the business requester.
  34. 根据权利要求33所述的方法,所述目标分发节点在每次传输完业务子数据后,在新增数据量小于传输数据量的情况下停止向所述业务请求方传输剩余的业务子数据,所述新增数据量为所述目标分发节点相对于上一次传输完业务子数据后新增持有的流量凭证对应的数据量,所述传输数据量为所述目标分发节点本次所传输的业务子数据的数据量。The method according to claim 33, wherein the target distribution node stops transmitting the remaining service sub-data to the service requester when the amount of newly added data is less than the amount of transmitted data after each transmission of the service sub-data, The amount of newly added data is the amount of data corresponding to the traffic voucher newly held by the target distribution node after the last transmission of the service sub-data, and the amount of transmission data is the amount of data transmitted by the target distribution node this time The data volume of the business sub-data.
  35. 根据权利要求33所述的方法,所述业务数据被所述目标分发节点按照预设维度划分为若干业务子数据,所述预设维度包括以下任一:业务子数据的平均数据量、业务子数据的总数量、数据类型。The method according to claim 33, wherein the service data is divided into a number of service sub-data according to a preset dimension by the target distribution node, and the preset dimension includes any one of the following: the average data volume of the service sub-data, the service sub-data The total amount and type of data.
  36. 根据权利要求31所述的方法,所述业务提供方向所述区块链网络提交所述第二转账交易的前提条件包括:所述业务提供方根据所述业务请求方发送的身份信息,对所述业务请求方针对所述业务数据的获取权限进行权限验证,且权限验证通过。According to the method of claim 31, the precondition for the service provider to submit the second transfer transaction to the blockchain network includes: the service provider performs a check on the service provider based on the identity information sent by the service requester. The service requesting party performs permission verification for the acquisition permission of the service data, and the permission verification is passed.
  37. 一种基于区块链的流量统计装置,包括:A block chain-based traffic statistics device, including:
    创建单元,使凭证发行方创建针对业务提供方的第一转账交易,所述第一转账交易中包含第一交易额;A creation unit to enable the voucher issuer to create a first transfer transaction for the service provider, and the first transfer transaction includes the first transaction amount;
    提交单元,使所述凭证发行方向区块链网络提交所述第一转账交易,所述第一转账交易用于指示所述区块链网络中的区块链节点将与所述第一交易额对等的流量凭证的所有权从所述凭证发行方转移至业务提供方;所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至业务请求方,所述第二转账交易由所述业务提供方向区块 链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The submission unit is configured to enable the certificate issuer to submit the first transfer transaction to the blockchain network, and the first transfer transaction is used to indicate that the blockchain node in the blockchain network will share the first transaction amount with the blockchain network. The ownership of the equivalent flow voucher is transferred from the voucher issuer to the service provider; the ownership of the flow voucher that is equivalent to the second transaction amount included in the second transfer transaction in the flow voucher held by the service provider is The blockchain node transfers to the service requester upon receiving the second transfer transaction, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to The data volume of the service data requested by the service requester;
    所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。The ownership of the flow certificate that is equivalent to the third transaction amount included in the third transfer transaction among the flow vouchers held by the service requester is transferred to the blockchain node upon receiving the third transfer transaction The target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the actual transmission amount of the target distribution node to the service requester to transmit the service data .
  38. 一种基于区块链的流量统计装置,包括:A block chain-based traffic statistics device, including:
    创建单元,使业务提供方创建针对业务请求方的第二转账交易,所述第二转账交易的第二交易额对应于所述业务请求方所请求的业务数据的数据量;凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;The creation unit enables the service provider to create a second transfer transaction for the service requester, and the second transaction amount of the second transfer transaction corresponds to the data volume of the service data requested by the service requester; the voucher issuer holds The ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction in the flow voucher is transferred to the transfer by the block chain node in the block chain network upon receiving the first transfer transaction. For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network;
    提交单元,使所述业务提供方向区块链网络提交所述第二转账交易,所述第二转账交易用于指示所述区块链网络中的区块链节点将与所述第二交易额对等的流量凭证的所有权从所述业务提供方转移至所述业务请求方;所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。A submission unit to enable the service provider to submit the second transfer transaction to the blockchain network, where the second transfer transaction is used to indicate that a blockchain node in the blockchain network will share the second transaction amount The ownership of the equivalent flow voucher is transferred from the service provider to the service requester; the ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction among the flow voucher held by the service requester , Being transferred to the target distribution node by the blockchain node upon receiving the third transfer transaction, the third transfer transaction is submitted by the business request to the blockchain network, and the third transaction amount Corresponding to the actual transmission volume of the service data transmitted by the target distribution node to the service requester.
  39. 一种基于区块链的流量统计装置,包括:A block chain-based traffic statistics device, including:
    传输单元,使内容分发网络中的目标分发节点向业务请求方传输所述业务请求方向业务提供方请求的业务数据;The transmission unit, which enables the target distribution node in the content distribution network to transmit the service data requested by the service requester to the service provider to the service requester;
    所述业务请求方持有的流量凭证中与第三转账交易包含的第三交易额对等的流量凭证的所有权,被区块链网络中的区块链节点在接收到所述第三转账交易的情况下转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量;The ownership of the flow voucher that is equivalent to the third transaction amount included in the third transfer transaction in the flow voucher held by the business requester is received by the block chain node in the block chain network when the third transfer transaction is received. In the case of transferring to the target distribution node, the third transfer transaction is submitted by the service request to the blockchain network, and the third transaction amount corresponds to the target distribution node transmitting the service to the service requester The actual amount of data transferred;
    所述业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred by the blockchain node upon receiving the second transfer transaction To the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data volume of the service data requested by the service requester;
    凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  40. 一种基于区块链的流量统计装置,包括:A block chain-based traffic statistics device, including:
    创建单元,使业务请求方创建针对目标分发节点的第三转账交易,所述第三转账交易包含的第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务请求方所请求的业务数据的实际传输量;The creation unit enables the service requester to create a third transfer transaction for the target distribution node, and the third transaction amount included in the third transfer transaction corresponds to the target distribution node transmitting the service requester to the service requester. The actual transmission volume of the requested business data;
    提交单元,使所述业务请求方向区块链网络提交所述第三转账交易,所述第三转账交易用于指示所述区块链网络中的区块链节点将与所述第三交易额对等的流量凭证的所有权从所述业务请求方转移至所述目标分发节点;The submission unit is configured to enable the service request to submit the third transfer transaction to the blockchain network, where the third transfer transaction is used to indicate that the blockchain node in the blockchain network will share the third transaction amount The ownership of the peer-to-peer traffic certificate is transferred from the service requester to the target distribution node;
    业务提供方持有的流量凭证中与第二转账交易包含的第二交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第二转账交易的情况下转移至所述业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务数据的数据量;The ownership of the flow vouchers that is equivalent to the second transaction amount included in the second transfer transaction among the flow vouchers held by the service provider is transferred to the place where the blockchain node receives the second transfer transaction. For the service requester, the second transfer transaction is submitted by the service provider to the blockchain network, and the second transaction amount corresponds to the data amount of the service data;
    凭证发行方持有的流量凭证中与第一转账交易中包含的第一交易额对等的流量凭证的所有权,被所述区块链节点在接收到所述第一转账交易的情况下转移至所述业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交。The ownership of the flow voucher that is equivalent to the first transaction amount included in the first transfer transaction among the flow voucher held by the voucher issuer is transferred to by the blockchain node upon receiving the first transfer transaction For the service provider, the first transfer transaction is submitted by the certificate issuer to the blockchain network.
  41. 一种基于区块链的流量统计装置,包括:A block chain-based traffic statistics device, including:
    第一转移单元,使区块链网络中的区块链节点将与第一转账交易中包含的第一交易额对等的流量凭证的所有权从凭证发行方转移至业务提供方,所述第一转账交易由所述凭证发行方向区块链网络提交;The first transfer unit enables the blockchain nodes in the blockchain network to transfer the ownership of the flow voucher equivalent to the first transaction amount included in the first transfer transaction from the voucher issuer to the service provider, and the first The transfer transaction is submitted by the certificate issuer to the blockchain network;
    第二转移单元,使所述区块链节点将与第二转账交易中包含的第二交易额对等的流量凭证的所有权从所述业务提供方转移至业务请求方,所述第二转账交易由所述业务提供方向区块链网络提交,所述第二交易额对应于所述业务请求方所请求的业务数据的数据量;The second transfer unit enables the blockchain node to transfer the ownership of the flow certificate equivalent to the second transaction amount included in the second transfer transaction from the service provider to the service requester, and the second transfer transaction Submitted by the service provider to the blockchain network, the second transaction amount corresponds to the data amount of the service data requested by the service requester;
    第三转移单元,使将与第三转账交易中包含的第三交易额对等的流量凭证的所有权从所述业务请求方转移至目标分发节点,所述第三转账交易由所述业务请求方向区块链网络提交,所述第三交易额对应于所述目标分发节点向所述业务请求方传输所述业务数据的实际传输量。The third transfer unit, which transfers the ownership of the flow certificate equivalent to the third transaction amount included in the third transfer transaction from the service requester to the target distribution node, and the third transfer transaction is transferred from the service requester to the target distribution node. Submitted by the blockchain network, the third transaction amount corresponds to the actual transmission amount of the service data transmitted by the target distribution node to the service requester.
  42. 一种电子设备,包括:An electronic device including:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求7-36中任一项所述的方法。Wherein, the processor executes the executable instruction to implement the method according to any one of claims 7-36.
  43. 一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如权利要求7-36中任一项所述方法的步骤。A computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implements the steps of the method according to any one of claims 7-36.
PCT/CN2021/087802 2020-04-17 2021-04-16 Blockchain-based traffic statistics WO2021209043A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010302401.8 2020-04-17
CN202010302401.8A CN111461691B (en) 2020-04-17 2020-04-17 Flow statistical system, method and device based on block chain

Publications (1)

Publication Number Publication Date
WO2021209043A1 true WO2021209043A1 (en) 2021-10-21

Family

ID=71684529

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/087802 WO2021209043A1 (en) 2020-04-17 2021-04-16 Blockchain-based traffic statistics

Country Status (2)

Country Link
CN (2) CN111461691B (en)
WO (1) WO2021209043A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442167A (en) * 2022-11-04 2022-12-06 域世安(北京)科技有限公司 Block chain-based network traffic management method, device and system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111461691B (en) * 2020-04-17 2020-12-11 支付宝(杭州)信息技术有限公司 Flow statistical system, method and device based on block chain
CN111737324B (en) * 2020-08-14 2021-02-09 支付宝(杭州)信息技术有限公司 Data analysis method and device
CN112529556A (en) * 2020-12-14 2021-03-19 上海樊迪信息技术有限公司 Securities account-marking and registering method and system
CN113473537B (en) * 2021-06-16 2023-06-02 中国联合网络通信集团有限公司 Micro base station traffic sharing method, node, equipment and medium based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190199516A1 (en) * 2017-12-26 2019-06-27 Akamai Technologies, Inc. High performance distributed system of record with cryptographic service support
CN110288475A (en) * 2019-06-26 2019-09-27 浪潮卓数大数据产业发展有限公司 A kind of block chain traffic assignment method of commerce and block chain traffic assignment transaction platform
CN110599136A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Method and device for managing and controlling flow of block chain transaction pool
CN111461691A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Flow statistical system, method and device based on block chain

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190009958A (en) * 2017-07-20 2019-01-30 주식회사 더블체인 Extendable block chain system and block chain extending method
US10853772B2 (en) * 2018-04-04 2020-12-01 Vijay K. Madisetti Method and system for exchange of value or tokens between blockchain networks
CN109961281B (en) * 2017-12-22 2022-03-22 中国电信股份有限公司 Traffic settlement method, system, base station and computer readable storage medium
JP7102786B2 (en) * 2018-03-05 2022-07-20 オムロン株式会社 Information management equipment, control systems, information management methods, and information management programs
US10885590B2 (en) * 2018-04-04 2021-01-05 International Business Machines Corporation Granting access to a blockchain ledger
CN109272318B (en) * 2018-10-11 2020-12-01 合肥达朴汇联科技有限公司 Resource flow transaction method, device, equipment and medium applied to requester client
CN109300038B (en) * 2018-10-11 2020-12-08 合肥达朴汇联科技有限公司 Resource flow transaction system
CN109345247B (en) * 2018-10-11 2021-05-07 合肥达朴汇联科技有限公司 Resource flow transaction method, device, equipment and medium applied to provider client
CN109325858B (en) * 2018-10-11 2020-12-01 合肥达朴汇联科技有限公司 Resource flow transaction method and device, computer equipment and computer readable medium
CN109714178A (en) * 2018-12-29 2019-05-03 杭州趣链科技有限公司 A kind of P2P CDN flow method of payment based on block chain
CN109510713A (en) * 2018-12-29 2019-03-22 杭州趣链科技有限公司 A kind of shared motivational techniques of the flow based on block chain
CN109995613B (en) * 2019-03-29 2021-02-05 北京乐蜜科技有限责任公司 Flow calculation method and device
CN110233873B (en) * 2019-05-06 2022-06-17 深圳壹账通智能科技有限公司 Block chain-based virtual certificate value distribution method, contract running device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190199516A1 (en) * 2017-12-26 2019-06-27 Akamai Technologies, Inc. High performance distributed system of record with cryptographic service support
CN110288475A (en) * 2019-06-26 2019-09-27 浪潮卓数大数据产业发展有限公司 A kind of block chain traffic assignment method of commerce and block chain traffic assignment transaction platform
CN110599136A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Method and device for managing and controlling flow of block chain transaction pool
CN111461691A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Flow statistical system, method and device based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442167A (en) * 2022-11-04 2022-12-06 域世安(北京)科技有限公司 Block chain-based network traffic management method, device and system
CN115442167B (en) * 2022-11-04 2023-01-10 域世安(北京)科技有限公司 Block chain-based network traffic management method, device and system

Also Published As

Publication number Publication date
CN112801649A (en) 2021-05-14
CN111461691A (en) 2020-07-28
CN112801649B (en) 2022-04-22
CN111461691B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
WO2021209043A1 (en) Blockchain-based traffic statistics
JP7292365B2 (en) Cryptographic methods and systems for secure extraction of data from blockchains
TWI733057B (en) Method and device for resource transfer and fund transfer
JP7128111B2 (en) Systems and methods for controlling asset-related activities via blockchain
WO2021017441A1 (en) Blockchain-based data authorization method and apparatus
US20220156737A1 (en) Tokenisation method and system for implementing exchanges on a blockchain
TWI727292B (en) Block chain transaction method and device, and electronic equipment
KR102180991B1 (en) Regulation of confidential blockchain transactions
CN108885761B (en) Method for secure point-to-point communication on a blockchain
JP2023134800A (en) Smart contract execution using distributed coordination
WO2020220761A1 (en) Method and device for signing payment deduction agreement employing blockchain, and electronic apparatus.
US10623190B2 (en) Mediated anonymity for permissioned, distributed-ledger networks
CN110333948A (en) Virtual resource allocation method and apparatus based on block chain
Ferrer-Gomila et al. A fair contract signing protocol with blockchain support
KR20180014534A (en) Verification system and method for transaction based block chain
TW202016820A (en) Block-chain transaction method and device, and electronic device
CN110458561B (en) Method and device for realizing confidential transaction in block chain network
TW202016819A (en) Block-chain transaction method and device and electronic device
CN113221191B (en) Block chain-based data evidence storage method, device, equipment and storage medium
CN112001713A (en) Block chain system and request processing method and device
CN114424223A (en) Divisible token
JP2023524492A (en) A Decentralized Payments Network That Protects Your Privacy
CN111523892A (en) Block chain cross-chain transaction method and device
Lesavre et al. Token Design and Management Overview
Mohammad Decision Analytics Using Permissioned Blockchain" Commledger"

Legal Events

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

Ref document number: 21789089

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21789089

Country of ref document: EP

Kind code of ref document: A1