CN110012068A - A kind of download control method, device and storage medium - Google Patents

A kind of download control method, device and storage medium Download PDF

Info

Publication number
CN110012068A
CN110012068A CN201910157080.4A CN201910157080A CN110012068A CN 110012068 A CN110012068 A CN 110012068A CN 201910157080 A CN201910157080 A CN 201910157080A CN 110012068 A CN110012068 A CN 110012068A
Authority
CN
China
Prior art keywords
client
attribute value
acceleration
bandwidth
busy
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
CN201910157080.4A
Other languages
Chinese (zh)
Other versions
CN110012068B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910157080.4A priority Critical patent/CN110012068B/en
Publication of CN110012068A publication Critical patent/CN110012068A/en
Application granted granted Critical
Publication of CN110012068B publication Critical patent/CN110012068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • H04L67/104Peer-to-peer [P2P] networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of download control method, device and storage mediums, this method comprises: in response to the downloading acceleration request of client, it obtains for accelerating to download wait acceleration attribute value needed for accelerating file, according to acceleration attribute value, the acceleration request operation in intelligent contract is executed, acceleration request operation includes that attribute value will be accelerated to deduct from the source attribute values of user existing in client account;After acceleration request operates successful execution, the acceleration download service of file to be accelerated is provided for client using server-side.Therefore, based on the source attribute values for the user for determining client account in intelligent contract, it can be calculated according to the upload data of the client recorded in the source attribute values deposit client account of corresponding user, accelerate downloading equity to exchange file, the use to uploading bandwidth is effectively motivated in turn, the resource utilization and transmission rate for promoting P2P transmission method, make rational planning for convenient for what user carried out data transmission.

Description

