Data downloading method, device and equipment based on multiple non-deterministic prefetch algorithms and storage medium

Controlling the downloading of data fragments through multiple non-deterministic prefetching algorithms solves the problem of server bandwidth spikes in traditional downloading methods, achieving smooth bandwidth offloading and improving user experience.

CN118694769APending Publication Date: 2024-09-24LETV CLOUD NETWORK TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410830207.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Traditional data downloading methods lead to server bandwidth spikes, affecting user experience. Especially during periods of high traffic, excessive server pressure may lead to data transmission congestion and reduced download speeds.

Method used

It uses a multiple non-deterministic prefetching algorithm to control the download permissions and amounts of data fragments by generating random numbers, offload download tasks, and ensure smooth use of server bandwidth.

Benefits of technology

It effectively reduces server download pressure, avoids data transmission congestion, improves user experience and service quality, and ensures the stability of download speeds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694769A
    Figure CN118694769A
Patent Text Reader

Abstract

The embodiment of the invention provides a data downloading method based on multiple non-deterministic prefetching algorithms. The data downloading method and device are applied to the technical field of data downloading. The method comprises the steps of obtaining data fragment information needing to be downloaded; in the current time period, generating a first rerandom number; generating a second random number and a third random number if the first random number is smaller than the multiple random number with the preset number of 1; traversing all the data fragments, and if the random identification value of the data fragment is smaller than the second re-random number, allowing the data fragment to be downloaded; the smaller value in the third random number and the multiple random numbers with the preset number 2 is taken as the numerical value of the downloading data volume in the current time period, and data downloading is carried out; repeating the steps in each time period until all the data fragments are downloaded; in this way, the downloading pressure of the server can be reduced, the bandwidth peak of the server tends to be smooth, and the user experience and the service quality are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data downloading, and in particular to a data downloading method, device, equipment and storage medium based on a multiple non-deterministic pre-fetching algorithm. Background Art

[0002] In recent years, with the booming development of the Internet industry, users have higher requirements for real-time performance in terms of client upgrades and data delivery. In traditional download scenarios, the server usually performs unified downloads, and users must download data directly from the server. This will cause server bandwidth spikes, especially during high-traffic periods, when the same behavior will be performed at very similar times. The server is connected to multiple clients at the same time, which may cause the server to be overloaded instantly and affect other normal businesses. In addition, traditional data downloads rely on a single server. If the server fails, it will affect the user experience of all users. Summary of the invention

[0003] The present invention provides a data download method, device, equipment and storage medium based on multiple non-deterministic pre-fetching algorithms, which solves the technical problem that in traditional downloading, the server is instantly overloaded with pressure due to simultaneous connection with multiple clients, affecting other normal services and user experience.

[0004] According to a first aspect of the present disclosure, a data download method based on a multiple non-deterministic pre-fetching algorithm is provided. The method comprises: obtaining data segment information to be downloaded;

[0005] In the current time period, generate the first random number;

[0006] If the first random number is smaller than the multiple random number of preset number 1, a second random number and a third random number are generated;

[0007] Traversing all data slices, if the random identification value of the data slice is less than the second random number, the data slice is allowed to be downloaded;

[0008] The smaller value between the third random number and the multiple random number of preset number 2 is taken as the value of the amount of data downloaded in the current time period, and the data is downloaded;

[0009] Repeat the above steps in each time period until all data segments are downloaded; wherein the second random number and the third random number generated in the next time period are increased in random increments based on the second random number and the third random number generated in the current time period.

[0010] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein obtaining the data segment information to be downloaded includes:

[0011] The data segment information to be downloaded is obtained from the server or the peer client, where the peer client is a client that has downloaded the data segment.

[0012] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the data sharding information is obtained by the client receiving a data download request and logically sharding the required data; and the random identification value is generated by the client for each of the data shards.

[0013] According to the aspects described above and any possible implementation method, an implementation method is further provided, wherein the data sharding information is obtained by the server performing logical sharding on the required data; and the random identification value is generated by the server for each data shard.

[0014] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the method further includes:

[0015] If the first random number is greater than or equal to the multiple random numbers of the preset number 1, downloading is not allowed in the current time period.

[0016] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the method further includes:

[0017] If the first random number is greater than or equal to the multiple random number of the preset number 1 for N consecutive time periods, downloading is performed from a peer client, the peer client is a client that has downloaded data, and N is a positive integer.

[0018] According to the above aspects and any possible implementation manner, an implementation manner is further provided, wherein the method further includes pre-downloading, and the pre-downloading includes:

