CN106897150A - A kind of resource quota management method based on license chain - Google Patents

A kind of resource quota management method based on license chain Download PDF

Info

Publication number
CN106897150A
CN106897150A CN201710198968.3A CN201710198968A CN106897150A CN 106897150 A CN106897150 A CN 106897150A CN 201710198968 A CN201710198968 A CN 201710198968A CN 106897150 A CN106897150 A CN 106897150A
Authority
CN
China
Prior art keywords
user
quota
resources
transaction
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710198968.3A
Other languages
Chinese (zh)
Other versions
CN106897150B (en
Inventor
谢晗剑
岳利鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Rivtower Technology Co Ltd
Original Assignee
Cryptape Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cryptape Co ltd filed Critical Cryptape Co ltd
Priority to CN201710198968.3A priority Critical patent/CN106897150B/en
Publication of CN106897150A publication Critical patent/CN106897150A/en
Application granted granted Critical
Publication of CN106897150B publication Critical patent/CN106897150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of resource quota management method based on license chain, the method sets quotas administered system for license chain, enhance distribution capability of the keeper to system resource, no longer need setting token system and formality charge system, simplify distribution and the node activations mechanism of block chain resource, can be simultaneously that different user sets different quota and the cycles, meet the different demands of different type user.By setting periodic user's quota, user flexibility can be allowed to manage the frequency and peak value of oneself transaction, it is to avoid directly the quota to each block is controlled, and granularity is meticulous.

Description

A kind of resource quota management method based on license chain
Technical field
The present invention relates to a kind of resource quota management method based on license chain, on the basis of existing license chain agreement On, resource quota management method is with the addition of, allow keeper to permitting that computing resource, storage resource of chain etc. are rationally divided Match somebody with somebody.
Background technology
Block chain is a kind of new distributed computing technology, and publicly-owned chain and license chain can be divided into administration authority according to accessing. Publicly-owned chain refers to no mechanism of permitting the entrance, and anyone can generate legal account according to disclosure agreement in the whole world, participate in reading, Transaction, trade confirmation are sent, or even participates in the block chain of common recognition.
License chain refers to the block chain that node and user have mechanism of permitting the entrance, constitutes community by several mechanisms, each machine Structure all runs a node, in order that each block comes into force needs to obtain the confirmation of wherein most mechanisms.User on block chain Identity also pass through examination & verification, be mostly system of real name, the personal status relationship with real world is corresponding.
The same copy of global account book is preserved due to all nodes, same computing resource and storage resource is consumed, But the machine resources of each node are limited, so needing the consumption to user to resource to carry out reasonable distribution.Publicly-owned chain user is such as Fruit need transferred accounts or disposed the write operations such as contract, it is necessary to buy certain token first, pay it is a number of with After the service charge of token valuation, packed into block by node, service charge also returns node to own.But chain strictly controls access in alliance In the case of, typically no token system, and token service charge pattern is also easy to be abused by user, causes block chain to block The problems such as, make keeper to permitting the controlling extent reduction of chain.
The content of the invention
The present invention is that purpose is directed to the deficiencies in the prior art, there is provided a kind of resource quota manager based on license chain Method.
The purpose of the present invention is achieved through the following technical solutions:A kind of resource quota manager based on license chain Method, the method is:
(1) keeper generates the account of oneself, and initial " administrator address " and " block Resources limit " is inserted wound generation block In.Create generation block in build " user resources limit " variable UsersQuotaLimit, structure be map (station address=>User Quota), " user resources reset cycle " variable UsersResetBlocks, structure be map (station address=>Reset block number), And " quotas administered " function, parameter is:Station address, user's quota, replacement block number, act as according to station address, modification Corresponding UsersQuotaLimit and UsersResetBlocks.The whole transaction packed in each block must not exceed described " block Resources limit ".
(2) each node generation one " user resources are remaining " variable after generation block is created:UsersQuotaLeft, is defined as Map (station address=>Remaining quota).
(3) user generates the account address of oneself, and quota application is proposed to keeper.
(4) keeper specifies " user's quota ", " replacement block number " of the user, calls " quotas administered " function and initiates to hand over Easily.
(5) node receive " quotas administered " function call transaction after, first verify that whether transaction initiator is keeper, If it is packing transaction, is entered into " user resources limit " and becomes respectively by " station address ", " user's quota ", " replacement block number " In amount and " user resources reset cycle " variable.Meanwhile, by " remaining quota " initialization of the user in " user resources are remaining " It is " user's quota ".
(6) after user initiates other transaction tx, node calculates transaction tx according to the quota consumption calculations method f of transaction The resource quantity of required consumption:f(tx);And " surplus resources " of the user are obtained according to station address, if " surplus resources ">= F (tx), then packing transaction, and " surplus resources " are updated to " surplus resources "-f (tx);If " surplus resources "<F (tx), then not Packing transaction.
Node is required for all users in traversal " user resources are remaining " before packing and synchronous each block, if After current tile height subtracts the last tile height for resetting the user more than or equal to " the replacement block number " of the user, the user is reset " surplus resources " be " user's quota ".
Further, quota consumption calculations method is in the step 6:Consumed according to per unit memory space and often step is transported The criterions such as consumption are calculated, the resource quantity of consumption needed for transaction is calculated
Further, keeper can also change the quota setting of user, call " quotas administered " function to initiate to hand over again Easily.
The beneficial effects of the present invention are:For license chain sets quotas administered system, keeper is enhanced to system resource Distribution capability, it is no longer necessary to set token system and formality charge system, simplify distribution and the node activations of block chain resource Mechanism, while can be that different user sets different quota and the cycles, meets the different demands of different type user.By setting Periodic user's quota is put, user flexibility can be allowed to manage the frequency and peak value of oneself transaction, it is to avoid directly to each block Quota is controlled, and granularity is meticulous.
Specific embodiment
The present invention relates to a kind of resource quota management method based on license chain, global " the block resource limit of keeper's setting Volume ", keeper is that each user sets " user resources limit ", and " user resources reset cycle ", and user resources are set can It is adjusted with according to different class of subscribers, user resources no longer need voluntarily to buy, but is distributed by system, according to some The quantity of block periodically resets for the cycle.After node receives the transaction of user, check in user's current period whether also have quota, And whether the current consumption concluded the business is disclosure satisfy that, it is then licit traffic to meet, and is otherwise illegal transaction.Comprise the following steps that:
(1) keeper generates the account of oneself, and initial " administrator address " and " block Resources limit " is inserted wound generation block In.Create generation block in build " user resources limit " variable UsersQuotaLimit, structure be map (station address=>User Quota), " user resources reset cycle " variable UsersResetBlocks, structure be map (station address=>Reset block number), And " quotas administered " function, parameter is:Station address, user's quota, replacement block number, act as according to station address, modification Corresponding UsersQuotaLimit and UsersResetBlocks.The whole transaction packed in each block must not exceed described " block Resources limit ".
(2) each node generation one " user resources are remaining " variable after generation block is created:UsersQuotaLeft, is defined as Map (station address=>Remaining quota).
(3) user generates the account address of oneself, and quota application is proposed to keeper.
(4) keeper specifies " user's quota ", " replacement block number " of the user, calls " quotas administered " function and initiates to hand over Easily.
(5) node receive " quotas administered " function call transaction after, first verify that whether transaction initiator is keeper, If it is packing transaction, is entered into " user resources limit " and becomes respectively by " station address ", " user's quota ", " replacement block number " In amount and " user resources reset cycle " variable.Meanwhile, by " remaining quota " initialization of the user in " user resources are remaining " It is " user's quota ".
(6) after user initiates other transaction tx, node calculates transaction tx according to the quota consumption calculations method f of transaction The resource quantity of required consumption:f(tx);And " surplus resources " of the user are obtained according to station address, if " surplus resources ">= F (tx), then packing transaction, and " surplus resources " are updated to " surplus resources "-f (tx);If " surplus resources "<F (tx), then not Packing transaction.
Node is required for all users in traversal " user resources are remaining " before packing and synchronous each block, if After current tile height subtracts the last tile height for resetting the user more than or equal to " the replacement block number " of the user, the user is reset " surplus resources " be " user's quota ".
Quota consumption calculations method is in the step 6:Consumed according to per unit memory space and often walk computing consumption etc. Criterion, calculates the resource quantity of consumption needed for transaction
Additionally, the quota that keeper can also change user is set, " quotas administered " function is called to initiate transaction again.

Claims (3)

1. a kind of resource quota management method based on license chain, it is characterised in that the method is:
(1) keeper generates the account of oneself, and initial " administrator address " and " block Resources limit " is inserted in wound generation block. Wound generation block in build " user resources limit " variable UsersQuotaLimit, structure be map (station address=>User's quota), " user resources reset cycle " variable UsersResetBlocks, structure be map (station address=>Reset block number) and " match somebody with somebody Volume is managed " function, parameter is:Station address, user's quota, replacement block number, act as according to station address, and modification is corresponding UsersQuotaLimit and UsersResetBlocks.The whole transaction packed in each block must not exceed " the block resource Limit ".
(2) each node generation one " user resources are remaining " variable after generation block is created:UsersQuotaLeft, is defined as map and (uses Family address=>Remaining quota).
(3) user generates the account address of oneself, and quota application is proposed to keeper.
(4) keeper specifies " user's quota ", " replacement block number " of the user, calls " quotas administered " function and initiates transaction.
(5) node receive " quotas administered " function call transaction after, first verify that whether transaction initiator is keeper, if Be then packing transaction, will " station address ", " user's quota ", " replacement block number " be entered into respectively " user resources limit " variable with In " user resources reset cycle " variable.Meanwhile, " remaining quota " of the user in " user resources are remaining " is initialized as " using Family quota ".
(6) after user initiates other transaction tx, node is concluded the business needed for tx according to the quota consumption calculations method f for concluding the business, calculating The resource quantity of consumption:f(tx);And " surplus resources " of the user are obtained according to station address, if " surplus resources ">=f (tx), then packing transaction, and " surplus resources " are updated to " surplus resources "-f (tx);If " surplus resources "<F (tx), then not Packing transaction.
Node is required for all users in traversal " user resources are remaining ", if currently before packing and synchronous each block After tile height subtracts the last tile height for resetting the user more than or equal to " the replacement block number " of the user, reset the user's " surplus resources " are " user's quota ".
2. method according to claim 1, it is characterised in that quota consumption calculations method is in the step 6:According to every Unit memory space consumes and often walks the criterions such as computing consumption, calculates the resource quantity consumed needed for transaction
3. method according to claim 1, it is characterised in that the quota that keeper can also change user is set, again " quotas administered " function is called to initiate transaction.
CN201710198968.3A 2017-03-29 2017-03-29 Resource quota management method based on permission chain Active CN106897150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710198968.3A CN106897150B (en) 2017-03-29 2017-03-29 Resource quota management method based on permission chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710198968.3A CN106897150B (en) 2017-03-29 2017-03-29 Resource quota management method based on permission chain

Publications (2)

Publication Number Publication Date
CN106897150A true CN106897150A (en) 2017-06-27
CN106897150B CN106897150B (en) 2020-04-10

Family

ID=59192729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710198968.3A Active CN106897150B (en) 2017-03-29 2017-03-29 Resource quota management method based on permission chain

Country Status (1)

Country Link
CN (1) CN106897150B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481146A (en) * 2017-10-13 2017-12-15 深圳市招股科技有限公司 One kind is based on the safe and efficient financial trade method of block chain
CN108960822A (en) * 2018-06-13 2018-12-07 阿里巴巴集团控股有限公司 A kind of exchanging method and device of the available resources quota based on block chain
CN108960902A (en) * 2018-06-13 2018-12-07 阿里巴巴集团控股有限公司 A kind of the set exchanging method and device of the available resources quota based on block chain
CN108960672A (en) * 2018-07-23 2018-12-07 广州唯品会信息科技有限公司 The air control method, apparatus and computer readable storage medium of limit limit time
CN109690600A (en) * 2018-08-22 2019-04-26 区链通网络有限公司 Block chain resource uses control method, device and storage medium
CN109982435A (en) * 2019-03-15 2019-07-05 北京交通大学 Frequency spectrum access and management method based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488431A (en) * 2015-11-30 2016-04-13 布比(北京)网络技术有限公司 Authority management method and device for block chain system
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
WO2016171349A2 (en) * 2015-04-20 2016-10-27 (주)코인플러그 Digital virtual currency transaction system and method having block chain between concerned parties
CN106301794A (en) * 2016-10-17 2017-01-04 特斯联(北京)科技有限公司 Block chain is used to carry out the method and system of authorization identifying

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016171349A2 (en) * 2015-04-20 2016-10-27 (주)코인플러그 Digital virtual currency transaction system and method having block chain between concerned parties
CN105488431A (en) * 2015-11-30 2016-04-13 布比(北京)网络技术有限公司 Authority management method and device for block chain system
CN105844505A (en) * 2016-03-17 2016-08-10 深圳市新世纪启航科技开发有限公司 Method of carrying out digital currency trading through block chain technology
CN106301794A (en) * 2016-10-17 2017-01-04 特斯联(北京)科技有限公司 Block chain is used to carry out the method and system of authorization identifying

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481146A (en) * 2017-10-13 2017-12-15 深圳市招股科技有限公司 One kind is based on the safe and efficient financial trade method of block chain
CN108960822A (en) * 2018-06-13 2018-12-07 阿里巴巴集团控股有限公司 A kind of exchanging method and device of the available resources quota based on block chain
CN108960902A (en) * 2018-06-13 2018-12-07 阿里巴巴集团控股有限公司 A kind of the set exchanging method and device of the available resources quota based on block chain
WO2019237761A1 (en) * 2018-06-13 2019-12-19 阿里巴巴集团控股有限公司 Blockchain-based set exchange method and apparatus for available resource quotas
CN108960902B (en) * 2018-06-13 2021-04-27 创新先进技术有限公司 Block chain-based set exchange method and device for available resource quota
CN108960822B (en) * 2018-06-13 2021-04-27 创新先进技术有限公司 Block chain-based available resource quota exchange method and device
US11403604B2 (en) 2018-06-13 2022-08-02 Advanced New Technologies Co., Ltd. Blockchain-based set exchange method and apparatus for available resource quotas
CN108960672A (en) * 2018-07-23 2018-12-07 广州唯品会信息科技有限公司 The air control method, apparatus and computer readable storage medium of limit limit time
CN108960672B (en) * 2018-07-23 2023-01-03 上海品唯信息技术有限公司 Quota and time-limited wind control method and device and computer readable storage medium
CN109690600A (en) * 2018-08-22 2019-04-26 区链通网络有限公司 Block chain resource uses control method, device and storage medium
CN109690600B (en) * 2018-08-22 2023-05-26 区链通网络有限公司 Block chain resource use control method, device and storage medium
CN109982435A (en) * 2019-03-15 2019-07-05 北京交通大学 Frequency spectrum access and management method based on block chain

Also Published As

Publication number Publication date
CN106897150B (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN106897150A (en) A kind of resource quota management method based on license chain
Friedman et al. Three methods to share joint costs or surplus
Ghamkhari et al. Energy portfolio optimization of data centers
CN109166037B (en) Consensus method of block chains
CN103974221B (en) The distribution method and device of packet domain real time billing flow quota
CN111563786A (en) Virtual power plant regulation and control platform based on block chain and operation method
US8965330B2 (en) Split billing for a mobile device
CN103473503A (en) Dynamic Software Authorization Platform and Method
CN109510713A (en) A kind of shared motivational techniques of the flow based on block chain
Loiseau et al. Incentive mechanisms for internet congestion management: Fixed-budget rebate versus time-of-day pricing
CN104009939A (en) Service resource distribution method and system
CN106775936A (en) The management method and device of a kind of virtual machine
CN108833270A (en) gateway communication method, gateway and energy system
Sanghavi et al. A new mechanism for the free-rider problem
CN106304007A (en) A kind of charging method, communications platform and communication system
CN104507166B (en) Virtual resource configuration method is shared in a kind of baseband pool
CN101094080A (en) Charging method for system of putting call through immediately after connection
CN108563504A (en) A kind of resource management-control method and device
CN106327273A (en) STS-based prepaid electricity selling system and method
RU2006102851A (en) DEVICE FOR FORMING TARIFF DATA ASSOCIATED WITH THE SERVICE IN A COMMUNICATION NETWORK
CN102014135A (en) Multilayer trust method for resisting selfish behavior in peer-to-peer (P2P) network
CN101193174A (en) A charging method for dynamic account balance
CN107885605A (en) It is a kind of to control the system and method that the frequency is called in the API unit time
CN103702307B (en) A kind of method and system of group prepayment business diameter credit control
Wang et al. A sequential game perspective and optimization of the smart grid with distributed data centers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TA01 Transfer of patent application right

Effective date of registration: 20200323

Address after: 310012 no.1001, 10 / F, block a, Huaxing Times Square, No.478, Wensan Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou Xita Technology Co.,Ltd.

Address before: Seven 310030 Hangzhou Road, Zhejiang province Xihu District three Town Xiyuan No. 3 Building 3 Room 203

Applicant before: CRYPTAPE Co.,Ltd.

TA01 Transfer of patent application right