A kind of download control method, device and storage medium
Technical field
The invention belongs to block chain technical fields, more particularly to a kind of download control method, device and storage medium.
Background technique
With the fast development of internet, user is to ultra high-definition 4K/8K and interactive mode VR (Chinese: virtual reality;English: Virtual Reality)/AR (Chinese: augmented reality;English: Augmented Reality) demand for services is increasing, promotees Network operator is set to gradually increase subscriber household upstream and downstream bandwidth.Based on P2P (Chinese: individual-to-individual;English: peer-to- Peer) technology realizes that the data between distinct device are transmitted using family's upstream bandwidth, can either meet ultra high-definition video and quickly pass It is defeated, and can reduce enterprise CDN (Chinese: content distributing network;English: Content Delivery Network) bandwidth at This.
In the prior art, it is low to the service efficiency of upstream bandwidth to have P2P data transmission policies, lacks safe and transparent Upload energisation mode, and be difficult to ensure P2P transmission rate and its stability.Simultaneously as P2P transmission mode will receive resource With equipment limit, and then the stability of message transmission rate can be further decreased.
Summary of the invention
In view of this, the present invention provides a kind of download control method, device and storage medium, a kind of effective calculate is proposed Mechanism with solve the problems, such as or at least partly solve uploading bandwidth existing in the prior art service efficiency it is low.
According to the present invention in a first aspect, provide a kind of download control method, applied to the block with intelligent contract Catenary system, the intelligence contract, should for being controlled according to the upload data of client the speed of download of the client Method includes:
In response to the downloading acceleration request of the client, obtain for accelerating to download wait acceleration category needed for accelerating file Property value, the file to be accelerated be it is described downloading acceleration request in be accelerated download file, the acceleration attribute value is root It is obtained according to the acceleration attribute value-based algorithm in the intelligent contract;
According to the acceleration attribute value, the acceleration request operation in the intelligent contract, the acceleration request operation are executed Including the acceleration attribute value is deducted from the source attribute values of user existing in client account, the resource of the user Attribute value contributes attribute value to obtain by single determined by the upload data according to the client;
After the acceleration request operates successful execution, the file to be accelerated is provided for the client using server-side Acceleration download service, wherein the file to be accelerated at least is preserved in the server-side.
Second aspect according to the present invention provides a kind of download control device, applied to the block with intelligent contract Catenary system, the intelligence contract is for controlling the speed of download of the client according to the upload data of client, institute Stating device includes:
Attribute value obtains module, for the downloading acceleration request in response to the client, obtain for accelerate downloading to Acceleration attribute value needed for accelerating file, the file to be accelerated are the texts to be accelerated downloading in the downloading acceleration request Part, the acceleration attribute value are obtained according to the acceleration attribute value-based algorithm in the intelligent contract
Operation executing module, for executing the acceleration request operation in the intelligent contract according to the acceleration attribute value, The acceleration request operation includes detaining the acceleration attribute value from the source attribute values of user existing in client account It removes, the source attribute values of the user contribute attribute value to obtain by single determined by the upload data according to the client ?;
Accelerate download module, for being the client using server-side after the acceleration request operates successful execution There is provided the acceleration download service of the file to be accelerated, wherein the file to be accelerated at least is preserved in the server-side.
The third aspect according to the present invention provides a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, and downloading control as described in relation to the first aspect is realized when the computer program is executed by processor The step of method.
For these technologies, the present invention has following advantage:
According to the downloading acceleration request of client, obtain for realizing acceleration attribute value needed for the acceleration request, because This, can determine corresponding attribute value for different downloading acceleration requests, and utilize intelligent contract from the client account Middle deduction is corresponding to accelerate attribute value, and then the operation for accelerating downloading is exchanged in the realization of standardization by attribute value, is added described Fast attribute value illustrates to have in client account and enough treat for opening after deducting successfully in the account of the client The token for accelerating the acceleration downloading of file, may be implemented the downloading based on intelligent contract and accelerates operation, and then mentioned using server For the acceleration download service of file to be accelerated, overcome P2P transmission mode existing due to can not by resource and equipment limit The problem of guaranteeing transmission rate, and then by equipment performance height and the stable server-side of resource is as data source, to guarantee to download The rate and transmission stability of operation.The source attribute values determined in client account according to the upload data of client, energy The downloading acceleration request being enough in needed for realizing, that is, realized by using intelligent contract and utilize upload in block catenary system Open and clear control of the data to speed of download can also be converted since high upload data generate high source attribute values Now more downloading acceleration request, and then motivate the use to uploading bandwidth, to promote the service efficiency of upstream bandwidth, convenient for into The transmission of row data is made rational planning for.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart of download control method provided in an embodiment of the present invention;
Fig. 2 is a kind of step flow chart of download control method provided in an embodiment of the present invention;
Fig. 3 is a kind of block chain structure schematic diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of specific steps flow chart of download control method provided in an embodiment of the present invention;
Fig. 5 is a kind of specific steps flow chart of download control method provided in an embodiment of the present invention;
Fig. 6 is a kind of block diagram of download control device provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
Before introducing the specific embodiment of the invention, first technical background applied by the present invention is introduced, intelligence is closed It is approximately one section of code write on block chain, when some event, which triggers the clause in intelligent contract, meets execution condition, i.e., certainly It is dynamic to execute.Particular content in the intelligence contract is participated and draw jointly by multiple users in block chain, can be used for user Between any trading activity, wherein clear stipulaties participate in the rights and duties of each side of contract agreement, pass through electronization Mode is programmed.After programming is completed, intelligent contract is just uploaded on block chain, and the whole network verifying node can all receive The intelligence contract.Intelligent contract can also periodically check whether that item will be triggered at satisfaction there are dependent event and trigger condition simultaneously The event of part is pushed in queue to be verified.By taking ether mill as an example, intelligent contract thereon will consume ether coin and realize contract Fulfil.Technical solution proposed by the present invention be based on block chain network, can be ether mill, EOS (English: EnterpriseOperation System;Chinese: Enterprise Operation System) either super account book alliance's chain or privately owned chain. For intelligence contract involved in technical solution proposed by the invention, the currency being directed to is referred to as token (Token), the equity that the contribution margin for uploading data is converted to downloading acceleration may be implemented using it.The life of specific token value It is as described below at strategy:
Fig. 1 is a kind of specific steps flow chart of download control method provided in an embodiment of the present invention, as shown in Figure 1, answering For having the block catenary system of intelligent contract, this method may include:
Step 101, the upload data of the client recorded on block catenary system are obtained.
Wherein, busy duration, busy bandwidth, idle duration and the idle band that data include client in preset duration are uploaded It is wide.
In a particular application, it can use the upload for each client that block catenary system records in entire block catenary system Data, and save, in order to be visitor according to the upload data of client according to the contribution value calculating method being arranged in intelligent contract Corresponding attribute contribution margin is added in the account of family end.Illustratively, with 5 minutes for a duration unit, busy duration is recorded respectively (the upload total time within the busy period, i.e. 5 minutes total numbers of unit time), busy bandwidth are (in above-mentioned busy duration Total bandwidth), idle duration (uplink time within the idle period, 5 minutes total numbers) and idle bandwidth be (in idle duration Interior total bandwidth), 18 points to 23 points of setting are the busy period, remaining is the idle period, such as preset duration is set as 1 day, Intraday upload data are exactly counted, below step is recycled to calculate single attribute contribution margin, i.e. odd-numbered day contribution margin.It needs Illustrate, the busy period, preset duration and duration unit can correspond to actual conditions and be adjusted, when duration unit Change or preset duration or busy period generate variation, then busy duration and the also corresponding variation of idle duration.
Step 102, according to the attribute thresholds being arranged in data and intelligent contract are uploaded, the single contribution of client is calculated Attribute value.
Illustratively, daily attribute thresholds are provided in intelligent contract, as what can be got within one day Maximum attribute value.According to upload data contribution margin is calculated, the contribution margin can be a ratio value (value be 0 to 1 it Between), it indicates the contribution that the client made uploading bandwidth in one day, determines current date in conjunction with maximum attribute threshold value Single attribute contribution margin, that is, same day contribution margin.
Step 103, increase single in source attribute values and contribute attribute value.
Illustratively, in single attribute contribution margin deposit client account step 102 determined, in order to the use of client Family when to be accelerated, by deduct client account in user source attribute values, exchange accordingly to be added Equity is downloaded in the acceleration of fast file.
It should be noted that the step of above-mentioned calculating single attribute contribution margin, continuously carries out in preset duration, e.g. Client account is restored again into the calculating that (preset duration) all carries out a single attribute contribution margin daily, current total contribution margin meeting It is stored in client account always, convenient for providing required user's right for user based on rational mechanism or calculative strategy It exchanges, e.g. accelerates downloading equity.And in the case where exchange of the user without any user's right, the resource category of user Property value will remain stored in client account.Further, it is also possible to the limitation of maximum storage duration be carried out, when user is more than maximum When storage duration does not carry out exchange operation, then user is reminded, prompting user not use for a long time can be to source attribute values Reset etc., to be managed to the source attribute values in client account.
Therefore, after adding single contribution attribute value in client account according to above-mentioned steps, it can use client The source attribute values of existing user in account carry out the exchange that corresponding downloading accelerates equity, as described in following example.
Fig. 2 is a kind of step flow chart of download control method provided in an embodiment of the present invention, as shown in Fig. 2, the block For being controlled according to the upload data of client the speed of download of client, this method exists intelligent contract on catenary system After step 103, can also include:
Step 201, it in response to the downloading acceleration request of client, obtains for adding needed for accelerating to download wait accelerate file Fast attribute value.
Wherein, file to be accelerated is to download the file to be accelerated downloading in acceleration request, and accelerating attribute value is according to intelligence What the acceleration attribute value-based algorithm in energy contract obtained.
Illustratively, a kind of exemplary structure of block chain according to the present invention is as shown in figure 3, due to block catenary system On intelligent contract can be by any client query contract code and the All Activity detail of itself account etc., and can Data are disclosed and what can not be distorted is recorded in block chain.Wherein, P2Pclient is client, with 2 visitors in the present embodiment For the end of family, basic P2P module and block chain light weight node, while also in store block are run in the two clients Chain account, to carry out calling, the inquiry etc. of intelligent contract.It may include multiple servers in server-side, wherein data service Device is used to record the upload data of client in prefixed time interval, and the data after summarizing are sent to super contract node (ContractNode), accelerate attribute value to determine the source attribute values of user and determine according to downloading acceleration request;It is super Calculated result announcing resource server to source attribute values is stored client thereon and needs to accelerate downloading by contract node Resource, file e.g. to be accelerated.Acceleration can be opened to the client in super contract node announcing resource server later After downloading, Resource Server provides acceleration download service according to the setting in intelligent contract, for client.
In a particular application, it when the user of a wherein client wants to accelerate to download some file data, needs to utilize Client sending can accelerate downloading to request, such as be provided with corresponding be downloaded on the downloading page to this document data and add Fast option tab, after clicking the option tab, client is generated and issued for this document data (text to be accelerated user Part) downloading acceleration request, including the corresponding ID of file to be accelerated, and/or the client of client identity for identification The information such as ID, server-side, according to the acceleration attribute value-based algorithm of intelligent contract, determine that downloading accelerates in response to the downloading acceleration request Corresponding acceleration attribute value is requested, to execute below step operation.
In a particular application, the acceleration attribute value-based algorithm in intelligent contract includes the data volume size according to file to be accelerated Corresponding attribute ratio value, and then determination accelerates acceleration attribute value needed for downloading the file to be accelerated, such as 100M file pair The acceleration attribute value answered is 0.5.
It should be noted that client can also voluntarily call intelligent contract, realize wait acceleration category needed for accelerating file Property value determine operation, the specific present invention is with no restrictions.
Step 202, according to attribute value is accelerated, the acceleration request operation in intelligent contract is executed.
Wherein, acceleration request operation includes the source attribute values that will accelerate attribute value existing user from client account The source attribute values of middle deduction, the user contribute attribute value to obtain by single determined by the upload data according to client.
In a particular application, in order to realize the excitation used uploading bandwidth, using data server according in block chain The upload data of the client recorded in system, and determine the source attribute values of the user in client account, such as Fig. 1 embodiment Described, details are not described herein again.It is determined in step 201 according to downloading acceleration request after accelerating attribute value in turn, executes correspondence Acceleration request operation, i.e., carry out the deduction of the acceleration attribute value from client account, and corresponding turn the acceleration attribute value Enter server-side account, and then realizes the exchange of primary equity of equal value (accelerating attribute value is corresponding to accelerate downloading).
It should be noted that as shown in Figure 3, the solid line between super contract node and client is indicated to each client End carries out the statistics of source attribute values, and the dotted line between super contract node and client indicates attribute value will be accelerated from client It deducts, and is transferred into server account in account.
Step 203, after acceleration request operates successful execution, adding for file to be accelerated is provided for client using server-side Fast download service.
Wherein, file to be accelerated at least is preserved in server-side.
In a particular application, realizing through the above steps accelerates attribute value successfully to deduct from client account, illustrates There are enough source attribute values in client account, can use server later and open corresponding acceleration down operation.Intelligence Such as setting in contract: it can directly trigger resource clothes while attribute value will be accelerated successfully to deduct from client account Business device, which is opened, provides acceleration download service for client, such as can announcing resource server, order in the form of message or switch Resource Server provides the transmission of file to be accelerated as transmitting terminal, for client (as receiving end), and then increases client Downlink bandwidth, so that it is assigned to more downlink bandwidth resources, with realize file to be accelerated acceleration downloading.
It should be noted that due in P2P transmission mode, may and client unavailable because of resource itself it is hard Part limitation, and cause message transmission rate excessively slow (resource quantity is few, that is, the client for carrying out resource upload is few) or due to nothing Can transfer resource (client of no upload for carrying out resource) and make client (client that resource downloading need to be carried out) can not The problem of obtaining data resource, the excitation used using technical solution proposed by the present invention uploading bandwidth is able to ascend P2P's Resource quality, such as by will upload data be converted to source attribute values increase resource there are quantity and/or durations, and need When carrying out data acquisition by P2P, source attribute values can be converted into downloading again and accelerate equity, utilize existing useful money Source guarantees the transmission rate and stability of P2P, while motivating the use of uploading bandwidth;And it is exchanged in user using source attribute values After accelerating downloading equity, fast file to be added can be directly downloaded from server-side, hardware present in P2P transmission mode is overcome to limit System, further promotes data downloading speed.Wherein, the dotted arrow between Resource Server as shown in Figure 3 and client, It indicates to accelerate downloading process.
In addition, the acceleration attribute value-based algorithm in intelligent contract is in addition to including the data volume according to file to be accelerated according to one Certainty ratio relationship (attribute ratio value) determines except required acceleration attribute value, can also mark off different grades of load bandwidth For selection by the user, such as relationship corresponds to different amount of bandwidth, such as attribute to corresponding attribute ratio value according to a certain percentage When ratio value is 0.1, bandwidth can rise to 100Mbps from 80Mbps;When attribute ratio value is 0.3, bandwidth can be from 80Mbps rises to 120Mbps etc., user can according to actual needs and in its client account existing user money Source attribute value, the suitable attribute ratio value of corresponding selection, to obtain corresponding bandwidth, the present invention is without limitation.
Technical solution proposed by the present invention, the disclosure using the intelligent contract on block chain and the characteristic that can not distort, Block chain is written in (intelligent contract) in the form of code by way of (upload data) will be contributed to determine source attribute values upload In system, and then realize that will upload data conversion becomes user's right (for example downloading accelerates, member card etc.), dominant excitation is used Family carries out upload operation, and by the intelligent contract specification in block catenary system and realizes the right and justice that are arranged in contract Business, and then guarantee to accelerate the realization of transmission.
In conclusion download control method provided by the invention, in response to the downloading acceleration request of client, acquisition is used for Acceleration is downloaded wait acceleration attribute value needed for accelerating file, according to attribute value is accelerated, executes the acceleration request behaviour in intelligent contract Make, acceleration request operation includes that attribute value will be accelerated to deduct from the source attribute values of user existing in client account;? After acceleration request operates successful execution, the acceleration download service of file to be accelerated is provided for client using server-side.Therefore, base The source attribute values that the user of client account is determined in intelligent contract, can be according to the upload data of the client recorded It calculates in the source attribute values deposit client account of corresponding user, accelerates downloading equity, Jin Eryou to exchange file Use of the effect excitation to uploading bandwidth, promotes the resource utilization and transmission rate of P2P transmission method, carries out data convenient for user Transmission is made rational planning for.
Optionally, Fig. 4 is a kind of specific steps flow chart of download control method provided in an embodiment of the present invention, such as Fig. 4 It is shown, according to the attribute thresholds being arranged in data and intelligent contract are uploaded described in step 102, calculate the single category of client Property contribution margin may include:
Step 1021, according to data are uploaded, contribution margin of the client in preset recording duration is calculated.
Illustratively, contribution margin includes busy duration part, busy portions of bandwidth, idle duration part and idle bandwidth portion Point.
In a particular application, by the product of busy duration and preset busy weight, as busy duration fractional t1;By idle The product of duration and preset idle weight, as idle duration part T2;By the minimum in busy bandwidth and maximum busy bandwidth The product of value and preset busy bandwidth weighting, as busy portions of bandwidth T3;By in idle bandwidth and maximum idle bandwidth most The product of small value and preset idle bandwidth weighting, as idle portions of bandwidth T4;To busy duration part, busy portions of bandwidth, Idle duration part and idle portions of bandwidth are normalized, and determine contribution margin.
Wherein, preset idle weight is less than preset busy weight, and preset idle bandwidth weighting is less than preset busy Time Bandwidth weight.
It illustratively, is the busy period, for a duration unit, being arranged with 5 minutes at 18 points to 23 points, when remaining is idle In the case where section, then the number of busy period is less than or equal to 72 (6*60/5), the idle period is less than or equal to 216 (18*60/5), In the case where uploading flow speed is 80Mbps, upload flow is no more than 3GB within 5 minutes, then contribution margin calculation formula is as follows:
Wherein, A indicates contribution margin (0≤A≤1), and b_t indicates busy duration, and W (b_t) indicates preset busy weight, i_ T indicates idle duration, and W (i_t) indicates preset idle weight, and b_gbyte indicates busy bandwidth, and W (b_gbyte) indicates default Busy bandwidth weighting, i_gbyte indicates idle bandwidth, and W (i_gbyte) indicates preset idle bandwidth weighting.
Illustratively, W (b_t)=W (i_gbyte)=5, W (i_t)=1, W (b_gbyte)=10 can be set;Then:It * is T1;For T2;For T3;For T4.
It should be noted that in the case where being provided with different busy period and idle period, adaptive change formula In occurrence.For example, illustrative upload flow speed 80Mbps is used in above-mentioned formula, and the upload in actual conditions Flow speed uploads flow speed usually between 10Mbps to 20Mbps, while as the upstream bandwidth of user's entirety becomes larger Degree, which can also correspond to, to be raised, so that corresponding in corresponding adjustment formula uploaded the numerical value that flow is no more than 3GB at 5 minutes.
Step 1022, using the product of contribution margin and attribute thresholds as single attribute contribution margin.
Illustratively, using the product of the calculated contribution margin of step 1021 and attribute thresholds as the single attribute contribution margin (same day Single attribute contribution margin), correspondence be added in client account.
Optionally, Fig. 5 is a kind of specific steps flow chart of download control method provided in an embodiment of the present invention, such as Fig. 5 It is shown, in response to the downloading acceleration request of client described in step 201, obtain for accelerating needed for downloading wait accelerate file Accelerate attribute value, may include:
Step 2011, it obtains the data volume of file to be accelerated and accelerates the data volume in attribute value-based algorithm with file to be accelerated Corresponding attribute ratio value.
Step 2012, using the product of attribute ratio value and the data volume of file to be accelerated as acceleration attribute value.
Illustratively, the calculating value-based algorithm being arranged in intelligent contract is: by the data of attribute ratio value and file to be accelerated The product of amount is as acceleration attribute value, such as accelerates to correspond to the attribute ratio value being arranged within 500M in attribute value-based algorithm to be 0.05, It is 324M file when user needs to accelerate to download a size, required acceleration attribute value is 324*0.05=16.2.Other roots The calculative strategy for accelerating attribute value is determined according to downloading acceleration request, can be applied in the present invention, herein with no restrictions.
Fig. 6 is a kind of block diagram of download control device provided in an embodiment of the present invention, applied to the area with intelligent contract Block catenary system, intelligent contract is for controlling the speed of download of client according to the upload data of client, such as Fig. 6 institute Show, which includes:
Attribute value obtains module 610, for the downloading acceleration request in response to client, obtains for accelerating downloading to be added Acceleration attribute value needed for fast file, file to be accelerated are to download the file to be accelerated downloading in acceleration request, accelerate attribute Value is obtained according to the acceleration attribute value-based algorithm in intelligent contract.
Operation executing module 620 accelerates for according to attribute value is accelerated, executing the acceleration request operation in intelligent contract Request operation includes that attribute value will be accelerated to deduct from the source attribute values of user existing in client account, the resource of user Attribute value contributes attribute value to obtain by single determined by the upload data according to client.
Accelerate download module 630, for acceleration request operate successful execution after, using server-side for client provide to Accelerate the acceleration download service of file, wherein file to be accelerated at least is preserved in server-side.
Optionally, the device 600 further include:
Data acquisition module, for obtaining for accelerating to download wait accelerate in the downloading acceleration request in response to client Needed for file the step of acceleration attribute value before, obtain the upload data of client recorded on block catenary system.
Attribute value determining module, for calculating client according to the attribute thresholds being arranged in data and intelligent contract are uploaded The single at end contributes attribute value.
Attribute value increases module, contributes attribute value for increasing single in source attribute values.
Optionally, attribute value determining module, comprising:
Contribution margin computational submodule, for calculating contribution margin of the client in preset recording duration according to data are uploaded.
Contribution margin determines submodule, for using the product of contribution margin and attribute thresholds as single attribute contribution margin.
Optionally, busy duration, busy bandwidth, idle duration and the spare time that data include the client in preset duration are uploaded Time Bandwidth;Contribution margin computational submodule, comprising:
Busy duration acquiring unit is used for by the product of busy duration and preset busy weight, as busy duration part;
Idle duration acquiring unit is used for by the product of idle duration and preset idle weight, as idle duration part;
Busy bandwidth acquiring unit, for by busy bandwidth and maximum busy bandwidth minimum value and preset busy band The product of wide weight is as busy portions of bandwidth;
Idle bandwidth acquiring unit, for by idle bandwidth and maximum idle bandwidth minimum value and preset idle band The product of wide weight is as idle portions of bandwidth;
Normalized unit, for busy duration part, busy portions of bandwidth, idle duration part and idle bandwidth Part is normalized, and determines contribution margin;
Wherein, preset idle weight is less than preset busy weight, and preset idle bandwidth weighting is less than preset busy Time Bandwidth weight.
Optionally, attribute value obtains module, comprising:
Acquisition of information submodule, for obtain file to be accelerated data volume and accelerate attribute value-based algorithm in text to be accelerated The corresponding attribute ratio value of the data volume of part.
Attribute value computational submodule, for using the product of attribute ratio value and the data volume of file to be accelerated as acceleration attribute Value.
In addition, the embodiment of the present invention also provides a kind of terminal, including processor, memory, storage is on a memory and can The computer program run in processing, the computer program realize that above-mentioned download control method is implemented when being executed by processor Each process of example, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned download control method embodiment when being executed by processor, and Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, can Think read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, Abbreviation RAM), magnetic or disk etc..
For above-mentioned apparatus embodiment, since it is basically similar to the method embodiment, so be described relatively simple, The relevent part can refer to the partial explaination of embodiments of method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that: any combination application of above-mentioned each embodiment is all feasible, therefore Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited, This is not just detailed one by one.
Provided herein download control method not with any certain computer, virtual system or the intrinsic phase of other equipment It closes.Various general-purpose systems can also be used together with teachings based herein.As described above, construction has present invention side Structure required by the system of case is obvious.In addition, the present invention is also not directed to any particular programming language.It should be bright It is white, it can use various programming languages and realize summary of the invention described herein, and retouched above to what language-specific was done State is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the invention should not be construed to reflect an intention that i.e. required guarantor Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) come realize some in download control method according to an embodiment of the present invention or The some or all functions of person's whole component.The present invention is also implemented as one for executing method as described herein Point or whole device or device programs (for example, computer program and computer program product).Such this hair of realization Bright program can store on a computer-readable medium, or may be in the form of one or more signals.It is such Signal can be downloaded from an internet website to obtain, and is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (11)