[0019] The smaller value between the third random number and the multiple random number of preset number 2 is taken as the pre-fetch rate value of the current time period, and data is pre-downloaded, and the pre-fetch rate is the proportion of pre-download.

[0020] According to a second aspect of the present disclosure, a data downloading device is provided. The device comprises:

[0021] A data shard information acquisition module is used to acquire the data shard information that needs to be downloaded;

[0022] A random number generation module, used to generate a first random number in the current time period; if the first random number is less than the multiple random number of preset number 1, then generate a second random number and a third random number;

[0023] A data download module, used for traversing all data slices, and if the random identification value of the data slice is less than the second random number, the data slice is allowed to be downloaded;

[0024] The smaller value between the third random number and the multiple random number of preset number 2 is taken as the value of the amount of data downloaded in the current time period, and the data is downloaded;

[0025] The random number generation module and the data download module repeat the above operations in each time period until all data segments are downloaded; wherein the second random number and the third random number generated in the next time period are increased in random increments based on the second random number and the third random number generated in the current time period.

[0026] According to a third aspect of the present disclosure, an electronic device is provided. The electronic device includes:

[0027] at least one processor; and

[0028] a memory communicatively connected to the at least one processor; wherein,

[0029] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to the first aspect and / or the second aspect of the present disclosure.

[0030] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the processor executes the program, the method as described above is implemented.

[0031] In the present disclosure, multiple clients download data from a server at the same time. For each client, first obtain the data segment information to be downloaded from the server, including the random identification value attribute of each data segment; then generate a first random number in the current time period. If the first random number is less than the multiple random numbers of the preset number 1, it means that the client allows downloading in the current time period, and then generate a second random number and a third random number; traverse all data segments. If the random identification value of the data segment is less than the second random number, it means that the data segment allows downloading; take the smaller value of the third random number and the multiple random number of the preset number 2 as the value of the amount of data downloaded in the current time period, and download the data segment; repeat the above steps in each time period until all the data segments are downloaded; wherein, the second random number and the third random number generated in the next time period are increased according to random increments based on the second random number and the third random number generated in the current time period. Through the above method, the server bandwidth spike can be smoothed, the server download pressure is reduced, the problem of data transmission congestion caused by the server bandwidth spike, which affects the download speed, is solved, and the user experience is improved.

[0032] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, among which:

[0034] Figure 1 A flow chart of a data downloading method based on a multiple non-deterministic pre-fetching algorithm according to an embodiment of the present disclosure is shown;

[0035] Figure 2 A block diagram of a data downloading device based on a multiple non-deterministic pre-fetching algorithm according to an embodiment of the present disclosure is shown;

[0036] Figure 3 A block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0038] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0039] In the present disclosure, in order to solve the problem that the traditional download scene relies on the server for unified download, which is easy to cause the server bandwidth peak and affect the user experience, a data download method based on a multiple non-deterministic pre-fetching algorithm is proposed, the method comprising: obtaining the data segment information to be downloaded; in the current time period, generating a first random number and comparing it with the multiple random numbers of the preset number 1 to determine whether the download is allowed; if so, generating a second random number and a third random number; traversing all data segments, taking the random identification value of the data segment and comparing it with the second random number, and screening the data segment allowed to be downloaded; determining the value of the amount of data downloaded in the current time period according to the third random number and the multiple random numbers of the preset number 2, and downloading the data; repeating the above steps in each time period until the data download is completed, wherein the second random number and the third random number generated in the next period are increased according to the random increment on the basis of the current time period. In this way, not only can the server bandwidth peak be smoothed, the server download pressure is reduced, the data transmission congestion caused by the server bandwidth peak is alleviated, thereby affecting the download speed, and the user experience and service quality are guaranteed.

[0040] Figure 1 A flow chart of a data downloading method 100 based on a multiple non-deterministic pre-fetching algorithm according to an embodiment of the present disclosure is shown. Figure 1 As shown, the data downloading method based on multiple non-deterministic pre-fetching algorithms includes:

[0041] S101, obtaining data segment information to be downloaded.

[0042] In some embodiments, when the client receives a system upgrade request, it sends a data download request to the server. The server logically segments the data to be downloaded into fixed-size segments, assigns random identification value attributes to the obtained data segments, labels each data segment in sequence with an ascending serial number, and sends the random identification value attributes of each data segment to the client.

