File downloading method based on P2P network, electronic device and storage medium
A P2P network and file download technology, applied to electronic equipment and storage media, in the field of file download based on P2P network, can solve the problems of many file fragments and high IO, and achieve less file fragments, good continuity, and easy verification. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] Such as figure 1 The method for downloading files based on the P2P network includes the following steps:
[0047] Step S110, creating a scheduling window according to the task information of the file to be downloaded.
[0048] The file to be downloaded may be a file provided by other nodes in the P2P network, or a file backed up by the node on other nodes in the P2P network. The task information of the file to be downloaded may include the file name of the file to be downloaded, the size of the file, the address of the Tracker server, the segment check code SHA1 for verifying the integrity and correctness of the data, and the like.
[0049] In another embodiment, no Tracker server is needed in the P2P network, and the addressing of files in the DHT network can be realized through the existing distributed hash table (Distributed Hash Table, DHT) technology.
[0050] Step S120, dividing the scheduling window into multiple segments.
[0051] For example, if the length o...
Embodiment 2
[0069] Such as Figure 4 The shown file download method based on the P2P network comprises the following steps:
[0070] Step S210, creating a scheduling window according to the task information of the file to be downloaded.
[0071] As a preferred implementation manner, scheduling windows of different lengths can be created according to the size of the files to be downloaded.
[0072] Because in the downloading process, some data in the scheduling window, such as one or more bytes, or the content of several M cannot be downloaded in time or the downloaded data is always wrong. In the file download method based on the P2P network, each data is requested to be downloaded from the peer nodes in the network respectively. Therefore, as a preferred embodiment, the larger the file to be downloaded, the smaller the scheduling window can be created. At this time, there is less data in the scheduling window, so the same data can be requested from more peer nodes, and the probability ...
Embodiment 3
[0096] Such as Figure 5 The electronic device shown includes a memory 300, a processor 400, and a program stored in the memory 300. The program is configured to be executed by the processor 400. When the processor 400 executes the program, the above-mentioned file download method based on the P2P network is realized. A step of.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com