1. a kind of download control method, which is characterized in that applied to the block catenary system with intelligent contract, the intelligence contract For being controlled according to the upload data of client the speed of download of the client, which comprises
In response to the downloading acceleration request of the client, obtain for accelerating to download wait acceleration attribute needed for accelerating file Value, the file to be accelerated are the files to be accelerated downloading in the downloading acceleration request, and the acceleration attribute value is basis What the acceleration attribute value-based algorithm in the intelligence contract obtained;
According to the acceleration attribute value, the acceleration request operation in the intelligent contract is executed, the acceleration request operation includes The acceleration attribute value is deducted from the source attribute values of user existing in client account, the Resource Properties of the user Value contributes attribute value to obtain by single determined by the upload data according to the client;
After the acceleration request operates successful execution, adding for the file to be accelerated is provided for the client using server-side Fast download service, wherein the file to be accelerated at least is preserved in the server-side.
2. the method according to claim 1, wherein being asked in the downloading acceleration in response to the client It asks, obtains before being used to accelerate the step of downloading wait acceleration attribute value needed for accelerating file, the method also includes:
Obtain the upload data of the client recorded on the block catenary system;
According to the attribute thresholds being arranged in the upload data and the intelligent contract, the single contribution of the client is calculated Attribute value;
Increase the single contribution attribute value in the source attribute values.
3. according to the method described in claim 2, it is characterized in that, described according to the upload data and the intelligent contract The attribute thresholds of middle setting calculate the single contribution attribute value of the client, comprising:
According to the upload data, contribution margin of the client in preset recording duration is calculated;
Attribute value is contributed using the product of the contribution margin and the attribute thresholds as the single.
4. according to the method described in claim 3, it is characterized in that, the upload data include described in the preset duration Busy duration, busy bandwidth, idle duration and the idle bandwidth of client;It is described according to the upload data, calculate the visitor Contribution margin of the family end in the preset recording duration, comprising:
By the product of the busy duration and preset busy weight, as busy duration part;
By the product of the idle duration and preset idle weight, as idle duration part;
Using the product of minimum value and preset busy bandwidth weighting in the busy bandwidth and maximum busy bandwidth as described busy Time Bandwidth part;
Using the product of minimum value and preset idle bandwidth weighting in the idle bandwidth and maximum idle bandwidth as the spare time Time Bandwidth part;
To busy duration part, the busy portions of bandwidth, idle duration part and the idle portions of bandwidth into Row normalized determines the contribution margin;
Wherein, the preset idle weight is less than the preset busy weight, and the preset idle bandwidth weighting is less than The preset busy bandwidth weighting.
5. the method according to claim 1, wherein the downloading acceleration request in response to the client, It obtains for accelerating to download wait acceleration attribute value needed for accelerating file, comprising:
Obtain the data volume and the data volume accelerated in attribute value-based algorithm with the file to be accelerated of the file to be accelerated Corresponding attribute ratio value;
Using the product of the attribute ratio value and the data volume of the file to be accelerated as the acceleration attribute value.
6. a kind of download control device, which is characterized in that applied to the block catenary system with intelligent contract, the intelligence contract For being controlled according to the upload data of client the speed of download of the client, described device includes:
Attribute value obtains module, for the downloading acceleration request in response to the client, obtains for accelerating to download wait accelerate Acceleration attribute value needed for file, the file to be accelerated are the file to be accelerated downloading in the downloading acceleration request, institute Stating acceleration attribute value is obtained according to the acceleration attribute value-based algorithm in the intelligent contract
Operation executing module, it is described for executing the acceleration request operation in the intelligent contract according to the acceleration attribute value Acceleration request operation includes deducting the acceleration attribute value from the source attribute values of user existing in client account, institute The source attribute values for stating user contribute attribute value to obtain by single determined by the upload data according to the client;
Accelerate download module, for providing using server-side for the client after the acceleration request operates successful execution The acceleration download service of the file to be accelerated, wherein the file to be accelerated at least is preserved in the server-side.
7. device according to claim 6, which is characterized in that described device further include:
Data acquisition module, in the downloading acceleration request in response to the client, obtain for accelerate downloading to Before the step of acceleration attribute value needed for accelerating file, the upload of the client recorded on the block catenary system is obtained Data;
Attribute value determining module, for calculating according to the attribute thresholds being arranged in the upload data and the intelligent contract The single of the client contributes attribute value;
Attribute value increases module, for increasing the single contribution attribute value in the source attribute values.
8. device according to claim 7, which is characterized in that the attribute value determining module, comprising:
Contribution margin computational submodule, for calculating tribute of the client in preset recording duration according to the upload data Offer value;
Contribution margin determines submodule, for contributing the product of the contribution margin and the attribute thresholds as the single attribute Value.
9. device according to claim 8, which is characterized in that the upload data include described in the preset duration Busy duration, busy bandwidth, idle duration and the idle bandwidth of client;The contribution margin computational submodule, comprising:
Busy duration acquiring unit is used for by the product of the busy duration and preset busy weight, as the busy duration Part;
Idle duration acquiring unit is used for by the product of the idle duration and preset idle weight, as the idle duration Part;
Busy bandwidth acquiring unit, for by the busy bandwidth and maximum busy bandwidth minimum value and preset busy band The product of wide weight is used as the busy portions of bandwidth;
Idle bandwidth acquiring unit, for by the idle bandwidth and maximum idle bandwidth minimum value and preset idle band The product of wide weight is used as the idle portions of bandwidth;
Normalized unit, for busy duration part, the busy portions of bandwidth, idle duration part and The idle portions of bandwidth is normalized, and determines the contribution margin;
Wherein, the preset idle weight is less than the preset busy weight, and the preset idle bandwidth weighting is less than The preset busy bandwidth weighting.
10. device according to claim 6, which is characterized in that the attribute value obtains module, comprising:
Acquisition of information submodule, in the data volume and the acceleration attribute value-based algorithm for obtaining the file to be accelerated with it is described The corresponding attribute ratio value of the data volume of file to be accelerated;
Attribute value computational submodule, for using the product of the attribute ratio value and the data volume of the file to be accelerated as described in Accelerate attribute value.
11. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the download control method as described in any one of claims 1 to 5 is realized when the computer program is executed by processor Step.
CN201910157080.4A 2019-03-01 2019-03-01 Download control method, device and storage medium Active CN110012068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910157080.4A CN110012068B (en) 2019-03-01 2019-03-01 Download control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910157080.4A CN110012068B (en) 2019-03-01 2019-03-01 Download control method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110012068A true CN110012068A (en) 2019-07-12
CN110012068B CN110012068B (en) 2022-02-11