[0043] In one possible implementation, a client sends a data download request to a peer client, the peer client logically segments the required data into fixed-size segments, assigns random identification value attributes to the obtained data segments, labels each segment in sequence with an ascending serial number, and sends the random identification value of each data segment to the client. The peer client is a client that has downloaded the data segment information.

[0044] S102, generating a first random number in the current time period.

[0045] S103: If the first random number is smaller than the multiple random number of preset number 1, a second random number and a third random number are generated.

[0046] In some embodiments, when the client starts up, it reads a multiple random number with a preset number of 1 and compares it with the first random number generated in the current time period. If the first random number is smaller than the multiple random number with a preset number of 1, it means that the client is allowed to download in the current time period, and then a second random number and a third random number are generated.

[0047] In some embodiments, if the first random number is greater than or equal to the multiple random number of preset number 1, the client is not allowed to download in the current time period, and waits for the next time period to regenerate a new first random number and compare again until the generated first random number is less than the multiple random number of preset number 1, then the second random number and the third random number are generated.

[0048] In a possible implementation, if the first random number generated is greater than or equal to the multiple random numbers of preset number 1 for N consecutive time periods, then downloading is performed from the peer client, where N is a positive integer. By screening the clients allowed to download in the current time period, the number of clients downloading from the server in the same time period is reduced, thereby smoothing the bandwidth peaks of multiple download stages of the server download, achieving the effect of diversion.

[0049] S104, traverse all data slices, if the random identification value of the data slice is less than the second random number, then the data slice is allowed to be downloaded.

[0050] In some embodiments, the second random number is compared with the random identification value of the data slice in the current time period. All data slices are traversed, and if the random identification value of the data slice is less than the second random number, it means that the data slice is allowed to be downloaded. The remaining data slices are compared with the second random number generated in the next time period.

[0051] S105, taking the smaller value between the third random number and the multiple random number of preset number 2 as the value of the amount of data downloaded in the current time period, and downloading the data.

[0052] In some embodiments, the third random number is compared with the multiple random numbers of preset number 2, and the smaller value of the two is taken as the value of quantitative download in the current time period, and the data segment is downloaded based on this value.

[0053] In a possible implementation, a smaller value between the third random number and the multiple random number of preset number 2 is taken as the value of the amount of data downloaded in the current time period, and the data segments are downloaded.

[0054] In one possible implementation, a pre-download method is used to download data segment information, wherein a smaller value between the third random number and the multiple random numbers of preset number 2 is taken as the value of the pre-fetch rate of the current time period, and the value of the quantitative download of the current time period is calculated according to the pre-fetch rate, and the data segment is pre-downloaded, and the pre-fetch rate is the ratio of the pre-download.

[0055] Repeat the above steps in each time period until all data segments are downloaded; wherein the second random number and the third random number generated in the next time period are increased in random increments based on the second random number and the third random number generated in the current time period.

[0056] In some embodiments, if there are data segments that have not been downloaded within a time period, the above download steps are repeated in the next time period until the data segments are downloaded; wherein the second random number and the third random number generated again in the next time period are increased according to a random increment based on the second random number and the third random number generated in the current time period.

[0057] In some embodiments, a client requests to download a ts file of 1MB in size, and the server performs a logical slicing operation on the file according to 128KB to obtain 8 data slicings, and generates a random identification value attribute of 0-99 for each data slicing, and marks the 8 data slicings in order with increasing serial numbers of 0-7, and sends the data slicing information to the client; the client reads the multiple random numbers 27 and 800 of the preset numbers 1-2; in the current time period, generates a first random number 15, which is less than the multiple random number 27 of the preset number 1, then allows this client to download, and generates a second random number 18 and a third random number 19. The number of machines is 640; among the 8 data slices, the data slices whose random identification value attributes are less than the second random number 18 are assigned a download permission mark; the smaller value of the third random number 640 and the multiple random number 800 of the preset number 2 is taken as the value of the amount of data to be downloaded in the current time period, and the data is downloaded; that is, in the current time period, only 5 data slices are downloaded, then the downloading steps are repeated in the next time period until the data download is completed; wherein, the second random number and the third random number generated in the next time period are incremented according to the randomly generated increments based on the second random number and the third random number generated in the current time period.

[0058] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0059] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.

[0060] Figure 2 FIG. 2 shows a block diagram of a data downloading device 200 based on a multiple non-deterministic pre-fetching algorithm according to an embodiment of the present disclosure. Figure 2 As shown, the device 200 includes:

[0061] The data segment information acquisition module 201 is used to acquire the data segment information to be downloaded;

