CN110493320B - Data downloading method and device, electronic equipment and storage medium - Google Patents

Data downloading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110493320B
CN110493320B CN201910668683.0A CN201910668683A CN110493320B CN 110493320 B CN110493320 B CN 110493320B CN 201910668683 A CN201910668683 A CN 201910668683A CN 110493320 B CN110493320 B CN 110493320B
Authority
CN
China
Prior art keywords
weight
sharer
resource block
seed
downloading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910668683.0A
Other languages
Chinese (zh)
Other versions
CN110493320A (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 Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201910668683.0A priority Critical patent/CN110493320B/en
Publication of CN110493320A publication Critical patent/CN110493320A/en
Application granted granted Critical
Publication of CN110493320B publication Critical patent/CN110493320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The embodiment of the application discloses a data downloading method, a data downloading device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a sharer of a current bit stream seed, and determining a plurality of resource blocks contained in the current bit stream seed; acquiring a first downloading progress of each resource block and a second downloading progress of the current bit stream seed of the sharer; determining the weight of the sharer to each resource block according to the first downloading progress and the second downloading progress; and determining the download priority of the plurality of resource blocks according to the weight of the sharer to each resource block. According to the embodiment of the application, the weight of the resource block is considered when the downloading priority is determined, and the number of the sharers of each resource block is not only counted, so that the downloading stability can be improved.

Description

Data downloading method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a data downloading method and apparatus, an electronic device, and a storage medium.
Background
The BT (Bit stream) seed downloading does not place the downloading resources in a centralized resource library for downloading by a large family, but stores the downloading resources in each user hand in a distributed manner, and each resource can be divided into a plurality of resource blocks, so that the user can actually download different resource blocks from other different users during downloading, and finally assemble and integrate the different resource blocks into the desired resources.
However, if the resource of a certain resource block is particularly small or not shared by anyone, the whole resource download will be blocked. The existing BT selects a certain resource block in a mode of least sharing the most-preferred downloading algorithm, the algorithm can generate instant most-preferred downloading, a sharer breaks the link in the downloading process, so that the problem that the resource cannot be downloaded is solved, and the downloading stability is poor.
Disclosure of Invention
The embodiment of the application provides a data downloading method, a data downloading device, electronic equipment and a storage medium, and is beneficial to improving the downloading stability.
In order to solve the above problem, in a first aspect, an embodiment of the present application provides a data downloading method, including:
determining a sharer of a current bit stream seed, and determining a plurality of resource blocks contained in the current bit stream seed;
acquiring a first downloading progress of each resource block and a second downloading progress of the current bit stream seed of the sharer;
determining the weight of the sharer to each resource block according to the first downloading progress and the second downloading progress;
and determining the download priority of the plurality of resource blocks according to the weight of the sharer to each resource block.
Optionally, the determining the weight of the sharer to each resource block according to the first download progress and the second download progress includes:
determining the initial weight of the sharer to each resource block according to the first downloading progress;
determining the weight of the sharer to the current bit stream seed according to the second downloading progress, and taking the weight as the seed weight;
and determining the weight of the sharer to each resource block according to the initial weight and the seed weight.
Optionally, the determining, according to the second download progress, a weight of the sharer to the current bitstream seed as a seed weight includes:
taking the second downloading progress as an abscissa value;
and determining a longitudinal coordinate value corresponding to the abscissa value as the seed weight based on the standard normal distribution.
Optionally, the determining the weight of the sharer to each resource block according to the initial weight and the seed weight includes:
and taking the product of the initial weight and the seed weight as the weight of the sharer to each resource block.
Optionally, the determining the download priority of the resource blocks according to the weight of the sharer to each resource block includes:
calculating the accumulated sum of the weight of each sharer to each resource block;
and determining the downloading priority of the plurality of resource blocks according to the corresponding accumulated sum of each resource block.
Optionally, the determining the download priority of the resource blocks according to the accumulated sum corresponding to each resource block includes:
sequencing the accumulated sum corresponding to each resource block;
and determining the downloading priority order of the plurality of resource blocks according to the sequence.
In a second aspect, an embodiment of the present application provides a data downloading apparatus, including:
a seed resource determining module, configured to determine a sharer of a current bit stream seed, and determine a plurality of resource blocks included in the current bit stream seed;
a download progress acquiring module, configured to acquire a first download progress of each resource block by the sharer determined by the seed resource determining module and a second download progress of the current bit stream seed;
a weight determining module, configured to determine a weight of each resource block by the sharer according to the first download progress and the second download progress acquired by the download progress acquiring module;
and the download priority determining module is used for determining the download priorities of the plurality of resource blocks according to the weight of the sharer to each resource block determined by the weight determining module.
Optionally, the weight determining module includes:
an initial weight determining unit, configured to determine an initial weight of each resource block by the sharer according to the first download progress acquired by the download progress acquisition module;
a seed weight determining unit, configured to determine, according to the second download progress obtained by the download progress obtaining module, a weight of the sharer to the current bitstream seed as a seed weight;
and a resource block weight determining unit configured to determine a weight of each resource block by the sharer based on the initial weight determined by the initial weight determining unit and the seed weight determined by the seed determining unit.
Optionally, the seed determining unit is specifically configured to:
the second downloading progress acquired by the downloading progress acquisition module is used as an abscissa value;
and determining a longitudinal coordinate value corresponding to the abscissa value as the seed weight based on the standard normal distribution.
Optionally, the resource block weight determining unit is specifically configured to:
and taking the product of the initial weight and the seed weight as the weight of the sharer to each resource block.
Optionally, the download priority determining module includes:
a weight accumulation unit, configured to calculate, for each resource block, an accumulated sum of the weight of each sharer for the resource block;
and the priority determining unit is used for determining the downloading priority of the plurality of resource blocks according to the accumulated sum corresponding to each resource block.
Optionally, the priority determining unit is specifically configured to:
sequencing the accumulated sum corresponding to each resource block;
and determining the downloading priority order of the plurality of resource blocks according to the sequence.
In a third aspect, an embodiment of the present application further discloses an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the data downloading method according to the embodiment of the present application when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the data downloading method disclosed in the present application.
According to the data downloading method, the data downloading device, the electronic equipment and the storage medium, the sharer of the current bit stream seed is determined, the plurality of resource blocks contained in the current bit stream seed are determined, the first downloading progress of the sharer to each resource block and the second downloading progress of the sharer to the current bit stream seed are obtained, the weight of the sharer to each resource block is determined according to the first downloading progress and the second downloading progress, the downloading priority of the plurality of resource blocks is determined according to the weight of the sharer to each resource block, the weight of the resource blocks is considered when the downloading priority is determined, the number of the sharers of each resource block is not just counted, and therefore the downloading stability can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a data downloading method according to a first embodiment of the present application;
fig. 2 is a schematic structural diagram of a data downloading device according to a second embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, the resource block with the least number of current sharers in one seed is selected for downloading in the highest priority. Because the user who finishes downloading generally is to finish closing the downloader promptly, no longer reserves shared resource, or, the user who just begins to download is patiently not enough cancels the downloading, also no longer reserves shared resource, and this will lead to the sharing of seed to break, and then even there is other users downloading the resource block, because this resource block has not had the sharer, also can't download. Thus, the prior art scheme still has the problem of poor downloading stability.
The method and the device optimize the original mode of selecting the resource blocks to be downloaded according to the number of sharing people of the resource blocks, aim at obtaining the weight of each resource block more reasonably, and further guarantee the downloading stability and the integrity of the resources to the maximum extent. The details are as follows.
Example one
As shown in fig. 1, a data downloading method disclosed in this embodiment includes: step 110 to step 140.
Step 110, determining a sharer of a current bit stream seed, and determining a plurality of resource blocks contained in the current bit stream seed.
When a downloading request of a user for a current bit stream seed is received, determining users who are downloading the current bit stream seed according to a seed identifier of the current bit stream seed in the downloading request, wherein the users are also sharers of the current bit stream seed, and determining a plurality of resource blocks contained in the current bit stream seed. There is at least one sharer for the current bitstream seed.
And step 120, obtaining a first downloading progress of each resource block by the sharer and a second downloading progress of the current bit stream seed.
And aiming at each sharer, acquiring the downloading progress of the sharer to each resource block in the plurality of resource blocks as a first downloading progress, and acquiring the downloading progress of the sharer to the current bit stream seed as a second downloading progress. The value of the first download progress is greater than or equal to 0 and less than or equal to 1. The value of the second download progress is greater than or equal to 0 and less than or equal to 1.
When the download progress of a sharer to a resource block is obtained, the download amount of the sharer to the resource block can be obtained, and the download progress of the sharer to the resource block is determined according to the download amount and the size of the resource block and serves as a first download progress. Each resource block of each seed has a certain size, for example, if one resource block is 10M, if the download amount of one sharer to the resource block is 1M, the first download progress of the sharer to the resource block is determined to be 10%, and if the download amount of one sharer to the resource block is 10M, the first download progress of the sharer to the resource block is determined to be 100%.
When the downloading progress of a sharer in the current bit stream is obtained, the downloading amount of the sharer to the current bit stream seed can be obtained, and the downloading progress of the sharer to the current bit stream seed is determined according to the downloading amount and the size of the current bit stream seed to serve as a second downloading progress. For example, if the total resource of the current bitstream seed is 100M and a sharer downloads 10M, the second download progress of the sharer to the current bitstream seed is 10%.
Step 130, determining the weight of each resource block by the sharer according to the first downloading progress and the second downloading progress.
And calculating the distribution of each sharer, namely selecting one sharer from all sharers as a current sharer, determining the weight of the current sharer to each resource block according to the first downloading progress and the second downloading progress of the current sharer, then selecting one sharer from other sharers as the current sharer, and determining the weight of the current sharer to each resource block according to the mode, thereby determining the weight of all sharers to each resource block.
In an embodiment of the application, the determining, according to the first download progress and the second download progress, a weight of each resource block by the sharer includes:
determining the initial weight of the sharer to each resource block according to the first downloading progress;
determining the weight of the sharer to the current bit stream seed according to the second downloading progress, and taking the weight as the seed weight;
and determining the weight of the sharer to each resource block according to the initial weight and the seed weight.
And regarding each sharer, taking the first downloading progress of the sharer to each resource block as the initial weight of the sharer to each resource block. For example, if the current bitstream seed includes 10 resource blocks, the first download progress of one sharer for the first resource block is 100%, the first download progress for the second resource block is 50%, and the first download progress for the third resource block and the subsequent resource blocks is 0, it is determined that the initial weight of the sharer for the first resource block is 100%, the initial weight of the sharer for the second resource block is 50%, and the initial weight of the sharer for the third resource block and the subsequent resource blocks is 0.
In an embodiment of the application, the determining, according to the second download progress, a weight of the sharer to the current bitstream seed as a seed weight includes:
taking the second downloading progress as an abscissa value;
and determining a longitudinal coordinate value corresponding to the abscissa value as the seed weight based on the standard normal distribution.
The distribution of the seed weight relative to the second downloading progress accords with the standard normal distribution, the abscissa takes the second downloading progress as a scale, the ordinate takes 0 to 1 as a weight scale, and according to the second downloading progress of each sharer to the current bit stream seed, an ordinate value can be obtained through the following formula, wherein the ordinate value is the weight of the sharer to the current bit stream seed, namely the seed weight:
Figure BDA0002140952530000071
where B is the seed weight and x is the second download progress of the sharer to the current bitstream seed. And calculating according to the formula for each sharer to obtain the seed weight of each sharer.
In an embodiment of the application, the determining, according to the initial weight and the seed weight, a weight of each resource block by the sharer includes:
and taking the product of the initial weight and the seed weight as the weight of the sharer to each resource block.
And for each sharer, taking the product of the initial weight of the sharer to each resource block and the seed weight as the weight of the sharer to each resource block. For example, if the current bit stream seed includes 2 resource blocks, and the initial weight of a sharer to the first resource block is 50%, the initial weight to the second resource block is 0, and the seed weight to the current bit stream seed is 50%, the sharer has a weight of 50% × 50% ═ 25% to the first resource block, and the sharer has a weight of 0 × 50% ═ 0 to the second resource block.
Step 140, determining the download priority of the resource blocks according to the weight of the sharer to each resource block.
The resource block with the lowest priority for downloading, that is, if the weight of one resource block is low, the downloading priority of the resource block is higher, that is, the order of the weights of the resource blocks from low to high may be determined as the order of the downloading priorities of the plurality of resource blocks. So that each resource block of the current bit stream seed can be downloaded according to the downloading priority order.
In an embodiment of the application, the determining the download priority of the plurality of resource blocks according to the weight of the sharer to each resource block includes:
calculating the accumulated sum of the weight of each sharer to each resource block;
and determining the downloading priority of the plurality of resource blocks according to the corresponding accumulated sum of each resource block.
Selecting one resource block from a plurality of resource blocks of the current bit stream seed as a current resource block, and calculating the accumulated sum of the weights of all sharers to the current resource block by the following formula aiming at the current resource block:
Figure BDA0002140952530000081
wherein PR is the cumulative sum of all sharers over the weight of the current resource block, n is the number of sharers, Pk is the initial weight of the kth sharer, and B is the seed weight of the kth sharer. And performing the calculation for each resource block to obtain the accumulated sum of the weights of all the sharers for each resource block. And taking the sequence of the accumulated sum of the resource blocks from small to large as the downloading priority sequence of the plurality of resource blocks.
In an embodiment of the present application, the determining the download priorities of the plurality of resource blocks according to the accumulated sum corresponding to each resource block includes:
sequencing the accumulated sum corresponding to each resource block;
and determining the downloading priority order of the plurality of resource blocks according to the sequence.
And sequencing the accumulated sum corresponding to each resource block according to the sequence from small to large, and taking the sequencing as the downloading priority sequence of the plurality of resource blocks. Or, the accumulated sums corresponding to each resource block may be sorted in descending order, and the reverse order of the sorting may be used as the download priority order of the plurality of resource blocks. By the aid of the downloading priority sequence, the resource blocks which are shared less can be downloaded as soon as possible, and accordingly downloading stability is improved.
It should be noted that, if the cumulative sum corresponding to one resource block is 0, it is determined that there is no sharer in the resource block currently, when determining the download priority order, the other resource blocks whose cumulative sum corresponding to the resource block is not 0 are sorted, according to the sort, the download priority orders of the other resource blocks are determined, and for the resource block whose cumulative sum is 0, the download priority order is determined after a preset time elapses or the cumulative sum is not 0.
The data downloading method disclosed by the embodiment of the application comprises the steps of determining a sharer of a current bit stream seed, determining a plurality of resource blocks contained in the current bit stream seed, obtaining a first downloading progress of each resource block by the sharer and a second downloading progress of the current bit stream seed, determining the weight of each resource block by the sharer according to the first downloading progress and the second downloading progress, determining the downloading priority of the plurality of resource blocks according to the weight of each resource block by the sharer, and considering the weight of the resource blocks when determining the downloading priority instead of counting the number of sharers of each resource block, so that the downloading stability can be improved.
Example two
As shown in fig. 2, the data downloading apparatus 200 of the present embodiment includes:
a seed resource determining module 210, configured to determine a sharer of a current bitstream seed, and determine a plurality of resource blocks included in the current bitstream seed;
a download progress acquiring module 220, configured to acquire a first download progress of each resource block by the sharer determined by the seed resource determining module 210 and a second download progress of the current bitstream seed;
a weight determining module 230, configured to determine a weight of each resource block by the sharer according to the first download progress and the second download progress acquired by the download progress acquiring module 220;
a download priority determining module 240, configured to determine the download priority of the resource blocks according to the weight of the sharer to each resource block determined by the weight determining module 230.
Optionally, the weight determining module includes:
an initial weight determining unit, configured to determine an initial weight of each resource block by the sharer according to the first download progress acquired by the download progress acquisition module;
a seed weight determining unit, configured to determine, according to the second download progress obtained by the download progress obtaining module, a weight of the sharer to the current bitstream seed as a seed weight;
and a resource block weight determining unit configured to determine a weight of each resource block by the sharer based on the initial weight determined by the initial weight determining unit and the seed weight determined by the seed determining unit.
Optionally, the seed determining unit is specifically configured to:
the second downloading progress acquired by the downloading progress acquisition module is used as an abscissa value;
and determining a longitudinal coordinate value corresponding to the abscissa value as the seed weight based on the standard normal distribution.
Optionally, the resource block weight determining unit is specifically configured to:
and taking the product of the initial weight and the seed weight as the weight of the sharer to each resource block.
Optionally, the download priority determining module includes:
a weight accumulation unit, configured to calculate, for each resource block, an accumulated sum of the weight of each sharer for the resource block;
and the priority determining unit is used for determining the downloading priority of the plurality of resource blocks according to the accumulated sum corresponding to each resource block.
Optionally, the priority determining unit is specifically configured to:
sequencing the accumulated sum corresponding to each resource block;
and determining the downloading priority order of the plurality of resource blocks according to the sequence.
The data downloading device provided in the embodiment of the present application is configured to implement each step of the data downloading method described in the first embodiment of the present application, and for specific implementation of each module of the device, reference is made to the corresponding step, which is not described herein again.
The data downloading device disclosed in the embodiment of the application determines a sharer of a current bit stream seed through the seed resource determining module, determines a plurality of resource blocks contained in the current bit stream seed, the downloading progress acquiring module acquires a first downloading progress of the sharer to each resource block and a second downloading progress of the sharer to the current bit stream seed, the weight determining module determines the weight of the sharer to each resource block according to the first downloading progress and the second downloading progress, and the downloading priority determining module determines the downloading priorities of the plurality of resource blocks according to the weight of the sharer to each resource block.
Correspondingly, the embodiment of the present application further discloses an electronic device, which includes a memory, a processor, and a computer program stored on the memory and capable of running on the processor, and when the processor executes the computer program, the data downloading method according to the first embodiment of the present application is implemented. The electronic device can be a server, a PC, a mobile terminal, a personal digital assistant, a tablet computer and the like.
The embodiment of the present application also discloses a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the data downloading method according to the first embodiment of the present application.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The foregoing describes in detail a data downloading method, apparatus, electronic device, and storage medium provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.

Claims (9)

1. A method for downloading data, comprising:
determining a sharer of a current bit stream seed, and determining a plurality of resource blocks contained in the current bit stream seed;
acquiring a first downloading progress of each resource block and a second downloading progress of the current bit stream seed of the sharer;
determining the weight of the sharer to each resource block according to the first downloading progress and the second downloading progress, wherein the weight of the sharer to each resource block is obtained according to the product of the initial weight of the sharer to each resource block and the seed weight of the current bit stream seed, and the distribution of the seed weight relative to the second downloading progress conforms to standard normal distribution;
determining the download priority of the plurality of resource blocks according to the weight of the sharer to each resource block, comprising: and aiming at each resource block, acquiring the accumulated sum of the weight of the resource block of each sharer, sequencing the accumulated sums corresponding to the resource blocks with the accumulated sums not being zero according to the sequence from small to large, and taking the obtained sequence as the downloading priority sequence.
2. The method of claim 1, wherein the determining the weight of each resource block by the sharer according to the first download progress and the second download progress comprises:
determining the initial weight of the sharer to each resource block according to the first downloading progress;
determining the weight of the sharer to the current bit stream seed according to the second downloading progress, and taking the weight as the seed weight;
and determining the weight of the sharer to each resource block according to the initial weight and the seed weight.
3. The method of claim 2, wherein the determining the weight of the sharer to the current bitstream seed according to the second download progress as a seed weight comprises:
taking the second downloading progress as an abscissa value;
and determining a longitudinal coordinate value corresponding to the abscissa value as the seed weight based on the standard normal distribution.
4. The method of claim 1, wherein the determining the download priority of the plurality of resource blocks according to the weight of the sharer to each resource block comprises:
calculating the accumulated sum of the weight of each sharer to each resource block;
and determining the downloading priority of the plurality of resource blocks according to the corresponding accumulated sum of each resource block.
5. The method of claim 4, wherein the determining the download priority of the plurality of resource blocks according to the accumulated sum corresponding to each resource block comprises:
sequencing the accumulated sum corresponding to each resource block;
and determining the downloading priority order of the plurality of resource blocks according to the sequence.
6. A data download apparatus, comprising:
a seed resource determining module, configured to determine a sharer of a current bit stream seed, and determine a plurality of resource blocks included in the current bit stream seed;
a download progress acquiring module, configured to acquire a first download progress of each resource block by the sharer determined by the seed resource determining module and a second download progress of the current bit stream seed;
a weight determining module, configured to determine, according to the first download progress and the second download progress acquired by the download progress acquiring module, a weight of the sharer for each resource block, where the weight of the sharer for each resource block is acquired according to a product of an initial weight of the sharer for each resource block and a seed weight of the current bitstream seed, and a distribution of the seed weight with respect to the second download progress conforms to a standard normal distribution;
a download priority determining module, configured to determine, according to the weight of each resource block by the sharer determined by the weight determining module, the download priority of the resource blocks, and specifically configured to: and aiming at each resource block, acquiring the accumulated sum of the weight of the resource block of each sharer, sequencing the accumulated sums corresponding to the resource blocks with the accumulated sums not being zero according to the sequence from small to large, and taking the obtained sequence as the downloading priority sequence.
7. The apparatus of claim 6, wherein the weight determination module comprises:
an initial weight determining unit, configured to determine an initial weight of each resource block by the sharer according to the first download progress acquired by the download progress acquisition module;
a seed weight determining unit, configured to determine, according to the second download progress obtained by the download progress obtaining module, a weight of the sharer to the current bitstream seed as a seed weight;
and a resource block weight determining unit configured to determine a weight of each resource block by the sharer based on the initial weight determined by the initial weight determining unit and the seed weight determined by the seed weight determining unit.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data downloading method of any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the data downloading method of any one of claims 1 to 5.
CN201910668683.0A 2019-07-23 2019-07-23 Data downloading method and device, electronic equipment and storage medium Active CN110493320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910668683.0A CN110493320B (en) 2019-07-23 2019-07-23 Data downloading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910668683.0A CN110493320B (en) 2019-07-23 2019-07-23 Data downloading method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110493320A CN110493320A (en) 2019-11-22
CN110493320B true CN110493320B (en) 2021-08-13

Family

ID=68548027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910668683.0A Active CN110493320B (en) 2019-07-23 2019-07-23 Data downloading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110493320B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3133530A1 (en) * 2020-08-21 2022-02-21 Shenzhen Carku Technology Co., Limited Shared charging cabinet and ejecting control method thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581259B (en) * 2012-08-03 2018-07-06 上海果壳电子有限公司 P2P downloading tasks dispatching method and system
CN104506929A (en) * 2014-12-26 2015-04-08 电子科技大学 Hybrid data scheduling method for P2P (peer to peer) systems
CN104935638B (en) * 2015-04-30 2018-03-09 重庆大学 A kind of P2P download algorithms based on obstruction switching server
CN105871990A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Download data scheduling method and device
US9998534B2 (en) * 2016-08-24 2018-06-12 International Business Machines Corporation Peer-to-peer seed assurance protocol
US10572268B2 (en) * 2017-04-21 2020-02-25 International Business Machines Corporation Network booting in a peer-to-peer environment using dynamic magnet links

Also Published As

Publication number Publication date
CN110493320A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN112181666B (en) Equipment assessment and federal learning importance aggregation method based on edge intelligence
KR20180077267A (en) Emoticon recommendation method and device
US20220237510A1 (en) Method for training multimedia recommendation model and server
CN110493320B (en) Data downloading method and device, electronic equipment and storage medium
CN111428885B (en) User indexing method in federated learning and federated learning device
CN107704317B (en) Intelligent device and application management method thereof and device with storage function
CN109962947A (en) Method for allocating tasks and device in a kind of peer-to-peer network
CN111222553A (en) Training data processing method and device of machine learning model and computer equipment
CN106611021B (en) Data processing method and equipment
CN108600147B (en) Downloading speed prediction method and device
CN111428197B (en) Data processing method, device and equipment
CN109450684B (en) Method and device for expanding physical node capacity of network slicing system
CN107911345B (en) Game reservation list generation method and device and server
CN113176936B (en) QoE-aware distributed edge task scheduling and resource management method and system
CN114866790A (en) Live streaming scheduling method and device
CN107832859B (en) Game reservation list generation method and device and server
CN105591980B (en) A kind of bandwidth consumption management method and device
CN104978344B (en) A kind of data operating method and device
CN111966490A (en) Spark partition load balancing method
CN110795204A (en) Virtual machine deployment method and device
KR101089646B1 (en) Method and apparatus for content recommendation
CN111324444A (en) Cloud computing task scheduling method and device
CN107229622B (en) Information processing method and server
CN112637020B (en) Network quality evaluation method, device and system for networks among data centers
CN111371873B (en) Web service election method, device and server

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