Family

ID=67166236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910157080.4A Active CN110012068B (en) 2019-03-01 2019-03-01 Download control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110012068B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110690999A (en) * 2019-10-11 2020-01-14 腾讯科技(深圳)有限公司 Bandwidth allocation method, device and equipment based on block chain and storage medium
CN111010450A (en) * 2019-12-25 2020-04-14 安徽兆尹信息科技股份有限公司 Client-side chain data downloading method for FISCO BCOS platform
CN112203119A (en) * 2020-09-27 2021-01-08 腾讯科技(深圳)有限公司 Multimedia service acceleration method, device, equipment and storage medium
CN112488838A (en) * 2020-12-16 2021-03-12 浙江大学德清先进技术与产业研究院 Remote sensing data transaction incentive method based on intelligent contract

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091167A1 (en) * 2003-10-25 2005-04-28 Macrovision Corporation Interdiction of unauthorized copying in a decentralized network
CN102685075A (en) * 2011-03-15 2012-09-19 腾讯科技(深圳)有限公司 Network transmission system, server and client
CN102790925A (en) * 2011-05-20 2012-11-21 深圳市快播科技有限公司 Method and VOD (Video On Demand) terminal for playing online streaming media
CN102833293A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Method for downloading resources in peer to server and peer (P2SP) network, and client
CN103501342A (en) * 2013-10-09 2014-01-08 北京奇虎科技有限公司 Method and device of uploading and downloading data in point-to-point network
US20140129652A1 (en) * 2012-11-08 2014-05-08 Xtreme Labs Inc. System and Method of Secure File Sharing Using P2P
CN108259542A (en) * 2016-12-29 2018-07-06 腾讯科技(深圳)有限公司 The transmission method and device of resource
US20180284745A1 (en) * 2016-05-09 2018-10-04 StrongForce IoT Portfolio 2016, LLC Methods and systems for self-organization of collected data using 3rd party data from a data marketplace in an industrial internet of things environment
CN108737498A (en) * 2018-04-18 2018-11-02 中国地质大学(武汉) A kind of P2P safety download detection method and system based on block chain
CN108769145A (en) * 2018-05-11 2018-11-06 北京奇虎科技有限公司 A kind of resources contribution amount method of proof, apparatus and system
CN108848081A (en) * 2018-06-01 2018-11-20 深圳崀途科技有限公司 The data sharing method of verification and integral incentive mechanism is stored based on alliance's chain

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091167A1 (en) * 2003-10-25 2005-04-28 Macrovision Corporation Interdiction of unauthorized copying in a decentralized network
CN102685075A (en) * 2011-03-15 2012-09-19 腾讯科技(深圳)有限公司 Network transmission system, server and client
CN102790925A (en) * 2011-05-20 2012-11-21 深圳市快播科技有限公司 Method and VOD (Video On Demand) terminal for playing online streaming media
CN102833293A (en) * 2011-06-17 2012-12-19 腾讯科技(深圳)有限公司 Method for downloading resources in peer to server and peer (P2SP) network, and client
US20140129652A1 (en) * 2012-11-08 2014-05-08 Xtreme Labs Inc. System and Method of Secure File Sharing Using P2P
CN103501342A (en) * 2013-10-09 2014-01-08 北京奇虎科技有限公司 Method and device of uploading and downloading data in point-to-point network
US20180284745A1 (en) * 2016-05-09 2018-10-04 StrongForce IoT Portfolio 2016, LLC Methods and systems for self-organization of collected data using 3rd party data from a data marketplace in an industrial internet of things environment
US20190033845A1 (en) * 2016-05-09 2019-01-31 Strong Force Iot Portfolio 2016, Llc Methods and systems for detection in an industrial internet of things data collection environment with frequency band adjustments for diagnosing oil and gas production equipment
CN108259542A (en) * 2016-12-29 2018-07-06 腾讯科技(深圳)有限公司 The transmission method and device of resource
CN108737498A (en) * 2018-04-18 2018-11-02 中国地质大学(武汉) A kind of P2P safety download detection method and system based on block chain
CN108769145A (en) * 2018-05-11 2018-11-06 北京奇虎科技有限公司 A kind of resources contribution amount method of proof, apparatus and system
CN108848081A (en) * 2018-06-01 2018-11-20 深圳崀途科技有限公司 The data sharing method of verification and integral incentive mechanism is stored based on alliance's chain

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110690999A (en) * 2019-10-11 2020-01-14 腾讯科技(深圳)有限公司 Bandwidth allocation method, device and equipment based on block chain and storage medium
CN110690999B (en) * 2019-10-11 2021-06-11 腾讯科技(深圳)有限公司 Bandwidth allocation method, device and equipment based on block chain and storage medium
CN111010450A (en) * 2019-12-25 2020-04-14 安徽兆尹信息科技股份有限公司 Client-side chain data downloading method for FISCO BCOS platform
CN111010450B (en) * 2019-12-25 2022-01-28 安徽兆尹信息科技股份有限公司 Client-side chain data downloading method for FISCO BCOS platform
CN112203119A (en) * 2020-09-27 2021-01-08 腾讯科技(深圳)有限公司 Multimedia service acceleration method, device, equipment and storage medium
CN112203119B (en) * 2020-09-27 2024-03-08 腾讯科技(深圳)有限公司 Multimedia service acceleration method, device, equipment and storage medium
CN112488838A (en) * 2020-12-16 2021-03-12 浙江大学德清先进技术与产业研究院 Remote sensing data transaction incentive method based on intelligent contract