[0062] The random number generation module 202 is used to generate a first random number in the current time period; if the first random number is smaller than the multiple random number of the preset number 1, then generate a second random number and a third random number;

[0063] The data download module 203 is used to traverse all data slices, and if the random identification value of the data slice is less than the second random number, the data slice is allowed to be downloaded;

[0064] The smaller value between the third random number and the multiple random number of preset number 2 is taken as the value of the amount of data downloaded in the current time period, and the data is downloaded;

[0065] The random number generation module and the data download module repeat the above operations in each time period until all data segments are downloaded; wherein the second random number and the third random number generated in the next time period are increased in random increments based on the second random number and the third random number generated in the current time period.

[0066] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0067] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0068] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0069] Figure 3 A schematic block diagram of an electronic device 300 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0070] The electronic device 300 includes a computing unit 301, which can perform various appropriate actions and processes according to a computer program stored in a ROM 302 or a computer program loaded from a storage unit 308 into a RAM 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 can also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An I / O interface 305 is also connected to the bus 304.

[0071] A number of components in the electronic device 300 are connected to the I / O interface 305, including: an input unit 306, such as a keyboard, a mouse, etc.; an output unit 307, such as various types of displays, speakers, etc.; a storage unit 308, such as a disk, an optical disk, etc.; and a communication unit 309, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 309 allows the electronic device 300 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0072] The computing unit 301 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 301 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 301 performs the various methods and processes described above, such as method 100. For example, in some embodiments, the method 100 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 308. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 300 via the ROM 302 and / or the communication unit 309. When the computer program is loaded into the RAM 303 and executed by the computing unit 301, one or more steps of the method 100 described above may be performed. Alternatively, in other embodiments, the computing unit 301 may be configured to perform the method 100 in any other appropriate manner (e.g., by means of firmware).

[0073] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0074] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0075] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0076] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0077] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0078] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0079] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0080] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data downloading method based on multiple non-deterministic pre-fetching algorithms, characterized in that: include: Get the data shard information that needs to be downloaded; In the current time period, generate the first random number; If the first random number is smaller than the multiple random number of preset number 1, a second random number and a third random number are generated; Traversing all data slices, if the random identification value of the data slice is less than the second random number, the data slice is allowed to be downloaded; The smaller value between the third random number and the multiple random number of preset number 2 is taken as the value of the amount of data downloaded in the current time period, and the data is downloaded; Repeat the above steps in each time period until all data segments are downloaded; wherein the second random number and the third random number generated in the next time period are increased in random increments based on the second random number and the third random number generated in the current time period.

2. The method according to claim 1, characterized in that The obtaining of the data segment information to be downloaded includes: obtaining the data segment information to be downloaded from a server or a peer client, wherein the peer client is a client that has downloaded the data segment.

3. The method according to claim 2, characterized in that The data slicing information is obtained by the client receiving a data download request and logically slicing the required data; the random identification value is generated by the client for each of the data slicing.

4. The method according to claim 2, characterized in that: The data sharding information is obtained by the server performing logical sharding on the required data; and the random identification value is generated by the server for each data shard.

5. The method according to claim 1, characterized in that The method further comprises: If the first random number is greater than or equal to the multiple random numbers of the preset number 1, downloading is not allowed in the current time period.

6. The method according to claim 5, characterized in that The method further comprises: If the first random number is greater than or equal to the multiple random number of the preset number 1 for N consecutive time periods, downloading is performed from a peer client, the peer client is a client that has downloaded data, and N is a positive integer.

7. The method according to claim 1, characterized in that The method further includes pre-downloading, wherein the pre-downloading includes: The smaller value between the third random number and the multiple random number of preset number 2 is taken as the pre-fetch rate value of the current time period, and data is pre-downloaded, and the pre-fetch rate is the proportion of pre-download.

8. A data downloading device, comprising: A data shard information acquisition module is used to acquire the data shard information that needs to be downloaded; A random number generation module, used to generate a first random number in the current time period; If the first random number is smaller than the multiple random number of preset number 1, a second random number and a third random number are generated; A data download module, used for traversing all data slices, and if the random identification value of the data slice is less than the second random number, the data slice is allowed to be downloaded; The smaller value between the third random number and the multiple random number of preset number 2 is taken as the value of the amount of data downloaded in the current time period, and the data is downloaded; The random number generation module and the data download module repeat the above operations in each time period until all data segments are downloaded; wherein the second random number and the third random number generated in the next time period are increased in random increments based on the second random number and the third random number generated in the current time period.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.