Also Published As

Publication number Publication date
CN110012068B (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN110012068A (en) A kind of download control method, device and storage medium
CN109246229B (en) Method and device for distributing resource acquisition request
US7752168B2 (en) Method for coordinating peer-to-peer replicated backup and versioning based on usage metrics acquired from peer client
Peterson et al. AntFarm: Efficient Content Distribution with Managed Swarms.
WO2018133306A1 (en) Dispatching method and device in content delivery network
AU2017259252B2 (en) System and method for latency-based queuing
US20160234303A1 (en) Peer-to-Peer Upload Scheduling
CN108897615A (en) Second kills request processing method, application server cluster and storage medium
CN111459986B (en) Data computing system and method
CN112714029B (en) Method, device and equipment for scheduling content distribution network bandwidth
CN106851343A (en) For the method and apparatus of net cast
CN100527695C (en) Method and system for constructing half-fixed P2P network
CN109194718A (en) A kind of block chain network and its method for scheduling task
CN105978936A (en) CDN server and data caching method thereof
Li et al. Qoe-deer: A qoe-aware decentralized resource allocation scheme for edge computing
CN109801425A (en) Queue poll reminding method, device, equipment and storage medium in the label business of face
WO2016180284A1 (en) Service node allocation method, device, cdn management server and system
CN110519656A (en) Playback method, system and the server of adaptive stream media
CN109347967A (en) A kind of method and device obtaining audio, video data
Ziafat et al. Optimal selection of VMs for resource task scheduling in geographically distributed clouds using fuzzy c‐mean and MOLP
CN105339915B (en) Push-type information transmitting apparatus, push-type method for sending information and program
Reiffers-Masson et al. Timelines are publisher-driven caches: Analyzing and shaping timeline networks
CN112001454B (en) Clustering method and device for special line for collecting guests
CN110428254B (en) Decentralized storage downloading method and arbitration method, equipment and storage medium
CN110838989A (en) Method and device for network current limiting based on token

Legal Events

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